diff --git a/.ci/buildchain-config.yaml b/.ci/buildchain-config.yaml index 497197ebff6..10d4943f11f 100644 --- a/.ci/buildchain-config.yaml +++ b/.ci/buildchain-config.yaml @@ -28,7 +28,7 @@ default: docker system prune -f build: - - project: kiegroup/drools + - project: apache/incubator-kie-drools build-command: current: | export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.DROOLS_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"` @@ -36,15 +36,15 @@ build: upstream: | mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.DROOLS_BUILD_MVN_OPTS_UPSTREAM }} - - project: kiegroup/kogito-runtimes + - project: apache/incubator-kie-kogito-runtimes build-command: current: | export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.KOGITO_RUNTIMES_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"` - mvn clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS }} + mvn clean ${{ env.MVN_CMD }} -Dfull ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS }} upstream: | - mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS_UPSTREAM }} + mvn clean install -Dquickly -Dfull ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS_UPSTREAM }} - - project: kiegroup/kogito-apps + - project: apache/incubator-kie-kogito-apps build-command: current: | export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.KOGITO_APPS_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"` @@ -57,7 +57,7 @@ build: **/cypress/screenshots/** **/cypress/videos/** - - project: kiegroup/kogito-examples + - project: apache/incubator-kie-kogito-examples build-command: # First install the main pom # Then build the required submodule pom @@ -66,4 +66,12 @@ build: mvn -pl :kogito-examples clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS }} mvn -f ${{ env.KOGITO_EXAMPLES_SUBFOLDER_POM }}pom.xml clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS }} upstream: | - mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS_UPSTREAM }} + mvn clean install -DskipTests -DskipITs ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_EXAMPLES_BUILD_MVN_OPTS_UPSTREAM }} + + # - project: kiegroup/kie-jpmml-integration + # build-command: + # current: | + # export MVN_CMD=`bash -c "if [ '${{ env.ENABLE_DEPLOY }}' = 'true' ]; then printf 'deploy ${{ env.DEPLOY_MVN_OPTS }} ${{ env.KIE_JPMML_INTEGRATION_DEPLOY_MVN_OPTS }}'; else printf 'install'; fi"` + # mvn clean ${{ env.MVN_CMD }} ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KIE_JPMML_INTEGRATION_BUILD_MVN_OPTS }} + # upstream: | + # mvn clean install -DskipTests ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KIE_JPMML_INTEGRATION_BUILD_MVN_OPTS_UPSTREAM }} diff --git a/.ci/buildchain-project-dependencies.yaml b/.ci/buildchain-project-dependencies.yaml index 31d0afcc939..7d1bfb80cf9 100644 --- a/.ci/buildchain-project-dependencies.yaml +++ b/.ci/buildchain-project-dependencies.yaml @@ -1,61 +1,68 @@ version: "2.1" dependencies: - - project: kiegroup/drools + - project: apache/incubator-kie-drools mapping: dependencies: default: - - source: (\d*)\.(.*)\.(.*) - targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)" + - source: (\d*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1-7}.${n2}`)" dependant: default: - - source: (\d*)\.(.*)\.(.*) - targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)" + - source: (\d*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1+7}.${n2}`)" + # exclude: + # - kiegroup/kie-jpmml-integration - - project: kiegroup/kogito-runtimes + - project: apache/incubator-kie-kogito-runtimes dependencies: - - project: kiegroup/drools + - project: apache/incubator-kie-drools mapping: dependencies: default: - - source: (\d*)\.(.*)\.(.*) - targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)" + - source: (\d*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1+7}.${n2}`)" dependant: default: - - source: (\d*)\.(.*)\.(.*) - targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)" + - source: (\d*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1-7}.${n2}`)" exclude: - - kiegroup/kogito-examples - - kiegroup/kogito-apps + - apache/incubator-kie-kogito-examples + - apache/incubator-kie-kogito-apps - - project: kiegroup/kogito-apps + - project: apache/incubator-kie-kogito-apps dependencies: - - project: kiegroup/kogito-runtimes + - project: apache/incubator-kie-kogito-runtimes mapping: dependencies: default: - - source: (\d*)\.(.*)\.(.*) - targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)" + - source: (\d*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1+7}.${n2}`)" dependant: default: - - source: (\d*)\.(.*)\.(.*) - targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)" + - source: (\d*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1-7}.${n2}`)" exclude: - - kiegroup/kogito-examples - - kiegroup/kogito-runtimes + - apache/incubator-kie-kogito-examples + - apache/incubator-kie-kogito-runtimes - - project: kiegroup/kogito-examples + - project: apache/incubator-kie-kogito-examples dependencies: - - project: kiegroup/kogito-runtimes - - project: kiegroup/kogito-apps + - project: apache/incubator-kie-kogito-runtimes + - project: apache/incubator-kie-kogito-apps mapping: dependencies: default: - - source: (\d*)\.(.*)\.(.*) - targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1+7}.${n2}.${n3}`)" + - source: (\d*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1+7}.${n2}`)" dependant: default: - - source: (\d*)\.(.*)\.(.*) - targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)\\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`)" + - source: (\d*)\.(.*) + targetExpression: "process.env.GITHUB_BASE_REF.replace(/(\\d*)\\.(.*)/g, (m, n1, n2) => `${+n1-7}.${n2}`)" exclude: - - kiegroup/kogito-apps - - kiegroup/kogito-runtimes + - apache/incubator-kie-kogito-apps + - apache/incubator-kie-kogito-runtimes + + # - project: kiegroup/kie-jpmml-integration + # dependencies: + # - project: apache/incubator-kie-drools + # no mapping needed diff --git a/.ci/environments/common/update_quarkus.sh b/.ci/environments/common/update_quarkus.sh index dc187436ad9..2dbf3ac7bd8 100755 --- a/.ci/environments/common/update_quarkus.sh +++ b/.ci/environments/common/update_quarkus.sh @@ -3,7 +3,7 @@ set -euo pipefail mvn_cmd="mvn ${BUILD_MVN_OPTS:-} ${BUILD_MVN_OPTS_QUARKUS_UPDATE:-}" -source <(curl -s https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/dsl/seed/scripts/install_quarkus.sh) +source <(curl -s https://raw.githubusercontent.com/apache/incubator-kie-kogito-pipelines/main/dsl/seed/scripts/install_quarkus.sh) echo "Update project with Quarkus version ${QUARKUS_VERSION}" diff --git a/.ci/environments/quarkus-3/after.sh b/.ci/environments/quarkus-3/after.sh index d7c87614a45..30e1c0209cd 100755 --- a/.ci/environments/quarkus-3/after.sh +++ b/.ci/environments/quarkus-3/after.sh @@ -10,4 +10,4 @@ project_version=$(mvn -q -Dexpression=project.version -DforceStdout help:evaluat new_version=$(echo ${project_version} | awk -F. -v OFS=. '{$1 += 1 ; print}') # Change version -${mvn_cmd} -e -N -Dfull -DnewVersion=${new_version} -DallowSnapshots=true -DgenerateBackupPoms=false versions:set \ No newline at end of file +${mvn_cmd} -e -N -DnewVersion=${new_version} -DallowSnapshots=true -DgenerateBackupPoms=false versions:set \ No newline at end of file diff --git a/.ci/environments/quarkus-3/before.sh b/.ci/environments/quarkus-3/before.sh index 87a5a0d30d2..14e515aa973 100755 --- a/.ci/environments/quarkus-3/before.sh +++ b/.ci/environments/quarkus-3/before.sh @@ -74,10 +74,13 @@ if [ "$(git status --porcelain ${patch_file})" != '' ]; then git add "${patch_file}" git commit -m '[Quarkus 3] Updated rewrite data' + git reset --hard if [ "${behavior}" = 'push_changes' ]; then git_remote="${GIT_REMOTE:-origin}" branch=$(git branch --show-current) - echo "Pushing changes to ${git_remote}/${branch}" + echo "Pushing changes to ${git_remote}/${branch} after rebase " + git fetch ${git_remote} + git rebase ${git_remote}/${branch} git push ${git_remote} ${branch} fi fi diff --git a/.ci/environments/quarkus-3/patches/0001_before_sh.patch b/.ci/environments/quarkus-3/patches/0001_before_sh.patch index 8d76aa977f0..78db1ae9864 100644 --- a/.ci/environments/quarkus-3/patches/0001_before_sh.patch +++ b/.ci/environments/quarkus-3/patches/0001_before_sh.patch @@ -1,13 +1,30 @@ diff --git a/build-parent/pom.xml b/build-parent/pom.xml -index a01370282c..6b5c85115c 100644 +index 0758c53eef..312d76a4f5 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml -@@ -55,9 +55,9 @@ +@@ -60,22 +60,22 @@ + 1.1.1 + 2.11.0 + 1.10.0 +- 2.15.2 +- 2.15.2 +- 2.15.2 ++ 2.14.2 ++ 2.14.2 ++ 2.14.2 + 4.31.0 + 3.7.4 + 1.0.1 + 3.22.0 +- 2.2.220 ++ 2.1.214 + 1.0.86 + 2.3.0 1.4.20 0.18.0 4.7.1 - 1.10.2 -- 2.16.6.Final +- 2.16.10.Final - 3.1.1 + 1.10.5 + 3.0.0.Final @@ -15,25 +32,27 @@ index a01370282c..6b5c85115c 100644 8.5.11 4.13.1 1.8.0 -@@ -70,40 +70,40 @@ +@@ -88,42 +88,42 @@ 4.4.15 3.8.6 1.7.3 - 3.5.1 + 3.5.3 + 2.0.28 5.1.0 - 9.0.21 + 10.1.7 3.23.1 - 3.18.0 + 3.33.0 2.3.32 - 2.3.6 -+ 4.0.2 ++ 4.0.3 1.3 - 5.6.12.Final + 6.2.0.Final 2.3.0 + 14.0.13.Final 3.26.0-GA - 5.13.1.Final + 6.0.0.Final @@ -75,9 +94,9 @@ index a01370282c..6b5c85115c 100644 + 2.1.1 + 1.6.4 5.9.2 - 2.4.15.Final + 2.5.0.Final 2.0.7 -@@ -132,7 +132,7 @@ +@@ -152,7 +152,7 @@ 2.2.0 1.5.0 2.3.0-jaxb-1.0.6 @@ -86,7 +105,7 @@ index a01370282c..6b5c85115c 100644 1.21 -@@ -151,10 +151,10 @@ +@@ -171,10 +171,10 @@ 2.22.1 3.6.4 @@ -99,7 +118,7 @@ index a01370282c..6b5c85115c 100644 1.3 -@@ -182,14 +182,14 @@ +@@ -202,16 +202,16 @@ 1.12.18 @@ -115,9 +134,12 @@ index a01370282c..6b5c85115c 100644 - 3.24.2 + 3.25.1 +- 32.0.1-jre ++ 31.1-jre + -@@ -265,7 +265,7 @@ +@@ -287,7 +287,7 @@ com.fasterxml.jackson.module @@ -126,7 +148,7 @@ index a01370282c..6b5c85115c 100644 ${version.com.fasterxml.jackson.annotations} -@@ -274,8 +274,8 @@ +@@ -296,8 +296,8 @@ ${version.com.fasterxml.jackson} @@ -137,7 +159,7 @@ index a01370282c..6b5c85115c 100644 ${version.com.fasterxml.jackson} -@@ -362,9 +362,9 @@ +@@ -371,9 +371,9 @@ ${version.com.sun.xml.bind} @@ -150,7 +172,7 @@ index a01370282c..6b5c85115c 100644 com.sun.xml.bind -@@ -414,8 +414,8 @@ +@@ -423,8 +423,8 @@ @@ -161,7 +183,7 @@ index a01370282c..6b5c85115c 100644 ${version.jakarta.json} -@@ -450,8 +450,8 @@ +@@ -459,8 +459,8 @@ @@ -172,7 +194,7 @@ index a01370282c..6b5c85115c 100644 ${version.jakarta.activation} -@@ -782,12 +782,12 @@ +@@ -795,12 +795,12 @@ @@ -187,7 +209,7 @@ index a01370282c..6b5c85115c 100644 hibernate-jpamodelgen ${version.org.hibernate} -@@ -1106,7 +1106,7 @@ +@@ -1119,7 +1119,7 @@ @@ -196,7 +218,7 @@ index a01370282c..6b5c85115c 100644 hibernate-core ${version.org.hibernate} -@@ -1128,31 +1128,16 @@ +@@ -1141,31 +1141,16 @@ @@ -234,12 +256,29 @@ index a01370282c..6b5c85115c 100644 sources +diff --git a/drools-base/pom.xml b/drools-base/pom.xml +index 68468e2a45..8773e29d79 100644 +--- a/drools-base/pom.xml ++++ b/drools-base/pom.xml +@@ -83,9 +83,10 @@ + provided + + +- com.sun.xml.bind +- jaxb-impl ++ org.glassfish.jaxb ++ jaxb-runtime + provided ++ 4.0.3 + + + jakarta.xml.bind diff --git a/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java b/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java -index 281582bfd3..800ec105c3 100644 +index 5fc6fea50e..55f012280b 100644 --- a/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java -@@ -16,11 +16,11 @@ - +@@ -18,11 +18,11 @@ + */ package org.drools.commands; -import javax.xml.bind.annotation.XmlAccessType; @@ -256,10 +295,10 @@ index 281582bfd3..800ec105c3 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java -index 90fbda1b37..0578da7313 100644 +index 2ef2899704..102e011254 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java -@@ -24,7 +24,7 @@ import java.util.HashSet; +@@ -26,7 +26,7 @@ import java.util.HashSet; import java.util.List; import java.util.Set; @@ -269,11 +308,11 @@ index 90fbda1b37..0578da7313 100644 import org.drools.commands.jaxb.JaxbListWrapper.JaxbWrapperType; import org.slf4j.Logger; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java -index 92d5dd6811..5e89a69b7f 100644 +index 3731c9cedf..fab61b1b75 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java -@@ -16,11 +16,11 @@ - +@@ -18,11 +18,11 @@ + */ package org.drools.commands.jaxb; -import javax.xml.bind.annotation.XmlAccessType; @@ -290,10 +329,10 @@ index 92d5dd6811..5e89a69b7f 100644 /** * This is actually a wrapper for the following collections: diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java -index 544431b350..5fb0c9edd5 100644 +index 0086b7b657..413d2595b4 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java -@@ -21,7 +21,7 @@ import java.util.LinkedHashMap; +@@ -23,7 +23,7 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -303,11 +342,11 @@ index 544431b350..5fb0c9edd5 100644 import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java -index 292a2dfd92..b0ad67a888 100644 +index 4eed12a05b..3d76ab5f2a 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java -@@ -16,11 +16,11 @@ - +@@ -18,11 +18,11 @@ + */ package org.drools.commands.jaxb; -import javax.xml.bind.annotation.XmlAccessType; @@ -324,11 +363,11 @@ index 292a2dfd92..b0ad67a888 100644 @XmlAccessorType(XmlAccessType.NONE) public class JaxbObjectObjectPair { diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java -index 97c1d42a5e..6f4eb3df3d 100644 +index cdbd169168..0b95499a29 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java -@@ -16,12 +16,12 @@ - +@@ -18,12 +18,12 @@ + */ package org.drools.commands.jaxb; -import javax.xml.bind.annotation.XmlAccessType; @@ -347,10 +386,10 @@ index 97c1d42a5e..6f4eb3df3d 100644 @XmlAccessorType(XmlAccessType.NONE) @XmlSeeAlso({JaxbListWrapper.class}) diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java -index 79b902ab82..f9c59dac37 100644 +index 176f5a6e0f..3c28fa5670 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java -@@ -29,7 +29,7 @@ import java.util.Map; +@@ -31,7 +31,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Set; @@ -360,11 +399,11 @@ index 79b902ab82..f9c59dac37 100644 import org.drools.core.QueryResultsImpl; import org.drools.core.common.DisconnectedFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java -index b76eb0770f..12a3ee104b 100644 +index 6406f23fe1..b243b5191a 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.drools.commands.jaxb; -import javax.xml.bind.annotation.XmlRegistry; @@ -373,10 +412,10 @@ index b76eb0770f..12a3ee104b 100644 @XmlRegistry public class ObjectFactory { diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java -index c757b616b8..c61788017d 100644 +index 38df33a7f8..56276dd5c5 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java -@@ -17,10 +17,10 @@ +@@ -19,10 +19,10 @@ package org.drools.commands.runtime; import java.util.concurrent.TimeUnit; @@ -392,10 +431,10 @@ index c757b616b8..c61788017d 100644 import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java b/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java -index d40c218877..5ed7409a8b 100644 +index 4970214a04..e11edabef1 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java -@@ -18,13 +18,13 @@ package org.drools.commands.runtime; +@@ -20,13 +20,13 @@ package org.drools.commands.runtime; import java.util.ArrayList; import java.util.List; @@ -417,11 +456,11 @@ index d40c218877..5ed7409a8b 100644 import org.drools.commands.fluent.Batch; import org.drools.commands.runtime.pmml.ApplyPmmlModelCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java -index b8e8c07365..a0fdcf64d9 100644 +index be75a9796a..62154e0afb 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java -@@ -16,9 +16,9 @@ - +@@ -18,9 +18,9 @@ + */ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; @@ -434,10 +473,10 @@ index b8e8c07365..a0fdcf64d9 100644 import org.drools.commands.impl.NotTransactionalCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java -index 0a0b17d9fa..86868a62e2 100644 +index 7bd405dc16..4b3b07309e 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java -@@ -20,11 +20,11 @@ import java.io.Serializable; +@@ -22,11 +22,11 @@ import java.io.Serializable; import java.util.Collection; import java.util.HashMap; import java.util.Map; @@ -455,10 +494,10 @@ index 0a0b17d9fa..86868a62e2 100644 import org.drools.commands.jaxb.JaxbMapAdapter; import org.kie.api.runtime.ExecutionResults; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java -index d0295f1f1c..1c8cd6376a 100644 +index 0056413ec4..7d4be781ab 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java -@@ -19,7 +19,7 @@ package org.drools.commands.runtime; +@@ -21,7 +21,7 @@ package org.drools.commands.runtime; import java.util.Collection; import java.util.HashMap; import java.util.Map; @@ -468,10 +507,10 @@ index d0295f1f1c..1c8cd6376a 100644 import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java b/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java -index 6440f4a885..9313115fe4 100644 +index d853414697..997333593a 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java -@@ -23,13 +23,13 @@ import java.util.HashSet; +@@ -25,13 +25,13 @@ import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.Set; @@ -493,11 +532,11 @@ index 6440f4a885..9313115fe4 100644 import org.drools.commands.jaxb.JaxbListAdapter; import org.drools.commands.jaxb.JaxbListWrapper; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java -index 71053ae9aa..3fb3666d0f 100644 +index cab731bc8f..29063bbc69 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; @@ -512,11 +551,11 @@ index 71053ae9aa..3fb3666d0f 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java -index cba80658f7..1602e121b7 100644 +index 27b4865b69..71c9b28373 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; @@ -531,11 +570,11 @@ index cba80658f7..1602e121b7 100644 import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java -index 5ac74b60bf..5e1942717e 100644 +index 983a6bcfce..c0972f2fa8 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; @@ -550,11 +589,11 @@ index 5ac74b60bf..5e1942717e 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java -index fd4f9744a8..539d98af9d 100644 +index 032e7b4eb9..87b0b3d821 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; @@ -569,11 +608,11 @@ index fd4f9744a8..539d98af9d 100644 import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java -index 39592aabb1..00a069a690 100644 +index 458b82e164..c78c199adc 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlRegistry; @@ -582,11 +621,11 @@ index 39592aabb1..00a069a690 100644 @XmlRegistry diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java b/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java -index d0ef1d951c..8fcfb4074b 100644 +index b89d48c644..bb4631870b 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.drools.commands.runtime; -import javax.xml.bind.annotation.adapters.XmlAdapter; @@ -595,11 +634,11 @@ index d0ef1d951c..8fcfb4074b 100644 import org.drools.core.QueryResultsImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java -index 08e5d4a98c..267164b8ff 100644 +index 986a392085..21c5b0b9f5 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java -@@ -16,12 +16,12 @@ - +@@ -18,12 +18,12 @@ + */ package org.drools.commands.runtime; -import javax.xml.bind.annotation.XmlAccessType; @@ -618,10 +657,10 @@ index 08e5d4a98c..267164b8ff 100644 import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java -index 1e91f79151..660a4886da 100644 +index 45487d20b1..0afdc97077 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java -@@ -18,12 +18,12 @@ package org.drools.commands.runtime.pmml; +@@ -21,12 +21,12 @@ package org.drools.commands.runtime.pmml; import java.util.ArrayList; import java.util.List; import java.util.Optional; @@ -641,11 +680,11 @@ index 1e91f79151..660a4886da 100644 import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java -index 6b40c5f256..d94d08f719 100644 +index b198432940..e08edd6530 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; @@ -660,11 +699,11 @@ index 6b40c5f256..d94d08f719 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java -index 5b4bcfa3d8..ee4edad76b 100644 +index 8a1acc9175..20617cda7a 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; @@ -679,10 +718,10 @@ index 5b4bcfa3d8..ee4edad76b 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java -index 833fb1bb0e..e5d289f5d7 100644 +index 5f063d2cc9..5e770ecfc0 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java -@@ -19,12 +19,12 @@ package org.drools.commands.runtime.process; +@@ -21,12 +21,12 @@ package org.drools.commands.runtime.process; import java.util.HashMap; import java.util.Map; @@ -702,10 +741,10 @@ index 833fb1bb0e..e5d289f5d7 100644 import org.drools.commands.jaxb.JaxbMapAdapter; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java -index c71fb3bf36..e42439fd6e 100644 +index 28df02f2bd..088a6dce46 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java -@@ -19,12 +19,12 @@ package org.drools.commands.runtime.process; +@@ -21,12 +21,12 @@ package org.drools.commands.runtime.process; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -725,10 +764,10 @@ index c71fb3bf36..e42439fd6e 100644 import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java -index 6757e315f7..12618cd571 100644 +index 4b6249c07d..aea9aa29d9 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java -@@ -19,12 +19,12 @@ package org.drools.commands.runtime.process; +@@ -21,12 +21,12 @@ package org.drools.commands.runtime.process; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -748,10 +787,10 @@ index 6757e315f7..12618cd571 100644 import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java -index 47f0b5ea64..b643f04f33 100644 +index 718504c30e..1d96fd6fdc 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java -@@ -17,9 +17,9 @@ +@@ -19,9 +19,9 @@ package org.drools.commands.runtime.process; import java.util.Collection; @@ -765,10 +804,10 @@ index 47f0b5ea64..b643f04f33 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.event.process.ProcessEventListener; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java -index 893fec0e55..321e751f68 100644 +index f3b25ddfe7..fc1c8196b9 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java -@@ -18,10 +18,10 @@ package org.drools.commands.runtime.process; +@@ -20,10 +20,10 @@ package org.drools.commands.runtime.process; import java.util.ArrayList; import java.util.List; @@ -784,11 +823,11 @@ index 893fec0e55..321e751f68 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.definition.process.Process; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java -index f04f897b55..1db39272e8 100644 +index 57e4771a89..7cc196e4b4 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java -@@ -16,12 +16,12 @@ - +@@ -18,12 +18,12 @@ + */ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; @@ -807,11 +846,11 @@ index f04f897b55..1db39272e8 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java -index 5884fb86a5..e897b05d4c 100644 +index 04359a2174..116b6c8a36 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; @@ -826,10 +865,10 @@ index 5884fb86a5..e897b05d4c 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java -index ea9550c78f..b0a3b876e8 100644 +index 81eea32909..32c6e91af2 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java -@@ -18,10 +18,10 @@ package org.drools.commands.runtime.process; +@@ -20,10 +20,10 @@ package org.drools.commands.runtime.process; import java.util.ArrayList; import java.util.Collection; @@ -845,11 +884,11 @@ index ea9550c78f..b0a3b876e8 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java -index 2aef697a60..a699cbc342 100644 +index cdebb4536e..8edc6eb7bd 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; @@ -864,10 +903,10 @@ index 2aef697a60..a699cbc342 100644 import org.drools.core.process.WorkItem; import org.drools.core.process.WorkItemManager; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java -index 08d5b3dc8c..8b767ffd06 100644 +index 52d3faf9f5..e13dad8421 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java -@@ -19,10 +19,10 @@ package org.drools.commands.runtime.process; +@@ -21,10 +21,10 @@ package org.drools.commands.runtime.process; import java.util.ArrayList; import java.util.List; import java.util.Set; @@ -883,10 +922,10 @@ index 08d5b3dc8c..8b767ffd06 100644 import org.drools.core.process.WorkItem; import org.drools.core.process.WorkItemManager; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java -index 930a531761..d32ce592e7 100644 +index 3e56206305..33bf5f1239 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java -@@ -17,7 +17,7 @@ +@@ -19,7 +19,7 @@ package org.drools.commands.runtime.process; @@ -896,10 +935,10 @@ index 930a531761..d32ce592e7 100644 @XmlRegistry diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java -index aaf8c067f7..5e95c7456b 100644 +index f1092a1f36..a98b83314f 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java -@@ -19,11 +19,11 @@ package org.drools.commands.runtime.process; +@@ -21,11 +21,11 @@ package org.drools.commands.runtime.process; import java.util.HashMap; import java.util.Map; @@ -917,11 +956,11 @@ index aaf8c067f7..5e95c7456b 100644 import org.drools.core.process.WorkItemManager; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java -index c82fbefe24..c143e422e7 100644 +index efa4b6c9b9..d30993a3e8 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; @@ -936,10 +975,10 @@ index c82fbefe24..c143e422e7 100644 import org.drools.commands.jaxb.JaxbUnknownAdapter; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java -index 7e56dd5259..68624da634 100644 +index 853bdf5626..96d113d426 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java -@@ -19,12 +19,12 @@ package org.drools.commands.runtime.process; +@@ -21,12 +21,12 @@ package org.drools.commands.runtime.process; import java.util.HashMap; import java.util.Map; @@ -959,11 +998,11 @@ index 7e56dd5259..68624da634 100644 import org.drools.commands.jaxb.JaxbMapAdapter; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java -index 3da07dc90d..f7c0e8f44c 100644 +index 927298a7c2..b5867b5636 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java -@@ -16,12 +16,12 @@ - +@@ -18,12 +18,12 @@ + */ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; @@ -982,10 +1021,10 @@ index 3da07dc90d..f7c0e8f44c 100644 import org.drools.commands.jaxb.JaxbUnknownAdapter; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java -index 105e02086b..baba637fb5 100644 +index f96051e049..37140e853b 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java -@@ -19,13 +19,13 @@ package org.drools.commands.runtime.process; +@@ -21,13 +21,13 @@ package org.drools.commands.runtime.process; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -1007,10 +1046,10 @@ index 105e02086b..baba637fb5 100644 import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java -index c4c40115ee..ec4136106a 100644 +index 7d60ff3ab8..2aa2fa1fe5 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java -@@ -19,14 +19,14 @@ package org.drools.commands.runtime.process; +@@ -21,14 +21,14 @@ package org.drools.commands.runtime.process; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -1034,10 +1073,10 @@ index c4c40115ee..ec4136106a 100644 import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbMapAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java -index 76fb682351..bac224ebf7 100644 +index 69cd161651..99f96c11b9 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java -@@ -18,12 +18,12 @@ package org.drools.commands.runtime.process; +@@ -20,12 +20,12 @@ package org.drools.commands.runtime.process; import java.util.List; import java.util.Map; @@ -1057,11 +1096,11 @@ index 76fb682351..bac224ebf7 100644 import org.kie.api.runtime.Context; import org.kie.api.runtime.ExecutionResults; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java -index 447c57795b..b6ecbb32dd 100644 +index 5a7239447d..24598b5605 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java -@@ -16,9 +16,9 @@ - +@@ -18,9 +18,9 @@ + */ package org.drools.commands.runtime.process; -import javax.xml.bind.annotation.XmlAccessType; @@ -1074,11 +1113,11 @@ index 447c57795b..b6ecbb32dd 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java -index d511668f89..7d213ad9b0 100644 +index cc8d5328e9..0ada06b0a7 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1093,11 +1132,11 @@ index d511668f89..7d213ad9b0 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java -index 7c034b26a1..7d6b75348c 100644 +index 0a3ac21740..ab62bd194a 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1112,11 +1151,11 @@ index 7c034b26a1..7d6b75348c 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java -index 0f09bf1434..1ca4445886 100644 +index 7fa3ec0720..c75db60817 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java -@@ -16,9 +16,9 @@ - +@@ -18,9 +18,9 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1129,11 +1168,11 @@ index 0f09bf1434..1ca4445886 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java -index 86b7f492c0..edeb786eb5 100644 +index 59ff66b145..f894f9ca16 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1148,11 +1187,11 @@ index 86b7f492c0..edeb786eb5 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.runtime.Context; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java -index 70dec44eb7..f68322ccfe 100644 +index 75aa16956d..3c3b31461c 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1167,11 +1206,11 @@ index 70dec44eb7..f68322ccfe 100644 import org.drools.core.common.ReteEvaluator; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java -index 7523dcf517..ea80c2578b 100644 +index e7b813a991..2671b4521d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1186,11 +1225,11 @@ index 7523dcf517..ea80c2578b 100644 import org.drools.core.common.DisconnectedFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java -index a19f4abb70..4f96b0b3bc 100644 +index dbdb2275b5..c93c83b1c8 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1205,11 +1244,11 @@ index a19f4abb70..4f96b0b3bc 100644 import org.drools.core.common.DisconnectedFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java -index 63ebc428b5..caf18188c4 100644 +index 6e2d286e42..88f585b200 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1224,10 +1263,11 @@ index 63ebc428b5..caf18188c4 100644 import org.drools.util.StringUtils; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java -index 1c1918de85..664049dd87 100644 +index 812fc30baf..5055346beb 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java -@@ -1,9 +1,9 @@ +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1242,11 +1282,11 @@ index 1c1918de85..664049dd87 100644 import org.kie.api.KieServices; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java -index 9fcd43364f..422697929a 100644 +index 4d41b24de6..6ed31da31d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java -@@ -16,12 +16,12 @@ - +@@ -18,12 +18,12 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1265,11 +1305,11 @@ index 9fcd43364f..422697929a 100644 import org.drools.commands.IdentifiableResult; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java -index ba9c3be15a..64dfba8874 100644 +index bc4545d39b..d4fb71df07 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java -@@ -16,11 +16,11 @@ - +@@ -18,11 +18,11 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1286,10 +1326,10 @@ index ba9c3be15a..64dfba8874 100644 import org.drools.core.common.InternalWorkingMemory; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java -index 64c41a7e9f..2c471a3fd4 100644 +index d138313dcb..787878bf6d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java -@@ -17,7 +17,7 @@ +@@ -19,7 +19,7 @@ package org.drools.commands.runtime.rule; import java.util.Collection; @@ -1299,11 +1339,11 @@ index 64c41a7e9f..2c471a3fd4 100644 import org.kie.api.command.ExecutableCommand; import org.kie.api.event.rule.AgendaEventListener; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java -index 81e14c3bac..60c3d79964 100644 +index 55b5fa7ecb..6c0b549a26 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAttribute; @@ -1312,10 +1352,10 @@ index 81e14c3bac..60c3d79964 100644 import org.drools.commands.EntryPointCreator; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java -index 7351059acc..ae0dd5500a 100644 +index d0667678ea..4f6cb06d74 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java -@@ -18,7 +18,7 @@ package org.drools.commands.runtime.rule; +@@ -20,7 +20,7 @@ package org.drools.commands.runtime.rule; import java.util.ArrayList; import java.util.Collection; @@ -1325,11 +1365,11 @@ index 7351059acc..ae0dd5500a 100644 import org.drools.commands.EntryPointCreator; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java -index 279c626671..1d44d1568e 100644 +index 4e3f871dc9..05b34f4423 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAttribute; @@ -1338,11 +1378,11 @@ index 279c626671..1d44d1568e 100644 import org.drools.core.common.InternalFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java -index 7ac7c37063..bd699452dd 100644 +index 419e108ba3..cddfbf37d2 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAttribute; @@ -1351,10 +1391,10 @@ index 7ac7c37063..bd699452dd 100644 import org.drools.core.common.InternalFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java -index cf6b2e5576..bac17fecc9 100644 +index 8507d5836e..9b4373b2f0 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java -@@ -18,9 +18,9 @@ package org.drools.commands.runtime.rule; +@@ -20,9 +20,9 @@ package org.drools.commands.runtime.rule; import java.util.ArrayList; import java.util.Collection; @@ -1368,11 +1408,11 @@ index cf6b2e5576..bac17fecc9 100644 import org.drools.core.common.InternalFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java -index 9bd16c9616..bc075adb16 100644 +index 0c42b31768..a9e78c4bd0 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java -@@ -16,12 +16,12 @@ - +@@ -18,12 +18,12 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1391,11 +1431,11 @@ index 9bd16c9616..bc075adb16 100644 import org.drools.commands.IdentifiableResult; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java -index c48f435a01..6f14ac93bb 100644 +index bcead60ab8..09429c6000 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1410,10 +1450,10 @@ index c48f435a01..6f14ac93bb 100644 import org.drools.commands.IdentifiableResult; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java -index 282b1dbb74..2f907120a2 100644 +index 5f0df58eae..41214fcccf 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java -@@ -19,10 +19,10 @@ package org.drools.commands.runtime.rule; +@@ -21,10 +21,10 @@ package org.drools.commands.runtime.rule; import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -1429,10 +1469,10 @@ index 282b1dbb74..2f907120a2 100644 import org.drools.commands.IdentifiableResult; import org.drools.core.ClassObjectSerializationFilter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java -index 81de706c88..68a5f8ed29 100644 +index fdd9184caf..add47b6171 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java -@@ -19,9 +19,9 @@ package org.drools.commands.runtime.rule; +@@ -21,9 +21,9 @@ package org.drools.commands.runtime.rule; import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -1446,10 +1486,10 @@ index 81de706c88..68a5f8ed29 100644 import org.drools.commands.IdentifiableResult; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java -index db23b36827..574f4efa2c 100644 +index d310d5b770..f7d42e08bc 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java -@@ -19,11 +19,11 @@ package org.drools.commands.runtime.rule; +@@ -21,11 +21,11 @@ package org.drools.commands.runtime.rule; import java.util.ArrayList; import java.util.Collection; import java.util.List; @@ -1467,11 +1507,11 @@ index db23b36827..574f4efa2c 100644 import org.drools.commands.IdentifiableResult; import org.drools.commands.runtime.ExecutionResultImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java -index c23a0d5cfe..12e737d408 100644 +index f6712f538d..40c21a187f 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java -@@ -16,12 +16,12 @@ - +@@ -18,12 +18,12 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1490,11 +1530,11 @@ index c23a0d5cfe..12e737d408 100644 import org.drools.commands.IdentifiableResult; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java -index 461a05f632..44131cfe6f 100644 +index 682f17534a..bf0226eb34 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java -@@ -16,10 +16,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlAccessType; @@ -1509,10 +1549,10 @@ index 461a05f632..44131cfe6f 100644 import org.drools.commands.IdentifiableResult; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java -index e86c357756..fc5433d98b 100644 +index 19eb642aed..d437e09b76 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java -@@ -19,11 +19,11 @@ package org.drools.commands.runtime.rule; +@@ -21,11 +21,11 @@ package org.drools.commands.runtime.rule; import java.util.ArrayList; import java.util.List; @@ -1526,15 +1566,15 @@ index e86c357756..fc5433d98b 100644 +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; - import org.drools.core.base.CoreComponentsBuilder; + import org.drools.base.base.CoreComponentsBuilder; import org.drools.core.common.DisconnectedFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java -index 44a4e47881..097d1def2c 100644 +index 43dc943295..e58a43fe69 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.drools.commands.runtime.rule; -import javax.xml.bind.annotation.XmlRegistry; @@ -1543,10 +1583,10 @@ index 44a4e47881..097d1def2c 100644 import org.drools.commands.runtime.rule.ModifyCommand.SetterImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java -index fed6d919b9..054191425e 100644 +index f1393f83aa..888d0bf5af 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java -@@ -19,10 +19,10 @@ package org.drools.commands.runtime.rule; +@@ -21,10 +21,10 @@ package org.drools.commands.runtime.rule; import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -1562,10 +1602,10 @@ index fed6d919b9..054191425e 100644 import org.drools.commands.IdentifiableResult; import org.drools.commands.runtime.FlatQueryResults; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java -index c427ffc270..5e0f2ab414 100644 +index 59e46cce81..d14df73251 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java -@@ -18,12 +18,12 @@ package org.drools.commands.runtime.rule; +@@ -20,12 +20,12 @@ package org.drools.commands.runtime.rule; import java.util.Arrays; @@ -1585,10 +1625,10 @@ index c427ffc270..5e0f2ab414 100644 import org.drools.core.common.DisconnectedFactHandle; import org.drools.commands.jaxb.JaxbUnknownAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java -index 19c566794f..984f218d5f 100644 +index 752e90bb27..ab29649f32 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java -@@ -18,8 +18,8 @@ package org.drools.commands.runtime.rule; +@@ -20,8 +20,8 @@ package org.drools.commands.runtime.rule; import java.util.Arrays; @@ -1600,10 +1640,10 @@ index 19c566794f..984f218d5f 100644 import org.drools.core.common.DisconnectedFactHandle; import org.kie.api.command.ExecutableCommand; diff --git a/drools-compiler/pom.xml b/drools-compiler/pom.xml -index 93813a6253..36245b6a4a 100644 +index 5e08c4dbc8..8c58653b77 100644 --- a/drools-compiler/pom.xml +++ b/drools-compiler/pom.xml -@@ -104,9 +104,10 @@ +@@ -128,9 +128,10 @@ provided @@ -1612,15 +1652,15 @@ index 93813a6253..36245b6a4a 100644 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 jakarta.xml.bind diff --git a/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java b/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java -index 9b15d3e9d7..e195ed0c0a 100644 +index e6f93ed5ec..f7a32d89de 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java -@@ -28,8 +28,8 @@ import java.util.LinkedHashMap; +@@ -30,8 +30,8 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -1632,10 +1672,10 @@ index 9b15d3e9d7..e195ed0c0a 100644 import com.sun.codemodel.CodeWriter; import com.sun.codemodel.JCodeModel; diff --git a/drools-core/pom.xml b/drools-core/pom.xml -index 530fa03d83..502ee278a9 100644 +index 42092de797..08beb7b1f4 100644 --- a/drools-core/pom.xml +++ b/drools-core/pom.xml -@@ -72,9 +72,10 @@ +@@ -96,9 +96,10 @@ provided @@ -1644,15 +1684,16 @@ index 530fa03d83..502ee278a9 100644 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 jakarta.xml.bind diff --git a/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java b/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java -index 9f0e1fadf9..136270b9f8 100644 +index 1dbb032c7e..8330b82548 100644 --- a/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java +++ b/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java -@@ -1,9 +1,9 @@ +@@ -18,10 +18,10 @@ + */ package org.drools.core; -import javax.xml.bind.annotation.XmlAccessType; @@ -1667,10 +1708,10 @@ index 9f0e1fadf9..136270b9f8 100644 import org.kie.api.runtime.ClassObjectFilter; import org.kie.api.runtime.ObjectFilter; diff --git a/drools-core/src/main/java/org/drools/core/base/ArrayElements.java b/drools-core/src/main/java/org/drools/core/base/ArrayElements.java -index 2318d25e54..aa3e359f76 100644 +index 6c17e910f7..99d3531bc2 100644 --- a/drools-core/src/main/java/org/drools/core/base/ArrayElements.java +++ b/drools-core/src/main/java/org/drools/core/base/ArrayElements.java -@@ -17,10 +17,10 @@ +@@ -19,10 +19,10 @@ package org.drools.core.base; import java.util.Arrays; @@ -1686,10 +1727,10 @@ index 2318d25e54..aa3e359f76 100644 @XmlType(name="array-elements") @XmlAccessorType(XmlAccessType.NONE) diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java -index cb579b9530..a3288d92b5 100644 +index 6b5556a52c..09590dd508 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java -@@ -18,10 +18,10 @@ package org.drools.core.base; +@@ -20,10 +20,10 @@ package org.drools.core.base; import java.io.Serializable; @@ -1705,10 +1746,10 @@ index cb579b9530..a3288d92b5 100644 import org.kie.api.runtime.rule.Match; diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java -index 74e86b8f30..1457cfc0d0 100644 +index 3401e22816..d8baa266dc 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java -@@ -18,10 +18,10 @@ package org.drools.core.base; +@@ -20,10 +20,10 @@ package org.drools.core.base; import java.io.Serializable; @@ -1724,10 +1765,10 @@ index 74e86b8f30..1457cfc0d0 100644 import org.kie.api.runtime.rule.Match; diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java -index 6003fb3fbf..b52dd7053d 100644 +index d535a3be94..c3c0a75b42 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java -@@ -20,10 +20,10 @@ import java.io.Serializable; +@@ -22,10 +22,10 @@ import java.io.Serializable; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -1743,10 +1784,10 @@ index 6003fb3fbf..b52dd7053d 100644 import org.kie.api.runtime.rule.Match; diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java -index c5f6384f43..fea26fb7bc 100644 +index 53047b62f3..ad510a5643 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java -@@ -18,10 +18,10 @@ package org.drools.core.base; +@@ -20,10 +20,10 @@ package org.drools.core.base; import java.io.Serializable; @@ -1762,13 +1803,13 @@ index c5f6384f43..fea26fb7bc 100644 import org.kie.api.runtime.rule.Match; diff --git a/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java b/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java -index f7d14914f2..a40e0a5c32 100644 +index c3a8820eec..7be2b8f319 100644 --- a/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java -@@ -20,10 +20,10 @@ import java.util.Objects; - import java.util.function.Consumer; - import java.util.function.Predicate; - import java.util.stream.Stream; +@@ -31,10 +31,10 @@ import org.drools.core.util.AbstractBaseLinkedListNode; + import org.drools.util.StringUtils; + import org.kie.api.runtime.rule.FactHandle; + -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; @@ -1777,17 +1818,17 @@ index f7d14914f2..a40e0a5c32 100644 +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlRootElement; - - import org.drools.core.WorkingMemoryEntryPoint; - import org.drools.core.factmodel.traits.TraitTypeEnum; + import java.util.Objects; + import java.util.function.Consumer; + import java.util.function.Predicate; diff --git a/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java b/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java -index e1e365627c..e9a82ec886 100644 +index 2710924f63..2b0cb81678 100644 --- a/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java -@@ -21,13 +21,13 @@ import java.io.ObjectInput; - import java.io.ObjectOutput; - import java.util.function.Consumer; - import java.util.function.Predicate; +@@ -28,13 +28,13 @@ import org.drools.core.reteoo.RightTuple; + import org.drools.core.reteoo.Tuple; + import org.kie.api.runtime.rule.FactHandle; + -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; @@ -1802,15 +1843,15 @@ index e1e365627c..e9a82ec886 100644 +import jakarta.xml.bind.annotation.XmlRootElement; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlSeeAlso; - - import org.drools.core.WorkingMemoryEntryPoint; - import org.drools.core.base.ArrayElements; + import java.io.Externalizable; + import java.io.IOException; + import java.io.ObjectInput; diff --git a/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java b/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java -index 236d78023e..cb378ad082 100644 +index d3c1b5d3e7..52799274d7 100644 --- a/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.drools.core.common; -import javax.xml.bind.annotation.XmlRegistry; @@ -1819,12 +1860,12 @@ index 236d78023e..cb378ad082 100644 @XmlRegistry public class ObjectFactory { diff --git a/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java b/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java -index d6b72a241c..ae1fb6d096 100644 +index 7bbb6e16bc..dd47f2a724 100644 --- a/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java -@@ -20,9 +20,9 @@ import java.util.Arrays; - import java.util.function.Consumer; - import java.util.function.Predicate; +@@ -25,9 +25,9 @@ import org.drools.core.reteoo.LeftTuple; + import org.drools.core.reteoo.RightTuple; + import org.drools.core.reteoo.Tuple; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; @@ -1832,15 +1873,15 @@ index d6b72a241c..ae1fb6d096 100644 +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; - import org.drools.core.WorkingMemoryEntryPoint; - import org.drools.core.factmodel.traits.TraitTypeEnum; - import org.drools.core.reteoo.LeftTuple; + import java.util.Arrays; + import java.util.function.Consumer; + import java.util.function.Predicate; diff --git a/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java b/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java -index 5cd6e541a5..b38cf3801b 100644 +index e37c37fc31..a9aec456b6 100644 --- a/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java +++ b/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java -@@ -16,9 +16,9 @@ - +@@ -18,9 +18,9 @@ + */ package org.drools.core.util; -import javax.xml.bind.annotation.XmlAccessType; @@ -1853,10 +1894,10 @@ index 5cd6e541a5..b38cf3801b 100644 /** * Provides a abstract base implementation that an object can extend so that it can be used in a LinkedList. diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java -index 75848ee1fe..9b879819ef 100644 +index c679cb7bcd..5a19341206 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java -@@ -23,7 +23,7 @@ import java.util.Optional; +@@ -26,7 +26,7 @@ import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; @@ -1866,10 +1907,10 @@ index 75848ee1fe..9b879819ef 100644 import io.quarkus.arc.deployment.GeneratedBeanBuildItem; import io.quarkus.deployment.annotations.BuildProducer; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java -index 728bf58c32..f8d77a3717 100644 +index 532ee58bf1..4122df9325 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java -@@ -16,7 +16,7 @@ +@@ -19,7 +19,7 @@ package org.drools.quarkus.ruleunit.examples.multiunit; import java.util.concurrent.atomic.AtomicReference; @@ -1879,10 +1920,10 @@ index 728bf58c32..f8d77a3717 100644 import io.quarkus.test.junit.QuarkusTest; import org.drools.ruleunits.api.DataHandle; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java -index bf39868231..8d6faa6145 100644 +index ff8e3f9091..799f21622a 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java -@@ -15,10 +15,10 @@ +@@ -18,10 +18,10 @@ */ package org.drools.quarkus.ruleunit.examples.reactive; @@ -1897,10 +1938,10 @@ index bf39868231..8d6faa6145 100644 import org.eclipse.microprofile.reactive.messaging.Emitter; import org.eclipse.microprofile.reactive.messaging.Incoming; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java -index 14e6615a21..e1daf6033d 100644 +index bbed58452e..da927c5ab0 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java -@@ -19,7 +19,7 @@ import java.util.HashMap; +@@ -22,7 +22,7 @@ import java.util.HashMap; import java.util.Map; import io.quarkus.test.common.QuarkusTestResourceLifecycleManager; @@ -1910,10 +1951,10 @@ index 14e6615a21..e1daf6033d 100644 public class KafkaTestResourceLifecycleManager implements QuarkusTestResourceLifecycleManager { diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java -index 6e1f058eef..79b6bb074c 100644 +index 52f998f55f..9771b03d80 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java -@@ -15,13 +15,13 @@ +@@ -18,13 +18,13 @@ */ package org.drools.quarkus.ruleunit.examples.reactive; @@ -1932,10 +1973,10 @@ index 6e1f058eef..79b6bb074c 100644 import org.junit.jupiter.api.Test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java -index 8d34b05084..9043abe090 100644 +index 28cd4eb6d1..8cea5670cf 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java -@@ -17,12 +17,12 @@ package org.drools.quarkus.test.hotreload; +@@ -20,12 +20,12 @@ package org.drools.quarkus.test.hotreload; import java.util.ArrayList; import java.util.List; @@ -1955,12 +1996,12 @@ index 8d34b05084..9043abe090 100644 import org.kie.api.runtime.KieRuntimeBuilder; import org.kie.api.runtime.KieSession; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java -index f1008d7c1a..14c0de94bb 100644 +index cc47c1a1e3..cd52e85e0f 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java -@@ -22,10 +22,10 @@ import java.util.List; - import java.util.concurrent.TimeUnit; - import java.util.stream.Collectors; +@@ -25,10 +25,10 @@ import org.kie.api.runtime.KieSession; + import org.kie.api.runtime.rule.FactHandle; + import org.kie.api.time.SessionPseudoClock; -import javax.inject.Inject; -import javax.ws.rs.GET; @@ -1970,14 +2011,14 @@ index f1008d7c1a..14c0de94bb 100644 +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; - - import org.kie.api.KieBase; - import org.kie.api.definition.KiePackage; + import java.util.Collection; + import java.util.List; + import java.util.concurrent.TimeUnit; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java -index 541d798fb4..c8aff28b7b 100644 +index 76cedc9fb6..203de60e6b 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java -@@ -21,7 +21,7 @@ import org.kie.api.definition.KiePackage; +@@ -24,7 +24,7 @@ import org.kie.api.definition.KiePackage; import org.kie.api.runtime.KieRuntimeBuilder; import org.kie.api.runtime.KieSession; @@ -1987,11 +2028,11 @@ index 541d798fb4..c8aff28b7b 100644 import java.util.stream.Collectors; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java -index f93f6ed055..0c671401fc 100644 +index a58bbabd5c..8f8ecf910c 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java -@@ -19,8 +19,8 @@ import java.util.Collection; - import java.util.List; +@@ -21,8 +21,8 @@ package org.drools.quarkus.quickstart.test; + import java.util.Collection; import java.util.stream.Collectors; -import javax.enterprise.context.ApplicationScoped; @@ -2002,10 +2043,10 @@ index f93f6ed055..0c671401fc 100644 import org.drools.quarkus.quickstart.test.model.Alert; import org.drools.quarkus.quickstart.test.model.CCTV; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java -index 2029f09c59..1fccb052af 100644 +index 4896b42524..0aa6285eb0 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java -@@ -15,7 +15,7 @@ +@@ -18,7 +18,7 @@ */ package org.drools.quarkus.quickstart.test; @@ -2015,10 +2056,10 @@ index 2029f09c59..1fccb052af 100644 import io.quarkus.test.junit.QuarkusTest; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java -index 1eef910ed3..637bc75cf5 100644 +index 6bcc7afc17..21ce175faa 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java -@@ -15,7 +15,7 @@ +@@ -18,7 +18,7 @@ */ package org.drools.quarkus.quickstart.test; @@ -2028,10 +2069,10 @@ index 1eef910ed3..637bc75cf5 100644 import io.quarkus.test.junit.QuarkusTest; import org.drools.quarkus.quickstart.test.model.Alert; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java -index e956f4e318..29a8932f7f 100644 +index 471c3c33a9..99e2c9da1b 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java -@@ -17,10 +17,10 @@ package org.drools.quarkus.ruleunit.test; +@@ -20,10 +20,10 @@ package org.drools.quarkus.ruleunit.test; import static org.assertj.core.api.Assertions.assertThat; @@ -2047,10 +2088,10 @@ index e956f4e318..29a8932f7f 100644 import org.drools.ruleunits.api.RuleUnit; import org.drools.ruleunits.api.RuleUnitInstance; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java -index b5c0335a67..eb2582f0ae 100644 +index e3b9d48e5a..ba13c358f3 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java -@@ -5,7 +5,7 @@ import org.drools.ruleunits.api.RuleUnit; +@@ -23,7 +23,7 @@ import org.drools.ruleunits.api.RuleUnit; import org.drools.ruleunits.api.RuleUnitInstance; import org.junit.jupiter.api.Test; @@ -2060,10 +2101,10 @@ index b5c0335a67..eb2582f0ae 100644 import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java -index b683dcef38..5e7d100d4c 100644 +index 48aaf17201..873e112e29 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java -@@ -20,7 +20,7 @@ import org.drools.ruleunits.api.RuleUnit; +@@ -23,7 +23,7 @@ import org.drools.ruleunits.api.RuleUnit; import org.drools.ruleunits.api.RuleUnitInstance; import org.junit.jupiter.api.Test; @@ -2073,10 +2114,10 @@ index b683dcef38..5e7d100d4c 100644 import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml -index 61d43070ed..58406ae103 100644 +index 8205e8d898..84c941d52b 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml -@@ -83,7 +83,7 @@ +@@ -103,7 +103,7 @@ io.quarkus @@ -2085,67 +2126,13 @@ index 61d43070ed..58406ae103 100644 ${version.io.quarkus} -diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/main/java/org/drools/drl/quarkus/testext/deployment/DroolsTestExtAssetsProcessor.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/main/java/org/drools/drl/quarkus/testext/deployment/DroolsTestExtAssetsProcessor.java -index 7912b11dda..9d79d13914 100644 ---- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/main/java/org/drools/drl/quarkus/testext/deployment/DroolsTestExtAssetsProcessor.java -+++ b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/main/java/org/drools/drl/quarkus/testext/deployment/DroolsTestExtAssetsProcessor.java -@@ -22,7 +22,7 @@ import java.util.Optional; - import java.util.Set; - import java.util.stream.Collectors; - --import javax.inject.Inject; -+import jakarta.inject.Inject; - - import org.drools.drl.quarkus.util.deployment.KmoduleKieBaseModelsBuiltItem; - import org.drools.drl.quarkus.util.deployment.PatternsTypesBuildItem; -diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/testext/test/ExtensionTest.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/testext/test/ExtensionTest.java -index be6385b9ac..b67a1b17ac 100644 ---- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/testext/test/ExtensionTest.java -+++ b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/testext/test/ExtensionTest.java -@@ -17,7 +17,7 @@ package org.drools.quarkus.testext.test; - - import static org.assertj.core.api.Assertions.assertThat; - --import javax.inject.Inject; -+import jakarta.inject.Inject; - - import org.drools.drl.quarkus.testext.deployment.OtnClassesSingleton; - import org.drools.quarkus.examples.otn.model.ASubclassOfMeasurement; -diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/pom.xml b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/pom.xml -index 84853c8a22..29751dabb2 100644 ---- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/pom.xml -+++ b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/pom.xml -@@ -37,7 +37,7 @@ - - - io.quarkus -- quarkus-bootstrap-maven-plugin -+ quarkus-extension-maven-plugin - ${version.io.quarkus} - - -diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnClassesSingleton.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnClassesSingleton.java -index 21a9a01650..8860daacad 100644 ---- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnClassesSingleton.java -+++ b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnClassesSingleton.java -@@ -19,8 +19,8 @@ package org.drools.drl.quarkus.testext.deployment; - import java.util.Map; - import java.util.Set; - --import javax.enterprise.event.Observes; --import javax.inject.Singleton; -+import jakarta.enterprise.event.Observes; -+import jakarta.inject.Singleton; - - import org.slf4j.Logger; - import org.slf4j.LoggerFactory; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java -index 5a84459c4d..51a3bfa074 100644 +index 64eb8809ad..dc8e7e8d69 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java -@@ -18,8 +18,8 @@ package org.drools.mvel.compiler; +@@ -20,8 +20,8 @@ package org.drools.mvel.compiler; - import org.drools.core.factmodel.traits.Traitable; + import org.drools.base.factmodel.traits.Traitable; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; @@ -2155,10 +2142,10 @@ index 5a84459c4d..51a3bfa074 100644 import java.math.BigDecimal; import java.math.BigInteger; diff --git a/drools-mvel/pom.xml b/drools-mvel/pom.xml -index 5c932d41d9..db230eb9d2 100644 +index 32920b00fc..755633ec43 100644 --- a/drools-mvel/pom.xml +++ b/drools-mvel/pom.xml -@@ -70,9 +70,10 @@ +@@ -90,9 +90,10 @@ provided @@ -2167,17 +2154,17 @@ index 5c932d41d9..db230eb9d2 100644 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 jakarta.xml.bind diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java -index a356782f80..77d00fc4fa 100644 +index 13641acfe0..a1b4bda3fb 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java -@@ -18,8 +18,8 @@ package org.drools.mvel.compiler; +@@ -20,8 +20,8 @@ package org.drools.mvel.compiler; - import org.drools.core.factmodel.traits.Traitable; + import org.drools.base.factmodel.traits.Traitable; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; @@ -2187,10 +2174,10 @@ index a356782f80..77d00fc4fa 100644 import java.math.BigDecimal; import java.math.BigInteger; diff --git a/drools-persistence/drools-persistence-api/pom.xml b/drools-persistence/drools-persistence-api/pom.xml -index d8e0d7af5b..98aa7cc44f 100644 +index c5b6465541..6387089e97 100644 --- a/drools-persistence/drools-persistence-api/pom.xml +++ b/drools-persistence/drools-persistence-api/pom.xml -@@ -41,9 +41,10 @@ +@@ -61,9 +61,10 @@ drools-commands @@ -2199,15 +2186,15 @@ index d8e0d7af5b..98aa7cc44f 100644 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 com.sun.xml.bind diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java -index d64ee3b8e3..1c988e07cc 100644 +index 1037ab3c35..5a20fa88f6 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java -@@ -19,7 +19,7 @@ import org.kie.api.runtime.ExecutableRunner; +@@ -22,7 +22,7 @@ import org.kie.api.runtime.ExecutableRunner; import org.kie.api.command.Command; import org.kie.api.runtime.KieSession; @@ -2217,11 +2204,11 @@ index d64ee3b8e3..1c988e07cc 100644 public interface PersistenceContextManager { diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java -index 5d4a3b36d4..d567816171 100644 +index 647c178f2b..74654794cf 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java -@@ -15,7 +15,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.drools.persistence.api; -import javax.transaction.TransactionSynchronizationRegistry; @@ -2230,10 +2217,10 @@ index 5d4a3b36d4..d567816171 100644 import org.drools.persistence.jta.JtaTransactionSynchronizationAdapter; import org.slf4j.Logger; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java -index 9ed3486b10..08d3957504 100644 +index 967365339f..8f08330a74 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java -@@ -20,10 +20,10 @@ import java.util.HashMap; +@@ -23,10 +23,10 @@ import java.util.HashMap; import java.util.Map; import javax.naming.InitialContext; import javax.naming.NamingException; @@ -2248,7 +2235,7 @@ index 9ed3486b10..08d3957504 100644 import org.drools.persistence.api.TransactionManager; import org.drools.persistence.api.TransactionSynchronization; -@@ -69,7 +69,7 @@ public class JtaTransactionManager +@@ -72,7 +72,7 @@ public class JtaTransactionManager UserTransaction ut; Object tsr; @@ -2257,7 +2244,7 @@ index 9ed3486b10..08d3957504 100644 public JtaTransactionManager(Object ut, Object tsr, -@@ -80,20 +80,20 @@ public class JtaTransactionManager +@@ -83,20 +83,20 @@ public class JtaTransactionManager this.ut = ( UserTransaction ) ( (ut != null) ? ut : findUserTransaction() ); } @@ -2284,7 +2271,7 @@ index 9ed3486b10..08d3957504 100644 } InitialContext context; -@@ -112,7 +112,7 @@ public class JtaTransactionManager +@@ -115,7 +115,7 @@ public class JtaTransactionManager continue; } try { @@ -2293,7 +2280,7 @@ index 9ed3486b10..08d3957504 100644 logger.debug( "JTA TransactionManager found at fallback JNDI location [{}]", jndiName ); return tm; -@@ -146,7 +146,7 @@ public class JtaTransactionManager +@@ -149,7 +149,7 @@ public class JtaTransactionManager } protected Object findTransactionSynchronizationRegistry(UserTransaction ut, @@ -2303,10 +2290,10 @@ index 9ed3486b10..08d3957504 100644 if ( transactionSynchronizationRegistryClass == null ) { // JTA 1.1 API not present - skip. diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java -index 7572b105d1..7cfb68b514 100644 +index e7c3b5eb52..e99fe58afd 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java -@@ -32,8 +32,8 @@ public class JtaTransactionManagerFactory extends TransactionManagerFactory { +@@ -36,8 +36,8 @@ public class JtaTransactionManagerFactory extends TransactionManagerFactory { } /** @@ -2318,11 +2305,11 @@ index 7572b105d1..7cfb68b514 100644 * * @param env diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java -index d1d8dcc3a9..ba7001e629 100644 +index fa387cd3a4..79247df16e 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java -@@ -15,8 +15,8 @@ - +@@ -18,8 +18,8 @@ + */ package org.drools.persistence.jta; -import javax.transaction.Status; @@ -2333,10 +2320,10 @@ index d1d8dcc3a9..ba7001e629 100644 import org.drools.persistence.api.TransactionManager; import org.drools.persistence.api.TransactionSynchronization; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java -index 228078eec7..267c2fca72 100644 +index 7673604692..e1dc0b573f 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java -@@ -19,7 +19,7 @@ package org.drools.persistence.jta; +@@ -21,7 +21,7 @@ package org.drools.persistence.jta; import java.util.Set; import java.util.concurrent.CopyOnWriteArraySet; import java.util.concurrent.locks.ReentrantLock; @@ -2346,10 +2333,10 @@ index 228078eec7..267c2fca72 100644 import org.drools.commands.impl.AbstractInterceptor; import org.drools.persistence.api.OrderedTransactionSynchronization; diff --git a/drools-persistence/drools-persistence-jpa/pom.xml b/drools-persistence/drools-persistence-jpa/pom.xml -index a694f0fabd..9961785cdf 100644 +index 7706d4c655..1cfd38fa65 100644 --- a/drools-persistence/drools-persistence-jpa/pom.xml +++ b/drools-persistence/drools-persistence-jpa/pom.xml -@@ -103,9 +103,10 @@ +@@ -123,9 +123,10 @@ drools-mvel @@ -2358,11 +2345,11 @@ index a694f0fabd..9961785cdf 100644 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 com.sun.xml.bind -@@ -147,13 +148,8 @@ +@@ -167,13 +168,8 @@ @@ -2379,10 +2366,10 @@ index a694f0fabd..9961785cdf 100644 test diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java -index d71fbda727..aaeb023cb3 100644 +index 82114ee564..71bc7749ff 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java -@@ -16,7 +16,7 @@ +@@ -19,7 +19,7 @@ package org.drools.persistence; import java.util.Set; @@ -2392,10 +2379,10 @@ index d71fbda727..aaeb023cb3 100644 import org.drools.persistence.api.TransactionManager; import org.drools.persistence.api.TransactionManagerHelper; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java -index 52cc91c136..b5da3259b2 100644 +index ec5069ad65..54fd6cc38a 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java -@@ -17,15 +17,15 @@ package org.drools.persistence.info; +@@ -20,15 +20,15 @@ package org.drools.persistence.info; import java.util.Date; @@ -2421,10 +2408,10 @@ index 52cc91c136..b5da3259b2 100644 import org.drools.persistence.api.PersistentSession; import org.drools.persistence.SessionMarshallingHelper; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java -index 65e07c870c..3308128753 100644 +index 3db72569d3..ce26c9d2f8 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java -@@ -20,15 +20,15 @@ import java.io.ByteArrayOutputStream; +@@ -23,15 +23,15 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.util.Date; @@ -2450,10 +2437,10 @@ index 65e07c870c..3308128753 100644 import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.marshalling.MarshallerWriteContext; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java -index a36e1b4843..abf285eb0d 100644 +index 0e2bf94fd7..415ce0724c 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java -@@ -15,8 +15,8 @@ +@@ -18,8 +18,8 @@ */ package org.drools.persistence.jpa; @@ -2465,10 +2452,10 @@ index a36e1b4843..abf285eb0d 100644 import org.drools.persistence.api.TransactionManager; import org.kie.api.runtime.Environment; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java -index 9cf810eef7..ee7012c495 100644 +index 08c24f246f..4ae16e7ed5 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java -@@ -17,8 +17,8 @@ package org.drools.persistence.jpa; +@@ -20,8 +20,8 @@ package org.drools.persistence.jpa; import java.lang.reflect.Field; @@ -2480,10 +2467,10 @@ index 9cf810eef7..ee7012c495 100644 import org.drools.persistence.api.PersistenceContext; import org.drools.persistence.api.PersistentSession; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java -index 407ff42b02..6baa92cf50 100644 +index 2663169c07..7dc6f58be9 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java -@@ -15,7 +15,7 @@ +@@ -18,7 +18,7 @@ */ package org.drools.persistence.jpa; @@ -2493,10 +2480,10 @@ index 407ff42b02..6baa92cf50 100644 import org.drools.persistence.api.PersistenceContext; import org.drools.persistence.api.PersistenceContextManager; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java -index b5bea39c66..5e64f56dea 100644 +index ec5e1d68a5..9148566757 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java -@@ -22,7 +22,7 @@ import org.kie.api.runtime.RequestContext; +@@ -24,7 +24,7 @@ import org.kie.api.runtime.RequestContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -2506,10 +2493,10 @@ index b5bea39c66..5e64f56dea 100644 /** diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java -index 231e8e2ee9..c05ec10dea 100644 +index 31c97addfb..80544087bd 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java -@@ -19,7 +19,7 @@ package org.drools.persistence.jpa.marshaller; +@@ -21,7 +21,7 @@ package org.drools.persistence.jpa.marshaller; import java.util.ArrayList; import java.util.List; @@ -2519,10 +2506,10 @@ index 231e8e2ee9..c05ec10dea 100644 public class EntityPersister { diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java -index 062523d9f1..717941f5f6 100644 +index 9e4b4469f6..98c9a5b745 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java -@@ -25,11 +25,11 @@ import java.io.Serializable; +@@ -27,11 +27,11 @@ import java.io.Serializable; import java.util.HashSet; import java.util.Set; @@ -2536,14 +2523,14 @@ index 062523d9f1..717941f5f6 100644 +import jakarta.persistence.Persistence; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.Metamodel; - import org.drools.core.common.DroolsObjectInputStream; + import org.drools.base.common.DroolsObjectInputStream; import org.drools.persistence.api.TransactionAware; import org.drools.persistence.api.TransactionManager; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java -index 604fe48cea..5edb5d9e1d 100644 +index 5448b4c2eb..7f9072b9fc 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java -@@ -17,13 +17,13 @@ +@@ -19,13 +19,13 @@ package org.drools.persistence.jpa.marshaller; import java.io.Serializable; @@ -2565,10 +2552,10 @@ index 604fe48cea..5edb5d9e1d 100644 @Entity @SequenceGenerator(name="mappedVarIdSeq", sequenceName="MAPPED_VAR_ID_SEQ") diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java -index 445d9eb17f..f35762181d 100644 +index 1cbe51e322..abc061e965 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java -@@ -19,11 +19,11 @@ package org.drools.persistence.jpa.marshaller; +@@ -21,11 +21,11 @@ package org.drools.persistence.jpa.marshaller; import java.io.Serializable; import java.util.HashSet; import java.util.Set; @@ -2586,11 +2573,13 @@ index 445d9eb17f..f35762181d 100644 @MappedSuperclass public abstract class VariableEntity implements Serializable { diff --git a/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml b/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml -index 6c29cb4771..027943ebcc 100644 +index 36800ba01f..845fcc9f72 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml +++ b/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml -@@ -1,8 +1,8 @@ - +@@ -19,10 +19,10 @@ + under the License. + + --> - org.hibernate.jpa.HibernatePersistenceProvider diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerFactoryTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerFactoryTest.java -index c21e072745..ec16582dbf 100644 +index 137814bbcf..d8d57b2d3c 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerFactoryTest.java +++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerFactoryTest.java -@@ -16,13 +16,13 @@ package org.drools.persistence.jta; +@@ -20,13 +20,13 @@ package org.drools.persistence.jta; import javax.naming.InitialContext; import javax.naming.NamingException; @@ -2627,10 +2616,10 @@ index c21e072745..ec16582dbf 100644 import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerTest.java -index 2ed2d81ebd..fd02afeba9 100644 +index 399a743730..449fc7759a 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerTest.java +++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/JtaTransactionManagerTest.java -@@ -20,10 +20,10 @@ import java.util.HashMap; +@@ -23,10 +23,10 @@ import java.util.HashMap; import java.util.Map; import javax.naming.InitialContext; import javax.naming.NamingException; @@ -2646,10 +2635,10 @@ index 2ed2d81ebd..fd02afeba9 100644 import org.drools.commands.impl.CommandBasedStatefulKnowledgeSessionImpl; import org.drools.kiesession.rulebase.InternalKnowledgeBase; diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestCommand.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestCommand.java -index 3c04feca2e..08c264c012 100644 +index 973d928459..42df2e5504 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestCommand.java +++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestCommand.java -@@ -16,8 +16,8 @@ +@@ -19,8 +19,8 @@ package org.drools.persistence.jta; import java.util.HashMap; @@ -2661,10 +2650,10 @@ index 3c04feca2e..08c264c012 100644 import com.arjuna.ats.jta.TransactionManager; import org.drools.core.base.MapGlobalResolver; diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestObject.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestObject.java -index e3f3f3d8a3..5ed617ea17 100644 +index b06c96053c..c9930291c8 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestObject.java +++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/jta/TransactionTestObject.java -@@ -17,13 +17,13 @@ package org.drools.persistence.jta; +@@ -20,13 +20,13 @@ package org.drools.persistence.jta; import java.io.Serializable; @@ -2686,10 +2675,10 @@ index e3f3f3d8a3..5ed617ea17 100644 /** * This class is used to test transactions. diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/kie/persistence/session/JpaPersistentStatefulSessionTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/kie/persistence/session/JpaPersistentStatefulSessionTest.java -index c23b5361db..28babfedb9 100644 +index 0f5b11a2b2..0863d2fdfa 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/kie/persistence/session/JpaPersistentStatefulSessionTest.java +++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/kie/persistence/session/JpaPersistentStatefulSessionTest.java -@@ -26,7 +26,7 @@ import java.util.Properties; +@@ -29,7 +29,7 @@ import java.util.Properties; import java.util.concurrent.atomic.AtomicInteger; import javax.naming.InitialContext; @@ -2699,10 +2688,10 @@ index c23b5361db..28babfedb9 100644 import org.drools.core.FlowSessionConfiguration; import org.drools.core.SessionConfiguration; diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/map/impl/JpaBasedPersistenceTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/map/impl/JpaBasedPersistenceTest.java -index ba7dd5109d..6e7e5432c6 100644 +index 6a001acc5c..730575a1a4 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/map/impl/JpaBasedPersistenceTest.java +++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/map/impl/JpaBasedPersistenceTest.java -@@ -31,7 +31,7 @@ import org.kie.internal.persistence.jpa.JPAKnowledgeService; +@@ -34,7 +34,7 @@ import org.kie.internal.persistence.jpa.JPAKnowledgeService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -2712,10 +2701,10 @@ index ba7dd5109d..6e7e5432c6 100644 import java.util.Collection; import java.util.Map; diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/JpaPersistentStatefulSessionTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/JpaPersistentStatefulSessionTest.java -index 438650b714..566285a37a 100644 +index d7e3a61ae4..f61559f90b 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/JpaPersistentStatefulSessionTest.java +++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/JpaPersistentStatefulSessionTest.java -@@ -25,7 +25,7 @@ import java.util.concurrent.atomic.AtomicInteger; +@@ -29,7 +29,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.IntStream; import javax.naming.InitialContext; @@ -2725,10 +2714,10 @@ index 438650b714..566285a37a 100644 import org.drools.commands.ChainableRunner; import org.drools.commands.impl.CommandBasedStatefulKnowledgeSessionImpl; diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/ReloadSessionTest.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/ReloadSessionTest.java -index fada845fc1..2b8e3a8b3a 100644 +index 67d4e42d62..b49aff7838 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/ReloadSessionTest.java +++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/session/ReloadSessionTest.java -@@ -20,8 +20,8 @@ import java.util.Arrays; +@@ -23,8 +23,8 @@ import java.util.Arrays; import java.util.Collection; import java.util.Map; import java.util.Random; @@ -2740,10 +2729,10 @@ index fada845fc1..2b8e3a8b3a 100644 import org.drools.core.common.DefaultFactHandle; import org.drools.kiesession.rulebase.InternalKnowledgeBase; diff --git a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/util/DroolsPersistenceUtil.java b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/util/DroolsPersistenceUtil.java -index 31038d2afa..775f3f19dc 100644 +index 563b210269..a61ec15cbe 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/util/DroolsPersistenceUtil.java +++ b/drools-persistence/drools-persistence-jpa/src/test/java/org/drools/persistence/util/DroolsPersistenceUtil.java -@@ -19,7 +19,7 @@ import static org.kie.api.runtime.EnvironmentName.GLOBALS; +@@ -22,7 +22,7 @@ import static org.kie.api.runtime.EnvironmentName.GLOBALS; import static org.kie.api.runtime.EnvironmentName.TRANSACTION; import java.util.Map; @@ -2753,10 +2742,10 @@ index 31038d2afa..775f3f19dc 100644 import org.drools.core.impl.EnvironmentFactory; import org.kie.api.runtime.Environment; diff --git a/drools-reliability/drools-reliability-infinispan/pom.xml b/drools-reliability/drools-reliability-infinispan/pom.xml -index c60b638498..1ed4497bf1 100644 +index 1e735e0b82..e3703b0a77 100644 --- a/drools-reliability/drools-reliability-infinispan/pom.xml +++ b/drools-reliability/drools-reliability-infinispan/pom.xml -@@ -34,7 +34,7 @@ +@@ -52,7 +52,7 @@ org.infinispan @@ -2765,7 +2754,7 @@ index c60b638498..1ed4497bf1 100644 org.infinispan.protostream -@@ -43,7 +43,7 @@ +@@ -61,7 +61,7 @@ org.infinispan @@ -2775,12 +2764,12 @@ index c60b638498..1ed4497bf1 100644 org.drools diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java -index a356782f80..77d00fc4fa 100644 +index 13641acfe0..a1b4bda3fb 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java -@@ -18,8 +18,8 @@ package org.drools.mvel.compiler; +@@ -20,8 +20,8 @@ package org.drools.mvel.compiler; - import org.drools.core.factmodel.traits.Traitable; + import org.drools.base.factmodel.traits.Traitable; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; @@ -2790,23 +2779,23 @@ index a356782f80..77d00fc4fa 100644 import java.math.BigDecimal; import java.math.BigInteger; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java -index 89b51fcb2b..3c35815740 100644 +index fa47533cfe..008f664410 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java -@@ -29,7 +29,7 @@ import java.util.Set; - import java.util.TreeSet; - import java.util.stream.Collectors; - import java.util.stream.StreamSupport; +@@ -58,7 +58,7 @@ import org.kie.api.runtime.rule.Row; + import org.kie.api.runtime.rule.Variable; + import org.kie.api.runtime.rule.ViewChangedEventListener; + -import javax.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBContext; - - import org.drools.core.QueryResultsImpl; - import org.drools.core.base.ClassObjectType; + import java.io.ByteArrayInputStream; + import java.io.IOException; + import java.io.StringWriter; diff --git a/drools-test-coverage/test-integration-nomvel/pom.xml b/drools-test-coverage/test-integration-nomvel/pom.xml -index 7d9f51e8a0..37d3c8b126 100644 +index 5ff7b47f21..e7dc861938 100644 --- a/drools-test-coverage/test-integration-nomvel/pom.xml +++ b/drools-test-coverage/test-integration-nomvel/pom.xml -@@ -102,9 +102,10 @@ +@@ -107,9 +107,10 @@ test @@ -2815,15 +2804,15 @@ index 7d9f51e8a0..37d3c8b126 100644 + org.glassfish.jaxb + jaxb-runtime test -+ 4.0.2 ++ 4.0.3 jakarta.xml.bind diff --git a/drools-traits/pom.xml b/drools-traits/pom.xml -index baa0ea53db..ceb8129c5f 100644 +index 4f4a128fc4..e64e44949b 100644 --- a/drools-traits/pom.xml +++ b/drools-traits/pom.xml -@@ -138,8 +138,8 @@ +@@ -158,8 +158,8 @@ @@ -2834,7 +2823,7 @@ index baa0ea53db..ceb8129c5f 100644 hibernate-core test -@@ -158,11 +158,6 @@ +@@ -178,11 +178,6 @@ jandex test @@ -2847,11 +2836,13 @@ index baa0ea53db..ceb8129c5f 100644 com.sun.xml.bind diff --git a/drools-traits/src/test/filtered-resources/META-INF/persistence.xml b/drools-traits/src/test/filtered-resources/META-INF/persistence.xml -index 6c29cb4771..027943ebcc 100644 +index 36800ba01f..845fcc9f72 100644 --- a/drools-traits/src/test/filtered-resources/META-INF/persistence.xml +++ b/drools-traits/src/test/filtered-resources/META-INF/persistence.xml -@@ -1,8 +1,8 @@ - +@@ -19,10 +19,10 @@ + under the License. + + --> - org.hibernate.jpa.HibernatePersistenceProvider diff --git a/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java b/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java -index aaf01f00a2..9d634ec94c 100644 +index 2adf906eee..126aa6a7bf 100644 --- a/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java +++ b/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java -@@ -17,7 +17,7 @@ package org.drools.traits.persistence; +@@ -20,7 +20,7 @@ package org.drools.traits.persistence; import java.util.Map; @@ -2876,10 +2867,10 @@ index aaf01f00a2..9d634ec94c 100644 import org.drools.core.base.MapGlobalResolver; import org.drools.core.impl.EnvironmentFactory; diff --git a/drools-wiring/drools-wiring-dynamic/pom.xml b/drools-wiring/drools-wiring-dynamic/pom.xml -index 447e660a2d..675ac0965e 100755 +index b207771d95..e654092670 100755 --- a/drools-wiring/drools-wiring-dynamic/pom.xml +++ b/drools-wiring/drools-wiring-dynamic/pom.xml -@@ -34,9 +34,10 @@ +@@ -54,9 +54,10 @@ provided @@ -2888,15 +2879,15 @@ index 447e660a2d..675ac0965e 100755 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 jakarta.xml.bind diff --git a/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java b/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java -index 0599915ec9..41b607324f 100644 +index 8f867a445d..eb2f89ed19 100644 --- a/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java +++ b/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java -@@ -31,9 +31,9 @@ import java.util.Random; +@@ -34,9 +34,9 @@ import java.util.Random; import java.util.UUID; import java.util.regex.Pattern; @@ -2910,10 +2901,10 @@ index 0599915ec9..41b607324f 100644 import org.drools.core.ClassObjectFilter; import org.drools.core.ClassObjectSerializationFilter; diff --git a/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java b/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java -index cb33ba3dc3..5748494ac9 100644 +index 9c727454ac..6c41a29dfb 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java +++ b/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java -@@ -15,11 +15,11 @@ +@@ -18,11 +18,11 @@ */ package org.kie.api.pmml; @@ -2931,10 +2922,10 @@ index cb33ba3dc3..5748494ac9 100644 @XmlRootElement(name="pmmlOutput") @XmlAccessorType(XmlAccessType.FIELD) diff --git a/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java b/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java -index 413db4a8fd..d6c5f18648 100644 +index 54fbc05305..73a2b9ce6e 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java +++ b/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java -@@ -15,9 +15,9 @@ +@@ -18,9 +18,9 @@ */ package org.kie.api.pmml; @@ -2948,10 +2939,10 @@ index 413db4a8fd..d6c5f18648 100644 @XmlRootElement(name="value") @XmlAccessorType(XmlAccessType.FIELD) diff --git a/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java b/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java -index 0de625b8f2..37b5d8317c 100644 +index eebb975416..82d2a1fb5c 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java +++ b/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java -@@ -15,9 +15,9 @@ +@@ -18,9 +18,9 @@ */ package org.kie.api.pmml; @@ -2965,10 +2956,10 @@ index 0de625b8f2..37b5d8317c 100644 @XmlRootElement(name="value") @XmlAccessorType(XmlAccessType.FIELD) diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java -index 5294014700..f7ea76fedb 100644 +index 63515db55a..ebe972d861 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java -@@ -15,10 +15,10 @@ +@@ -18,10 +18,10 @@ */ package org.kie.api.pmml; @@ -2984,10 +2975,10 @@ index 5294014700..f7ea76fedb 100644 import org.kie.api.definition.type.Role; import org.kie.api.definition.type.Role.Type; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java -index f795d3a5b0..b001d86df1 100644 +index cf5a119103..8424cea547 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java -@@ -15,11 +15,11 @@ +@@ -18,11 +18,11 @@ */ package org.kie.api.pmml; @@ -3005,10 +2996,10 @@ index f795d3a5b0..b001d86df1 100644 import org.kie.api.definition.type.Role; import org.kie.api.definition.type.Role.Type; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java -index 49728c846f..0bb619813d 100644 +index d3421b3bff..530096a9fe 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java -@@ -21,13 +21,13 @@ import java.util.HashMap; +@@ -24,13 +24,13 @@ import java.util.HashMap; import java.util.Map; import java.util.Optional; @@ -3030,10 +3021,10 @@ index 49728c846f..0bb619813d 100644 import org.kie.api.definition.type.PropertyReactive; import org.slf4j.Logger; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java b/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java -index b39d168f63..4ad5e23862 100644 +index 235999635f..88cef27806 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java -@@ -22,12 +22,12 @@ import java.util.List; +@@ -25,12 +25,12 @@ import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -3053,10 +3044,10 @@ index b39d168f63..4ad5e23862 100644 /** * This class provides a vanilla mechanism for sending data to diff --git a/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java b/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java -index 677a93b394..7fcf52c98d 100644 +index 2f83078daa..9bea0c17b2 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java +++ b/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java -@@ -15,12 +15,12 @@ +@@ -18,12 +18,12 @@ */ package org.kie.api.pmml; @@ -3076,10 +3067,10 @@ index 677a93b394..7fcf52c98d 100644 @XmlType(name="ParameterInfo") @XmlAccessorType(XmlAccessType.NONE) diff --git a/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java b/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java -index 1d59e1de4d..adf7419718 100644 +index f21eb8951a..d52c9a9e3f 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java +++ b/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java -@@ -15,9 +15,9 @@ +@@ -18,9 +18,9 @@ */ package org.kie.api.pmml; @@ -3093,10 +3084,10 @@ index 1d59e1de4d..adf7419718 100644 @XmlRootElement(name="value") @XmlAccessorType(XmlAccessType.FIELD) diff --git a/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java b/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java -index 970c21fafd..e461e4857d 100644 +index 024a918763..77968f77a3 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java +++ b/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java -@@ -18,11 +18,11 @@ package org.kie.api.runtime.query; +@@ -20,11 +20,11 @@ package org.kie.api.runtime.query; import java.io.Serializable; @@ -3114,11 +3105,11 @@ index 970c21fafd..e461e4857d 100644 @XmlType(name="kieQueryContext") @XmlAccessorType(XmlAccessType.FIELD) diff --git a/kie-api/src/main/java/org/kie/api/task/model/Status.java b/kie-api/src/main/java/org/kie/api/task/model/Status.java -index f37ba2607c..737985a4db 100644 +index 57a6b11146..7dc485aa7d 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/Status.java +++ b/kie-api/src/main/java/org/kie/api/task/model/Status.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.kie.api.task.model; -import javax.xml.bind.annotation.XmlType; @@ -3127,10 +3118,10 @@ index f37ba2607c..737985a4db 100644 @XmlType diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java -index 7c3bb1c197..d7053e68a3 100644 +index cf32659cdc..bf47f624c0 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java -@@ -62,7 +62,7 @@ public class DMNImportPMMLInfo extends PMMLInfo { +@@ -64,7 +64,7 @@ public class DMNImportPMMLInfo extends PMMLInfo { final PMML pmml = org.jpmml.model.PMMLUtil.unmarshal(is); PMMLHeaderInfo h = PMMLInfo.pmmlToHeaderInfo(pmml, pmml.getHeader()); for (DataField df : pmml.getDataDictionary().getDataFields()) { @@ -3139,7 +3130,7 @@ index 7c3bb1c197..d7053e68a3 100644 BuiltInType ft = getBuiltInTypeByDataType(df.getDataType()); List helperFEELProfiles = cc.getFeelProfiles(); DMNFEELHelper feel = new DMNFEELHelper(cc.getRootClassLoader(), helperFEELProfiles); -@@ -118,7 +118,7 @@ public class DMNImportPMMLInfo extends PMMLInfo { +@@ -120,7 +120,7 @@ public class DMNImportPMMLInfo extends PMMLInfo { // register ., being a composite type of the different model outputs fields Map typeMap = new HashMap<>(); outputFields.stream().forEach(field -> { @@ -3149,10 +3140,10 @@ index 7c3bb1c197..d7053e68a3 100644 DMNType type = new SimpleTypeImpl(i.getNamespace(), fieldName, null, false, null, dmnModel.getTypeRegistry().resolveType(dmnModel.getDefinitions().getURIFEEL(), ft.getName()), ft); typeMap.put(fieldName, type); diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java -index e272189c00..a2cc46881c 100644 +index e51f9a16ce..179cbf1d2a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java -@@ -24,7 +24,7 @@ import java.util.HashMap; +@@ -26,7 +26,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; @@ -3161,7 +3152,7 @@ index e272189c00..a2cc46881c 100644 import org.dmg.pmml.Extension; import org.dmg.pmml.Header; -@@ -73,15 +73,15 @@ public class PMMLInfo { +@@ -75,15 +75,15 @@ public class PMMLInfo { miningSchema.getMiningFields() .stream() .filter(mf -> mf.getUsageType() == UsageType.ACTIVE) @@ -3181,10 +3172,10 @@ index e272189c00..a2cc46881c 100644 return new PMMLModelInfo(pm.getModelName(), pm.getClass().getSimpleName(), inputFields, targetFields, outputFields); } diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java -index 1e4a002044..0f043b9da0 100644 +index d5bc785f51..046555611e 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java -@@ -29,9 +29,9 @@ import java.util.Map; +@@ -31,9 +31,9 @@ import java.util.Map; import java.util.Set; import java.util.stream.Collectors; @@ -3198,10 +3189,10 @@ index 1e4a002044..0f043b9da0 100644 import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/kie-dmn/kie-dmn-legacy-tests/pom.xml b/kie-dmn/kie-dmn-legacy-tests/pom.xml -index e525713c19..12de41670a 100644 +index d8fd3fb209..3494e8924e 100644 --- a/kie-dmn/kie-dmn-legacy-tests/pom.xml +++ b/kie-dmn/kie-dmn-legacy-tests/pom.xml -@@ -100,9 +100,10 @@ +@@ -120,9 +120,10 @@ provided @@ -3210,15 +3201,15 @@ index e525713c19..12de41670a 100644 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 jakarta.xml.bind diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java -index 0667ee8e9e..f89f066949 100644 +index 73c6e9a0dc..5afed613ea 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java -@@ -19,7 +19,7 @@ package org.kie.dmn.model.v1_2.dmndi; +@@ -21,7 +21,7 @@ package org.kie.dmn.model.v1_2.dmndi; import java.util.ArrayList; import java.util.List; @@ -3228,10 +3219,10 @@ index 0667ee8e9e..f89f066949 100644 public class DMNDiagram extends Diagram implements org.kie.dmn.model.api.dmndi.DMNDiagram { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java -index f13fcb5275..6d6950fb5f 100644 +index 6c7d93324b..7d0166c1cf 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java -@@ -19,7 +19,7 @@ package org.kie.dmn.model.v1_2.dmndi; +@@ -21,7 +21,7 @@ package org.kie.dmn.model.v1_2.dmndi; import java.util.ArrayList; import java.util.List; @@ -3241,10 +3232,10 @@ index f13fcb5275..6d6950fb5f 100644 import org.kie.dmn.model.v1_2.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java -index a1c3bda6f5..b2332ca6e8 100644 +index 07d10ee3b7..56c12fed1f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java -@@ -19,7 +19,7 @@ package org.kie.dmn.model.v1_3.dmndi; +@@ -21,7 +21,7 @@ package org.kie.dmn.model.v1_3.dmndi; import java.util.ArrayList; import java.util.List; @@ -3254,10 +3245,10 @@ index a1c3bda6f5..b2332ca6e8 100644 public class DMNDiagram extends Diagram implements org.kie.dmn.model.api.dmndi.DMNDiagram { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java -index 37f68faf85..7720ab80ed 100644 +index 3a1d68e30e..a05148e753 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java -@@ -19,7 +19,7 @@ package org.kie.dmn.model.v1_3.dmndi; +@@ -21,7 +21,7 @@ package org.kie.dmn.model.v1_3.dmndi; import java.util.ArrayList; import java.util.List; @@ -3267,10 +3258,10 @@ index 37f68faf85..7720ab80ed 100644 import org.kie.dmn.model.v1_3.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java -index 14c47f65e8..4004e43729 100644 +index fec094247e..44999d32c3 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java -@@ -29,9 +29,9 @@ import java.util.Map; +@@ -31,9 +31,9 @@ import java.util.Map; import java.util.Set; import java.util.stream.Collectors; @@ -3284,10 +3275,10 @@ index 14c47f65e8..4004e43729 100644 import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/kie-dmn/kie-dmn-openapi/pom.xml b/kie-dmn/kie-dmn-openapi/pom.xml -index fa47437585..d860b60d5e 100644 +index 9f0f46d211..d282dc46c3 100644 --- a/kie-dmn/kie-dmn-openapi/pom.xml +++ b/kie-dmn/kie-dmn-openapi/pom.xml -@@ -62,9 +62,10 @@ +@@ -82,9 +82,10 @@ provided @@ -3296,15 +3287,15 @@ index fa47437585..d860b60d5e 100644 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 jakarta.xml.bind diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml -index f5c60e5a89..528df9e79c 100644 +index 5c3b3ebe87..2c5331a1f4 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml -@@ -62,9 +62,10 @@ +@@ -82,9 +82,10 @@ provided @@ -3313,15 +3304,15 @@ index f5c60e5a89..528df9e79c 100644 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 jakarta.xml.bind diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java -index 17887354ff..97309c1dda 100644 +index fcfde77a26..06dd73a239 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java -@@ -36,7 +36,6 @@ import javax.xml.namespace.QName; +@@ -38,7 +38,6 @@ import javax.xml.namespace.QName; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; @@ -3329,7 +3320,7 @@ index 17887354ff..97309c1dda 100644 import org.dmg.pmml.Model; import org.dmg.pmml.PMML; import org.dmg.pmml.SimplePredicate; -@@ -143,7 +142,7 @@ public class Converter { +@@ -145,7 +144,7 @@ public class Converter { for (String input : usedPredictors) { List predicatesForInput = r.map.get(input); if (predicatesForInput != null && !predicatesForInput.isEmpty()) { @@ -3338,7 +3329,7 @@ index 17887354ff..97309c1dda 100644 Optional df = pmml.getDataDictionary().getDataFields().stream().filter(x-> x.getName().equals(fnLookup)).findFirst(); UnaryTests ut = processSimplePredicateUnaryOrBinary(predicatesForInput, df); if (ut.getText().startsWith("\"") && ut.getText().endsWith("\"")) { -@@ -195,9 +194,9 @@ public class Converter { +@@ -197,9 +196,9 @@ public class Converter { } for (DataField df : pmml.getDataDictionary().getDataFields()) { @@ -3350,7 +3341,7 @@ index 17887354ff..97309c1dda 100644 } } } -@@ -476,7 +475,7 @@ public class Converter { +@@ -478,7 +477,7 @@ public class Converter { } private static String feelTypeFromDD(DataDictionary dd, String id) { @@ -3360,10 +3351,10 @@ index 17887354ff..97309c1dda 100644 if (opt.isEmpty()) { return "Any"; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java -index f5b19f4e05..25171444d1 100644 +index b5fd23ed65..9d789df4a4 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java -@@ -37,7 +37,7 @@ public class SimpleRuleRow { +@@ -39,7 +39,7 @@ public class SimpleRuleRow { Predicate rootPredicate = r.getPredicate(); if (rootPredicate instanceof SimplePredicate) { SimplePredicate sp = (SimplePredicate) rootPredicate; @@ -3372,7 +3363,7 @@ index f5b19f4e05..25171444d1 100644 } else { if (!(rootPredicate instanceof CompoundPredicate)) { throw new UnsupportedOperationException("Was expecting a CompoundPredicate, found: "+rootPredicate.getClass()); -@@ -48,7 +48,7 @@ public class SimpleRuleRow { +@@ -50,7 +50,7 @@ public class SimpleRuleRow { } for (Predicate c : cPredicate.getPredicates()) { SimplePredicate sp = (SimplePredicate) c; @@ -3382,10 +3373,10 @@ index f5b19f4e05..25171444d1 100644 } } diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java -index 17147f54a7..4a32d87f94 100644 +index c9ef7d523d..a33228f2c2 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java -@@ -21,10 +21,10 @@ import java.util.LinkedHashSet; +@@ -23,10 +23,10 @@ import java.util.LinkedHashSet; import java.util.List; import java.util.Set; @@ -3401,10 +3392,10 @@ index 17147f54a7..4a32d87f94 100644 import org.kie.dmn.model.api.DecisionTable; import org.kie.dmn.validation.dtanalysis.mcdc.MCDCAnalyser.PosNegBlock; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java -index 48a48628e4..e5e128f026 100644 +index 2bf017df45..096c084b79 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java -@@ -2,9 +2,9 @@ +@@ -20,9 +20,9 @@ package org.kie.dmn.validation.dtanalysis.mcdc.dmntck; import org.kie.dmn.feel.util.Generated; @@ -3418,10 +3409,10 @@ index 48a48628e4..e5e128f026 100644 diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java -index b2006fd5a2..cd387bc2f6 100644 +index cbed707d7f..8d47bb9773 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java -@@ -2,9 +2,9 @@ +@@ -20,9 +20,9 @@ package org.kie.dmn.validation.dtanalysis.mcdc.dmntck; import org.kie.dmn.feel.util.Generated; @@ -3435,10 +3426,10 @@ index b2006fd5a2..cd387bc2f6 100644 /** diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java -index 45caf032e2..138efc4c08 100644 +index bad57fe70d..963513552e 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java -@@ -7,16 +7,16 @@ import java.util.HashMap; +@@ -25,16 +25,16 @@ import java.util.HashMap; import java.util.Map; import org.kie.dmn.feel.util.Generated; @@ -3466,10 +3457,10 @@ index 45caf032e2..138efc4c08 100644 import org.w3c.dom.Element; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java -index 30254ad028..0f02b4ce32 100644 +index 4d9b58d9a1..e06798a5f0 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java -@@ -7,17 +7,17 @@ import java.util.HashMap; +@@ -25,17 +25,17 @@ import java.util.HashMap; import java.util.Map; import org.kie.dmn.feel.util.Generated; @@ -3499,20 +3490,20 @@ index 30254ad028..0f02b4ce32 100644 import org.w3c.dom.Element; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java -index f6c8310e3a..9b27fa3be2 100644 +index feed0d6196..8c9014422e 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java -@@ -4,4 +4,4 @@ +@@ -22,4 +22,4 @@ xmlns = {@XmlNs(prefix = "tc", namespaceURI = "http://www.omg.org/spec/DMN/20160719/testcase")}) package org.kie.dmn.validation.dtanalysis.mcdc.dmntck; -import javax.xml.bind.annotation.XmlNs; +import jakarta.xml.bind.annotation.XmlNs; diff --git a/kie-internal/pom.xml b/kie-internal/pom.xml -index 3d950d6699..b57830aded 100644 +index b73b247766..2c20438303 100644 --- a/kie-internal/pom.xml +++ b/kie-internal/pom.xml -@@ -76,9 +76,10 @@ +@@ -96,9 +96,10 @@ provided @@ -3521,15 +3512,15 @@ index 3d950d6699..b57830aded 100644 + org.glassfish.jaxb + jaxb-runtime provided -+ 4.0.2 ++ 4.0.3 diff --git a/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java b/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java -index 398a8ca6b2..708942c667 100644 +index 5a70bf3a03..63f6154f20 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java -@@ -19,8 +19,8 @@ package org.kie.internal.builder.help; +@@ -21,8 +21,8 @@ package org.kie.internal.builder.help; import java.io.IOException; import java.util.Map; @@ -3541,10 +3532,10 @@ index 398a8ca6b2..708942c667 100644 import com.sun.tools.xjc.Options; import org.kie.api.KieBase; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java b/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java -index 5bc9fb6176..aef8a66011 100644 +index d60aa2bccc..7772825081 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java -@@ -20,8 +20,8 @@ import java.io.IOException; +@@ -22,8 +22,8 @@ import java.io.IOException; import java.util.Collections; import java.util.Map; @@ -3556,10 +3547,10 @@ index 5bc9fb6176..aef8a66011 100644 import com.sun.tools.xjc.Options; import org.kie.api.KieBase; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java -index 78b83922f0..7b3f93bf2b 100644 +index a66ab3e155..c859e47bf8 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java -@@ -21,7 +21,7 @@ import java.util.Collections; +@@ -24,7 +24,7 @@ import java.util.Collections; import java.util.Iterator; import java.util.List; @@ -3569,10 +3560,10 @@ index 78b83922f0..7b3f93bf2b 100644 import org.kie.internal.KieInternalServices; import org.kie.internal.process.CorrelationKey; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java -index 1a8848a4ff..281e5e1823 100644 +index b74e99d2f5..880169eef4 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java -@@ -21,7 +21,7 @@ import java.time.format.DateTimeFormatter; +@@ -24,7 +24,7 @@ import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; import java.time.temporal.ChronoField; @@ -3582,10 +3573,10 @@ index 1a8848a4ff..281e5e1823 100644 public class LocalDateTimeXmlAdapter extends XmlAdapter { diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java -index c41076f7a5..bdcc613daf 100644 +index fb733055ac..4ae10ef641 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java -@@ -18,7 +18,7 @@ package org.kie.internal.jaxb; +@@ -21,7 +21,7 @@ package org.kie.internal.jaxb; import java.time.DateTimeException; import java.time.LocalDate; @@ -3595,10 +3586,10 @@ index c41076f7a5..bdcc613daf 100644 public class LocalDateXmlAdapter extends XmlAdapter { diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java -index 184f65b0f2..6894454118 100644 +index 9c9f66d618..b269f3fd6c 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java -@@ -21,7 +21,7 @@ import java.time.format.DateTimeFormatter; +@@ -24,7 +24,7 @@ import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; import java.time.temporal.ChronoField; @@ -3608,10 +3599,10 @@ index 184f65b0f2..6894454118 100644 public class LocalTimeXmlAdapter extends XmlAdapter { diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java -index 7774380f71..d2cf1a1c93 100644 +index 705641b07c..52e5d2933c 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java -@@ -21,7 +21,7 @@ import java.time.format.DateTimeFormatter; +@@ -24,7 +24,7 @@ import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; import java.time.temporal.ChronoField; @@ -3621,10 +3612,10 @@ index 7774380f71..d2cf1a1c93 100644 public class OffsetDateTimeXmlAdapter extends XmlAdapter { diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java -index 6cb8412e19..9bdfb6c0e5 100644 +index f74cfffc61..967d0070a4 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java -@@ -17,12 +17,12 @@ package org.kie.internal.jaxb; +@@ -20,12 +20,12 @@ package org.kie.internal.jaxb; import java.util.Map.Entry; @@ -3644,10 +3635,10 @@ index 6cb8412e19..9bdfb6c0e5 100644 @XmlType diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java -index 7cbab15791..db46e1e033 100644 +index df560c3a85..6436952334 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java -@@ -23,10 +23,10 @@ import java.util.List; +@@ -26,10 +26,10 @@ import java.util.List; import java.util.Map; import java.util.Set; @@ -3663,10 +3654,10 @@ index 7cbab15791..db46e1e033 100644 import static org.kie.internal.jaxb.StringKeyObjectValueMapXmlAdapter.createJaxbStringObjectMapEntry; import static org.kie.internal.jaxb.StringKeyObjectValueMapXmlAdapter.deserializeObject; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java -index 0f8326be2f..3a0fd51b2d 100644 +index bb2aa1f32a..34807c6d2a 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java -@@ -25,7 +25,7 @@ import java.util.HashMap; +@@ -28,7 +28,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; @@ -3676,11 +3667,11 @@ index 0f8326be2f..3a0fd51b2d 100644 import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java -index 07ac95248f..d22ef755e3 100644 +index 88c9abcd74..6a3bc0a122 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java -@@ -15,10 +15,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.kie.internal.jaxb; -import javax.xml.bind.annotation.XmlAccessType; @@ -3695,10 +3686,10 @@ index 07ac95248f..d22ef755e3 100644 @XmlType diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java -index d05c3b3606..d84990d6f3 100644 +index 8561a4f266..cac273d126 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java -@@ -23,10 +23,10 @@ import java.util.List; +@@ -26,10 +26,10 @@ import java.util.List; import java.util.Map; import java.util.Set; @@ -3714,10 +3705,10 @@ index d05c3b3606..d84990d6f3 100644 /** * This implements {@link Map} in order to fool JSON.. diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java -index caf41ec85a..ccf5431e32 100644 +index e996b22b08..ec05798634 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java -@@ -19,7 +19,7 @@ import java.util.HashMap; +@@ -22,7 +22,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; @@ -3727,11 +3718,11 @@ index caf41ec85a..ccf5431e32 100644 /** * This is a {@link XmlAdapter} for mapping Map<String, String> instances diff --git a/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java b/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java -index c8d54837c2..e0b739007b 100644 +index de305a5d93..125af0455a 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java +++ b/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java -@@ -16,9 +16,9 @@ - +@@ -18,9 +18,9 @@ + */ package org.kie.internal.query; -import javax.xml.bind.annotation.XmlAccessType; @@ -3744,10 +3735,10 @@ index c8d54837c2..e0b739007b 100644 @XmlType @XmlAccessorType(XmlAccessType.FIELD) diff --git a/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java b/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java -index 21a3b82277..52ef85b198 100644 +index 2e514b2534..5967f78393 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java +++ b/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java -@@ -20,9 +20,9 @@ import java.util.HashMap; +@@ -22,9 +22,9 @@ import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; @@ -3761,11 +3752,11 @@ index 21a3b82277..52ef85b198 100644 import org.kie.internal.jaxb.StringKeyObjectValueMapXmlAdapter; diff --git a/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java b/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java -index a07910db94..04acf1f1ab 100644 +index 3196813c53..6460e83543 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java +++ b/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java -@@ -15,10 +15,10 @@ - +@@ -18,10 +18,10 @@ + */ package org.kie.internal.query.data; -import javax.xml.bind.annotation.XmlAccessType; @@ -3780,10 +3771,10 @@ index a07910db94..04acf1f1ab 100644 import org.kie.internal.query.QueryContext; diff --git a/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java b/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java -index 3c22fb6b7f..c31fd5bbbb 100644 +index c68575a784..b6d2272d67 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java +++ b/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java -@@ -21,12 +21,12 @@ import java.util.HashMap; +@@ -24,12 +24,12 @@ import java.util.HashMap; import java.util.List; import java.util.Map; @@ -3803,10 +3794,10 @@ index 3c22fb6b7f..c31fd5bbbb 100644 import org.kie.internal.jaxb.StringKeyObjectValueMapXmlAdapter; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java -index 4f0cf1ebb8..68fdf05e9b 100644 +index 65a8711225..1a893de336 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java -@@ -18,8 +18,8 @@ package org.kie.internal.runtime.conf; +@@ -20,8 +20,8 @@ package org.kie.internal.runtime.conf; import java.util.List; @@ -3818,11 +3809,11 @@ index 4f0cf1ebb8..68fdf05e9b 100644 import org.kie.api.remote.Remotable; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java -index 2ca6a37da3..d1829b33e7 100644 +index 1ac2d744d3..97c512830d 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.kie.internal.runtime.conf; -import javax.xml.bind.annotation.XmlType; @@ -3831,11 +3822,11 @@ index 2ca6a37da3..d1829b33e7 100644 /** * Defines merging strategy of two descriptors diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java -index 22f0573bb5..cfdef63ab4 100644 +index 8421eeda8e..6e7d6ebfb3 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java -@@ -16,11 +16,11 @@ - +@@ -18,11 +18,11 @@ + */ package org.kie.internal.runtime.conf; -import javax.xml.bind.annotation.XmlAccessType; @@ -3852,10 +3843,10 @@ index 22f0573bb5..cfdef63ab4 100644 /** * Extension of ObjectModel that provides unique name for the object model diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java -index 5d8ffe8134..2ae91cff15 100644 +index 71306f0345..6268d19d31 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java -@@ -21,12 +21,12 @@ import java.util.ArrayList; +@@ -23,12 +23,12 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -3875,11 +3866,11 @@ index 5d8ffe8134..2ae91cff15 100644 * Object model that defines how and of what type the object instance should be created.
* The how is actually delegated to resolved implementation ObjectModelResolver diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java -index a70f3100d0..415a2c5388 100644 +index 7356288e5e..3389c78f73 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java -@@ -15,7 +15,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.kie.internal.runtime.conf; -import javax.xml.bind.annotation.XmlType; @@ -3888,10 +3879,10 @@ index a70f3100d0..415a2c5388 100644 @XmlType public enum RuntimeStrategy { diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java -index aeeef03797..cb31932264 100644 +index 87ff5dd215..d9917b3d1b 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java -@@ -21,10 +21,10 @@ import java.io.StringWriter; +@@ -23,10 +23,10 @@ import java.io.StringWriter; import java.net.URL; import javax.xml.XMLConstants; @@ -3907,10 +3898,10 @@ index aeeef03797..cb31932264 100644 import javax.xml.validation.SchemaFactory; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java -index c2907e3a7e..a8d8dd299e 100644 +index a93615ec76..d5281d43e9 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java -@@ -27,13 +27,13 @@ import java.util.List; +@@ -29,13 +29,13 @@ import java.util.List; import java.util.Map; import java.util.Set; @@ -3932,11 +3923,11 @@ index c2907e3a7e..a8d8dd299e 100644 import org.kie.internal.runtime.conf.AuditMode; import org.kie.internal.runtime.conf.BuilderHandler; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java -index eb2e3dcbf9..89d6b93d31 100644 +index 572cc4412a..9026d35f5d 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.kie.internal.runtime.manager.deploy; -import javax.xml.bind.annotation.XmlTransient; @@ -3945,10 +3936,10 @@ index eb2e3dcbf9..89d6b93d31 100644 import org.kie.internal.runtime.conf.ObjectModel; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java -index e892aba698..12420b0f79 100644 +index 406ddf4e70..3caaedb165 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java -@@ -19,7 +19,7 @@ +@@ -21,7 +21,7 @@ */ package org.kie.internal.task.api.model; @@ -3958,11 +3949,11 @@ index e892aba698..12420b0f79 100644 @XmlType public enum AccessType { diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java -index 86cf39d196..982920d369 100644 +index b79d5bc55c..209a283f4f 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java -@@ -16,7 +16,7 @@ - +@@ -18,7 +18,7 @@ + */ package org.kie.internal.task.api.model; -import javax.xml.bind.annotation.XmlType; @@ -3971,10 +3962,10 @@ index 86cf39d196..982920d369 100644 @XmlType public enum SubTasksStrategy{ diff --git a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java -index 29f8b7e2f8..65e66814a9 100644 +index 4cbd3f3192..5038a1806f 100644 --- a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java +++ b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java -@@ -18,9 +18,9 @@ package org.kie.internal.runtime.manager.deploy; +@@ -20,9 +20,9 @@ package org.kie.internal.runtime.manager.deploy; import java.io.StringWriter; @@ -3988,10 +3979,10 @@ index 29f8b7e2f8..65e66814a9 100644 import org.junit.Test; import org.kie.internal.runtime.conf.DeploymentDescriptor; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java -index faeebf018f..ab667a71c9 100644 +index b4d12b531b..505d54d07a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java -@@ -116,7 +116,7 @@ public class CommonCompilationDTO implements CompilationDTO +@@ -119,7 +119,7 @@ public class CommonCompilationDTO implements CompilationDTO targetDataField = this.fields.stream() .filter(DataField.class::isInstance) .map(DataField.class::cast) @@ -4001,10 +3992,10 @@ index faeebf018f..ab667a71c9 100644 } else { targetDataField = null; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java -index 8f99b7d8c8..b4e5e7069f 100644 +index 45015d4b37..6a404100e9 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java -@@ -48,8 +48,8 @@ import org.dmg.pmml.TargetValue; +@@ -51,8 +51,8 @@ import org.dmg.pmml.TargetValue; import org.dmg.pmml.Targets; import org.dmg.pmml.TransformationDictionary; import org.dmg.pmml.Value; @@ -4015,7 +4006,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 import org.kie.pmml.api.enums.CAST_INTEGER; import org.kie.pmml.api.enums.DATA_TYPE; import org.kie.pmml.api.enums.FIELD_USAGE_TYPE; -@@ -120,8 +120,8 @@ public class ModelUtils { +@@ -123,8 +123,8 @@ public class ModelUtils { if (model.getMiningSchema() != null && model.getMiningSchema().getMiningFields() != null) { for (MiningField miningField : model.getMiningSchema().getMiningFields()) { if (MiningField.UsageType.TARGET.equals(miningField.getUsageType()) || MiningField.UsageType.PREDICTED.equals(miningField.getUsageType())) { @@ -4026,7 +4017,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 } } } -@@ -142,8 +142,7 @@ public class ModelUtils { +@@ -145,8 +145,7 @@ public class ModelUtils { if (model.getMiningSchema() != null && model.getMiningSchema().getMiningFields() != null) { for (MiningField miningField : model.getMiningSchema().getMiningFields()) { if (MiningField.UsageType.TARGET.equals(miningField.getUsageType()) || MiningField.UsageType.PREDICTED.equals(miningField.getUsageType())) { @@ -4036,7 +4027,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 } } } -@@ -179,7 +178,7 @@ public class ModelUtils { +@@ -182,7 +181,7 @@ public class ModelUtils { final String fieldName) { return fields == null ? Optional.empty() : fields.stream() @@ -4045,7 +4036,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 .map(dataField -> OP_TYPE.byName(dataField.getOpType().value())) .findFirst(); } -@@ -193,7 +192,7 @@ public class ModelUtils { +@@ -196,7 +195,7 @@ public class ModelUtils { public static Optional getOpTypeFromMiningFields(MiningSchema miningSchema, String fieldName) { if (miningSchema != null && miningSchema.getMiningFields() != null) { return miningSchema.getMiningFields().stream() @@ -4054,7 +4045,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 .findFirst() .map(dataField -> OP_TYPE.byName(dataField.getOpType().value())); } else { -@@ -210,7 +209,7 @@ public class ModelUtils { +@@ -213,7 +212,7 @@ public class ModelUtils { public static Optional getOpTypeFromTargets(Targets targets, String fieldName) { if (targets != null && targets.getTargets() != null) { return targets.getTargets().stream() @@ -4063,7 +4054,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 .findFirst() .map(dataField -> OP_TYPE.byName(dataField.getOpType().value())); } else { -@@ -228,7 +227,7 @@ public class ModelUtils { +@@ -231,7 +230,7 @@ public class ModelUtils { public static DataType getDataType(final List> fields, final String fieldName) { return fields.stream() @@ -4072,7 +4063,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 .map(Field::getDataType) .findFirst() .orElseThrow(() -> new KiePMMLInternalException(String.format("Failed to find DataType for " + -@@ -244,7 +243,7 @@ public class ModelUtils { +@@ -247,7 +246,7 @@ public class ModelUtils { */ public static DATA_TYPE getDATA_TYPE(final List> fields, String fieldName) { Optional toReturn = fields.stream() @@ -4081,7 +4072,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 .findFirst() .map(dataField -> DATA_TYPE.byName(dataField.getDataType().value())); return toReturn.orElseThrow(() -> new KiePMMLInternalException(String.format("Failed to find DATA_TYPE for " + -@@ -328,7 +327,7 @@ public class ModelUtils { +@@ -331,7 +330,7 @@ public class ModelUtils { */ public static org.kie.pmml.api.models.MiningField convertToKieMiningField(final MiningField toConvert, final Field field) { @@ -4090,7 +4081,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 final FIELD_USAGE_TYPE fieldUsageType = toConvert.getUsageType() != null ? FIELD_USAGE_TYPE.byName(toConvert.getUsageType().value()) : null; final OP_TYPE opType = toConvert.getOpType() != null ? OP_TYPE.byName(toConvert.getOpType().value()) : null; -@@ -405,13 +404,13 @@ public class ModelUtils { +@@ -408,13 +407,13 @@ public class ModelUtils { */ public static org.kie.pmml.api.models.OutputField convertToKieOutputField(final OutputField toConvert, final Field field) { @@ -4106,7 +4097,7 @@ index 8f99b7d8c8..b4e5e7069f 100644 final RESULT_FEATURE resultFeature = toConvert.getResultFeature() != null ? RESULT_FEATURE.byName(toConvert.getResultFeature().value()) : null; final List allowedValues = field instanceof DataField ? -@@ -456,8 +455,7 @@ public class ModelUtils { +@@ -459,8 +458,7 @@ public class ModelUtils { toConvert.getRescaleConstant().doubleValue() : null; final Double rescaleFactor = toConvert.getRescaleFactor() != null ? toConvert.getRescaleFactor().doubleValue() : null; return new TargetField(targetValues, @@ -4117,10 +4108,10 @@ index 8f99b7d8c8..b4e5e7069f 100644 min, max, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java -index 29e0f7b7d0..606759ffdc 100644 +index 32c3b862ca..aab45ac852 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java -@@ -122,4 +122,14 @@ public class TestModel extends Model { +@@ -125,4 +125,14 @@ public class TestModel extends Model { public VisitorAction accept(Visitor visitor) { return null; } @@ -4136,10 +4127,10 @@ index 29e0f7b7d0..606759ffdc 100644 + } } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java -index 9c855e91bc..dd1de2f0d4 100644 +index c668e1a6ff..8f919c3e92 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java -@@ -28,6 +28,7 @@ import org.dmg.pmml.Apply; +@@ -31,6 +31,7 @@ import org.dmg.pmml.Apply; import org.dmg.pmml.Array; import org.dmg.pmml.CompareFunction; import org.dmg.pmml.ComparisonMeasure; @@ -4147,7 +4138,7 @@ index 9c855e91bc..dd1de2f0d4 100644 import org.dmg.pmml.CompoundPredicate; import org.dmg.pmml.Constant; import org.dmg.pmml.DataDictionary; -@@ -40,7 +41,6 @@ import org.dmg.pmml.DiscretizeBin; +@@ -43,7 +44,6 @@ import org.dmg.pmml.DiscretizeBin; import org.dmg.pmml.Euclidean; import org.dmg.pmml.Field; import org.dmg.pmml.FieldColumnPair; @@ -4155,7 +4146,7 @@ index 9c855e91bc..dd1de2f0d4 100644 import org.dmg.pmml.FieldRef; import org.dmg.pmml.InlineTable; import org.dmg.pmml.Interval; -@@ -86,8 +86,8 @@ import org.dmg.pmml.regression.NumericPredictor; +@@ -89,8 +89,8 @@ import org.dmg.pmml.regression.NumericPredictor; import org.dmg.pmml.regression.PredictorTerm; import org.dmg.pmml.regression.RegressionModel; import org.dmg.pmml.regression.RegressionTable; @@ -4166,7 +4157,7 @@ index 9c855e91bc..dd1de2f0d4 100644 import org.kie.pmml.api.enums.DATA_TYPE; import org.kie.pmml.api.enums.Named; import org.kie.pmml.api.enums.RESULT_FEATURE; -@@ -191,7 +191,7 @@ public class PMMLModelTestUtils { +@@ -194,7 +194,7 @@ public class PMMLModelTestUtils { miningSchema.addMiningFields(predictedMiningField); Output output = new Output(); OutputField outputField = new OutputField(); @@ -4175,7 +4166,7 @@ index 9c855e91bc..dd1de2f0d4 100644 outputField.setDataType(lastDataField.getDataType()); outputField.setOpType(getRandomOpType()); toReturn.setModelName(RandomStringUtils.random(6, true, false)); -@@ -219,7 +219,7 @@ public class PMMLModelTestUtils { +@@ -222,7 +222,7 @@ public class PMMLModelTestUtils { miningSchema.addMiningFields(predictedMiningField); Output output = new Output(); OutputField outputField = new OutputField(); @@ -4184,7 +4175,7 @@ index 9c855e91bc..dd1de2f0d4 100644 outputField.setDataType(lastDataField.getDataType()); outputField.setOpType(getRandomOpType()); toReturn.setModelName(RandomStringUtils.random(6, true, false)); -@@ -279,7 +279,7 @@ public class PMMLModelTestUtils { +@@ -282,7 +282,7 @@ public class PMMLModelTestUtils { public static CategoricalPredictor getCategoricalPredictor(String name, double value, double coefficient) { CategoricalPredictor toReturn = new CategoricalPredictor(); @@ -4193,7 +4184,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setValue(value); toReturn.setCoefficient(coefficient); return toReturn; -@@ -287,7 +287,7 @@ public class PMMLModelTestUtils { +@@ -290,7 +290,7 @@ public class PMMLModelTestUtils { public static NumericPredictor getNumericPredictor(String name, int exponent, double coefficient) { NumericPredictor toReturn = new NumericPredictor(); @@ -4202,7 +4193,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setExponent(exponent); toReturn.setCoefficient(coefficient); return toReturn; -@@ -295,7 +295,7 @@ public class PMMLModelTestUtils { +@@ -298,7 +298,7 @@ public class PMMLModelTestUtils { public static PredictorTerm getPredictorTerm(String name, double coefficient, List fieldRefNames) { PredictorTerm toReturn = new PredictorTerm(); @@ -4211,7 +4202,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setCoefficient(coefficient); toReturn.addFieldRefs(fieldRefNames.stream().map(PMMLModelTestUtils::getFieldRef).toArray(FieldRef[]::new)); return toReturn; -@@ -320,7 +320,7 @@ public class PMMLModelTestUtils { +@@ -323,7 +323,7 @@ public class PMMLModelTestUtils { public static DataField getDataField(String fieldName, OpType opType) { DataField toReturn = new DataField(); @@ -4220,7 +4211,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setOpType(opType); return toReturn; } -@@ -333,14 +333,14 @@ public class PMMLModelTestUtils { +@@ -336,14 +336,14 @@ public class PMMLModelTestUtils { public static MiningField getMiningField(String fieldName, MiningField.UsageType usageType) { MiningField toReturn = getRandomMiningField(); @@ -4237,7 +4228,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setOpType(opType); return toReturn; } -@@ -359,7 +359,7 @@ public class PMMLModelTestUtils { +@@ -362,7 +362,7 @@ public class PMMLModelTestUtils { public static DerivedField getDerivedField(String fieldName) { DerivedField toReturn = new DerivedField(); @@ -4246,7 +4237,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setDataType(getRandomDataType()); toReturn.setOpType(getRandomOpType()); Constant expression = new Constant(5); -@@ -383,7 +383,7 @@ public class PMMLModelTestUtils { +@@ -386,7 +386,7 @@ public class PMMLModelTestUtils { public static DataField getRandomDataField() { DataField toReturn = new DataField(); @@ -4255,7 +4246,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setDataType(getRandomDataType()); toReturn.setOpType(getRandomOpType()); IntStream.range(0, 3).forEach(i -> { -@@ -410,7 +410,7 @@ public class PMMLModelTestUtils { +@@ -413,7 +413,7 @@ public class PMMLModelTestUtils { public static MiningField getRandomMiningField() { Random random = new Random(); @@ -4264,7 +4255,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setInvalidValueTreatment(getRandomInvalidValueTreatmentMethod()); toReturn.setMissingValueTreatment(getRandomMissingValueTreatmentMethod()); toReturn.setOutlierTreatment(getRandomOutlierTreatmentMethod()); -@@ -433,13 +433,13 @@ public class PMMLModelTestUtils { +@@ -436,13 +436,13 @@ public class PMMLModelTestUtils { } public static OutputField getRandomOutputField() { @@ -4280,7 +4271,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setTargetField(fieldName); toReturn.setResultFeature(getRandomResultFeature()); toReturn.setExpression(getRandomConstant()); -@@ -449,7 +449,7 @@ public class PMMLModelTestUtils { +@@ -452,7 +452,7 @@ public class PMMLModelTestUtils { public static Target getRandomTarget() { Random random = new Random(); Target toReturn = new Target(); @@ -4289,7 +4280,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setOpType(getRandomOpType()); toReturn.setMax(random.nextInt(234)); toReturn.setMin(random.nextInt(23)); -@@ -473,7 +473,7 @@ public class PMMLModelTestUtils { +@@ -476,7 +476,7 @@ public class PMMLModelTestUtils { public static FieldColumnPair getRandomFieldColumnPair() { FieldColumnPair toReturn = new FieldColumnPair(); @@ -4298,7 +4289,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setColumn(RandomStringUtils.random(6, true, false)); return toReturn; } -@@ -490,7 +490,7 @@ public class PMMLModelTestUtils { +@@ -493,7 +493,7 @@ public class PMMLModelTestUtils { Random random = new Random(); ClusteringField toReturn = new ClusteringField(); toReturn.setCenterField(getRandomClusteringFieldCenterField()); @@ -4307,7 +4298,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setCompareFunction(getRandomCompareFunction()); toReturn.setFieldWeight(random.nextDouble()); toReturn.setComparisons(getRandomComparisons()); -@@ -528,7 +528,7 @@ public class PMMLModelTestUtils { +@@ -531,7 +531,7 @@ public class PMMLModelTestUtils { Discretize toReturn = new Discretize(); toReturn.setDataType(getRandomDataType()); toReturn.setDefaultValue(RandomStringUtils.random(6, true, false)); @@ -4316,7 +4307,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setMapMissingTo(RandomStringUtils.random(6, true, false)); IntStream.range(0, 3).forEach(i -> toReturn.addDiscretizeBins(getRandomDiscretizeBin())); return toReturn; -@@ -536,7 +536,7 @@ public class PMMLModelTestUtils { +@@ -539,7 +539,7 @@ public class PMMLModelTestUtils { public static FieldRef getRandomFieldRef() { FieldRef toReturn = new FieldRef(); @@ -4325,7 +4316,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setMapMissingTo(RandomStringUtils.random(6, true, false)); return toReturn; } -@@ -562,7 +562,7 @@ public class PMMLModelTestUtils { +@@ -565,7 +565,7 @@ public class PMMLModelTestUtils { double mapMissingTo = random.nextInt(100) / 10; NormContinuous toReturn = new NormContinuous(); IntStream.range(0, 3).forEach(i -> toReturn.addLinearNorms(getRandomLinearNorm())); @@ -4334,7 +4325,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setOutliers(getRandomOutlierTreatmentMethod()); toReturn.setMapMissingTo(mapMissingTo); return toReturn; -@@ -570,7 +570,7 @@ public class PMMLModelTestUtils { +@@ -573,7 +573,7 @@ public class PMMLModelTestUtils { public static NormDiscrete getRandomNormDiscrete() { NormDiscrete toReturn = new NormDiscrete(); @@ -4343,7 +4334,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setValue(getRandomObject(DataType.INTEGER)); toReturn.setMapMissingTo((Number) getRandomObject(DataType.INTEGER)); toReturn.setMethod(getRandomMethod()); -@@ -580,14 +580,14 @@ public class PMMLModelTestUtils { +@@ -583,14 +583,14 @@ public class PMMLModelTestUtils { public static TextIndex getRandomTextIndex() { Random random = new Random(); TextIndex toReturn = new TextIndex(); @@ -4360,7 +4351,7 @@ index 9c855e91bc..dd1de2f0d4 100644 IntStream.range(0, 3).forEach(i -> toReturn.addTextIndexNormalizations(getRandomTextIndexNormalization())); return toReturn; } -@@ -600,7 +600,7 @@ public class PMMLModelTestUtils { +@@ -603,7 +603,7 @@ public class PMMLModelTestUtils { } public static ParameterField getParameterField(String fieldName) { @@ -4369,7 +4360,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setDataType(getRandomDataType()); toReturn.setOpType(getRandomOpType()); toReturn.setDisplayName("Display-" + fieldName); -@@ -608,7 +608,7 @@ public class PMMLModelTestUtils { +@@ -611,7 +611,7 @@ public class PMMLModelTestUtils { } public static ParameterField getParameterField(String fieldName, DataType dataType) { @@ -4378,7 +4369,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setDataType(dataType); return toReturn; } -@@ -635,7 +635,7 @@ public class PMMLModelTestUtils { +@@ -638,7 +638,7 @@ public class PMMLModelTestUtils { public static SimplePredicate getSimplePredicate(final String predicateName, final Object value, final SimplePredicate.Operator operator) { @@ -4387,7 +4378,7 @@ index 9c855e91bc..dd1de2f0d4 100644 SimplePredicate toReturn = new SimplePredicate(); toReturn.setField(fieldName); toReturn.setOperator(operator); -@@ -654,7 +654,7 @@ public class PMMLModelTestUtils { +@@ -657,7 +657,7 @@ public class PMMLModelTestUtils { final Array.Type arrayType, final List values, final SimpleSetPredicate.BooleanOperator booleanOperator) { @@ -4396,7 +4387,7 @@ index 9c855e91bc..dd1de2f0d4 100644 SimpleSetPredicate toReturn = new SimpleSetPredicate(); toReturn.setField(fieldName); toReturn.setBooleanOperator(booleanOperator); -@@ -671,7 +671,7 @@ public class PMMLModelTestUtils { +@@ -674,7 +674,7 @@ public class PMMLModelTestUtils { } public static FieldRef getFieldRef(final String fieldName) { @@ -4405,7 +4396,7 @@ index 9c855e91bc..dd1de2f0d4 100644 } public static Object getRandomObject(DataType dataType) { -@@ -873,7 +873,7 @@ public class PMMLModelTestUtils { +@@ -876,7 +876,7 @@ public class PMMLModelTestUtils { public static ScoreDistribution getRandomPMMLScoreDistribution(Double probability) { Random random = new Random(); @@ -4414,7 +4405,7 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setValue(RandomStringUtils.random(6, true, false)); toReturn.setRecordCount(random.nextInt(100)); toReturn.setConfidence((double) random.nextInt(1) / 100); -@@ -925,7 +925,7 @@ public class PMMLModelTestUtils { +@@ -928,7 +928,7 @@ public class PMMLModelTestUtils { } public static SimplePredicate getRandomSimplePredicate() { @@ -4423,7 +4414,7 @@ index 9c855e91bc..dd1de2f0d4 100644 SimplePredicate toReturn = new SimplePredicate(); toReturn.setField(fieldName); toReturn.setOperator(getRandomSimplePredicateOperator()); -@@ -945,7 +945,7 @@ public class PMMLModelTestUtils { +@@ -948,7 +948,7 @@ public class PMMLModelTestUtils { } public static SimpleSetPredicate getRandomSimpleSetPredicate() { @@ -4433,10 +4424,10 @@ index 9c855e91bc..dd1de2f0d4 100644 toReturn.setField(fieldName); toReturn.setBooleanOperator(getRandomSimpleSetPredicateOperator()); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java -index 8dd030ef3d..28334005b7 100644 +index cbf3518fac..a5ee7e7868 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java -@@ -34,7 +34,6 @@ import org.dmg.pmml.DataField; +@@ -36,7 +36,6 @@ import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; import org.dmg.pmml.DerivedField; import org.dmg.pmml.Field; @@ -4444,7 +4435,7 @@ index 8dd030ef3d..28334005b7 100644 import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningSchema; import org.dmg.pmml.Model; -@@ -45,8 +44,8 @@ import org.dmg.pmml.Row; +@@ -47,8 +46,8 @@ import org.dmg.pmml.Row; import org.dmg.pmml.Target; import org.dmg.pmml.Targets; import org.dmg.pmml.regression.RegressionModel; @@ -4455,7 +4446,7 @@ index 8dd030ef3d..28334005b7 100644 import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.DATA_TYPE; import org.kie.pmml.api.enums.FIELD_USAGE_TYPE; -@@ -196,10 +195,10 @@ public class ModelUtilsTest { +@@ -198,10 +197,10 @@ public class ModelUtilsTest { retrieved.forEach(kiePMMLNameOpType -> { assertThat(miningSchema.getMiningFields() .stream() @@ -4468,7 +4459,7 @@ index 8dd030ef3d..28334005b7 100644 .findFirst(); assertThat(optionalDataField).isPresent(); DataField dataField = optionalDataField.get(); -@@ -228,7 +227,7 @@ public class ModelUtilsTest { +@@ -230,7 +229,7 @@ public class ModelUtilsTest { retrieved.forEach(kiePMMLNameOpType -> { Optional optionalMiningField = miningSchema.getMiningFields() .stream() @@ -4477,7 +4468,7 @@ index 8dd030ef3d..28334005b7 100644 .findFirst(); assertThat(optionalMiningField).isPresent(); MiningField miningField = optionalMiningField.get(); -@@ -261,7 +260,7 @@ public class ModelUtilsTest { +@@ -263,7 +262,7 @@ public class ModelUtilsTest { retrieved.forEach(kiePMMLNameOpType -> { Optional optionalMiningField = miningSchema.getMiningFields() .stream() @@ -4486,7 +4477,7 @@ index 8dd030ef3d..28334005b7 100644 .findFirst(); assertThat(optionalMiningField).isPresent(); MiningField miningField = optionalMiningField.get(); -@@ -294,7 +293,7 @@ public class ModelUtilsTest { +@@ -296,7 +295,7 @@ public class ModelUtilsTest { retrieved.forEach(kiePMMLNameOpType -> { Optional optionalTarget = targets.getTargets() .stream() @@ -4495,7 +4486,7 @@ index 8dd030ef3d..28334005b7 100644 .findFirst(); assertThat(optionalTarget).isPresent(); Target target = optionalTarget.get(); -@@ -311,7 +310,7 @@ public class ModelUtilsTest { +@@ -313,7 +312,7 @@ public class ModelUtilsTest { IntStream.range(0, 3).forEach(i -> { final DataField dataField = getRandomDataField(); dataDictionary.addDataFields(dataField); @@ -4504,7 +4495,7 @@ index 8dd030ef3d..28334005b7 100644 MiningField.UsageType.PREDICTED); miningSchema.addMiningFields(miningField); }); -@@ -341,7 +340,7 @@ public class ModelUtilsTest { +@@ -343,7 +342,7 @@ public class ModelUtilsTest { IntStream.range(0, 3).forEach(i -> { final DataField dataField = getRandomDataField(); dataDictionary.addDataFields(dataField); @@ -4513,7 +4504,7 @@ index 8dd030ef3d..28334005b7 100644 MiningField.UsageType.ACTIVE); miningSchema.addMiningFields(miningField); }); -@@ -360,10 +359,10 @@ public class ModelUtilsTest { +@@ -362,10 +361,10 @@ public class ModelUtilsTest { IntStream.range(0, 3).forEach(i -> { final DataField dataField = getRandomDataField(); dataDictionary.addDataFields(dataField); @@ -4526,7 +4517,7 @@ index 8dd030ef3d..28334005b7 100644 targets.addTargets(targetField); }); model.setMiningSchema(miningSchema); -@@ -386,8 +385,7 @@ public class ModelUtilsTest { +@@ -388,8 +387,7 @@ public class ModelUtilsTest { dataDictionary.getDataFields().forEach(dataField -> { OP_TYPE retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpType(getFieldsFromDataDictionary(dataDictionary), @@ -4536,7 +4527,7 @@ index 8dd030ef3d..28334005b7 100644 assertThat(retrieved).isNotNull(); OP_TYPE expected = OP_TYPE.byName(dataField.getOpType().value()); assertThat(retrieved).isEqualTo(expected); -@@ -402,7 +400,7 @@ public class ModelUtilsTest { +@@ -404,7 +402,7 @@ public class ModelUtilsTest { IntStream.range(0, 3).forEach(i -> { String fieldName = "field" + i; final DataField dataField = getRandomDataField(); @@ -4545,7 +4536,7 @@ index 8dd030ef3d..28334005b7 100644 dataDictionary.addDataFields(dataField); }); org.kie.pmml.compiler.api.utils.ModelUtils.getOpType(getFieldsFromDataDictionary(dataDictionary), model, -@@ -426,8 +424,7 @@ public class ModelUtilsTest { +@@ -428,8 +426,7 @@ public class ModelUtilsTest { miningSchema.getMiningFields().forEach(miningField -> { OP_TYPE retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpType(getFieldsFromDataDictionary(dataDictionary), @@ -4555,7 +4546,7 @@ index 8dd030ef3d..28334005b7 100644 assertThat(retrieved).isNotNull(); OP_TYPE expected = OP_TYPE.byName(miningField.getOpType().value()); assertThat(retrieved).isEqualTo(expected); -@@ -443,7 +440,7 @@ public class ModelUtilsTest { +@@ -445,7 +442,7 @@ public class ModelUtilsTest { IntStream.range(0, 3).forEach(i -> { String fieldName = "field" + i; final DataField dataField = getRandomDataField(); @@ -4564,7 +4555,7 @@ index 8dd030ef3d..28334005b7 100644 dataDictionary.addDataFields(dataField); final MiningField miningField = getRandomMiningField(); miningField.setName(dataField.getName()); -@@ -477,8 +474,7 @@ public class ModelUtilsTest { +@@ -479,8 +476,7 @@ public class ModelUtilsTest { targets.getTargets().forEach(target -> { OP_TYPE retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getOpType(getFieldsFromDataDictionary(dataDictionary), @@ -4574,7 +4565,7 @@ index 8dd030ef3d..28334005b7 100644 assertThat(retrieved).isNotNull(); OP_TYPE expected = OP_TYPE.byName(target.getOpType().value()); assertThat(retrieved).isEqualTo(expected); -@@ -495,7 +491,7 @@ public class ModelUtilsTest { +@@ -497,7 +493,7 @@ public class ModelUtilsTest { IntStream.range(0, 3).forEach(i -> { String fieldName = "field" + i; final DataField dataField = getRandomDataField(); @@ -4583,7 +4574,7 @@ index 8dd030ef3d..28334005b7 100644 dataDictionary.addDataFields(dataField); final MiningField miningField = getRandomMiningField(); miningField.setName(dataField.getName()); -@@ -528,8 +524,7 @@ public class ModelUtilsTest { +@@ -530,8 +526,7 @@ public class ModelUtilsTest { fields.clear(); fields.addAll(getFieldsFromDataDictionary(dataDictionary)); dataDictionary.getDataFields().forEach(dataField -> { @@ -4593,7 +4584,7 @@ index 8dd030ef3d..28334005b7 100644 assertThat(retrieved).isNotNull(); assertThat(retrieved).isPresent(); OP_TYPE expected = OP_TYPE.byName(dataField.getOpType().value()); -@@ -552,8 +547,7 @@ public class ModelUtilsTest { +@@ -554,8 +549,7 @@ public class ModelUtilsTest { }); miningSchema.getMiningFields().forEach(miningField -> { Optional retrieved = @@ -4603,7 +4594,7 @@ index 8dd030ef3d..28334005b7 100644 assertThat(retrieved).isNotNull(); assertThat(retrieved).isPresent(); OP_TYPE expected = OP_TYPE.byName(miningField.getOpType().value()); -@@ -575,8 +569,7 @@ public class ModelUtilsTest { +@@ -577,8 +571,7 @@ public class ModelUtilsTest { targets.addTargets(target); }); targets.getTargets().forEach(target -> { @@ -4613,7 +4604,7 @@ index 8dd030ef3d..28334005b7 100644 assertThat(retrieved).isNotNull(); assertThat(retrieved).isPresent(); OP_TYPE expected = OP_TYPE.byName(target.getOpType().value()); -@@ -595,7 +588,7 @@ public class ModelUtilsTest { +@@ -597,7 +590,7 @@ public class ModelUtilsTest { .stream() .map(dataField -> { DerivedField toReturn = new DerivedField(); @@ -4622,7 +4613,7 @@ index 8dd030ef3d..28334005b7 100644 DataType dataType = getRandomDataType(); while (dataType.equals(dataField.getDataType())) { dataType = getRandomDataType(); -@@ -612,14 +605,14 @@ public class ModelUtilsTest { +@@ -614,14 +607,14 @@ public class ModelUtilsTest { .map(Field.class::cast) .forEach(fields::add); dataDictionary.getDataFields().forEach(dataField -> { @@ -4639,7 +4630,7 @@ index 8dd030ef3d..28334005b7 100644 DataType retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.getDataType(fields, fieldName); assertThat(retrieved).isNotNull(); DataType expected = derivedField.getDataType(); -@@ -636,7 +629,7 @@ public class ModelUtilsTest { +@@ -638,7 +631,7 @@ public class ModelUtilsTest { }); dataDictionary.getDataFields().forEach(dataField -> { DATA_TYPE retrieved = @@ -4648,7 +4639,7 @@ index 8dd030ef3d..28334005b7 100644 assertThat(retrieved).isNotNull(); DATA_TYPE expected = DATA_TYPE.byName(dataField.getDataType().value()); assertThat(retrieved).isEqualTo(expected); -@@ -650,7 +643,7 @@ public class ModelUtilsTest { +@@ -652,7 +645,7 @@ public class ModelUtilsTest { IntStream.range(0, 3).forEach(i -> { String fieldName = "field" + i; final DataField dataField = getRandomDataField(); @@ -4657,7 +4648,7 @@ index 8dd030ef3d..28334005b7 100644 dataDictionary.addDataFields(dataField); }); org.kie.pmml.compiler.api.utils.ModelUtils.getDATA_TYPE(getFieldsFromDataDictionary(dataDictionary), -@@ -716,12 +709,12 @@ public class ModelUtilsTest { +@@ -718,12 +711,12 @@ public class ModelUtilsTest { org.kie.pmml.api.models.OutputField retrieved = org.kie.pmml.compiler.api.utils.ModelUtils.convertToKieOutputField(toConvert, null); assertThat(retrieved).isNotNull(); @@ -4673,10 +4664,10 @@ index 8dd030ef3d..28334005b7 100644 assertThat(retrieved.getResultFeature()).isEqualTo(expectedResultFeature); toConvert.setOpType(null); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java -index b0a57eebda..4aee65cbc7 100644 +index 0267b4f905..4cc3591f28 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java -@@ -81,7 +81,7 @@ public class KiePMMLDerivedFieldFactory { +@@ -84,7 +84,7 @@ public class KiePMMLDerivedFieldFactory { final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); final Expression dataTypeExpression = getExpressionForDataType(derivedField.getDataType()); final Expression opTypeExpression = getExpressionForOpType(derivedField.getOpType()); @@ -4686,10 +4677,10 @@ index b0a57eebda..4aee65cbc7 100644 builder.setArgument(3, opTypeExpression); builder.setArgument(4, new NameExpr(nestedVariableName)); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java -index f740a025ab..276205279d 100644 +index 302047678f..0a3e7e371f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java -@@ -85,7 +85,7 @@ public class KiePMMLDiscretizeFactory { +@@ -88,7 +88,7 @@ public class KiePMMLDiscretizeFactory { .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, DISCRETIZE, toReturn))) .asObjectCreationExpr(); @@ -4699,10 +4690,10 @@ index f740a025ab..276205279d 100644 final Expression defaultValueExpr = getExpressionForObject(discretize.getDefaultValue()); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java -index 1a6854dc37..d0c9299e4f 100644 +index 727090cd0b..d948a4bc93 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java -@@ -67,7 +67,7 @@ public class KiePMMLFieldColumnPairFactory { +@@ -70,7 +70,7 @@ public class KiePMMLFieldColumnPairFactory { final ObjectCreationExpr objectCreationExpr = variableDeclarator.getInitializer() .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, FIELDCOLUMNPAIR, toReturn))) .asObjectCreationExpr(); @@ -4712,10 +4703,10 @@ index 1a6854dc37..d0c9299e4f 100644 return toReturn; } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java -index 8404131f4d..2fe5206fe1 100644 +index 33b40939dc..11276c4ce6 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java -@@ -70,7 +70,7 @@ public class KiePMMLFieldRefFactory { +@@ -73,7 +73,7 @@ public class KiePMMLFieldRefFactory { FIELD_REF, toReturn))) .asObjectCreationExpr(); @@ -4725,10 +4716,10 @@ index 8404131f4d..2fe5206fe1 100644 objectCreationExpr.getArguments().set(0, nameExpr); objectCreationExpr.getArguments().set(2, mapMissingToExpr); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java -index 5a1026b9be..409f799bb4 100644 +index 9f68eeeba6..7e9865ed1d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java -@@ -85,7 +85,7 @@ public class KiePMMLMiningFieldFactory { +@@ -88,7 +88,7 @@ public class KiePMMLMiningFieldFactory { MININGFIELD, toReturn))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); @@ -4737,7 +4728,7 @@ index 5a1026b9be..409f799bb4 100644 Expression fieldUsageTypeExpr; if (miningField.getUsageType() != null) { final FIELD_USAGE_TYPE fieldUsageType = FIELD_USAGE_TYPE.byName(miningField.getUsageType().value()); -@@ -100,8 +100,8 @@ public class KiePMMLMiningFieldFactory { +@@ -103,8 +103,8 @@ public class KiePMMLMiningFieldFactory { } else { opTypeExpr = new NullLiteralExpr(); } @@ -4748,7 +4739,7 @@ index 5a1026b9be..409f799bb4 100644 final DATA_TYPE data_TYPE = DATA_TYPE.byName(dataType.value()); Expression dataTypeExpr = new NameExpr(DATA_TYPE.class.getName() + "." + data_TYPE.name()); Expression missingValueTreatmentMethodExpr; -@@ -169,7 +169,7 @@ public class KiePMMLMiningFieldFactory { +@@ -172,7 +172,7 @@ public class KiePMMLMiningFieldFactory { private static List> getMappedFields(final List> fields, final String fieldName) { return fields.stream() @@ -4758,10 +4749,10 @@ index 5a1026b9be..409f799bb4 100644 } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java -index 41b5b046af..d3b6513707 100644 +index 32b0378c4d..ae7296e360 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java -@@ -611,7 +611,7 @@ public class KiePMMLModelFactoryUtils { +@@ -614,7 +614,7 @@ public class KiePMMLModelFactoryUtils { BlockStmt body = new BlockStmt(); NodeList arguments = new NodeList<>(); for (org.dmg.pmml.MiningField miningField : miningFields) { @@ -4770,7 +4761,7 @@ index 41b5b046af..d3b6513707 100644 BlockStmt toAdd = getMiningFieldVariableDeclaration(miningFieldVariableName, miningField, fields); toAdd.getStatements().forEach(body::addStatement); arguments.add(new NameExpr(miningFieldVariableName)); -@@ -631,7 +631,7 @@ public class KiePMMLModelFactoryUtils { +@@ -634,7 +634,7 @@ public class KiePMMLModelFactoryUtils { BlockStmt body = new BlockStmt(); NodeList arguments = new NodeList<>(); for (org.dmg.pmml.OutputField outputField : outputFields) { @@ -4780,10 +4771,10 @@ index 41b5b046af..d3b6513707 100644 toAdd.getStatements().forEach(body::addStatement); arguments.add(new NameExpr(outputFieldVariableName)); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java -index 41b6d2292b..fe96b29fae 100644 +index c060b2b834..5dbee1419c 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java -@@ -77,7 +77,7 @@ public class KiePMMLNormContinuousFactory { +@@ -80,7 +80,7 @@ public class KiePMMLNormContinuousFactory { NORM_CONTINUOUS, toReturn))) .asObjectCreationExpr(); @@ -4793,10 +4784,10 @@ index 41b6d2292b..fe96b29fae 100644 OUTLIER_TREATMENT_METHOD.byName(normContinuous.getOutliers().value()); final NameExpr outlierTreatmentMethodExpr = diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java -index a3dfadc05b..ce6dfdf09b 100644 +index 4db24f7ac2..c3aa7ee0cb 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java -@@ -71,7 +71,7 @@ public class KiePMMLNormDiscreteFactory { +@@ -74,7 +74,7 @@ public class KiePMMLNormDiscreteFactory { NORM_DISCRETE, toReturn))) .asObjectCreationExpr(); @@ -4806,10 +4797,10 @@ index a3dfadc05b..ce6dfdf09b 100644 final Expression mapMissingToExpr = getExpressionForObject(normDiscrete.getMapMissingTo()); objectCreationExpr.getArguments().set(0, nameExpr); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java -index 03ac64ec84..5dc5a651fc 100644 +index 3f375480d1..e14ccbce9b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java -@@ -78,10 +78,10 @@ public class KiePMMLOutputFieldFactory { +@@ -81,10 +81,10 @@ public class KiePMMLOutputFieldFactory { .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, OUTPUTFIELD, toReturn))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); @@ -4823,10 +4814,10 @@ index 03ac64ec84..5dc5a651fc 100644 final Expression dataTypeExpression = getExpressionForDataType(outputField.getDataType()); final Expression rankExpr = outputField.getRank() != null ? getExpressionForObject(outputField.getRank()) : new NullLiteralExpr(); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java -index 364a781216..0c40c78ee6 100644 +index c7d22413fa..b99982cd7b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java -@@ -70,7 +70,7 @@ public class KiePMMLParameterFieldFactory { +@@ -73,7 +73,7 @@ public class KiePMMLParameterFieldFactory { .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, PARAMETER_FIELD, toReturn))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); @@ -4836,10 +4827,10 @@ index 364a781216..0c40c78ee6 100644 final Expression opTypeExpression = getExpressionForOpType(parameterField.getOpType()); getChainedMethodCallExprFrom("withDataType", initializer).setArgument(0, dataTypeExpression); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java -index acbd5765a4..61cbf6b8b2 100644 +index 544619f337..1c45d74aa2 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java -@@ -82,9 +82,9 @@ public class KiePMMLSimplePredicateFactory { +@@ -85,9 +85,9 @@ public class KiePMMLSimplePredicateFactory { .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, SIMPLE_PREDICATE, simplePredicateBody))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); @@ -4852,10 +4843,10 @@ index acbd5765a4..61cbf6b8b2 100644 getChainedMethodCallExprFrom("withValue", initializer).setArgument(0, getExpressionForObject(actualValue)); simplePredicateBody.getStatements().forEach(toReturn::addStatement); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java -index 078b865fb1..5cb84d6694 100644 +index d8e41815bd..b70c5d89e3 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java -@@ -87,7 +87,7 @@ public class KiePMMLSimpleSetPredicateFactory { +@@ -90,7 +90,7 @@ public class KiePMMLSimpleSetPredicateFactory { .orElseThrow(() -> new KiePMMLException(String.format(MISSING_VARIABLE_INITIALIZER_TEMPLATE, SIMPLESET_PREDICATE, simpleSetPredicateBody))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); @@ -4865,10 +4856,10 @@ index 078b865fb1..5cb84d6694 100644 builder.setArgument(3, inNotInExpr); getChainedMethodCallExprFrom("asList", initializer).setArguments(arguments); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java -index 1f8247c345..c94064c6da 100644 +index 45d387b36f..a9121d02fe 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java -@@ -98,7 +98,7 @@ public class KiePMMLTextIndexFactory { +@@ -101,7 +101,7 @@ public class KiePMMLTextIndexFactory { TEXTINDEX, toReturn))) .asMethodCallExpr(); final MethodCallExpr builder = getChainedMethodCallExprFrom("builder", initializer); @@ -4878,10 +4869,10 @@ index 1f8247c345..c94064c6da 100644 builder.setArgument(0, nameExpr); builder.setArgument(2, expressionExpr); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java -index 5d2d2d8d57..cdafde8db9 100644 +index 836c102204..a25397bd89 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java -@@ -49,10 +49,9 @@ public class KiePMMLDerivedFieldInstanceFactory { +@@ -52,10 +52,9 @@ public class KiePMMLDerivedFieldInstanceFactory { static KiePMMLDerivedField getKiePMMLDerivedField(final DerivedField derivedField, final List> fields) { @@ -4895,10 +4886,10 @@ index 5d2d2d8d57..cdafde8db9 100644 DATA_TYPE.byName(dataType.value()), opType, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java -index 5ee6792fcb..9d6de34f7f 100644 +index 43cbb224b8..2f862a685d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java -@@ -43,7 +43,7 @@ public class KiePMMLDiscretizeInstanceFactory { +@@ -46,7 +46,7 @@ public class KiePMMLDiscretizeInstanceFactory { String defaultValue = discretize.getDefaultValue() != null ? discretize.getDefaultValue().toString() : null; DATA_TYPE dataType = discretize.getDataType() != null ? DATA_TYPE.byName(discretize.getDataType().value()) : null; @@ -4908,10 +4899,10 @@ index 5ee6792fcb..9d6de34f7f 100644 discretizeBins, mapMissingTo, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java -index a659b870fa..7741a23b4a 100644 +index 5ba7d7924d..d70badd561 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java -@@ -38,7 +38,7 @@ public class KiePMMLFieldColumnPairInstanceFactory { +@@ -41,7 +41,7 @@ public class KiePMMLFieldColumnPairInstanceFactory { } static KiePMMLFieldColumnPair getKiePMMLFieldColumnPair(final FieldColumnPair fieldColumnPair) { @@ -4921,10 +4912,10 @@ index a659b870fa..7741a23b4a 100644 fieldColumnPair.getColumn()); } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactory.java -index a1cd31b3c5..eea09d4075 100644 +index a7d5881828..6c856f6cab 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactory.java -@@ -29,7 +29,7 @@ public class KiePMMLFieldRefInstanceFactory { +@@ -32,7 +32,7 @@ public class KiePMMLFieldRefInstanceFactory { } static KiePMMLFieldRef getKiePMMLFieldRef(final FieldRef fieldRef) { @@ -4934,10 +4925,10 @@ index a1cd31b3c5..eea09d4075 100644 fieldRef.getMapMissingTo()); } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactory.java -index 1958cda8b4..dc67da9eca 100644 +index 30e28dfe79..93f626718d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactory.java -@@ -42,7 +42,7 @@ public class KiePMMLMiningFieldInstanceFactory { +@@ -45,7 +45,7 @@ public class KiePMMLMiningFieldInstanceFactory { } public static KiePMMLMiningField getKiePMMLMiningField(final MiningField toConvert, final Field field) { @@ -4947,10 +4938,10 @@ index 1958cda8b4..dc67da9eca 100644 FIELD_USAGE_TYPE.byName(toConvert.getUsageType().value()) : null; final OP_TYPE opType = toConvert.getOpType() != null ? OP_TYPE.byName(toConvert.getOpType().value()) : null; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java -index a393a96644..cbcaf48c94 100644 +index d659f76aae..1fd3cb11cd 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java -@@ -40,7 +40,7 @@ public class KiePMMLNormContinuousInstanceFactory { +@@ -43,7 +43,7 @@ public class KiePMMLNormContinuousInstanceFactory { final List linearNorms = normContinuous.hasLinearNorms() ? getKiePMMLLinearNorms(normContinuous.getLinearNorms()) : Collections.emptyList(); final OUTLIER_TREATMENT_METHOD outlierTreatmentMethod = normContinuous.getOutliers() != null ? OUTLIER_TREATMENT_METHOD.byName(normContinuous.getOutliers().value()) : null; @@ -4960,10 +4951,10 @@ index a393a96644..cbcaf48c94 100644 } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java -index 875056d14f..80c5f58f6c 100644 +index f887761703..2c63c82f3f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java -@@ -35,7 +35,7 @@ public class KiePMMLNormDiscreteInstanceFactory { +@@ -38,7 +38,7 @@ public class KiePMMLNormDiscreteInstanceFactory { static KiePMMLNormDiscrete getKiePMMLNormDiscrete(final NormDiscrete normDiscrete) { List extensions = getKiePMMLExtensions(normDiscrete.getExtensions()); @@ -4973,10 +4964,10 @@ index 875056d14f..80c5f58f6c 100644 normDiscrete.getValue().toString(), normDiscrete.getMapMissingTo()); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java -index adf65610e8..7e85bfe54b 100644 +index 91804ffa9e..21f7080d22 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java -@@ -35,8 +35,8 @@ public class KiePMMLOutputFieldInstanceFactory { +@@ -38,8 +38,8 @@ public class KiePMMLOutputFieldInstanceFactory { } public static KiePMMLOutputField getKiePMMLOutputField(final OutputField outputField) { @@ -4988,10 +4979,10 @@ index adf65610e8..7e85bfe54b 100644 final RESULT_FEATURE resultFeature = outputField.getResultFeature() != null ? RESULT_FEATURE.byName(outputField.getResultFeature().value()) : null; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java -index 71e65adf8e..4a5527eeac 100644 +index 5b946d1d61..a2abeb7306 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java -@@ -44,7 +44,7 @@ public class KiePMMLParameterFieldInstanceFactory { +@@ -47,7 +47,7 @@ public class KiePMMLParameterFieldInstanceFactory { DATA_TYPE dataType = parameterField.getDataType() != null ? DATA_TYPE.byName(parameterField.getDataType().value()) : null; OP_TYPE opType = parameterField.getOpType() != null ? OP_TYPE.byName(parameterField.getOpType().value()) : null; @@ -5001,10 +4992,10 @@ index 71e65adf8e..4a5527eeac 100644 .withDataType(dataType) .withOpType(opType) diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java -index 60d10d26e3..94e7f67abb 100644 +index 922bbbc043..8ce616753d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java -@@ -41,9 +41,9 @@ public class KiePMMLSimplePredicateInstanceFactory { +@@ -44,9 +44,9 @@ public class KiePMMLSimplePredicateInstanceFactory { static KiePMMLSimplePredicate getKiePMMLSimplePredicate(final SimplePredicate simplePredicate, final List> fields) { final List kiePMMLExtensions = getKiePMMLExtensions(simplePredicate.getExtensions()); @@ -5017,10 +5008,10 @@ index 60d10d26e3..94e7f67abb 100644 OPERATOR.byName(simplePredicate.getOperator().value())) .withValue(value) diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java -index 70871ada4f..cfeeb80dde 100644 +index b5bec302aa..9d23fb0b55 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java -@@ -34,7 +34,7 @@ public class KiePMMLSimpleSetPredicateInstanceFactory { +@@ -37,7 +37,7 @@ public class KiePMMLSimpleSetPredicateInstanceFactory { } static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(final SimpleSetPredicate simpleSetPredicate) { @@ -5030,10 +5021,10 @@ index 70871ada4f..cfeeb80dde 100644 ARRAY_TYPE.byName(simpleSetPredicate.getArray().getType().value()), IN_NOTIN.byName(simpleSetPredicate.getBooleanOperator().value())) diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java -index 40ae1e73c9..088b09c975 100644 +index 5aa4483c38..fae20d1f3c 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java -@@ -42,7 +42,7 @@ public class KiePMMLTargetInstanceFactory { +@@ -45,7 +45,7 @@ public class KiePMMLTargetInstanceFactory { .map(KiePMMLTargetInstanceFactory::getKieTargetValue) .collect(Collectors.toList()) : Collections.emptyList(); final OP_TYPE opType = target.getOpType() != null ? OP_TYPE.byName(target.getOpType().value()) : null; @@ -5043,10 +5034,10 @@ index 40ae1e73c9..088b09c975 100644 CAST_INTEGER.byName(target.getCastInteger().value()) : null; TargetField targetField = new TargetField(targetValues, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java -index a2efd17595..9e133499b7 100644 +index e946b3b40a..3a814d5209 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java -@@ -42,7 +42,7 @@ public class KiePMMLTextIndexInstanceFactory { +@@ -45,7 +45,7 @@ public class KiePMMLTextIndexInstanceFactory { COUNT_HITS.byName(textIndex.getCountHits().value()) : null; final String wordSeparatorCharacterRE = textIndex.getWordSeparatorCharacterRE() != null ? StringEscapeUtils.escapeJava(textIndex.getWordSeparatorCharacterRE()) : null; @@ -5056,10 +5047,10 @@ index a2efd17595..9e133499b7 100644 getKiePMMLExpression(textIndex.getExpression())) .withTextIndexNormalizations(getKiePMMLTextIndexNormalizations(textIndex.getTextIndexNormalizations())) diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java -index 7bee48918d..0bca6aa64f 100644 +index ee967bc5c3..62bc2580d7 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java -@@ -21,11 +21,10 @@ import java.util.List; +@@ -24,11 +24,10 @@ import java.util.List; import java.util.Optional; import java.util.stream.Collectors; @@ -5072,7 +5063,7 @@ index 7bee48918d..0bca6aa64f 100644 import org.dmg.pmml.MathContext; import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningFunction; -@@ -166,7 +165,7 @@ public class KiePMMLUtil { +@@ -169,7 +168,7 @@ public class KiePMMLUtil { String cleanedName = model.getModelName().replaceAll("[^A-Za-z0-9]", ""); String fieldName = String.format(TARGETFIELD_TEMPLATE, cleanedName); DataField toReturn = new DataField(); @@ -5081,7 +5072,7 @@ index 7bee48918d..0bca6aa64f 100644 toReturn.setOpType(targetOpType); toReturn.setDataType(targetDataType); return Optional.of(toReturn); -@@ -338,7 +337,7 @@ public class KiePMMLUtil { +@@ -341,7 +340,7 @@ public class KiePMMLUtil { .filter(targetField -> outputField.getTargetField().equals(targetField.getName())) .findFirst() .orElseThrow(() -> new KiePMMLException("Failed to find a target field for OutputField " @@ -5090,7 +5081,7 @@ index 7bee48918d..0bca6aa64f 100644 } if (referencedField == null && (outputField.getResultFeature() == null || outputField.getResultFeature().equals(ResultFeature.PREDICTED_VALUE))) { // default predictedValue referencedField = targetFields.stream() -@@ -351,7 +350,7 @@ public class KiePMMLUtil { +@@ -354,7 +353,7 @@ public class KiePMMLUtil { return; } if (referencedField != null) { @@ -5100,10 +5091,10 @@ index 7bee48918d..0bca6aa64f 100644 .filter(df -> df.getName().equals(targetFieldName)) .findFirst() diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java -index 3d9f631222..52db2a9ae3 100644 +index 6ff7acc2c1..d9c225cee1 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java -@@ -25,7 +25,6 @@ import com.github.javaparser.ast.stmt.BlockStmt; +@@ -27,7 +27,6 @@ import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.Apply; import org.dmg.pmml.Constant; @@ -5111,7 +5102,7 @@ index 3d9f631222..52db2a9ae3 100644 import org.dmg.pmml.FieldRef; import org.dmg.pmml.InvalidValueTreatmentMethod; import org.junit.jupiter.api.Test; -@@ -89,9 +88,9 @@ public class KiePMMLApplyFactoryTest { +@@ -91,9 +90,9 @@ public class KiePMMLApplyFactoryTest { InvalidValueTreatmentMethod invalidValueTreatmentMethod = InvalidValueTreatmentMethod.AS_MISSING; apply.setInvalidValueTreatment(invalidValueTreatmentMethod); FieldRef fieldRef1 = new FieldRef(); @@ -5123,7 +5114,7 @@ index 3d9f631222..52db2a9ae3 100644 apply.addExpressions(fieldRef1, fieldRef2); BlockStmt retrieved = org.kie.pmml.compiler.commons.codegenfactories.KiePMMLApplyFactory.getApplyVariableDeclaration(variableName, apply); -@@ -117,9 +116,9 @@ public class KiePMMLApplyFactoryTest { +@@ -119,9 +118,9 @@ public class KiePMMLApplyFactoryTest { InvalidValueTreatmentMethod nestedInvalidValueTreatmentMethod = InvalidValueTreatmentMethod.AS_MISSING; nestedApply.setInvalidValueTreatment(nestedInvalidValueTreatmentMethod); FieldRef fieldRef1 = new FieldRef(); @@ -5136,10 +5127,10 @@ index 3d9f631222..52db2a9ae3 100644 Apply apply = new Apply(); apply.setFunction(function); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java -index 81541acf23..1f65911c7a 100644 +index d136aa7b63..b54f075e5c 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java -@@ -27,7 +27,6 @@ import org.dmg.pmml.Apply; +@@ -29,7 +29,6 @@ import org.dmg.pmml.Apply; import org.dmg.pmml.Constant; import org.dmg.pmml.DataType; import org.dmg.pmml.DefineFunction; @@ -5147,7 +5138,7 @@ index 81541acf23..1f65911c7a 100644 import org.dmg.pmml.FieldRef; import org.dmg.pmml.OpType; import org.dmg.pmml.ParameterField; -@@ -55,18 +54,18 @@ public class KiePMMLDefineFunctionFactoryTest { +@@ -57,18 +56,18 @@ public class KiePMMLDefineFunctionFactoryTest { @Test void getDefineFunctionVariableDeclaration() throws IOException { @@ -5169,7 +5160,7 @@ index 81541acf23..1f65911c7a 100644 Apply apply = new Apply(); apply.setFunction("/"); apply.addExpressions(constant, fieldRef); -@@ -85,17 +84,14 @@ public class KiePMMLDefineFunctionFactoryTest { +@@ -87,17 +86,14 @@ public class KiePMMLDefineFunctionFactoryTest { BlockStmt retrieved = KiePMMLDefineFunctionFactory.getDefineFunctionVariableDeclaration(defineFunction); String text = getFileContent(TEST_01_SOURCE); Statement expected = JavaParserUtils @@ -5191,10 +5182,10 @@ index 81541acf23..1f65911c7a 100644 apply.getInvalidValueTreatment().value(), dataType3, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java -index 9c0deb97cc..5c0de1d0d0 100644 +index 83cf1f84aa..4bd5621a83 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java -@@ -27,7 +27,6 @@ import org.dmg.pmml.Apply; +@@ -29,7 +29,6 @@ import org.dmg.pmml.Apply; import org.dmg.pmml.Constant; import org.dmg.pmml.DataType; import org.dmg.pmml.DerivedField; @@ -5202,7 +5193,7 @@ index 9c0deb97cc..5c0de1d0d0 100644 import org.dmg.pmml.FieldRef; import org.dmg.pmml.OpType; import org.junit.jupiter.api.Test; -@@ -59,7 +58,7 @@ public class KiePMMLDerivedFieldFactoryTest { +@@ -61,7 +60,7 @@ public class KiePMMLDerivedFieldFactoryTest { Constant constant = new Constant(); constant.setValue(value1); DerivedField derivedField = new DerivedField(); @@ -5211,7 +5202,7 @@ index 9c0deb97cc..5c0de1d0d0 100644 derivedField.setDataType(DataType.DOUBLE); derivedField.setOpType(OpType.CONTINUOUS); derivedField.setExpression(constant); -@@ -70,8 +69,7 @@ public class KiePMMLDerivedFieldFactoryTest { +@@ -72,8 +71,7 @@ public class KiePMMLDerivedFieldFactoryTest { String text = getFileContent(TEST_01_SOURCE); Statement expected = JavaParserUtils .parseBlock(String.format(text, constant.getValue(), @@ -5221,7 +5212,7 @@ index 9c0deb97cc..5c0de1d0d0 100644 dataType, opType)); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); -@@ -85,9 +83,9 @@ public class KiePMMLDerivedFieldFactoryTest { +@@ -87,9 +85,9 @@ public class KiePMMLDerivedFieldFactoryTest { void getDerivedFieldVariableDeclarationWithFieldRef() throws IOException { final String variableName = "variableName"; FieldRef fieldRef = new FieldRef(); @@ -5233,7 +5224,7 @@ index 9c0deb97cc..5c0de1d0d0 100644 derivedField.setDataType(DataType.DOUBLE); derivedField.setOpType(OpType.CONTINUOUS); derivedField.setExpression(fieldRef); -@@ -97,9 +95,8 @@ public class KiePMMLDerivedFieldFactoryTest { +@@ -99,9 +97,8 @@ public class KiePMMLDerivedFieldFactoryTest { org.kie.pmml.compiler.commons.codegenfactories.KiePMMLDerivedFieldFactory.getDerivedFieldVariableDeclaration(variableName, derivedField); String text = getFileContent(TEST_02_SOURCE); Statement expected = JavaParserUtils @@ -5245,7 +5236,7 @@ index 9c0deb97cc..5c0de1d0d0 100644 dataType, opType)); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); -@@ -115,12 +112,12 @@ public class KiePMMLDerivedFieldFactoryTest { +@@ -117,12 +114,12 @@ public class KiePMMLDerivedFieldFactoryTest { Constant constant = new Constant(); constant.setValue(value1); FieldRef fieldRef = new FieldRef(); @@ -5260,7 +5251,7 @@ index 9c0deb97cc..5c0de1d0d0 100644 derivedField.setDataType(DataType.DOUBLE); derivedField.setOpType(OpType.CONTINUOUS); derivedField.setExpression(apply); -@@ -130,12 +127,10 @@ public class KiePMMLDerivedFieldFactoryTest { +@@ -132,12 +129,10 @@ public class KiePMMLDerivedFieldFactoryTest { String text = getFileContent(TEST_03_SOURCE); Statement expected = JavaParserUtils .parseBlock(String.format(text, @@ -5276,10 +5267,10 @@ index 9c0deb97cc..5c0de1d0d0 100644 opType)); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java -index 7d6783f932..8323b93d5c 100644 +index 3bb53dc323..414ae4fc3e 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java -@@ -26,7 +26,6 @@ import com.github.javaparser.ast.stmt.Statement; +@@ -28,7 +28,6 @@ import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.DataType; import org.dmg.pmml.Discretize; import org.dmg.pmml.DiscretizeBin; @@ -5287,7 +5278,7 @@ index 7d6783f932..8323b93d5c 100644 import org.dmg.pmml.Interval; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -@@ -64,7 +63,7 @@ public class KiePMMLDiscretizeFactoryTest { +@@ -66,7 +65,7 @@ public class KiePMMLDiscretizeFactoryTest { void getDiscretizeVariableDeclaration() throws IOException { String variableName = "variableName"; Discretize discretize = new Discretize(); @@ -5297,10 +5288,10 @@ index 7d6783f932..8323b93d5c 100644 discretize.setMapMissingTo(MAP_MISSING_TO); discretize.setDefaultValue(DEFAULTVALUE); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java -index 9be27ab139..7db1e1472e 100644 +index f361583818..7e5c892ebe 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java -@@ -24,7 +24,6 @@ import java.util.List; +@@ -26,7 +26,6 @@ import java.util.List; import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.FieldColumnPair; @@ -5308,7 +5299,7 @@ index 9be27ab139..7db1e1472e 100644 import org.junit.jupiter.api.Test; import org.kie.pmml.commons.model.expressions.KiePMMLFieldColumnPair; import org.kie.pmml.compiler.commons.utils.JavaParserUtils; -@@ -43,7 +42,7 @@ public class KiePMMLFieldColumnPairFactoryTest { +@@ -45,7 +44,7 @@ public class KiePMMLFieldColumnPairFactoryTest { String fieldName = "fieldName"; String column = "column"; FieldColumnPair fieldColumnPair = new FieldColumnPair(); @@ -5318,10 +5309,10 @@ index 9be27ab139..7db1e1472e 100644 BlockStmt retrieved = KiePMMLFieldColumnPairFactory.getFieldColumnPairVariableDeclaration(variableName, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java -index 74a0a47a19..b25133c0f9 100644 +index d7231b5780..359e3e36df 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java -@@ -23,7 +23,6 @@ import java.util.List; +@@ -25,7 +25,6 @@ import java.util.List; import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; @@ -5329,7 +5320,7 @@ index 74a0a47a19..b25133c0f9 100644 import org.dmg.pmml.FieldRef; import org.junit.jupiter.api.Test; import org.kie.pmml.commons.model.expressions.KiePMMLFieldRef; -@@ -43,7 +42,7 @@ public class KiePMMLFieldRefFactoryTest { +@@ -45,7 +44,7 @@ public class KiePMMLFieldRefFactoryTest { String fieldName = "fieldName"; String mapMissingTo = "mapMissingTo"; FieldRef fieldRef = new FieldRef(); @@ -5339,10 +5330,10 @@ index 74a0a47a19..b25133c0f9 100644 BlockStmt retrieved = KiePMMLFieldRefFactory.getFieldRefVariableDeclaration(variableName, fieldRef); String text = getFileContent(TEST_01_SOURCE); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java -index 7363100b0c..66457e4833 100644 +index 4fb84d0b43..a86e50c013 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java -@@ -55,7 +55,7 @@ public class KiePMMLInlineTableFactoryTest { +@@ -57,7 +57,7 @@ public class KiePMMLInlineTableFactoryTest { DerivedField mapValued = pmmlModel.getTransformationDictionary() .getDerivedFields() .stream() @@ -5352,10 +5343,10 @@ index 7363100b0c..66457e4833 100644 .orElseThrow(() -> new RuntimeException("Missing derived field " + MAPVALUED)); INLINETABLE = ((MapValues) mapValued.getExpression()).getInlineTable(); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java -index bd93f31de7..b71bd94743 100644 +index 12bf81ccb8..2660518d6b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java -@@ -27,7 +27,6 @@ import com.github.javaparser.ast.stmt.Statement; +@@ -29,7 +29,6 @@ import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.Constant; import org.dmg.pmml.DataType; import org.dmg.pmml.DerivedField; @@ -5363,7 +5354,7 @@ index bd93f31de7..b71bd94743 100644 import org.dmg.pmml.LocalTransformations; import org.dmg.pmml.OpType; import org.junit.jupiter.api.Test; -@@ -78,7 +77,7 @@ public class KiePMMLLocalTransformationsFactoryTest { +@@ -80,7 +79,7 @@ public class KiePMMLLocalTransformationsFactoryTest { Constant constant = new Constant(); constant.setValue(value1); DerivedField toReturn = new DerivedField(); @@ -5373,10 +5364,10 @@ index bd93f31de7..b71bd94743 100644 toReturn.setOpType(OpType.CONTINUOUS); toReturn.setExpression(constant); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java -index aba744b193..4607c85989 100644 +index b01a9b7a97..c3221ab11d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java -@@ -56,7 +56,7 @@ public class KiePMMLMapValuesFactoryTest { +@@ -58,7 +58,7 @@ public class KiePMMLMapValuesFactoryTest { DerivedField mapValued = pmmlModel.getTransformationDictionary() .getDerivedFields() .stream() @@ -5386,10 +5377,10 @@ index aba744b193..4607c85989 100644 .orElseThrow(() -> new RuntimeException("Missing derived field " + MAPVALUED)); MAPVALUES = ((MapValues) mapValued.getExpression()); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java -index dfed066bf4..543bd74ff0 100644 +index e3d14fc03b..141a7a2240 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java -@@ -57,8 +57,7 @@ public class KiePMMLMiningFieldFactoryTest { +@@ -59,8 +59,7 @@ public class KiePMMLMiningFieldFactoryTest { String dataTypeString = DATA_TYPE.class.getName() + "." + DATA_TYPE.byName(dataField.getDataType().value()).name(); String text = getFileContent(TEST_01_SOURCE); @@ -5399,7 +5390,7 @@ index dfed066bf4..543bd74ff0 100644 dataTypeString)); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); List> imports = Arrays.asList(Arrays.class, Collections.class, KiePMMLInterval.class, -@@ -79,8 +78,7 @@ public class KiePMMLMiningFieldFactoryTest { +@@ -81,8 +80,7 @@ public class KiePMMLMiningFieldFactoryTest { String dataTypeString = DATA_TYPE.class.getName() + "." + DATA_TYPE.byName(dataField.getDataType().value()).name(); String text = getFileContent(TEST_02_SOURCE); @@ -5409,7 +5400,7 @@ index dfed066bf4..543bd74ff0 100644 dataTypeString, dataField.getValues().get(0).getValue(), dataField.getValues().get(1).getValue(), -@@ -102,8 +100,7 @@ public class KiePMMLMiningFieldFactoryTest { +@@ -104,8 +102,7 @@ public class KiePMMLMiningFieldFactoryTest { String dataTypeString = DATA_TYPE.class.getName() + "." + DATA_TYPE.byName(dataField.getDataType().value()).name(); String text = getFileContent(TEST_03_SOURCE); @@ -5420,10 +5411,10 @@ index dfed066bf4..543bd74ff0 100644 dataField.getValues().get(0).getValue(), dataField.getValues().get(1).getValue(), diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java -index 8c2652e561..1c6cd52d74 100644 +index 3c0d1aa142..56f78bdd17 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java -@@ -55,8 +55,7 @@ public class KiePMMLNormContinuousFactoryTest { +@@ -57,8 +57,7 @@ public class KiePMMLNormContinuousFactoryTest { String outlierString = OUTLIER_TREATMENT_METHOD.class.getName() + "." + OUTLIER_TREATMENT_METHOD.byName(normContinuous.getOutliers().value()).name(); String text = getFileContent(TEST_01_SOURCE); @@ -5434,10 +5425,10 @@ index 8c2652e561..1c6cd52d74 100644 linearNorms.get(0).getNorm(), linearNorms.get(1).getOrig(), diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java -index f86b124884..e76bdd00a1 100644 +index fc0fe288b8..25be272ac8 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java -@@ -23,7 +23,6 @@ import java.util.List; +@@ -25,7 +25,6 @@ import java.util.List; import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; @@ -5445,7 +5436,7 @@ index f86b124884..e76bdd00a1 100644 import org.dmg.pmml.NormDiscrete; import org.junit.jupiter.api.Test; import org.kie.pmml.commons.model.expressions.KiePMMLNormDiscrete; -@@ -45,7 +44,7 @@ public class KiePMMLNormDiscreteFactoryTest { +@@ -47,7 +46,7 @@ public class KiePMMLNormDiscreteFactoryTest { double mapMissingTo = 45.32; NormDiscrete normDiscrete = new NormDiscrete(); @@ -5455,10 +5446,10 @@ index f86b124884..e76bdd00a1 100644 normDiscrete.setMapMissingTo(mapMissingTo); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java -index c123f9d16e..df4a6f50cc 100644 +index 62d6b45392..05831bc068 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java -@@ -24,7 +24,6 @@ import java.util.List; +@@ -26,7 +26,6 @@ import java.util.List; import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.DataType; @@ -5466,7 +5457,7 @@ index c123f9d16e..df4a6f50cc 100644 import org.dmg.pmml.OpType; import org.dmg.pmml.ParameterField; import org.junit.jupiter.api.Test; -@@ -44,7 +43,7 @@ public class KiePMMLParameterFieldFactoryTest { +@@ -46,7 +45,7 @@ public class KiePMMLParameterFieldFactoryTest { @Test void getParameterFieldVariableDeclaration() throws IOException { String variableName = "variableName"; @@ -5476,10 +5467,10 @@ index c123f9d16e..df4a6f50cc 100644 parameterField.setOpType(OpType.CONTINUOUS); parameterField.setDisplayName("displayName"); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java -index 2ebfa7b462..86e72a5cc2 100644 +index 4315879f7b..d999c4c36b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java -@@ -56,14 +56,14 @@ public class KiePMMLRowFactoryTest { +@@ -58,14 +58,14 @@ public class KiePMMLRowFactoryTest { DerivedField mapValued = pmmlModel.getTransformationDictionary() .getDerivedFields() .stream() @@ -5497,10 +5488,10 @@ index 2ebfa7b462..86e72a5cc2 100644 .orElseThrow(() -> new RuntimeException("Missing derived field " + MAPVALUED)); DATAENCODED_ROW = ((MapValues) dataEncoded.getExpression()).getInlineTable().getRows().get(0); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java -index cbb71e2707..2ccf1a9b91 100644 +index ef278cbe93..23d5d30c4a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java -@@ -26,7 +26,6 @@ import com.github.javaparser.ast.stmt.Statement; +@@ -28,7 +28,6 @@ import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; @@ -5508,7 +5499,7 @@ index cbb71e2707..2ccf1a9b91 100644 import org.dmg.pmml.SimplePredicate; import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.OPERATOR; -@@ -46,7 +45,7 @@ public class KiePMMLSimplePredicateFactoryTest { +@@ -48,7 +47,7 @@ public class KiePMMLSimplePredicateFactoryTest { void getSimplePredicateVariableDeclaration() throws IOException { String variableName = "variableName"; final SimplePredicate simplePredicate = new SimplePredicate(); @@ -5517,7 +5508,7 @@ index cbb71e2707..2ccf1a9b91 100644 simplePredicate.setValue("235.435"); simplePredicate.setOperator(SimplePredicate.Operator.EQUAL); String operatorString = OPERATOR.class.getName() + "." + OPERATOR.byName(simplePredicate.getOperator().value()); -@@ -58,8 +57,7 @@ public class KiePMMLSimplePredicateFactoryTest { +@@ -60,8 +59,7 @@ public class KiePMMLSimplePredicateFactoryTest { BlockStmt retrieved = KiePMMLSimplePredicateFactory.getSimplePredicateVariableDeclaration(variableName, simplePredicate, getFieldsFromDataDictionary(dataDictionary)); String text = getFileContent(TEST_01_SOURCE); @@ -5528,10 +5519,10 @@ index cbb71e2707..2ccf1a9b91 100644 simplePredicate.getValue())); assertThat(JavaParserUtils.equalsNode(expected, retrieved)).isTrue(); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java -index 70ab189ceb..3ec3f1ef8f 100644 +index ed4c46efff..3ee849e0e5 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java -@@ -28,7 +28,6 @@ import org.dmg.pmml.Array; +@@ -30,7 +30,6 @@ import org.dmg.pmml.Array; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; @@ -5539,7 +5530,7 @@ index 70ab189ceb..3ec3f1ef8f 100644 import org.dmg.pmml.SimpleSetPredicate; import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.ARRAY_TYPE; -@@ -71,8 +70,7 @@ public class KiePMMLSimpleSetPredicateFactoryTest { +@@ -73,8 +72,7 @@ public class KiePMMLSimpleSetPredicateFactoryTest { BlockStmt retrieved = KiePMMLSimpleSetPredicateFactory.getSimpleSetPredicateVariableDeclaration(variableName, simpleSetPredicate); String text = getFileContent(TEST_01_SOURCE); @@ -5549,7 +5540,7 @@ index 70ab189ceb..3ec3f1ef8f 100644 arrayTypeString, booleanOperatorString, valuesString)); -@@ -85,7 +83,7 @@ public class KiePMMLSimpleSetPredicateFactoryTest { +@@ -87,7 +85,7 @@ public class KiePMMLSimpleSetPredicateFactoryTest { final SimpleSetPredicate.BooleanOperator inNotIn) { Array array = getArray(arrayType, values); SimpleSetPredicate toReturn = new SimpleSetPredicate(); @@ -5559,10 +5550,10 @@ index 70ab189ceb..3ec3f1ef8f 100644 toReturn.setArray(array); return toReturn; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java -index 2e0b815573..a806d34045 100644 +index e9874f34d6..938a29d9c8 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java -@@ -69,8 +69,7 @@ public class KiePMMLTextIndexFactoryTest { +@@ -71,8 +71,7 @@ public class KiePMMLTextIndexFactoryTest { BlockStmt retrieved = KiePMMLTextIndexFactory.getTextIndexVariableDeclaration(variableName, TEXTINDEX); String text = getFileContent(TEST_01_SOURCE); @@ -5573,10 +5564,10 @@ index 2e0b815573..a806d34045 100644 List> imports = Arrays.asList(Arrays.class, Collections.class, Collectors.class, KiePMMLFieldRef.class, KiePMMLInlineTable.class, diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java -index 8cb7786184..e1b152a939 100644 +index bd4374a478..d78a9ced33 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java -@@ -29,7 +29,6 @@ import org.dmg.pmml.Constant; +@@ -31,7 +31,6 @@ import org.dmg.pmml.Constant; import org.dmg.pmml.DataType; import org.dmg.pmml.DefineFunction; import org.dmg.pmml.DerivedField; @@ -5584,7 +5575,7 @@ index 8cb7786184..e1b152a939 100644 import org.dmg.pmml.FieldRef; import org.dmg.pmml.OpType; import org.dmg.pmml.ParameterField; -@@ -86,18 +85,18 @@ public class KiePMMLTransformationDictionaryFactoryTest { +@@ -88,18 +87,18 @@ public class KiePMMLTransformationDictionaryFactoryTest { } private DefineFunction getDefineFunction(int counter) { @@ -5606,7 +5597,7 @@ index 8cb7786184..e1b152a939 100644 Apply apply = new Apply(); apply.setFunction("/"); apply.addExpressions(constant, fieldRef); -@@ -120,7 +119,7 @@ public class KiePMMLTransformationDictionaryFactoryTest { +@@ -122,7 +121,7 @@ public class KiePMMLTransformationDictionaryFactoryTest { Constant constant = new Constant(); constant.setValue(value1); DerivedField toReturn = new DerivedField(); @@ -5616,10 +5607,10 @@ index 8cb7786184..e1b152a939 100644 toReturn.setOpType(OpType.CONTINUOUS); toReturn.setExpression(constant); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java -index 39a0971352..3a36790356 100644 +index 23927ed5e4..cb339230e0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java -@@ -109,7 +109,7 @@ public class InstanceFactoriesTestCommon { +@@ -112,7 +112,7 @@ public class InstanceFactoriesTestCommon { assertThat(toVerifyList).hasSameSizeAs(sourcesParameterFields); sourcesParameterFields.forEach(paramSource -> { Optional parameterToVerify = @@ -5628,7 +5619,7 @@ index 39a0971352..3a36790356 100644 .findFirst(); assertThat(parameterToVerify).isPresent(); commonVerifyKiePMMLParameterField(parameterToVerify.get(), paramSource); -@@ -119,24 +119,24 @@ public class InstanceFactoriesTestCommon { +@@ -122,24 +122,24 @@ public class InstanceFactoriesTestCommon { static void commonVerifyKiePMMLDerivedField(KiePMMLDerivedField toVerify, DerivedField source) { assertThat(toVerify).isNotNull(); @@ -5657,7 +5648,7 @@ index 39a0971352..3a36790356 100644 assertThat(toVerify.getDisplayName()).isEqualTo(expectedDisplayName); } -@@ -181,20 +181,20 @@ public class InstanceFactoriesTestCommon { +@@ -184,20 +184,20 @@ public class InstanceFactoriesTestCommon { DataField dataField) { assertThat(toVerify).isNotNull(); Object value = DATA_TYPE.byName(dataField.getDataType().value()).getActualValue(source.getValue()); @@ -5681,7 +5672,7 @@ index 39a0971352..3a36790356 100644 Array array = source.getArray(); assertThat(toVerify.getArrayType().getName()).isEqualTo(array.getType().value()); assertThat(toVerify.getInNotIn().getName()).isEqualTo(source.getBooleanOperator().value()); -@@ -273,7 +273,7 @@ public class InstanceFactoriesTestCommon { +@@ -276,7 +276,7 @@ public class InstanceFactoriesTestCommon { static void commonVerifyKiePMMLDiscretize(KiePMMLDiscretize toVerify, Discretize source) { assertThat(toVerify).isNotNull(); @@ -5690,7 +5681,7 @@ index 39a0971352..3a36790356 100644 assertThat(toVerify.getMapMissingTo()).isEqualTo(source.getMapMissingTo()); assertThat(toVerify.getDefaultValue()).isEqualTo(source.getDefaultValue()); assertThat(toVerify.getDataType().getName()).isEqualTo(source.getDataType().value()); -@@ -283,7 +283,7 @@ public class InstanceFactoriesTestCommon { +@@ -286,7 +286,7 @@ public class InstanceFactoriesTestCommon { static void commonVerifyKiePMMLFieldRef(KiePMMLFieldRef toVerify, FieldRef source) { assertThat(toVerify).isNotNull(); @@ -5699,7 +5690,7 @@ index 39a0971352..3a36790356 100644 assertThat(toVerify.getMapMissingTo()).isEqualTo(source.getMapMissingTo()); } -@@ -311,7 +311,7 @@ public class InstanceFactoriesTestCommon { +@@ -314,7 +314,7 @@ public class InstanceFactoriesTestCommon { static void commonVerifyKiePMMLNormDiscrete(KiePMMLNormDiscrete toVerify, NormDiscrete source) { assertThat(toVerify).isNotNull(); @@ -5708,7 +5699,7 @@ index 39a0971352..3a36790356 100644 assertThat(toVerify.getMapMissingTo()).isEqualTo(source.getMapMissingTo()); assertThat(toVerify.getValue()).isEqualTo(source.getValue().toString()); } -@@ -347,7 +347,7 @@ public class InstanceFactoriesTestCommon { +@@ -350,7 +350,7 @@ public class InstanceFactoriesTestCommon { static void commonVerifyKiePMMLFieldColumnPair(KiePMMLFieldColumnPair toVerify, FieldColumnPair source) { assertThat(toVerify).isNotNull(); @@ -5717,7 +5708,7 @@ index 39a0971352..3a36790356 100644 assertThat(toVerify.getColumn()).isEqualTo(source.getColumn()); } -@@ -366,7 +366,7 @@ public class InstanceFactoriesTestCommon { +@@ -369,7 +369,7 @@ public class InstanceFactoriesTestCommon { static void commonVerifyKiePMMLMiningField(KiePMMLMiningField toVerify, MiningField source, DataField dataField) { assertThat(toVerify).isNotNull(); @@ -5726,7 +5717,7 @@ index 39a0971352..3a36790356 100644 assertThat(toVerify.getOpType().getName()).isEqualTo(source.getOpType().value()); assertThat(toVerify.getFieldUsageType().getName()).isEqualTo(source.getUsageType().value()); assertThat(toVerify.getInvalidValueTreatmentMethod().getName()).isEqualTo(source.getInvalidValueTreatment().value()); -@@ -380,10 +380,10 @@ public class InstanceFactoriesTestCommon { +@@ -383,10 +383,10 @@ public class InstanceFactoriesTestCommon { static void commonVerifyKiePMMLOutputField(KiePMMLOutputField toVerify, OutputField source) { assertThat(toVerify).isNotNull(); @@ -5739,7 +5730,7 @@ index 39a0971352..3a36790356 100644 assertThat(toVerify.getResultFeature().getName()).isEqualTo(source.getResultFeature().value()); assertThat(toVerify.getRank()).isEqualTo(source.getRank()); assertThat(toVerify.getValue()).isEqualTo(source.getValue()); -@@ -395,7 +395,7 @@ public class InstanceFactoriesTestCommon { +@@ -398,7 +398,7 @@ public class InstanceFactoriesTestCommon { assertThat(source.getTargetValues()).hasSameSizeAs(toVerify.getTargetValues()); OP_TYPE expectedOpType = OP_TYPE.byName(source.getOpType().value()); assertThat(toVerify.getOpType()).isEqualTo(expectedOpType); @@ -5749,10 +5740,10 @@ index 39a0971352..3a36790356 100644 assertThat(toVerify.getCastInteger()).isEqualTo(expectedCastInteger); assertThat(toVerify.getMin()).isCloseTo(source.getMin().doubleValue(), Offset.offset(0.0)); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java -index 7769f9d331..d6008be920 100644 +index 1d55b0229e..4f1b09f22f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java -@@ -44,7 +44,7 @@ public class KiePMMLLocalTransformationsInstanceFactoryTest { +@@ -47,7 +47,7 @@ public class KiePMMLLocalTransformationsInstanceFactoryTest { assertThat(derivedFieldsToVerify).hasSameSizeAs(derivedFields); derivedFields.forEach(derivedFieldSource -> { Optional derivedFieldToVerify = @@ -5762,10 +5753,10 @@ index 7769f9d331..d6008be920 100644 assertThat(derivedFieldToVerify).isPresent(); commonVerifyKiePMMLDerivedField(derivedFieldToVerify.get(), derivedFieldSource); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java -index 4082c4c622..bd9737cf9a 100644 +index ed87c68309..df58cc39f9 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java -@@ -47,7 +47,7 @@ public class KiePMMLTransformationDictionaryInstanceFactoryTest { +@@ -50,7 +50,7 @@ public class KiePMMLTransformationDictionaryInstanceFactoryTest { assertThat(derivedFieldsToVerify).hasSameSizeAs(derivedFields); derivedFields.forEach(derivedFieldSource -> { Optional derivedFieldToVerify = @@ -5775,10 +5766,10 @@ index 4082c4c622..bd9737cf9a 100644 assertThat(derivedFieldToVerify).isPresent(); commonVerifyKiePMMLDerivedField(derivedFieldToVerify.get(), derivedFieldSource); diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java -index d27ff4c447..aab94e8f8c 100644 +index 46ce5d7bee..df844bcf3a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java -@@ -30,12 +30,11 @@ import java.util.Random; +@@ -32,12 +32,11 @@ import java.util.Random; import java.util.stream.Collectors; import java.util.stream.IntStream; @@ -5792,7 +5783,7 @@ index d27ff4c447..aab94e8f8c 100644 import org.dmg.pmml.MathContext; import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningFunction; -@@ -140,7 +139,7 @@ public class KiePMMLUtilTest { +@@ -142,7 +141,7 @@ public class KiePMMLUtilTest { assertThat(optionalDataField).isPresent(); DataField retrieved = optionalDataField.get(); String expected = String.format(TARGETFIELD_TEMPLATE, "golfing"); @@ -5801,7 +5792,7 @@ index d27ff4c447..aab94e8f8c 100644 } @Test -@@ -188,23 +187,23 @@ public class KiePMMLUtilTest { +@@ -190,23 +189,23 @@ public class KiePMMLUtilTest { @Test void getTargetMiningField() { final DataField dataField = new DataField(); @@ -5830,7 +5821,7 @@ index d27ff4c447..aab94e8f8c 100644 assertThat(unnamedTarget.getField()).isEqualTo(miningField.getName()); } -@@ -290,7 +289,7 @@ public class KiePMMLUtilTest { +@@ -292,7 +291,7 @@ public class KiePMMLUtilTest { List dataFields = fieldNames.stream() .map(fieldName -> { DataField toReturn = new DataField(); @@ -5839,7 +5830,7 @@ index d27ff4c447..aab94e8f8c 100644 DataType dataType = DataType.values()[random.nextInt(DataType.values().length)]; toReturn.setDataType(dataType); return toReturn; -@@ -300,40 +299,40 @@ public class KiePMMLUtilTest { +@@ -302,40 +301,40 @@ public class KiePMMLUtilTest { .mapToObj(dataFields::get) .map(dataField -> { MiningField toReturn = new MiningField(); @@ -5887,7 +5878,7 @@ index d27ff4c447..aab94e8f8c 100644 DataType dataType = DataType.values()[random.nextInt(DataType.values().length)]; toAdd.setDataType(dataType); outputFields.add(toAdd); -@@ -368,7 +367,7 @@ public class KiePMMLUtilTest { +@@ -370,7 +369,7 @@ public class KiePMMLUtilTest { assertThat(retrieved).isNotNull(); assertThat(retrieved).hasSize(1); MiningField targetField = retrieved.get(0); @@ -5896,7 +5887,7 @@ index d27ff4c447..aab94e8f8c 100644 assertThat(targetField.getUsageType().value()).isEqualTo("target"); } -@@ -381,7 +380,7 @@ public class KiePMMLUtilTest { +@@ -383,7 +382,7 @@ public class KiePMMLUtilTest { assertThat(retrieved).isNotNull(); assertThat(retrieved).hasSize(1); MiningField targetField = retrieved.get(0); @@ -5906,10 +5897,10 @@ index d27ff4c447..aab94e8f8c 100644 } diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java -index 626fd4316e..7470fe4047 100644 +index feb38f91b9..4d7c7c5834 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java -@@ -104,5 +104,15 @@ public class TestingModel extends Model { +@@ -107,5 +107,15 @@ public class TestingModel extends Model { return modelName; } @@ -5926,10 +5917,10 @@ index 626fd4316e..7470fe4047 100644 } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java -index 7b7ca55b9e..e760d10cfb 100644 +index 5570464de9..fd2bfeaab6 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java -@@ -170,7 +170,7 @@ public class KiePMMLClusteringModelFactory { +@@ -173,7 +173,7 @@ public class KiePMMLClusteringModelFactory { boolean isCenterField = clusteringField.getCenterField() == null || clusteringField.getCenterField() == ClusteringField.CenterField.TRUE; KiePMMLCompareFunction kiePMMLCompareFunction = clusteringField.getCompareFunction() != null ? compareFunctionFrom(clusteringField.getCompareFunction()) : null; @@ -5938,7 +5929,7 @@ index 7b7ca55b9e..e760d10cfb 100644 kiePMMLCompareFunction, null); } -@@ -250,7 +250,7 @@ public class KiePMMLClusteringModelFactory { +@@ -253,7 +253,7 @@ public class KiePMMLClusteringModelFactory { clusteringField.getCenterField() == null || clusteringField.getCenterField() == ClusteringField.CenterField.TRUE; NodeList arguments = new NodeList<>(); @@ -5948,10 +5939,10 @@ index 7b7ca55b9e..e760d10cfb 100644 arguments.add(new BooleanLiteralExpr(isCenterField)); arguments.add(clusteringField.getCompareFunction() == null ? new NullLiteralExpr() : diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java -index 5fbfa7f31d..8f102e47c4 100644 +index a8b06c8f09..23f30fe19f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java -@@ -35,7 +35,6 @@ import org.dmg.pmml.DataDictionary; +@@ -38,7 +38,6 @@ import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; import org.dmg.pmml.Euclidean; @@ -5959,7 +5950,7 @@ index 5fbfa7f31d..8f102e47c4 100644 import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningFunction; import org.dmg.pmml.MiningSchema; -@@ -105,7 +104,7 @@ public class KiePMMLClusteringModelFactoryTest { +@@ -108,7 +107,7 @@ public class KiePMMLClusteringModelFactoryTest { IntStream.range(0, 3).forEach(i -> { ClusteringField clusteringField = getRandomClusteringField(); clusteringFields.add(clusteringField); @@ -5968,7 +5959,7 @@ index 5fbfa7f31d..8f102e47c4 100644 clusters.add(getRandomCluster()); }); -@@ -190,7 +189,7 @@ public class KiePMMLClusteringModelFactoryTest { +@@ -193,7 +192,7 @@ public class KiePMMLClusteringModelFactoryTest { void getKiePMMLClusteringField() { ClusteringField clusteringField = new ClusteringField(); final Random random = new Random(); @@ -5977,7 +5968,7 @@ index 5fbfa7f31d..8f102e47c4 100644 clusteringField.setFieldWeight(random.nextDouble()); clusteringField.setCenterField(getRandomEnum(ClusteringField.CenterField.values())); clusteringField.setCompareFunction(getRandomEnum(CompareFunction.values())); -@@ -253,7 +252,7 @@ public class KiePMMLClusteringModelFactoryTest { +@@ -256,7 +255,7 @@ public class KiePMMLClusteringModelFactoryTest { String expectedCompareFunction = KiePMMLCompareFunction.class.getCanonicalName() + "." + comparisonMeasure.getCompareFunction().name(); @@ -5986,7 +5977,7 @@ index 5fbfa7f31d..8f102e47c4 100644 KiePMMLClusteringModelFactory.setStaticGetter(compilationDTO, modelTemplate); -@@ -282,7 +281,7 @@ public class KiePMMLClusteringModelFactoryTest { +@@ -285,7 +284,7 @@ public class KiePMMLClusteringModelFactoryTest { ClusteringField clusteringField) { assertThat(retrieved).isNotNull(); boolean isCenterField = clusteringField.getCenterField() == ClusteringField.CenterField.TRUE; @@ -5996,10 +5987,10 @@ index 5fbfa7f31d..8f102e47c4 100644 assertThat(retrieved.getCenterField()).isEqualTo(isCenterField); assertThat(retrieved.getCompareFunction()).isPresent(); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java -index 06274037a0..4719245241 100644 +index a748a0e59c..9e27e0e0f2 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java -@@ -63,8 +63,8 @@ public class KiePMMLDataDictionaryASTFactory { +@@ -66,8 +66,8 @@ public class KiePMMLDataDictionaryASTFactory { * @param field */ public KiePMMLDroolsType declareType(Field field) { @@ -6011,10 +6002,10 @@ index 06274037a0..4719245241 100644 fieldTypeMap.put(fieldName, new KiePMMLOriginalTypeGeneratedType(fieldType, generatedType)); return new KiePMMLDroolsType(generatedType, DATA_TYPE.byName(fieldType).getMappedClass().getSimpleName()); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java -index e66d696e1c..f267248495 100644 +index 84de887ede..492dfe0f89 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java -@@ -60,8 +60,8 @@ public class KiePMMLDerivedFieldASTFactory { +@@ -63,8 +63,8 @@ public class KiePMMLDerivedFieldASTFactory { * @param derivedField */ public KiePMMLDroolsType declareType(DerivedField derivedField) { @@ -6026,10 +6017,10 @@ index e66d696e1c..f267248495 100644 fieldTypeMap.put(fieldName, new KiePMMLOriginalTypeGeneratedType(fieldType, generatedType)); return new KiePMMLDroolsType(generatedType, DATA_TYPE.byName(fieldType).getMappedClass().getSimpleName()); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java -index 45091cb9c4..0ca5223391 100644 +index 83d01f66f0..48eb2adbb0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java -@@ -55,7 +55,7 @@ public class KiePMMLSimplePredicateASTFactory extends KiePMMLAbstractPredicateAS +@@ -58,7 +58,7 @@ public class KiePMMLSimplePredicateASTFactory extends KiePMMLAbstractPredicateAS final KiePMMLReasonCodeAndValue reasonCodeAndValue, final boolean isLastCharacteristic) { logger.trace("declareRuleFromSimplePredicateSurrogate {} {} {} {}", agendaActivationGroup, toAccumulate, statusToSet, isLastCharacteristic); @@ -6038,7 +6029,7 @@ index 45091cb9c4..0ca5223391 100644 String surrogateCurrentRule = String.format(KiePMMLAbstractModelASTFactory.SURROGATE_RULENAME_PATTERN, predicateASTFactoryData.getCurrentRule(), fieldName); final List constraints = Collections.singletonList(KiePMMLASTFactoryUtils.getConstraintEntryFromSimplePredicates(fieldName, BOOLEAN_OPERATOR.SURROGATE, Collections.singletonList((SimplePredicate) predicateASTFactoryData.getPredicate()), predicateASTFactoryData.getFieldTypeMap())); // Create "TRUE" matcher -@@ -79,7 +79,7 @@ public class KiePMMLSimplePredicateASTFactory extends KiePMMLAbstractPredicateAS +@@ -82,7 +82,7 @@ public class KiePMMLSimplePredicateASTFactory extends KiePMMLAbstractPredicateAS final Object result, boolean isFinalLeaf) { logger.trace("declareRuleFromSimplePredicateSurrogate {} {} {}", agendaActivationGroup, result, isFinalLeaf); @@ -6047,7 +6038,7 @@ index 45091cb9c4..0ca5223391 100644 String surrogateCurrentRule = String.format(KiePMMLAbstractModelASTFactory.SURROGATE_RULENAME_PATTERN, predicateASTFactoryData.getCurrentRule(), fieldName); final List constraints = Collections.singletonList(KiePMMLASTFactoryUtils.getConstraintEntryFromSimplePredicates(fieldName, BOOLEAN_OPERATOR.SURROGATE, Collections.singletonList((SimplePredicate) predicateASTFactoryData.getPredicate()), predicateASTFactoryData.getFieldTypeMap())); String statusToSet = isFinalLeaf ? DONE : predicateASTFactoryData.getCurrentRule(); -@@ -215,7 +215,7 @@ public class KiePMMLSimplePredicateASTFactory extends KiePMMLAbstractPredicateAS +@@ -218,7 +218,7 @@ public class KiePMMLSimplePredicateASTFactory extends KiePMMLAbstractPredicateAS protected KiePMMLDroolsRule.Builder getBuilderForSimplePredicate(final String statusToSet) { logger.trace("getBuilderForSimplePredicate {}", statusToSet); String statusConstraint = StringUtils.isEmpty(predicateASTFactoryData.getParentPath()) ? KiePMMLAbstractModelASTFactory.STATUS_NULL : String.format(STATUS_PATTERN, predicateASTFactoryData.getParentPath()); @@ -6057,10 +6048,10 @@ index 45091cb9c4..0ca5223391 100644 Object value = KiePMMLASTFactoryUtils.getCorrectlyFormattedObject(((SimplePredicate) predicateASTFactoryData.getPredicate()), predicateASTFactoryData.getFieldTypeMap()); List andConstraints = Collections.singletonList(new KiePMMLFieldOperatorValue(key, BOOLEAN_OPERATOR.AND, Collections.singletonList(new KiePMMLOperatorValue(operator, value)), null)); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java -index 3cd8657705..6f7028f782 100644 +index 10656ad316..0e9a561efb 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java -@@ -72,11 +72,11 @@ public class KiePMMLSimpleSetPredicateASTFactory extends KiePMMLAbstractPredicat +@@ -75,11 +75,11 @@ public class KiePMMLSimpleSetPredicateASTFactory extends KiePMMLAbstractPredicat logger.trace("declareRuleFromSimpleSetPredicate {}", statusToSet); String statusConstraint = StringUtils.isEmpty(predicateASTFactoryData.getParentPath()) ? STATUS_NULL : String.format(STATUS_PATTERN, predicateASTFactoryData.getParentPath()); SimpleSetPredicate simpleSetPredicate = (SimpleSetPredicate) predicateASTFactoryData.getPredicate(); @@ -6075,10 +6066,10 @@ index 3cd8657705..6f7028f782 100644 case "string": return "\"" + rawValue + "\""; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java -index 491df26632..35b5ffa32e 100644 +index b8b150adce..b36131729b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java -@@ -55,7 +55,7 @@ public class KiePMMLASTFactoryUtils { +@@ -58,7 +58,7 @@ public class KiePMMLASTFactoryUtils { } final Map> predicatesByField = simplePredicates.stream() .map(child -> (SimplePredicate) child) @@ -6087,7 +6078,7 @@ index 491df26632..35b5ffa32e 100644 final List toReturn = new LinkedList<>(); populateKiePMMLFieldOperatorValueListWithSimplePredicates(toReturn, compoundPredicate.getBooleanOperator(), predicatesByField, fieldTypeMap); final List compoundPredicates = compoundPredicate.getPredicates().stream() -@@ -113,7 +113,7 @@ public class KiePMMLASTFactoryUtils { +@@ -116,7 +116,7 @@ public class KiePMMLASTFactoryUtils { .filter(predicate -> predicate instanceof SimplePredicate) .map(predicate -> { SimplePredicate simplePredicate = (SimplePredicate) predicate; @@ -6096,7 +6087,7 @@ index 491df26632..35b5ffa32e 100644 OPERATOR operator = OPERATOR.byName(simplePredicate.getOperator().value()); Object value = getCorrectlyFormattedObject(simplePredicate, fieldTypeMap); return new KiePMMLFieldOperatorValue(fieldName, null, Collections.singletonList(new KiePMMLOperatorValue(operator, value)), null); -@@ -121,7 +121,7 @@ public class KiePMMLASTFactoryUtils { +@@ -124,7 +124,7 @@ public class KiePMMLASTFactoryUtils { } public static Object getCorrectlyFormattedObject(final SimplePredicate simplePredicate, final Map fieldTypeMap) { @@ -6106,10 +6097,10 @@ index 491df26632..35b5ffa32e 100644 } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java -index 7f39b545f3..874ffd5b6b 100644 +index 22ffee44d5..0fed2e969f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java -@@ -170,7 +170,7 @@ public class KiePMMLCompoundPredicateASTFactoryTest { +@@ -172,7 +172,7 @@ public class KiePMMLCompoundPredicateASTFactoryTest { .findFirst(); if (fieldName.isPresent()) { SimplePredicate mappedPredicate = predicates.stream() @@ -6118,7 +6109,7 @@ index 7f39b545f3..874ffd5b6b 100644 .findFirst() .orElse(null); assertThat(mappedPredicate).isNotNull(); -@@ -235,7 +235,7 @@ public class KiePMMLCompoundPredicateASTFactoryTest { +@@ -237,7 +237,7 @@ public class KiePMMLCompoundPredicateASTFactoryTest { .findFirst(); if (fieldName.isPresent()) { SimplePredicate mappedPredicate = predicates.stream() @@ -6128,10 +6119,10 @@ index 7f39b545f3..874ffd5b6b 100644 assertThat(retrieved.getStatusConstraint()).isNull(); assertThat(retrieved.getActivationGroup()).isEqualTo(agendaActivationGroup); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java -index 7425a8e4d1..5b4d3250df 100644 +index 5b3642abbc..3d222c3bf2 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java -@@ -40,7 +40,7 @@ public class KiePMMLDataDictionaryASTFactoryTest { +@@ -42,7 +42,7 @@ public class KiePMMLDataDictionaryASTFactoryTest { @Test void declareTypes() { List dataFields = Arrays.asList(getTypeDataField(), getDottedTypeDataField(), getTypeDataField(), getDottedTypeDataField()); @@ -6140,7 +6131,7 @@ index 7425a8e4d1..5b4d3250df 100644 final Map fieldTypeMap = new HashMap<>(); List retrieved = KiePMMLDataDictionaryASTFactory.factory(fieldTypeMap).declareTypes(getFieldsFromDataDictionary(dataDictionary)); assertThat(retrieved).isNotNull(); -@@ -58,12 +58,12 @@ public class KiePMMLDataDictionaryASTFactoryTest { +@@ -60,12 +60,12 @@ public class KiePMMLDataDictionaryASTFactoryTest { } private void commonVerifyTypeDeclarationDescr(DataField dataField, Map fieldTypeMap, final KiePMMLDroolsType kiePMMLDroolsType) { @@ -6157,10 +6148,10 @@ index 7425a8e4d1..5b4d3250df 100644 assertThat(kiePMMLOriginalTypeGeneratedType.getGeneratedType()).startsWith(expectedGeneratedType); } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java -index cb32a1c418..9694394d76 100644 +index 4f7b725f82..f83d4f22dd 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java -@@ -25,7 +25,6 @@ import java.util.stream.IntStream; +@@ -27,7 +27,6 @@ import java.util.stream.IntStream; import org.dmg.pmml.DataType; import org.dmg.pmml.DerivedField; @@ -6168,7 +6159,7 @@ index cb32a1c418..9694394d76 100644 import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.DATA_TYPE; -@@ -67,7 +66,7 @@ public class KiePMMLDerivedFieldASTFactoryTest { +@@ -69,7 +68,7 @@ public class KiePMMLDerivedFieldASTFactoryTest { } private void commonValidateKiePMMLDroolsType(KiePMMLDroolsType toValidate, DerivedField derivedField) { @@ -6177,7 +6168,7 @@ index cb32a1c418..9694394d76 100644 String expectedName = getSanitizedClassName(derivedFieldName.toUpperCase()); assertThat(toValidate.getName()).isEqualTo(expectedName); String expectedType = DATA_TYPE.byName(derivedField.getDataType().value()).getMappedClass().getSimpleName(); -@@ -80,7 +79,7 @@ public class KiePMMLDerivedFieldASTFactoryTest { +@@ -82,7 +81,7 @@ public class KiePMMLDerivedFieldASTFactoryTest { private DerivedField getDerivedField(String fieldName) { DerivedField toReturn = new DerivedField(); @@ -6187,10 +6178,10 @@ index cb32a1c418..9694394d76 100644 int rndInt = new Random().nextInt(values.length - 1); DATA_TYPE dataType = values[rndInt]; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java -index eda072a71e..08fbb62ee3 100644 +index ebc557fb9b..0ec409c52d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java -@@ -65,7 +65,7 @@ public class KiePMMLSimplePredicateASTFactoryTest { +@@ -67,7 +67,7 @@ public class KiePMMLSimplePredicateASTFactoryTest { assertThat(retrieved).isNotNull(); String baseExpectedRule = String.format(KiePMMLAbstractModelASTFactory.SURROGATE_RULENAME_PATTERN, currentRule, @@ -6199,7 +6190,7 @@ index eda072a71e..08fbb62ee3 100644 String expectedRule = baseExpectedRule + "_TRUE"; assertThat(retrieved.getName()).isEqualTo(expectedRule); assertThat(retrieved.getStatusToSet()).isEqualTo(DONE); -@@ -133,7 +133,7 @@ public class KiePMMLSimplePredicateASTFactoryTest { +@@ -135,7 +135,7 @@ public class KiePMMLSimplePredicateASTFactoryTest { assertThat(retrieved).isNotNull(); String baseExpectedRule = String.format(KiePMMLAbstractModelASTFactory.SURROGATE_RULENAME_PATTERN, currentRule, @@ -6209,10 +6200,10 @@ index eda072a71e..08fbb62ee3 100644 assertThat(retrieved.getName()).isEqualTo(expectedRule); assertThat(retrieved.getStatusToSet()).isEqualTo(currentRule); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java -index 1c5c90e631..1d3192f47b 100644 +index 013f6edf63..86261e8153 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java -@@ -20,7 +20,6 @@ import java.util.Collections; +@@ -22,7 +22,6 @@ import java.util.Collections; import java.util.List; import java.util.StringJoiner; @@ -6220,7 +6211,7 @@ index 1c5c90e631..1d3192f47b 100644 import org.dmg.pmml.OutputField; import org.dmg.pmml.ResultFeature; import org.drools.drl.ast.dsl.DescrFactory; -@@ -164,7 +163,7 @@ public class KiePMMLDescrRhsFactoryTest { +@@ -166,7 +165,7 @@ public class KiePMMLDescrRhsFactoryTest { String outputFieldName = "OUTPUTFIELDNAME"; Object result = "RESULT"; OutputField outputField = new OutputField(); @@ -6229,7 +6220,7 @@ index 1c5c90e631..1d3192f47b 100644 outputField.setResultFeature(ResultFeature.PREDICTED_VALUE); List outputFields = Collections.singletonList(outputField); KiePMMLDroolsRule.Builder builder = KiePMMLDroolsRule.builder(ruleName, statusToSet, outputFields); -@@ -209,7 +208,7 @@ public class KiePMMLDescrRhsFactoryTest { +@@ -211,7 +210,7 @@ public class KiePMMLDescrRhsFactoryTest { String outputFieldName = "OUTPUTFIELDNAME"; Object result = "RESULT"; OutputField outputField = new OutputField(); @@ -6239,10 +6230,10 @@ index 1c5c90e631..1d3192f47b 100644 List outputFields = Collections.singletonList(outputField); StringJoiner joiner = new StringJoiner(""); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java -index 5d2096f1d8..4461cfb39e 100644 +index 666154816d..232e38f76b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java -@@ -181,7 +181,7 @@ public class DroolsModelProviderTest { +@@ -183,7 +183,7 @@ public class DroolsModelProviderTest { private void commonVerifyTypesList(Field toVerify, final List types) { assertThat(types.stream() .anyMatch(type -> { @@ -6251,7 +6242,7 @@ index 5d2096f1d8..4461cfb39e 100644 if (!type.getName().startsWith(expectedName)) { return false; } -@@ -206,13 +206,13 @@ public class DroolsModelProviderTest { +@@ -208,13 +208,13 @@ public class DroolsModelProviderTest { final Map fieldTypeMap) { assertThat(fieldTypeMap.entrySet().stream() .anyMatch(entry -> { @@ -6268,10 +6259,10 @@ index 5d2096f1d8..4461cfb39e 100644 return true; })).isTrue(); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java -index e0c824f1d3..ddfa79ee1b 100644 +index 7fd20b7b30..5dd81dc878 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java -@@ -195,7 +195,7 @@ public class KiePMMLASTFactoryUtilsTest { +@@ -197,7 +197,7 @@ public class KiePMMLASTFactoryUtilsTest { kiePMMLFieldOperatorValue.getKiePMMLOperatorValues().get(0); SimplePredicate simplePredicate = nestedPredicates.stream() .map(predicate -> (SimplePredicate) predicate) @@ -6280,7 +6271,7 @@ index e0c824f1d3..ddfa79ee1b 100644 .findFirst() .orElseThrow(() -> new RuntimeException("Failed to find SimplePredicate for " + kiePMMLFieldOperatorValue.getName())); commonVerifyKiePMMLOperatorValue(kiePMMLOperatorValue, simplePredicate); -@@ -208,7 +208,7 @@ public class KiePMMLASTFactoryUtilsTest { +@@ -210,7 +210,7 @@ public class KiePMMLASTFactoryUtilsTest { private void commonPopulateKiePMMLFieldOperatorValueListWithSimplePredicates(CompoundPredicate.BooleanOperator compoundBooleanOperator, BOOLEAN_OPERATOR booleanOperator) { final Map> predicatesByField = simplePredicates.stream() @@ -6289,7 +6280,7 @@ index e0c824f1d3..ddfa79ee1b 100644 final List toPopulate = new ArrayList<>(); KiePMMLASTFactoryUtils.populateKiePMMLFieldOperatorValueListWithSimplePredicates(toPopulate, compoundBooleanOperator, -@@ -258,7 +258,7 @@ public class KiePMMLASTFactoryUtilsTest { +@@ -260,7 +260,7 @@ public class KiePMMLASTFactoryUtilsTest { private SimplePredicate getSimplePredicate(String generatedType) { String predicateName = getOriginalPredicateName(generatedType); return simplePredicates.stream() @@ -6299,10 +6290,10 @@ index e0c824f1d3..ddfa79ee1b 100644 .orElseThrow(() -> new RuntimeException("Failed to find SimplePredicate for " + predicateName)); } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java -index 3e160ea62a..488c28cc07 100644 +index b5ec2ce14d..e18a931351 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java -@@ -22,7 +22,6 @@ import java.util.Map; +@@ -25,7 +25,6 @@ import java.util.Map; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; @@ -6310,7 +6301,7 @@ index 3e160ea62a..488c28cc07 100644 import org.dmg.pmml.LocalTransformations; import org.dmg.pmml.OpType; import org.dmg.pmml.OutputField; -@@ -67,7 +66,7 @@ public class KiePMMLASTTestUtils { +@@ -70,7 +69,7 @@ public class KiePMMLASTTestUtils { DataField toReturn = new DataField(); toReturn.setOpType(OpType.CONTINUOUS); toReturn.setDataType(DataType.DATE); @@ -6319,7 +6310,7 @@ index 3e160ea62a..488c28cc07 100644 return toReturn; } -@@ -75,7 +74,7 @@ public class KiePMMLASTTestUtils { +@@ -78,7 +77,7 @@ public class KiePMMLASTTestUtils { DataField toReturn = new DataField(); toReturn.setOpType(OpType.CONTINUOUS); toReturn.setDataType(DataType.BOOLEAN); @@ -6329,10 +6320,10 @@ index 3e160ea62a..488c28cc07 100644 } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java -index 28fdafd02a..d9955b6c0e 100644 +index 18d6ac33f7..d74bd8f7a5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java -@@ -42,7 +42,6 @@ import com.github.javaparser.ast.stmt.Statement; +@@ -44,7 +44,6 @@ import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; import org.dmg.pmml.DataType; @@ -6340,7 +6331,7 @@ index 28fdafd02a..d9955b6c0e 100644 import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningFunction; import org.dmg.pmml.MiningSchema; -@@ -84,7 +83,7 @@ public class KiePMMLDroolsModelFactoryUtilsTest { +@@ -86,7 +85,7 @@ public class KiePMMLDroolsModelFactoryUtilsTest { void getKiePMMLModelCompilationUnit() { DataDictionary dataDictionary = new DataDictionary(); String targetFieldString = "target.field"; @@ -6350,10 +6341,10 @@ index 28fdafd02a..d9955b6c0e 100644 String modelName = "ModelName"; TreeModel model = new TreeModel(); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java -index 16d50cd211..af24a2d2f8 100644 +index 486f873b80..0823492a5b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java -@@ -368,7 +368,7 @@ public class KiePMMLScorecardModelCharacteristicASTFactoryTest { +@@ -370,7 +370,7 @@ public class KiePMMLScorecardModelCharacteristicASTFactoryTest { DATA_TYPE dataType = dataDictionary.getDataFields().stream().filter(dataField -> dataField.getName().equals(simplePredicate.getField())) .map(dataField -> DATA_TYPE.byName(dataField.getDataType().value())) .findFirst() @@ -6363,10 +6354,10 @@ index 16d50cd211..af24a2d2f8 100644 } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java -index 22d3cb65c1..d48aff5c66 100644 +index e5e1a37343..6f9f7f833c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java -@@ -98,7 +98,7 @@ public class KiePMMLTreeModelFactoryTest { +@@ -100,7 +100,7 @@ public class KiePMMLTreeModelFactoryTest { assertThat(retrieved).isNotNull(); List dataFields = dataDictionary.getDataFields(); assertThat(fieldTypeMap).hasSameSizeAs(dataFields); @@ -6376,10 +6367,10 @@ index 22d3cb65c1..d48aff5c66 100644 @Test diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java -index 01fd1ef0c7..393c4f4343 100644 +index 2bbd9df084..d6cadfc321 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java -@@ -20,7 +20,7 @@ import java.io.FileInputStream; +@@ -22,7 +22,7 @@ import java.io.FileInputStream; import java.io.IOException; import java.util.List; @@ -6389,10 +6380,10 @@ index 01fd1ef0c7..393c4f4343 100644 import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DerivedField; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java -index a01f6ba83f..2316de9503 100644 +index 16c99b6297..935a576397 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java -@@ -22,7 +22,7 @@ import java.util.HashMap; +@@ -24,7 +24,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; @@ -6402,10 +6393,10 @@ index a01f6ba83f..2316de9503 100644 import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java -index cc2616fdef..f4ecab705b 100644 +index df6b84623a..0ff476d12f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java -@@ -22,7 +22,7 @@ import java.util.HashMap; +@@ -24,7 +24,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; @@ -6415,10 +6406,10 @@ index cc2616fdef..f4ecab705b 100644 import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java -index 87c89db11f..bbd01cae21 100644 +index 413c7bfec9..05b1117e15 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java -@@ -21,7 +21,7 @@ import java.util.ArrayList; +@@ -23,7 +23,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -6428,10 +6419,10 @@ index 87c89db11f..bbd01cae21 100644 import org.dmg.pmml.mining.MiningModel; import org.junit.jupiter.api.BeforeAll; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java -index d843728fb0..7de61d608c 100644 +index a74071da45..3630b255e1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java -@@ -191,7 +191,7 @@ public class RegressionModelImplementationProvider implements ModelImplementatio +@@ -194,7 +194,7 @@ public class RegressionModelImplementationProvider implements ModelImplementatio if (targetFields.size() != 1) { throw new KiePMMLException("Expected one target field, retrieved " + targetFields.size()); } @@ -6440,7 +6431,7 @@ index d843728fb0..7de61d608c 100644 targetFields.get(0).getName()))) { throw new KiePMMLException(String.format("Not-matching target fields: %s %s", toValidate.getTargetField() , targetFields.get(0).getName())); -@@ -206,7 +206,7 @@ public class RegressionModelImplementationProvider implements ModelImplementatio +@@ -209,7 +209,7 @@ public class RegressionModelImplementationProvider implements ModelImplementatio return fields.stream() .filter(DataField.class::isInstance) .map(DataField.class::cast) @@ -6449,7 +6440,7 @@ index d843728fb0..7de61d608c 100644 .findFirst().orElse(0) == 2; } -@@ -214,7 +214,7 @@ public class RegressionModelImplementationProvider implements ModelImplementatio +@@ -217,7 +217,7 @@ public class RegressionModelImplementationProvider implements ModelImplementatio List targetFields = getTargetFields(fields, toValidate); final List categoricalFields = fields.stream() .filter(dataField -> OpType.CATEGORICAL.equals(dataField.getOpType())) @@ -6459,10 +6450,10 @@ index d843728fb0..7de61d608c 100644 final List categoricalNameTypes = targetFields.stream().filter(targetField -> categoricalFields.contains(targetField.getName())).collect(Collectors.toList()); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java -index fcffd3bb09..2721ba7383 100644 +index 131e786ce6..c24e4bf06a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java -@@ -203,7 +203,7 @@ public class KiePMMLRegressionTableFactory { +@@ -206,7 +206,7 @@ public class KiePMMLRegressionTableFactory { */ static Map> getNumericPredictorsMap(final List numericPredictors) { return numericPredictors.stream() @@ -6471,7 +6462,7 @@ index fcffd3bb09..2721ba7383 100644 KiePMMLRegressionTableFactory::getNumericPredictorEntry)); } -@@ -232,7 +232,7 @@ public class KiePMMLRegressionTableFactory { +@@ -235,7 +235,7 @@ public class KiePMMLRegressionTableFactory { */ static Map> getCategoricalPredictorsMap(final List categoricalPredictors) { final Map> groupedCollectors = categoricalPredictors.stream() @@ -6480,7 +6471,7 @@ index fcffd3bb09..2721ba7383 100644 return groupedCollectors.entrySet().stream() .map(entry -> { Map groupedCategoricalPredictorMap = -@@ -273,7 +273,7 @@ public class KiePMMLRegressionTableFactory { +@@ -276,7 +276,7 @@ public class KiePMMLRegressionTableFactory { return predictorTerms.stream() .map(predictorTerm -> { int arity = predictorsArity.addAndGet(1); @@ -6489,7 +6480,7 @@ index fcffd3bb09..2721ba7383 100644 "predictorTermFunction" + arity; return new AbstractMap.SimpleEntry<>(variableName, getPredictorTermSerializableFunction(predictorTerm)); -@@ -292,7 +292,7 @@ public class KiePMMLRegressionTableFactory { +@@ -295,7 +295,7 @@ public class KiePMMLRegressionTableFactory { return resultMap -> { final AtomicReference result = new AtomicReference<>(1.0); final List fieldRefs = predictorTerm.getFieldRefs().stream() @@ -6498,7 +6489,7 @@ index fcffd3bb09..2721ba7383 100644 .collect(Collectors.toList()); for (Map.Entry entry : resultMap.entrySet()) { if (fieldRefs.contains(entry.getKey())) { -@@ -440,7 +440,7 @@ public class KiePMMLRegressionTableFactory { +@@ -443,7 +443,7 @@ public class KiePMMLRegressionTableFactory { */ static Map getNumericPredictorsExpressions(final List numericPredictors) { return numericPredictors.stream() @@ -6507,7 +6498,7 @@ index fcffd3bb09..2721ba7383 100644 KiePMMLRegressionTableFactory::getNumericPredictorExpression)); } -@@ -489,7 +489,7 @@ public class KiePMMLRegressionTableFactory { +@@ -492,7 +492,7 @@ public class KiePMMLRegressionTableFactory { */ static Map getCategoricalPredictorsExpressions(final List categoricalPredictors, final BlockStmt body, final String variableName) { final Map> groupedCollectors = categoricalPredictors.stream() @@ -6516,7 +6507,7 @@ index fcffd3bb09..2721ba7383 100644 final String categoricalPredictorMapNameBase = getSanitizedVariableName(String.format("%sMap", variableName)); final AtomicInteger counter = new AtomicInteger(); return groupedCollectors.entrySet().stream() -@@ -578,7 +578,7 @@ public class KiePMMLRegressionTableFactory { +@@ -581,7 +581,7 @@ public class KiePMMLRegressionTableFactory { return predictorTerms.stream() .map(predictorTerm -> { int arity = predictorsArity.addAndGet(1); @@ -6525,7 +6516,7 @@ index fcffd3bb09..2721ba7383 100644 "predictorTermFunction" + arity; return new AbstractMap.SimpleEntry<>(variableName, getPredictorTermFunction(predictorTerm)); -@@ -627,7 +627,7 @@ public class KiePMMLRegressionTableFactory { +@@ -630,7 +630,7 @@ public class KiePMMLRegressionTableFactory { .orElseThrow(() -> new KiePMMLInternalException(String.format(MISSING_VARIABLE_IN_BODY, "fieldRefs", body))); final List nodeList = predictorTerm.getFieldRefs().stream() @@ -6535,10 +6526,10 @@ index fcffd3bb09..2721ba7383 100644 NodeList expressions = NodeList.nodeList(nodeList); MethodCallExpr methodCallExpr = new MethodCallExpr(new NameExpr("Arrays"), "asList", expressions); diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java -index 3e609be3e3..58707e6f2f 100644 +index a2d17ca5d0..2d3983495d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java -@@ -64,8 +64,7 @@ public abstract class AbstractKiePMMLRegressionTableRegressionFactoryTest { +@@ -66,8 +66,7 @@ public abstract class AbstractKiePMMLRegressionTableRegressionFactoryTest { IntStream.range(0, 2).forEach(j -> categoricalPredictors.add(getCategoricalPredictor("CatPred-" + i, 27.12, 3.46))); numericPredictors.add(getNumericPredictor("NumPred-" + i, 2, 13.11)); predictorTerms.add(getPredictorTerm("PredTerm-" + i, 32.29, @@ -6549,10 +6540,10 @@ index 3e609be3e3..58707e6f2f 100644 return PMMLModelTestUtils.getRegressionTable(categoricalPredictors, numericPredictors, predictorTerms, intercept, targetCategory); } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java -index 20c679fb09..f49fff8e01 100644 +index 9d9d2172f7..950c91cb91 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java -@@ -28,7 +28,6 @@ import com.github.javaparser.ast.expr.Expression; +@@ -30,7 +30,6 @@ import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.MethodReferenceExpr; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; @@ -6560,7 +6551,7 @@ index 20c679fb09..f49fff8e01 100644 import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningSchema; import org.dmg.pmml.OpType; -@@ -88,7 +87,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres +@@ -90,7 +89,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres String targetField = "targetField"; DataField dataField = new DataField(); @@ -6569,7 +6560,7 @@ index 20c679fb09..f49fff8e01 100644 dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); -@@ -129,7 +128,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres +@@ -131,7 +130,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres boolean isBinary = regressionModel.getRegressionTables().size() == 2; assertThat(retrieved.isBinary()).isEqualTo(isBinary); assertThat(retrieved.isBinary()).isEqualTo(isBinary); @@ -6578,7 +6569,7 @@ index 20c679fb09..f49fff8e01 100644 } @Test -@@ -142,7 +141,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres +@@ -144,7 +143,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres String targetField = "targetField"; DataField dataField = new DataField(); @@ -6587,7 +6578,7 @@ index 20c679fb09..f49fff8e01 100644 dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); -@@ -193,7 +192,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres +@@ -195,7 +194,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres String targetField = "targetField"; DataField dataField = new DataField(); @@ -6596,7 +6587,7 @@ index 20c679fb09..f49fff8e01 100644 dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); -@@ -279,7 +278,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres +@@ -281,7 +280,7 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres String targetField = "targetField"; DataField dataField = new DataField(); @@ -6605,7 +6596,7 @@ index 20c679fb09..f49fff8e01 100644 dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); -@@ -371,10 +370,10 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres +@@ -373,10 +372,10 @@ public class KiePMMLClassificationTableFactoryTest extends AbstractKiePMMLRegres private OutputField getOutputField(String name, ResultFeature resultFeature, String targetField) { OutputField toReturn = new OutputField(); @@ -6619,10 +6610,10 @@ index 20c679fb09..f49fff8e01 100644 return toReturn; } diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java -index c5ef91a5eb..2bd3a8a9dc 100644 +index fa15492aca..715d8fcb36 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java -@@ -164,7 +164,7 @@ public class KiePMMLRegressionModelFactoryTest { +@@ -166,7 +166,7 @@ public class KiePMMLRegressionModelFactoryTest { assertThat(retrieved).isNotNull(); assertThat(retrieved.getName()).isEqualTo(regressionModel.getModelName()); assertThat(retrieved.getMiningFunction()).isEqualTo(MINING_FUNCTION.byName(regressionModel.getMiningFunction().value())); @@ -6631,7 +6622,7 @@ index c5ef91a5eb..2bd3a8a9dc 100644 final AbstractKiePMMLTable regressionTable = retrieved.getRegressionTable(); assertThat(regressionTable).isNotNull(); assertThat(regressionTable).isInstanceOf(KiePMMLClassificationTable.class); -@@ -225,7 +225,7 @@ public class KiePMMLRegressionModelFactoryTest { +@@ -227,7 +227,7 @@ public class KiePMMLRegressionModelFactoryTest { Map superInvocationExpressionsMap = new HashMap<>(); superInvocationExpressionsMap.put(0, new NameExpr(String.format("\"%s\"", regressionModel.getModelName()))); Map assignExpressionMap = new HashMap<>(); @@ -6640,7 +6631,7 @@ index c5ef91a5eb..2bd3a8a9dc 100644 assignExpressionMap.put("miningFunction", new NameExpr(miningFunction.getClass().getName() + "." + miningFunction.name())); assignExpressionMap.put("pmmlMODEL", -@@ -258,17 +258,17 @@ public class KiePMMLRegressionModelFactoryTest { +@@ -260,17 +260,17 @@ public class KiePMMLRegressionModelFactoryTest { final Map> numericFunctionMap = regressionTable.getNumericFunctionMap(); for (NumericPredictor numericPredictor : originalRegressionTable.getNumericPredictors()) { @@ -6663,10 +6654,10 @@ index c5ef91a5eb..2bd3a8a9dc 100644 } \ No newline at end of file diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java -index ba88fb6bd1..2ef89a689d 100644 +index a856508042..def6548dc5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java -@@ -41,7 +41,6 @@ import com.github.javaparser.ast.stmt.ExpressionStmt; +@@ -43,7 +43,6 @@ import com.github.javaparser.ast.stmt.ExpressionStmt; import org.assertj.core.data.Offset; import org.dmg.pmml.DataDictionary; import org.dmg.pmml.DataField; @@ -6674,7 +6665,7 @@ index ba88fb6bd1..2ef89a689d 100644 import org.dmg.pmml.MiningField; import org.dmg.pmml.MiningSchema; import org.dmg.pmml.OpType; -@@ -111,7 +110,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -113,7 +112,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); @@ -6683,7 +6674,7 @@ index ba88fb6bd1..2ef89a689d 100644 dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); -@@ -154,7 +153,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -156,7 +155,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); @@ -6692,7 +6683,7 @@ index ba88fb6bd1..2ef89a689d 100644 dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); -@@ -192,7 +191,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -194,7 +193,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); @@ -6701,7 +6692,7 @@ index ba88fb6bd1..2ef89a689d 100644 dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); -@@ -231,7 +230,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -233,7 +232,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); @@ -6710,7 +6701,7 @@ index ba88fb6bd1..2ef89a689d 100644 dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); -@@ -316,7 +315,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -318,7 +317,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression Map> retrieved = KiePMMLRegressionTableFactory.getCategoricalPredictorsMap(categoricalPredictors); final Map> groupedCollectors = categoricalPredictors.stream() @@ -6719,7 +6710,7 @@ index ba88fb6bd1..2ef89a689d 100644 assertThat(retrieved).hasSameSizeAs(groupedCollectors); groupedCollectors.keySet().forEach(predictName -> assertThat(retrieved).containsKey(predictName)); } -@@ -355,7 +354,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -357,7 +356,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression assertThat(retrieved).hasSameSizeAs(predictorTerms); IntStream.range(0, predictorTerms.size()).forEach(index -> { PredictorTerm predictorTerm = predictorTerms.get(index); @@ -6728,7 +6719,7 @@ index ba88fb6bd1..2ef89a689d 100644 }); } -@@ -392,7 +391,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -394,7 +393,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression regressionModel.setModelName(getGeneratedClassName("RegressionModel")); String targetField = "targetField"; DataField dataField = new DataField(); @@ -6737,7 +6728,7 @@ index ba88fb6bd1..2ef89a689d 100644 dataField.setOpType(OpType.CATEGORICAL); DataDictionary dataDictionary = new DataDictionary(); dataDictionary.addDataFields(dataField); -@@ -531,7 +530,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -533,7 +532,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression "variableName"); assertThat(retrieved).hasSize(3); final Map> groupedCollectors = categoricalPredictors.stream() @@ -6746,7 +6737,7 @@ index ba88fb6bd1..2ef89a689d 100644 groupedCollectors.values().forEach(categoricalPredictors12 -> commonEvaluateCategoryPredictors(body, categoricalPredictors12, "variableName")); -@@ -586,7 +585,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -588,7 +587,7 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression assertThat(retrieved).hasSameSizeAs(predictorTerms); IntStream.range(0, predictorTerms.size()).forEach(index -> { PredictorTerm predictorTerm = predictorTerms.get(index); @@ -6755,7 +6746,7 @@ index ba88fb6bd1..2ef89a689d 100644 }); } -@@ -607,17 +606,17 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression +@@ -609,17 +608,17 @@ public class KiePMMLRegressionTableFactoryTest extends AbstractKiePMMLRegression private void commonEvaluateRegressionTable(KiePMMLRegressionTable retrieved, RegressionTable source) { Map> numericFunctionMap = retrieved.getNumericFunctionMap(); assertThat(numericFunctionMap).hasSameSizeAs(source.getNumericPredictors()); @@ -6777,10 +6768,10 @@ index ba88fb6bd1..2ef89a689d 100644 private void commonEvaluateCategoryPredictors(final BlockStmt toVerify, diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java -index f39bd5ffe9..e9f3daa345 100644 +index 5ca0f0c5c4..7e162bec99 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java -@@ -24,7 +24,6 @@ import com.github.javaparser.ast.stmt.BlockStmt; +@@ -27,7 +27,6 @@ import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.Statement; import org.dmg.pmml.Apply; import org.dmg.pmml.Constant; @@ -6788,7 +6779,7 @@ index f39bd5ffe9..e9f3daa345 100644 import org.dmg.pmml.FieldRef; import org.dmg.pmml.scorecard.ComplexPartialScore; import org.junit.jupiter.api.Test; -@@ -69,14 +68,14 @@ public class KiePMMLComplexPartialScoreFactoryTest { +@@ -72,14 +71,14 @@ public class KiePMMLComplexPartialScoreFactoryTest { void getComplexPartialScoreVariableDeclarationWithFieldRef() throws IOException { final String variableName = "variableName"; FieldRef fieldRef = new FieldRef(); @@ -6805,7 +6796,7 @@ index f39bd5ffe9..e9f3daa345 100644 variableName)); assertThat(retrieved).isEqualTo(expected); List> imports = Arrays.asList(KiePMMLFieldRef.class, -@@ -91,7 +90,7 @@ public class KiePMMLComplexPartialScoreFactoryTest { +@@ -94,7 +93,7 @@ public class KiePMMLComplexPartialScoreFactoryTest { Constant constant = new Constant(); constant.setValue(value1); FieldRef fieldRef = new FieldRef(); @@ -6814,7 +6805,7 @@ index f39bd5ffe9..e9f3daa345 100644 Apply apply = new Apply(); apply.setFunction("/"); apply.addExpressions(constant, fieldRef); -@@ -102,8 +101,7 @@ public class KiePMMLComplexPartialScoreFactoryTest { +@@ -105,8 +104,7 @@ public class KiePMMLComplexPartialScoreFactoryTest { complexPartialScore); String text = getFileContent(TEST_03_SOURCE); Statement expected = JavaParserUtils.parseBlock(String.format(text, @@ -6825,10 +6816,10 @@ index f39bd5ffe9..e9f3daa345 100644 apply.getInvalidValueTreatment().value(), variableName)); diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java b/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java -index ed1536f056..b939672ad0 100644 +index 121d08ea24..dd77595701 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java -@@ -22,8 +22,8 @@ import java.util.HashMap; +@@ -25,8 +25,8 @@ import java.util.HashMap; import java.util.Map; import java.util.Properties; @@ -6840,10 +6831,10 @@ index ed1536f056..b939672ad0 100644 import org.h2.tools.DeleteDbFiles; import org.h2.tools.Server; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java -index eee5f49aed..26d202d2f7 100644 +index 8e9f686db3..5332680489 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java -@@ -26,9 +26,9 @@ import javax.sql.ConnectionEventListener; +@@ -28,9 +28,9 @@ import javax.sql.ConnectionEventListener; import javax.sql.DataSource; import javax.sql.XAConnection; import javax.sql.XADataSource; @@ -6857,10 +6848,10 @@ index eee5f49aed..26d202d2f7 100644 import com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule; import com.arjuna.ats.jta.recovery.XAResourceRecoveryHelper; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java -index 1a396881d8..3e2b39fd96 100755 +index 71d6cf6b9e..1e194adeaa 100755 --- a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java -@@ -27,8 +27,8 @@ import java.util.logging.Logger; +@@ -29,8 +29,8 @@ import java.util.logging.Logger; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.XADataSource; diff --git a/.ci/environments/quarkus-3/patches/0007_replace-javax-jakarta-in-template.patch b/.ci/environments/quarkus-3/patches/0007_replace-javax-jakarta-in-template.patch index 9d545613632..e87059b800b 100644 --- a/.ci/environments/quarkus-3/patches/0007_replace-javax-jakarta-in-template.patch +++ b/.ci/environments/quarkus-3/patches/0007_replace-javax-jakarta-in-template.patch @@ -1,47 +1,37 @@ -Subject: [PATCH] [fix_pmml_test] Add patch to change javax -> jakarta in template ---- -Index: drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java -IDEA additional info: -Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP -<+>UTF-8 -=================================================================== +diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java +index 86624b74e3..ec5c238bb6 100644 +--- a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java ++++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java +@@ -23,7 +23,7 @@ import org.kie.api.runtime.KieSession; + import org.kie.api.runtime.KieRuntimeBuilder; + import org.drools.modelcompiler.KieBaseBuilder; + +-@javax.enterprise.context.ApplicationScoped ++@jakarta.enterprise.context.ApplicationScoped + public class ProjectRuntime implements KieRuntimeBuilder { + + private static final ProjectModel model = new ProjectModel(); diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java ---- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java (revision 1ab119fc25590caf49c7c476c346bf117fb56646) -+++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java (date 1678362274098) -@@ -12,7 +12,7 @@ +index 35e6387505..ec89fb8a04 100644 +--- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java ++++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java +@@ -10,7 +10,7 @@ import org.drools.ruleunits.impl.factory.AbstractRuleUnits; import org.drools.ruleunits.impl.ReteEvaluatorBasedRuleUnitInstance; import org.drools.ruleunits.impl.sessions.RuleUnitExecutorImpl; - + -@javax.enterprise.context.ApplicationScoped +@jakarta.enterprise.context.ApplicationScoped public class CLASS_NAME extends AbstractRuleUnit { - - private static final RuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel( new RULE_UNIT_MODEL(), $KieBaseOptions$ ); -@@ -27,8 +27,8 @@ + + private static final InternalRuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel(new RULE_UNIT_MODEL(), $KieBaseOptions$); +@@ -25,8 +25,8 @@ public class CLASS_NAME extends AbstractRuleUnit { this((RuleUnits) null); } - + - @javax.inject.Inject - public CLASS_NAME(javax.enterprise.inject.Instance ruleUnits) { + @jakarta.inject.Inject -+ public CLASS_NAME(jakarta.enterprise.inject.Instance ruleUnits) { ++ public CLASS_NA(jakarta.enterprise.inject.Instance ruleUnits) { this(ruleUnits == null || ruleUnits.isUnsatisfied() ? AbstractRuleUnits.DummyRuleUnits.INSTANCE : ruleUnits.get()); } - -Index: drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java -IDEA additional info: -Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP -<+>UTF-8 -=================================================================== -diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java ---- a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java (revision 4766094314288e7d1b4335d789374d7cc05cea74) -+++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java (date 1679061647250) -@@ -23,7 +23,7 @@ - import org.kie.api.runtime.KieRuntimeBuilder; - import org.drools.modelcompiler.KieBaseBuilder; - --@javax.enterprise.context.ApplicationScoped -+@jakarta.enterprise.context.ApplicationScoped - public class ProjectRuntime implements KieRuntimeBuilder { - - private static final ProjectModel model = new ProjectModel(); + diff --git a/.ci/environments/quarkus-3/patches/0010_infinispan_reliability_tests_javax.patch b/.ci/environments/quarkus-3/patches/0010_infinispan_reliability_tests_javax.patch deleted file mode 100644 index b1209bfb4bd..00000000000 --- a/.ci/environments/quarkus-3/patches/0010_infinispan_reliability_tests_javax.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff --git a/drools-reliability/drools-reliability-infinispan/pom.xml b/drools-reliability/drools-reliability-infinispan/pom.xml -index d47847e602..14501ab4c3 100644 ---- a/drools-reliability/drools-reliability-infinispan/pom.xml -+++ b/drools-reliability/drools-reliability-infinispan/pom.xml -@@ -105,6 +105,13 @@ - -
- -+ -+ -+ javax.transaction -+ javax.transaction-api -+ 1.3 -+ test -+ - - org.infinispan - infinispan-component-annotations diff --git a/.ci/environments/quarkus-3/patches/0011_remaining_javax_jakarta.patch b/.ci/environments/quarkus-3/patches/0010_remaining_javax_jakarta.patch similarity index 95% rename from .ci/environments/quarkus-3/patches/0011_remaining_javax_jakarta.patch rename to .ci/environments/quarkus-3/patches/0010_remaining_javax_jakarta.patch index 690529889de..1ee291c7174 100644 --- a/.ci/environments/quarkus-3/patches/0011_remaining_javax_jakarta.patch +++ b/.ci/environments/quarkus-3/patches/0010_remaining_javax_jakarta.patch @@ -90,19 +90,6 @@ index 0c8c51edb1..15913f8772 100644 // reinitialize all fields this.ut = findUserTransaction(); this.tm = findTransactionManager(this.ut); -diff --git a/drools-reliability/drools-reliability-infinispan/pom.xml b/drools-reliability/drools-reliability-infinispan/pom.xml -index 557e01c443..d47847e602 100644 ---- a/drools-reliability/drools-reliability-infinispan/pom.xml -+++ b/drools-reliability/drools-reliability-infinispan/pom.xml -@@ -16,7 +16,7 @@ - - - org.drools.reliability.infinispan -- 14.0.6.Final -+ 14.0.7.Final - - - diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java index d2949bf1df..3726116e3b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java diff --git a/.ci/environments/quarkus-3/quarkus3.yml b/.ci/environments/quarkus-3/quarkus3.yml index 93dfa27db23..a2664acb7c5 100644 --- a/.ci/environments/quarkus-3/quarkus3.yml +++ b/.ci/environments/quarkus-3/quarkus3.yml @@ -3,8 +3,8 @@ description: Update Quarkus version and refactor imports and resources if needed type: specs.openrewrite.org/v1beta/recipe recipeList: - org.openrewrite.maven.ChangePropertyValue: { - key: version.io.quarkus, - newValue: 3.0.0.Final + newValue: 3.0.0.Final, + key: version.io.quarkus } - org.kie.drools.Quarkus3Migration - org.kie.ManagedDependencies @@ -117,9 +117,7 @@ recipeList: } - org.kie.openrewrite.recipe.jpmml.JPMMLRecipe --- -name: org.kie.ManagedDependencies -description: Update all managed dependencies based on dependency updates from Quarkus. -type: specs.openrewrite.org/v1beta/recipe +displayName: Update Managed Dependencies recipeList: - org.openrewrite.maven.ChangeManagedDependencyGroupIdAndArtifactId: { oldGroupId: javax.activation, @@ -504,7 +502,9 @@ recipeList: newGroupId: org.keycloak, newArtifactId: keycloak-admin-client-jakarta } -displayName: Update Managed Dependencies +type: specs.openrewrite.org/v1beta/recipe +description: Update all managed dependencies based on dependency updates from Quarkus. +name: org.kie.ManagedDependencies --- type: specs.openrewrite.org/v1beta/recipe name: io.quarkus.updates.core.quarkus30.UpgradeQuarkiverse diff --git a/.ci/environments/update.sh b/.ci/environments/update.sh index bda16c4ef81..0ee06957644 100755 --- a/.ci/environments/update.sh +++ b/.ci/environments/update.sh @@ -45,4 +45,4 @@ if [ -f "${env_path}/after.sh" ]; then fi # Download `setup_integration_branch` script and execute -curl -s https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/dsl/seed/scripts/setup_integration_branch.sh | bash \ No newline at end of file +curl -s https://raw.githubusercontent.com/apache/incubator-kie-kogito-pipelines/main/dsl/seed/scripts/setup_integration_branch.sh | bash \ No newline at end of file diff --git a/.ci/jenkins/Jenkinsfile b/.ci/jenkins/Jenkinsfile new file mode 100644 index 00000000000..a8c4bd6e8de --- /dev/null +++ b/.ci/jenkins/Jenkinsfile @@ -0,0 +1,44 @@ +@Library('jenkins-pipeline-shared-libraries')_ + +pr_check_script = null + +pipeline { + agent { + label 'ubuntu' + } + options { + timestamps() + timeout(time: 480, unit: 'MINUTES') + disableConcurrentBuilds(abortPrevious: true) + } + environment { + BUILDCHAIN_PROJECT = 'apache/incubator-kie-drools' + BUILDCHAIN_CONFIG_REPO = 'incubator-kie-drools' + BUILDCHAIN_CONFIG_FILE_PATH = '.ci/buildchain-config.yaml' + + ENABLE_SONARCLOUD = 'true' + DROOLS_BUILD_MVN_OPTS = '-Prun-code-coverage' + } + stages { + stage('Initialize') { + steps { + script { + // load `pr_check.groovy` file from kogito-pipelines:main + dir('kogito-pipelines') { + checkout(githubscm.resolveRepository('kogito-pipelines', 'jstastny-cz', 'GH_comment', false, 'ASF_Cloudbees_Jenkins_ci-builds')) + pr_check_script = load 'dsl/scripts/pr_check.groovy' + } + } + } + } + stage('PR check') { + steps { + script { + dir('kogito-pipelines') { + pr_check_script.launch() + } + } + } + } + } +} diff --git a/.ci/jenkins/Jenkinsfile.deploy b/.ci/jenkins/Jenkinsfile.deploy index 169dbbd2338..12b11ea345c 100644 --- a/.ci/jenkins/Jenkinsfile.deploy +++ b/.ci/jenkins/Jenkinsfile.deploy @@ -6,16 +6,12 @@ import org.kie.jenkins.MavenStagingHelper deployProperties = [:] -droolsRepository = 'drools' - pipeline { agent { - label 'kie-rhel7 && kie-mem16g && !built-in' - } - - tools { - maven env.BUILD_MAVEN_TOOL - jdk env.BUILD_JDK_TOOL + docker { + image env.AGENT_DOCKER_BUILDER_IMAGE + args env.AGENT_DOCKER_BUILDER_ARGS + } } options { @@ -23,20 +19,11 @@ pipeline { timeout(time: 180, unit: 'MINUTES') } - // parameters { - // For parameters, check into ./dsl/jobs.groovy file - // } - environment { - // Static env is defined into ./dsl/jobs.groovy file - - KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}") - - // Keep here for visitibility - MAVEN_OPTS = '-Xms1024m -Xmx4g' + DROOLS_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}") PR_BRANCH_HASH = "${util.generateHash(10)}" - MAVEN_DEPLOY_LOCAL_DIR = "${WORKSPACE}/maven_deploy_dir" + MAVEN_DEPLOY_LOCAL_DIR = "/tmp/maven_deploy_dir" } stages { @@ -82,7 +69,10 @@ pipeline { steps { script { dir(getRepoName()) { - prepareForPR() + if (githubscm.isBranchExist('origin',getPRBranch())) { + githubscm.removeRemoteBranch('origin', getPRBranch()) + } + githubscm.createBranch(getPRBranch()) } } } @@ -100,7 +90,12 @@ pipeline { stage('Build & Test') { steps { script { - getMavenCommand().withProperty('maven.test.failure.ignore', true).skipTests(params.SKIP_TESTS).run('clean install') + getMavenCommand() + .withOptions(env.DROOLS_BUILD_MVN_OPTS ? [ env.DROOLS_BUILD_MVN_OPTS ] : []) + .withOptions(env.BUILD_MVN_OPTS_CURRENT ? [ env.BUILD_MVN_OPTS_CURRENT ] : []) + .withProperty('maven.test.failure.ignore', true) + .skipTests(params.SKIP_TESTS) + .run('clean install') } } post { @@ -112,20 +107,7 @@ pipeline { } } } - stage('Deploy to repository') { - when { - expression { return !shouldStageArtifacts() && shouldDeployToRepository() } - } - steps { - script { - runMavenDeploy() - } - } - } stage('Deploy locally') { - when { - expression { return shouldStageArtifacts() } - } steps { script { runMavenDeploy(true) @@ -162,7 +144,7 @@ pipeline { success { script { setDeployPropertyIfNeeded("${getRepoName()}.pr.source.uri", "https://github.com/${getGitAuthor()}/${getRepoName()}") - setDeployPropertyIfNeeded("${getRepoName()}.pr.source.ref", getBuildBranch()) + setDeployPropertyIfNeeded("${getRepoName()}.pr.source.ref", getPRBranch()) setDeployPropertyIfNeeded("${getRepoName()}.pr.target.uri", "https://github.com/${getGitAuthor()}/${getRepoName()}") setDeployPropertyIfNeeded("${getRepoName()}.pr.target.ref", getBuildBranch()) } @@ -200,10 +182,6 @@ void checkoutRepo() { sh "git checkout ${getBuildBranch()}" } -void prepareForPR() { - githubscm.createBranch(getPRBranch()) -} - void commitAndCreatePR() { def commitMsg = "[${getBuildBranch()}] Update version to ${getProjectVersion()}" def prBody = "Generated by build ${BUILD_TAG}: ${BUILD_URL}.\nPlease do not merge, it should be merged automatically." @@ -218,18 +196,18 @@ void commitAndCreatePR() { void sendNotification() { if (params.SEND_NOTIFICATION) { - mailer.sendMarkdownTestSummaryNotification('Deploy', "[${getBuildBranch()}] Drools", [env.KOGITO_CI_EMAIL_TO]) + mailer.sendMarkdownTestSummaryNotification('Deploy', "[${getBuildBranch()}] Drools", [env.DROOLS_CI_EMAIL_TO]) } else { echo 'No notification sent per configuration' } } boolean shouldStageArtifacts() { - return isRelease() && !env.MAVEN_DEPLOY_REPOSITORY + return isRelease() } boolean shouldDeployToRepository() { - return env.MAVEN_DEPLOY_REPOSITORY || getGitAuthor() == 'kiegroup' + return env.MAVEN_DEPLOY_REPOSITORY || getGitAuthor() == 'apache' } boolean isRelease() { @@ -258,7 +236,7 @@ String getProjectVersion() { } String getPRBranch() { - return "${getProjectVersion()}-${env.PR_BRANCH_HASH}" + return params.DROOLS_PR_BRANCH } String getGitAuthorCredsID() { @@ -273,10 +251,16 @@ void setDeployPropertyIfNeeded(String key, def value) { MavenCommand getMavenCommand(String directory = '') { directory = directory ?: getRepoName() - return new MavenCommand(this, ['-fae', '-ntp']) + def mvnCmd = new MavenCommand(this, ['-fae', '-ntp']) .withSettingsXmlId(env.MAVEN_SETTINGS_CONFIG_FILE_ID) + .withOptions(env.BUILD_MVN_OPTS ? [ env.BUILD_MVN_OPTS ] : []) .inDirectory(directory) - .withProperty('full') + if (!isMainStream()) { // Workaround as enforcer rules may not be fixed on other streams + mvnCmd.withProperty('enforcer.skip') + } else { + mvnCmd.withProperty('full') + } + return mvnCmd } void runMavenDeploy(boolean localDeployment = false) { @@ -288,7 +272,10 @@ void runMavenDeploy(boolean localDeployment = false) { mvnCmd.withDeployRepository(env.MAVEN_DEPLOY_REPOSITORY) } - mvnCmd.skipTests(true).run('clean deploy') + mvnCmd.skipTests(true) + .withOptions(env.DROOLS_BUILD_MVN_OPTS ? [ env.DROOLS_BUILD_MVN_OPTS ] : []) + .withOptions(env.BUILD_MVN_OPTS_CURRENT ? [ env.BUILD_MVN_OPTS_CURRENT ] : []) + .run('clean deploy') } void runMavenStage() { @@ -307,3 +294,6 @@ String getLocalDeploymentFolder() { return "${env.MAVEN_DEPLOY_LOCAL_DIR}/${getRepoName()}" } +boolean isMainStream() { + return env.DROOLS_STREAM == 'main' +} \ No newline at end of file diff --git a/.ci/jenkins/Jenkinsfile.promote b/.ci/jenkins/Jenkinsfile.promote index 3d1f146131d..2b027750cfe 100644 --- a/.ci/jenkins/Jenkinsfile.promote +++ b/.ci/jenkins/Jenkinsfile.promote @@ -8,12 +8,10 @@ pipelineProperties = [:] pipeline { agent { - label 'kie-rhel7 && !built-in' - } - - tools { - maven env.BUILD_MAVEN_TOOL - jdk env.BUILD_JDK_TOOL + docker { + image env.AGENT_DOCKER_BUILDER_IMAGE + args env.AGENT_DOCKER_BUILDER_ARGS + } } options { @@ -21,16 +19,8 @@ pipeline { timeout(time: 180, unit: 'MINUTES') } - // parameters { - // For parameters, check into ./dsl/jobs.groovy file - // } - environment { - // Static env is defined into ./dsl/jobs.groovy file - - KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}") - - PR_BRANCH_HASH = "${util.generateHash(10)}" + DROOLS_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}") } stages { @@ -45,18 +35,12 @@ pipeline { readDeployProperties() - if (isRelease()) { - // Verify version is set and if on right release branch - assert getProjectVersion() - assert getBuildBranch() == util.getReleaseBranchFromVersion(getProjectVersion()) - } + assert getProjectVersion() + assert getBuildBranch() == util.getReleaseBranchFromVersion(getProjectVersion()) } } } stage('Merge deploy PR and tag') { - when { - expression { return isRelease() } - } steps { script { dir(getRepoName()) { @@ -68,41 +52,35 @@ pipeline { } } - stage('Upload drools binaries and documentation') { - when { - expression { return isRelease() } - } + stage('Create release') { steps { script { - getMavenCommand().inDirectory(getRepoName()).skipTests(true).withProperty('full').run('clean install') - uploadFileMgmt(getRepoName()) + dir(getRepoName()) { + checkoutRepo() + if(githubscm.isReleaseExist(getGitTag(), getGitAuthorCredsID())) { + githubscm.deleteRelease(getGitTag(), getGitAuthorCredsID()) + } + githubscm.createReleaseWithGeneratedReleaseNotes(getGitTag(), getBuildBranch(), githubscm.getPreviousTagFromVersion(getGitTag()), getGitAuthorCredsID()) + githubscm.updateReleaseBody(getGitTag(), getGitAuthorCredsID()) + } } } } - stage('Set next snapshot version') { + stage('Upload drools binaries and documentation') { when { - expression { return isRelease() } + expression { return isMainStream() } } steps { script { - dir('pr') { - prepareForPR() - - maven.mvnVersionsSet(getMavenCommand(), getSnapshotVersion(), true) - - commitAndCreatePR() - } - dir(getRepoName()) { - sh "git checkout ${getBuildBranch()}" - mergeAndPush(getPipelinePrLink()) - - if (shouldDeployToRepository()) { - runMavenDeploy() - } else { - echo 'Testing environment and no specific deploy repository given => no deployment' - } - } + getMavenCommand() + .withOptions(env.DROOLS_BUILD_MVN_OPTS ? [ env.DROOLS_BUILD_MVN_OPTS ] : []) + .withOptions(env.BUILD_MVN_OPTS_CURRENT ? [ env.BUILD_MVN_OPTS_CURRENT ] : []) + .inDirectory(getRepoName()) + .skipTests(true) + .withProperty('full') + .run('clean install') + uploadFileMgmt(getRepoName()) } } } @@ -121,7 +99,7 @@ pipeline { void sendNotification() { if (params.SEND_NOTIFICATION) { - mailer.sendMarkdownTestSummaryNotification('Promote', "[${getBuildBranch()}] Drools", [env.KOGITO_CI_EMAIL_TO]) + mailer.sendMarkdownTestSummaryNotification('Promote', "[${getBuildBranch()}] Drools", [env.DROOLS_CI_EMAIL_TO]) } else { echo 'No notification sent per configuration' } @@ -166,14 +144,6 @@ String getParamOrDeployProperty(String paramKey, String deployPropertyKey) { // Getter / Setter ////////////////////////////////////////////////////////////////////////////// -boolean shouldDeployToRepository() { - return env.MAVEN_DEPLOY_REPOSITORY || getGitAuthor() == 'kiegroup' -} - -boolean isRelease() { - return env.RELEASE ? env.RELEASE.toBoolean() : false -} - String getRepoName() { return env.REPO_NAME } @@ -182,10 +152,6 @@ String getProjectVersion() { return getParamOrDeployProperty('PROJECT_VERSION', 'project.version') } -String getSnapshotVersion() { - return util.getNextVersion(getProjectVersion(), 'micro') -} - String getGitTag() { return params.GIT_TAG != '' ? params.GIT_TAG : getProjectVersion() } @@ -206,18 +172,6 @@ String getDeployPrLink() { return getDeployProperty("${getRepoName()}.pr.link") } -String getPipelinePrLink() { - return pipelineProperties["${getRepoName()}.pr.link"] -} - -void setPipelinePrLink(String value) { - pipelineProperties["${getRepoName()}.pr.link"] = value -} - -String getSnapshotBranch() { - return "${getSnapshotVersion().toLowerCase()}-${env.PR_BRANCH_HASH}" -} - ////////////////////////////////////////////////////////////////////////////// // Git ////////////////////////////////////////////////////////////////////////////// @@ -242,37 +196,16 @@ void tagLatest() { } } -void prepareForPR() { - checkoutRepo() - githubscm.createBranch(getSnapshotBranch()) -} - -void commitAndCreatePR() { - def commitMsg = "[${getBuildBranch()}] Update project version to ${getSnapshotVersion()}" - def prBody = "Generated by build ${BUILD_TAG}: ${BUILD_URL}.\nPlease do not merge, it should be merged automatically." - - githubscm.commitChanges(commitMsg, { githubscm.findAndStageNotIgnoredFiles('pom.xml') }) - githubscm.pushObject('origin', getSnapshotBranch(), getGitAuthorCredsID()) - setPipelinePrLink(githubscm.createPR(commitMsg, prBody, getBuildBranch(), getGitAuthorCredsID())) -} - MavenCommand getMavenCommand() { mvnCmd = new MavenCommand(this, ['-fae', '-ntp']) .withSettingsXmlId("${env.MAVEN_SETTINGS_CONFIG_FILE_ID}") + .withOptions(env.BUILD_MVN_OPTS ? [ env.BUILD_MVN_OPTS ] : []) if (env.MAVEN_DEPENDENCIES_REPOSITORY) { mvnCmd.withDependencyRepositoryInSettings('deps-repo', env.MAVEN_DEPENDENCIES_REPOSITORY) } return mvnCmd } -void runMavenDeploy() { - mvnCmd = getMavenCommand() - if (env.MAVEN_DEPLOY_REPOSITORY) { - mvnCmd.withDeployRepository(env.MAVEN_DEPLOY_REPOSITORY) - } - mvnCmd.skipTests(true).run('clean deploy') -} - void uploadFileMgmt(String directory) { if (isNotTestingBuild()) { echo "upload binaries and docs for ${directory}" @@ -287,5 +220,9 @@ void uploadFileMgmt(String directory) { } boolean isNotTestingBuild() { - return getGitAuthor() == 'kiegroup' -} \ No newline at end of file + return getGitAuthor() == 'apache' +} + +boolean isMainStream() { + return env.DROOLS_STREAM == 'main' +} diff --git a/.ci/jenkins/Jenkinsfile.quarkus-3.rewrite.pr b/.ci/jenkins/Jenkinsfile.quarkus-3.rewrite.pr index 32a52049344..5a4b689871c 100644 --- a/.ci/jenkins/Jenkinsfile.quarkus-3.rewrite.pr +++ b/.ci/jenkins/Jenkinsfile.quarkus-3.rewrite.pr @@ -7,11 +7,10 @@ changeBranch = env.ghprbSourceBranch ?: CHANGE_BRANCH pipeline { agent { - label 'kie-rhel8 && kie-mem16g && !built-in' - } - tools { - maven env.BUILD_MAVEN_TOOL - jdk env.BUILD_JDK_TOOL + docker { + image env.AGENT_DOCKER_BUILDER_IMAGE + args env.AGENT_DOCKER_BUILDER_ARGS + } } options { timestamps() @@ -79,9 +78,3 @@ String getRepoName() { String getGitAuthorCredsId() { return env.AUTHOR_CREDS_ID } - -MavenCommand getMavenCommand() { - return new MavenCommand(this, ['-fae', '-ntp']) - .withSettingsXmlId(env.MAVEN_SETTINGS_CONFIG_FILE_ID) - .withProperty('full') -} diff --git a/.ci/jenkins/Jenkinsfile.quarkus-3.rewrite.standalone b/.ci/jenkins/Jenkinsfile.quarkus-3.rewrite.standalone index 26182984f62..4e2c7cf7ee9 100644 --- a/.ci/jenkins/Jenkinsfile.quarkus-3.rewrite.standalone +++ b/.ci/jenkins/Jenkinsfile.quarkus-3.rewrite.standalone @@ -7,12 +7,10 @@ previousHash = '' pipeline { agent { - label 'kie-rhel8 && kie-mem16g && !built-in' - } - - tools { - maven env.BUILD_MAVEN_TOOL - jdk env.BUILD_JDK_TOOL + docker { + image env.AGENT_DOCKER_BUILDER_IMAGE + args env.AGENT_DOCKER_BUILDER_ARGS + } } options { @@ -21,7 +19,7 @@ pipeline { } environment { - KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}") + DROOLS_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}") PR_BRANCH_HASH = "${util.generateHash(10)}" } @@ -113,13 +111,13 @@ void clean() { } void sendErrorNotification() { - mailer.sendMarkdownTestSummaryNotification('quarkus-3', "[${getBuildBranch()}] Drools", [env.KOGITO_CI_EMAIL_TO]) + mailer.sendMarkdownTestSummaryNotification('quarkus-3', "[${getBuildBranch()}] Drools", [env.DROOLS_CI_EMAIL_TO]) } void sendNotification(String body) { emailext body: "${body}", subject: "[${getBuildBranch()}] Drools - quarkus-3", - to: env.KOGITO_CI_EMAIL_TO + to: env.DROOLS_CI_EMAIL_TO } void checkoutRepo(String repository, String branch) { @@ -152,9 +150,3 @@ String getGitAuthorCredsId() { String getPRBranch() { return "${getBuildBranch()}-${env.PR_BRANCH_HASH}" } - -MavenCommand getMavenCommand() { - return new MavenCommand(this, ['-fae', '-ntp']) - .withSettingsXmlId(env.MAVEN_SETTINGS_CONFIG_FILE_ID) - .withProperty('full') -} diff --git a/.ci/jenkins/Jenkinsfile.setup-branch b/.ci/jenkins/Jenkinsfile.setup-branch index 2827afc10e3..95b74cfcbe6 100644 --- a/.ci/jenkins/Jenkinsfile.setup-branch +++ b/.ci/jenkins/Jenkinsfile.setup-branch @@ -5,12 +5,10 @@ import org.kie.jenkins.MavenCommand pipeline { agent { - label 'kie-rhel8 && !built-in' - } - - tools { - maven env.BUILD_MAVEN_TOOL - jdk env.BUILD_JDK_TOOL + docker { + image env.AGENT_DOCKER_BUILDER_IMAGE + args env.AGENT_DOCKER_BUILDER_ARGS + } } options { @@ -18,17 +16,8 @@ pipeline { timeout(time: 60, unit: 'MINUTES') } - // parameters { - // For parameters, check into ./dsl/jobs.groovy file - // } - environment { - // Static env is defined into ./dsl/jobs.groovy file - - KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}") - - // Keep here for visitibility - MAVEN_OPTS = '-Xms1024m -Xmx4g' + DROOLS_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}") BRANCH_HASH = "${util.generateHash(10)}" } @@ -78,11 +67,11 @@ pipeline { } stage('Update Drools version in kie-benchmarks') { when { - expression { isMainBranch() } + expression { isMainStream() && isMainBranch() } } steps { script { - build job: '../tools/kie-benchmarks-update-drools', parameters: [ string(name: 'NEW_VERSION', value: "${getDroolsVersion()}")] + build job: '../tools/kie-benchmarks-update-drools', parameters: [ string(name: 'NEW_VERSION', value: "${getDroolsVersion()}")] } } } @@ -101,7 +90,7 @@ pipeline { void sendNotification() { if (params.SEND_NOTIFICATION) { - mailer.sendMarkdownTestSummaryNotification('Setup branch', "[${getBuildBranch()}] Drools", [env.KOGITO_CI_EMAIL_TO]) + mailer.sendMarkdownTestSummaryNotification('Setup branch', "[${getBuildBranch()}] Drools", [env.DROOLS_CI_EMAIL_TO]) } else { echo 'No notification sent per configuration' } @@ -137,6 +126,7 @@ String getGitAuthorCredsId() { MavenCommand getMavenCommand() { return new MavenCommand(this, ['-fae', '-ntp']) .withSettingsXmlId(env.MAVEN_SETTINGS_CONFIG_FILE_ID) + .withOptions(env.BUILD_MVN_OPTS ? [ env.BUILD_MVN_OPTS ] : []) .withProperty('full') } @@ -157,3 +147,7 @@ void mergeAndPush(String prLink, String targetBranch) { githubscm.pushObject('origin', targetBranch, getGitAuthorCredsId()) } } + +boolean isMainStream() { + return env.DROOLS_STREAM == 'main' +} diff --git a/.ci/jenkins/config/branch.yaml b/.ci/jenkins/config/branch.yaml index 2effa1b6aa1..39248ee00a7 100644 --- a/.ci/jenkins/config/branch.yaml +++ b/.ci/jenkins/config/branch.yaml @@ -1,67 +1,67 @@ environments: - native: + default: env_vars: - NATIVE: true - BUILD_MVN_OPTS_CURRENT: -Dnative -Dquarkus.native.container-build=true - ADDITIONAL_TIMEOUT: 720 - ids: - - native - native-lts: + DROOLS_BUILD_MVN_OPTS: -Dfull + native: env_vars: NATIVE: true - BUILD_MVN_OPTS: -Dproductized -Ddata-index-ephemeral.image=quay.io/kiegroup/kogito-data-index-ephemeral BUILD_MVN_OPTS_CURRENT: -Dnative -Dquarkus.native.container-build=true - QUARKUS_BRANCH: '2.13' + DROOLS_BUILD_MVN_OPTS: -Dfull ADDITIONAL_TIMEOUT: 720 ids: - native - - prod quarkus-main: enabled: false env_vars: QUARKUS_BRANCH: main + DROOLS_BUILD_MVN_OPTS: -Dfull ids: - quarkus quarkus-3: pull_request_default_check: false env_vars: - BUILD_MAVEN_TOOL: kie-maven-3.9.1 - BUILD_JDK_TOOL: kie-jdk17 + BUILD_MAVEN_TOOL: maven_3.9.3 + BUILD_JDK_TOOL: jdk_17_latest BUILD_MVN_OPTS: -Denforcer.skip + # DROOLS_BUILD_MVN_OPTS: -Dfull # "No enabled as it does not compile in quarkus-3 + # BUILD_MVN_OPTS_QUARKUS_UPDATE: -Dfull ids: - quarkus - quarkus3 quarkus-branch: env_vars: QUARKUS_BRANCH: '2.16' + DROOLS_BUILD_MVN_OPTS: -Dfull ids: - quarkus - quarkus-lts: - pull_request_default_check: false + sonarcloud: + auto_generation: false env_vars: - BUILD_MVN_OPTS: -Dproductized -Ddata-index-ephemeral.image=quay.io/kiegroup/kogito-data-index-ephemeral - QUARKUS_BRANCH: '2.13' + ENABLE_SONARCLOUD: true + DROOLS_BUILD_MVN_OPTS: -Dfull ids: - - quarkus - - lts - - prod -productized_branch: true + - sonarcloud + - coverage disable: - triggers: false + deploy: true repositories: -- name: drools -- name: drools-website -- name: kie-benchmarks -productized_repositories: -- name: drools +- name: incubator-kie-drools + job_display_name: drools +# Not yet migrated to Apache +# - name: incubator-kie-drools-website +# job_display_name: drools-website +- name: incubator-kie-benchmarks + job_display_name: kie-benchmarks +## TODO to check if should be enabled +# - name: incubator-kie-jpmml-integration +# job_display_name: kie-jpmml-integration git: author: - name: kiegroup - credentials_id: kie-ci4 - token_credentials_id: kie-ci4-token - bot_author: - name: bsig-gh-bot - credentials_id: bsig-gh-bot + name: apache + # Taken from https://ci-builds.apache.org/credentials/ + # Need to be verified + credentials_id: kie-ci + token_credentials_id: kie-ci3-token fork_author: name: kie-ci credentials_id: kie-ci @@ -73,33 +73,34 @@ git: jenkins_config_path: .ci/jenkins buildchain_config: git: - repository: drools + repository: incubator-kie-drools file_path: .ci/buildchain-config.yaml maven: - settings_file_id: kogito_release_settings + settings_file_id: kie-release-settings nexus: - release_url: https://repository.jboss.org/nexus - release_repository: jboss-releases-repository - staging_profile_url: https://repository.jboss.org/nexus/content/groups/kogito-public/ - staging_profile_id: 1976dd1c18392a - build_promotion_profile_id: ea49ccd6f174 + release_url: TO_DEFINE + release_repository: TO_DEFINE + staging_profile_url: TO_DEFINE + staging_profile_id: TO_DEFINE + build_promotion_profile_id: TO_DEFINE artifacts_repository: '' artifacts_upload_repository: - url: https://repository.jboss.org/nexus/content/repositories/snapshots/ - creds_id: kogito-snapshots-upload - pr_checks: - repository: - url: https://bxms-qe.rhev-ci-vms.eng.rdu2.redhat.com:8443/nexus/content/repositories/kogito-runtimes-pr-full-testing/ - creds_id: unpacks-zip-on-qa-nexus + url: TO_DEFINE + creds_id: TO_DEFINE cloud: image: - registry_credentials_nightly: nightly_kogito - registry_credentials_release: release_kogito + registry_credentials: tradisso_registry_token # TODO set to `kogito-quay-token` registry: quay.io - namespace: kiegroup + namespace: tradisso latest_git_branch: main jenkins: - email_creds_id: KOGITO_CI_EMAIL_TO + email_creds_id: DROOLS_CI_NOTIFICATION_EMAILS + agent: + docker: + builder: + image: quay.io/kiegroup/kogito-ci-build:main-latest + args: -v /var/run/docker.sock:/var/run/docker.sock --network host --group-add docker --group-add input --group-add render default_tools: - jdk: kie-jdk11 - maven: kie-maven-3.8.7 + jdk: jdk_11_latest + maven: maven_3.8.6 + sonar_jdk: jdk_17_latest diff --git a/.ci/jenkins/config/main.yaml b/.ci/jenkins/config/main.yaml index 5b5d64e533e..82538f85d31 100644 --- a/.ci/jenkins/config/main.yaml +++ b/.ci/jenkins/config/main.yaml @@ -4,47 +4,28 @@ ecosystem: - name: drools regexs: - drools.* + - incubator-kie-drools.* + # - name: kie-jpmml-integration + # regexs: + # - kie-jpmml-integration.* - name: kie-benchmarks ignore_release: true - ignore_productization: true regexs: - kie-benchmarks.* + - incubator-kie-benchmarks.* git: branches: - name: main main_branch: true - seed: - branch: main - - name: 8.35.x - seed: - branch: seed-drools-8.35.x - - name: 8.36.x - seed: - branch: seed-drools-8.36.x - - name: 8.36.x-prod - seed: - branch: seed-drools-8.36.x - - name: 8.37.x - seed: - branch: seed-drools-8.37.x - - name: 8.38.x - seed: - branch: seed-drools-8.38.x - - name: 8.38.x-prod - seed: - branch: seed-drools-8.38.x - - name: 8.39.x - seed: - branch: seed-drools-8.39.x seed: config_file: git: - repository: drools + repository: incubator-kie-drools author: - name: kiegroup - credentials_id: kie-ci4 + name: apache + credentials_id: ASF_Cloudbees_Jenkins_ci-builds branch: main path: .ci/jenkins/config/branch.yaml jenkinsfile: dsl/seed/jenkinsfiles/Jenkinsfile.seed.branch jenkins: - email_creds_id: KOGITO_CI_EMAIL_TO + email_creds_id: DROOLS_CI_NOTIFICATION_EMAILS diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy index 7bbc1670a42..2ac07e91161 100644 --- a/.ci/jenkins/dsl/jobs.groovy +++ b/.ci/jenkins/dsl/jobs.groovy @@ -2,10 +2,10 @@ * This file is describing all the Jenkins jobs in the DSL format (see https://plugins.jenkins.io/job-dsl/) * needed by the Kogito pipelines. * -* The main part of Jenkins job generation is defined into the https://github.com/kiegroup/kogito-pipelines repository. +* The main part of Jenkins job generation is defined into the https://github.com/apache/incubator-kie-kogito-pipelines repository. * * This file is making use of shared libraries defined in -* https://github.com/kiegroup/kogito-pipelines/tree/main/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl. +* https://github.com/apache/incubator-kie-kogito-pipelines/tree/main/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl. */ import org.kie.jenkins.jobdsl.model.JenkinsFolder @@ -18,6 +18,10 @@ import org.kie.jenkins.jobdsl.Utils jenkins_path = '.ci/jenkins' +boolean isMainStream() { + return Utils.getStream(this) == 'main' +} + /////////////////////////////////////////////////////////////////////////////////////////// // Whole Drools project jobs /////////////////////////////////////////////////////////////////////////////////////////// @@ -48,22 +52,26 @@ void createProjectSetupBranchJob() { GIT_BRANCH_NAME: "${GIT_BRANCH}", - IS_MAIN_BRANCH: "${Utils.isMainBranch(this)}" + IS_MAIN_BRANCH: "${Utils.isMainBranch(this)}", + DROOLS_STREAM: Utils.getStream(this), ]) KogitoJobTemplate.createPipelineJob(this, jobParams)?.with { parameters { stringParam('DROOLS_VERSION', '', 'Drools version') + booleanParam('DEPLOY', true, 'Deploy artifacts') } } } void setupProjectNightlyJob() { def jobParams = JobParamsUtils.getBasicJobParams(this, '0-nightly', JobType.NIGHTLY, "${jenkins_path_project}/Jenkinsfile.nightly", 'Drools Nightly') - jobParams.triggers = [cron : '@midnight'] + jobParams.triggers = [cron : isMainStream() ? '@midnight' : 'H 3 * * *'] jobParams.env.putAll([ JENKINS_EMAIL_CREDS_ID: "${JENKINS_EMAIL_CREDS_ID}", GIT_BRANCH_NAME: "${GIT_BRANCH}", + + DROOLS_STREAM: Utils.getStream(this), ]) KogitoJobTemplate.createPipelineJob(this, jobParams)?.with { parameters { @@ -82,6 +90,8 @@ void setupProjectReleaseJob() { DEFAULT_STAGING_REPOSITORY: "${MAVEN_NEXUS_STAGING_PROFILE_URL}", ARTIFACTS_REPOSITORY: "${MAVEN_ARTIFACTS_REPOSITORY}", + + DROOLS_STREAM: Utils.getStream(this), ]) KogitoJobTemplate.createPipelineJob(this, jobParams)?.with { parameters { @@ -96,7 +106,7 @@ void setupProjectReleaseJob() { void setupProjectPostReleaseJob() { def jobParams = JobParamsUtils.getBasicJobParams(this, 'drools-post-release', JobType.RELEASE, "${jenkins_path_project}/Jenkinsfile.post-release", 'Drools Post Release') - JobParamsUtils.setupJobParamsDefaultMavenConfiguration(this, jobParams) + JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this, jobParams) jobParams.env.putAll([ JENKINS_EMAIL_CREDS_ID: "${JENKINS_EMAIL_CREDS_ID}", @@ -104,6 +114,7 @@ void setupProjectPostReleaseJob() { GIT_AUTHOR: "${GIT_AUTHOR_NAME}", AUTHOR_CREDS_ID: "${GIT_AUTHOR_CREDENTIALS_ID}", + DROOLS_STREAM: Utils.getStream(this), ]) KogitoJobTemplate.createPipelineJob(this, jobParams)?.with { parameters { @@ -119,7 +130,6 @@ void setupProjectPostReleaseJob() { /////////////////////////////////////////////////////////////////////////////////////////// Map getMultijobPRConfig(JenkinsFolder jobFolder) { - String defaultBuildMvnOptsCurrent = jobFolder.getDefaultEnvVarValue('BUILD_MVN_OPTS_CURRENT') ?: '' def jobConfig = [ parallel: true, buildchain: true, @@ -131,33 +141,35 @@ Map getMultijobPRConfig(JenkinsFolder jobFolder) { // Sonarcloud analysis only on main branch // As we have only Community edition ENABLE_SONARCLOUD: EnvUtils.isDefaultEnvironment(this, jobFolder.getEnvironmentName()) && Utils.isMainBranch(this), - // Setup full build if not prod profile - BUILD_MVN_OPTS_CURRENT: "${defaultBuildMvnOptsCurrent} ${EnvUtils.hasEnvironmentId(this, jobFolder.getEnvironmentName(), 'prod') || EnvUtils.hasEnvironmentId(this, jobFolder.getEnvironmentName(), 'quarkus3') ? '' : '-Dfull'}", ] ], [ id: 'kogito-runtimes', - repository: 'kogito-runtimes' + repository: 'incubator-kie-kogito-runtimes' ], [ id: 'kogito-apps', - repository: 'kogito-apps', + repository: 'incubator-kie-kogito-apps', ], [ id: 'kogito-quarkus-examples', - repository: 'kogito-examples', + repository: 'incubator-kie-kogito-examples', env : [ KOGITO_EXAMPLES_SUBFOLDER_POM: 'kogito-quarkus-examples/', ], ], [ id: 'kogito-springboot-examples', - repository: 'kogito-examples', + repository: 'incubator-kie-kogito-examples', env : [ KOGITO_EXAMPLES_SUBFOLDER_POM: 'kogito-springboot-examples/', ], ], [ id: 'serverless-workflow-examples', - repository: 'kogito-examples', + repository: 'incubator-kie-kogito-examples', env : [ KOGITO_EXAMPLES_SUBFOLDER_POM: 'serverless-workflow-examples/', ], + // Commented as not migrated + // ], [ + // id: 'kie-jpmml-integration', + // repository: 'incubator-kie-jpmml-integration' ] ] ] @@ -171,51 +183,46 @@ Map getMultijobPRConfig(JenkinsFolder jobFolder) { } // PR checks -KogitoJobUtils.createAllEnvironmentsPerRepoPRJobs(this) { jobFolder -> getMultijobPRConfig(jobFolder) } +Utils.isMainBranch(this) && KogitoJobTemplate.createPullRequestMultibranchPipelineJob(this, "${jenkins_path}/Jenkinsfile") // Init branch createSetupBranchJob() // Nightly jobs -Closure addFullProfileJobParamsGetter = { script -> +Closure setup3AMCronTriggerJobParamsGetter = { script -> def jobParams = JobParamsUtils.DEFAULT_PARAMS_GETTER(script) - jobParams.env.put('BUILD_MVN_OPTS_CURRENT', '-Dfull') + jobParams.triggers = [ cron: 'H 3 * * *' ] return jobParams } -KogitoJobUtils.createNightlyBuildChainBuildAndDeployJobForCurrentRepo(this, '', true, addFullProfileJobParamsGetter) - -// Environment nightlies -setupSpecificBuildChainNightlyJob('native', addFullProfileJobParamsGetter) - -// Jobs with integration branch -setupQuarkusIntegrationJob('quarkus-main', addFullProfileJobParamsGetter) -setupQuarkusIntegrationJob('quarkus-branch', addFullProfileJobParamsGetter) -setupQuarkusIntegrationJob('quarkus-lts') -setupQuarkusIntegrationJob('native-lts') -setupQuarkusIntegrationJob('quarkus-3') { script -> - def jobParams = JobParamsUtils.DEFAULT_PARAMS_GETTER(script) - jobParams.env.put('BUILD_ENVIRONMENT_OPTIONS_CURRENT', 'rewrite push_changes') - jobParams.env.put('INTEGRATION_BRANCH_CURRENT', '9.x') - JobParamsUtils.setupJobParamsDeployConfiguration(script, jobParams) - return jobParams -} +Closure nightlyJobParamsGetter = isMainStream() ? JobParamsUtils.DEFAULT_PARAMS_GETTER : setup3AMCronTriggerJobParamsGetter +KogitoJobUtils.createNightlyBuildChainBuildAndDeployJobForCurrentRepo(this, '', true) +setupSpecificBuildChainNightlyJob('native', nightlyJobParamsGetter) +setupSpecificBuildChainNightlyJob('sonarcloud', nightlyJobParamsGetter) +setupQuarkusIntegrationJob('quarkus-main', nightlyJobParamsGetter) +setupQuarkusIntegrationJob('quarkus-branch', nightlyJobParamsGetter) +setupQuarkusIntegrationJob('quarkus-lts', nightlyJobParamsGetter) +setupQuarkusIntegrationJob('native-lts', nightlyJobParamsGetter) +// Quarkus 3 nightly is exported to Kogito pipelines for easier integration // Release jobs setupDeployJob(JobType.RELEASE) setupPromoteJob(JobType.RELEASE) // Tools job -KogitoJobUtils.createQuarkusUpdateToolsJob(this, 'drools', [ - modules: [ 'drools-build-parent' ], - compare_deps_remote_poms: [ 'io.quarkus:quarkus-bom' ], - properties: [ 'version.io.quarkus' ], -]) - -// Quarkus 3 -if (EnvUtils.isEnvironmentEnabled(this, 'quarkus-3')) { - // setupPrQuarkus3RewriteJob() # TODO to enable if you want the PR quarkus-3 rewrite job - setupStandaloneQuarkus3RewriteJob() +if (isMainStream()) { + KogitoJobUtils.createQuarkusUpdateToolsJob(this, 'drools', [ + modules: [ 'drools-build-parent' ], + compare_deps_remote_poms: [ 'io.quarkus:quarkus-bom' ], + properties: [ 'version.io.quarkus' ], + ]) + + // Quarkus 3 + if (EnvUtils.isEnvironmentEnabled(this, 'quarkus-3')) { + // TODO create PR job with branch source plugin. How to ? + // setupPrQuarkus3RewriteJob() + setupStandaloneQuarkus3RewriteJob() + } } ///////////////////////////////////////////////////////////////// @@ -232,9 +239,8 @@ void setupSpecificBuildChainNightlyJob(String envName, Closure defaultJobParamsG void createSetupBranchJob() { def jobParams = JobParamsUtils.getBasicJobParams(this, 'drools', JobType.SETUP_BRANCH, "${jenkins_path}/Jenkinsfile.setup-branch", 'Drools Setup branch') - JobParamsUtils.setupJobParamsDefaultMavenConfiguration(this, jobParams) + JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this, jobParams) jobParams.env.putAll([ - REPO_NAME: 'drools', JENKINS_EMAIL_CREDS_ID: "${JENKINS_EMAIL_CREDS_ID}", GIT_AUTHOR: "${GIT_AUTHOR_NAME}", @@ -242,7 +248,8 @@ void createSetupBranchJob() { MAVEN_SETTINGS_CONFIG_FILE_ID: "${MAVEN_SETTINGS_FILE_ID}", - IS_MAIN_BRANCH: "${Utils.isMainBranch(this)}" + IS_MAIN_BRANCH: "${Utils.isMainBranch(this)}", + DROOLS_STREAM: Utils.getStream(this), ]) KogitoJobTemplate.createPipelineJob(this, jobParams)?.with { parameters { @@ -259,9 +266,8 @@ void createSetupBranchJob() { void setupDeployJob(JobType jobType) { def jobParams = JobParamsUtils.getBasicJobParams(this, 'drools-deploy', jobType, "${jenkins_path}/Jenkinsfile.deploy", 'Drools Deploy') - JobParamsUtils.setupJobParamsDefaultMavenConfiguration(this, jobParams) + JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this, jobParams) jobParams.env.putAll([ - REPO_NAME: 'drools', PROPERTIES_FILE_NAME: 'deployment.properties', JENKINS_EMAIL_CREDS_ID: "${JENKINS_EMAIL_CREDS_ID}", @@ -271,7 +277,10 @@ void setupDeployJob(JobType jobType) { MAVEN_SETTINGS_CONFIG_FILE_ID: "${MAVEN_SETTINGS_FILE_ID}", MAVEN_DEPENDENCIES_REPOSITORY: "${MAVEN_ARTIFACTS_REPOSITORY}", - MAVEN_DEPLOY_REPOSITORY: "${MAVEN_ARTIFACTS_REPOSITORY}", + MAVEN_DEPLOY_REPOSITORY: "${MAVEN_ARTIFACTS_UPLOAD_REPOSITORY_URL}", + MAVEN_REPO_CREDS_ID: "${MAVEN_ARTIFACTS_UPLOAD_REPOSITORY_CREDS_ID}", + + DROOLS_STREAM: Utils.getStream(this), ]) if (jobType == JobType.RELEASE) { jobParams.env.putAll([ @@ -291,6 +300,7 @@ void setupDeployJob(JobType jobType) { booleanParam('CREATE_PR', false, 'Should we create a PR with the changes ?') stringParam('PROJECT_VERSION', '', 'Optional if not RELEASE. If RELEASE, cannot be empty.') + stringParam('DROOLS_PR_BRANCH', '', 'PR branch name') booleanParam('SEND_NOTIFICATION', false, 'In case you want the pipeline to send a notification on CI channel for this run.') } @@ -299,9 +309,8 @@ void setupDeployJob(JobType jobType) { void setupPromoteJob(JobType jobType) { def jobParams = JobParamsUtils.getBasicJobParams(this, 'drools-promote', jobType, "${jenkins_path}/Jenkinsfile.promote", 'Drools Promote') - JobParamsUtils.setupJobParamsDefaultMavenConfiguration(this, jobParams) + JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this, jobParams) jobParams.env.putAll([ - REPO_NAME: 'drools', PROPERTIES_FILE_NAME: 'deployment.properties', JENKINS_EMAIL_CREDS_ID: "${JENKINS_EMAIL_CREDS_ID}", @@ -312,6 +321,8 @@ void setupPromoteJob(JobType jobType) { MAVEN_SETTINGS_CONFIG_FILE_ID: "${MAVEN_SETTINGS_FILE_ID}", MAVEN_DEPENDENCIES_REPOSITORY: "${MAVEN_ARTIFACTS_REPOSITORY}", MAVEN_DEPLOY_REPOSITORY: "${MAVEN_ARTIFACTS_REPOSITORY}", + + DROOLS_STREAM: Utils.getStream(this), ]) KogitoJobTemplate.createPipelineJob(this, jobParams)?.with { parameters { @@ -329,7 +340,7 @@ void setupPromoteJob(JobType jobType) { void setupPrQuarkus3RewriteJob() { def jobParams = JobParamsUtils.getBasicJobParamsWithEnv(this, 'drools.rewrite', JobType.PULL_REQUEST, 'quarkus-3', "${jenkins_path}/Jenkinsfile.quarkus-3.rewrite.pr", 'Drools Quarkus 3 rewrite patch regeneration') - JobParamsUtils.setupJobParamsDefaultMavenConfiguration(this, jobParams) + JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this, jobParams) jobParams.jenkinsfile = "${jenkins_path}/Jenkinsfile.quarkus-3.rewrite.pr" jobParams.pr.putAll([ run_only_for_branches: [ "${GIT_BRANCH}" ], @@ -348,7 +359,7 @@ void setupPrQuarkus3RewriteJob() { void setupStandaloneQuarkus3RewriteJob() { def jobParams = JobParamsUtils.getBasicJobParams(this, 'drools.quarkus-3.rewrite', JobType.TOOLS, "${jenkins_path}/Jenkinsfile.quarkus-3.rewrite.standalone", 'Drools Quarkus 3 rewrite patch regeneration') - JobParamsUtils.setupJobParamsDefaultMavenConfiguration(this, jobParams) + JobParamsUtils.setupJobParamsAgentDockerBuilderImageConfiguration(this, jobParams) jobParams.env.putAll(EnvUtils.getEnvironmentEnvVars(this, 'quarkus-3')) jobParams.env.putAll([ AUTHOR_CREDS_ID: "${GIT_AUTHOR_CREDENTIALS_ID}", diff --git a/.ci/jenkins/dsl/test.sh b/.ci/jenkins/dsl/test.sh index 054bc9b0a86..64d478475fb 100755 --- a/.ci/jenkins/dsl/test.sh +++ b/.ci/jenkins/dsl/test.sh @@ -22,13 +22,13 @@ fi git_author="$(echo ${git_url} | awk -F"${git_server_url}" '{print $2}' | awk -F. '{print $1}' | awk -F/ '{print $1}')" -export DSL_DEFAULT_MAIN_CONFIG_FILE_REPO="${git_author}"/drools -export DSL_DEFAULT_FALLBACK_MAIN_CONFIG_FILE_REPO=kiegroup/drools +export DSL_DEFAULT_MAIN_CONFIG_FILE_REPO="${git_author}"/incubator-kie-drools +export DSL_DEFAULT_FALLBACK_MAIN_CONFIG_FILE_REPO=apache/incubator-kie-drools export DSL_DEFAULT_MAIN_CONFIG_FILE_PATH=.ci/jenkins/config/main.yaml -export DSL_DEFAULT_BRANCH_CONFIG_FILE_REPO="${git_author}"/drools +export DSL_DEFAULT_BRANCH_CONFIG_FILE_REPO="${git_author}"/incubator-kie-drools file=$(mktemp) # For more usage of the script, use ./test.sh -h -curl -o ${file} https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/dsl/seed/scripts/seed_test.sh +curl -o ${file} https://raw.githubusercontent.com/apache/incubator-kie-kogito-pipelines/main/dsl/seed/scripts/seed_test.sh chmod u+x ${file} ${file} $@ \ No newline at end of file diff --git a/.ci/jenkins/project/Jenkinsfile.nightly b/.ci/jenkins/project/Jenkinsfile.nightly index f152bb8512b..187f1af31af 100644 --- a/.ci/jenkins/project/Jenkinsfile.nightly +++ b/.ci/jenkins/project/Jenkinsfile.nightly @@ -4,6 +4,7 @@ import org.jenkinsci.plugins.workflow.libs.Library // Deploy jobs DROOLS_DEPLOY = 'drools.build-and-deploy' +// KIE_JPMML_INTEGRATION_DEPLOY = 'kie-jpmml-integration.build-and-deploy' // Commented as not migrated for now // Map of executed jobs // See https://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html @@ -16,7 +17,7 @@ UNSTABLE_STAGES = [:] // Should be multibranch pipeline pipeline { agent { - label 'kie-rhel8 && !built-in' + label 'ubuntu' } options { @@ -59,6 +60,22 @@ pipeline { } } } + // stage('Build & Deploy KIE jpmml integration') { + // steps { + // script { + // def buildParams = getDefaultBuildParams() + // addSkipTestsParam(buildParams) + // addSkipIntegrationTestsParam(buildParams) + + // buildJob(KIE_JPMML_INTEGRATION_DEPLOY, buildParams) + // } + // } + // post { + // failure { + // addFailedStage(KIE_JPMML_INTEGRATION_DEPLOY) + // } + // } + // } } post { unsuccessful { diff --git a/.ci/jenkins/project/Jenkinsfile.post-release b/.ci/jenkins/project/Jenkinsfile.post-release index c69bbf6f250..a23c2cff2e3 100644 --- a/.ci/jenkins/project/Jenkinsfile.post-release +++ b/.ci/jenkins/project/Jenkinsfile.post-release @@ -7,12 +7,10 @@ import org.kie.jenkins.MavenCommand pipeline { agent { - label 'kie-rhel8 && !built-in' - } - - tools { - maven env.BUILD_MAVEN_TOOL - jdk env.BUILD_JDK_TOOL + docker { + image env.AGENT_DOCKER_BUILDER_IMAGE + args env.AGENT_DOCKER_BUILDER_ARGS + } } options { @@ -21,16 +19,10 @@ pipeline { disableConcurrentBuilds(abortPrevious: true) } - // parameters { - // For parameters, check into .jenkins/dsl/jobs.groovy file - // } - environment { - // Some generated env is also defined into .jenkins/dsl/jobs.groovy file - DROOLS_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}") - BOT_BRANCH_HASH = "${util.generateHash(10)}" + PR_BRANCH_HASH = "${util.generateHash(10)}" } stages { @@ -38,16 +30,17 @@ pipeline { steps { script { cleanWs() + } } } stage('Update drools version in drools-website') { steps { script { - String droolsWebsiteRepository = 'drools-website' + String droolsWebsiteRepository = 'incubator-kie-drools-website' String prLink = null - String prBranchName = "${getProjectVersion().toLowerCase()}-${env.BOT_BRANCH_HASH}" + String prBranchName = "${getProjectVersion().toLowerCase()}-${env.PR_BRANCH_HASH}" dir(droolsWebsiteRepository) { - checkoutRepo(websiteRepository, getBuildBranch()) // there is no other branch + checkoutRepo(droolsWebsiteRepository, getBuildBranch()) // there is no other branch githubscm.createBranch(prBranchName) // Update versions in links on the website and in the docs. @@ -56,19 +49,21 @@ pipeline { sh 'mvn clean generate-resources' // Add changed files, commit, open and merge PR prLink = commitAndCreatePR("Upgrade drools-website ${getProjectVersion()}", prBranchName, getBuildBranch()) + sh "git checkout ${getBuildBranch()}" mergeAndPush(prLink, getBuildBranch()) githubscm.removeRemoteBranch('origin', prBranchName, getGitAuthorCredsID()) } - } } } } } post { + always { + cleanWs() + } unsuccessful { sendErrorNotification() } - cleanWs() } } @@ -85,7 +80,7 @@ String getProjectVersion() { } String getBuildBranch() { - return env.GIT_BRANCH_NAME + return 'main' } String getNextMinorSnapshotVersion(String currentVersion) { diff --git a/.ci/jenkins/project/Jenkinsfile.release b/.ci/jenkins/project/Jenkinsfile.release index c86d1e0db84..65943d551aa 100644 --- a/.ci/jenkins/project/Jenkinsfile.release +++ b/.ci/jenkins/project/Jenkinsfile.release @@ -3,6 +3,7 @@ import org.jenkinsci.plugins.workflow.libs.Library @Library('jenkins-pipeline-shared-libraries')_ droolsRepo = 'drools' +// kieJpmmlIntegrationRepo = 'kie-jpmml-integration' // Commented as not migrated for now ARTIFACTS_STAGING_STAGE = 'stage.artifacts.staging' ARTIFACTS_RELEASE_STAGE = 'stage.artifacts.release' @@ -17,16 +18,10 @@ releaseProperties = [:] pipeline { agent { - label 'kie-rhel8 && !built-in' + label 'ubuntu' } - // parameters { - // For parameters, check into ./dsl/jobs.groovy file - // } - environment { - // Some generated env is also defined into ./dsl/jobs.groovy file - DROOLS_CI_EMAIL = credentials("${JENKINS_EMAIL_CREDS_ID}") } @@ -47,8 +42,8 @@ pipeline { sendNotification("Release Pipeline has started...\nDrools version = ${getDroolsVersion()}\n=> ${env.BUILD_URL}") // Safety measure to not publish to main JBoss - if (getGitAuthor() != 'kiegroup' && !getArtifactsRepositoryParam()) { - sendNotification("Git Author is different from `kiegroup` and no `ARTIFACTS_REPOSITORY` parameter has been provided. Are you sure you want to continue ? => ${env.BUILD_URL}input") + if (getGitAuthor() != 'apache' && !getArtifactsRepositoryParam()) { + sendNotification("Git Author is different from `apache` and no `ARTIFACTS_REPOSITORY` parameter has been provided. Are you sure you want to continue ? => ${env.BUILD_URL}input") input message: 'Should the pipeline continue with no `ARTIFACTS_REPOSITORY` defined ?', ok: 'Yes' } } @@ -71,6 +66,17 @@ pipeline { } } + // stage('Build & Deploy KIE jpmml integration') { + // steps { + // script { + // def buildParams = getDefaultBuildParams() + // addSkipTestsParam(buildParams) + + // buildJob(getDeployJobName(kieJpmmlIntegrationRepo), buildParams) + // } + // } + // } + stage('Artifacts\' staging finalization') { steps { script { @@ -113,6 +119,30 @@ pipeline { } } } + + // stage('Promote KIE jpmml integration') { + // when { + // expression { return isJobConsideredOk(getDeployJobName(kieJpmmlIntegrationRepo)) } + // } + // steps { + // script { + // def buildParams = getDefaultBuildParams() + // addDeployBuildUrlParam(buildParams, getDeployJobName(kieJpmmlIntegrationRepo)) + + // buildJob(getPromoteJobName(kieJpmmlIntegrationRepo), buildParams) + // } + // } + // } + + stage('Setup next snapshot version') { + steps { + script { + def buildParams = [] + addStringParam(buildParams, 'DROOLS_VERSION', util.getNextVersion(getDroolsVersion(), 'micro')) + build(job: '../setup-branch/0-setup-branch', wait: false, parameters: buildParams, propagate: false) + } + } + } } post { always { @@ -281,6 +311,7 @@ List getDefaultBuildParams() { List buildParams = [] addDisplayNameParam(buildParams, getDisplayName(getDroolsVersion())) addStringParam(buildParams, 'PROJECT_VERSION', getDroolsVersion()) + addStringParam(buildParams, 'DROOLS_PR_BRANCH', "drools-${getDroolsVersion()}") return buildParams } diff --git a/.ci/jenkins/project/Jenkinsfile.setup-branch b/.ci/jenkins/project/Jenkinsfile.setup-branch index aee108ff5f0..0aa94e67220 100644 --- a/.ci/jenkins/project/Jenkinsfile.setup-branch +++ b/.ci/jenkins/project/Jenkinsfile.setup-branch @@ -10,23 +10,16 @@ JOBS = [:] FAILED_STAGES = [:] UNSTABLE_STAGES = [:] -// Should be multibranch pipeline pipeline { agent { - label 'kie-rhel8 && !built-in' + label 'ubuntu' } options { timeout(time: 360, unit: 'MINUTES') } - // parameters { - // For parameters, check into ./dsl/jobs.groovy file - // } - environment { - // Some generated env is also defined into ./dsl/jobs.groovy file - DROOLS_CI_EMAIL = credentials("${JENKINS_EMAIL_CREDS_ID}") // Use branch name in nightly tag as we may have parallel main and release branch builds @@ -62,13 +55,32 @@ pipeline { } } + // Commented as not migrated for now + // stage('Init KIE jpmml integration') { + // steps { + // script { + // def buildParams = getDefaultBuildParams() + // addDroolsVersionParam(buildParams) + // buildJob('kie-jpmml-integration', buildParams) + // } + // } + // post { + // failure { + // addFailedStage('kie-jpmml-integration') + // } + // } + // } + // Launch the nightly to deploy all artifacts from the branch stage('Launch the nightly') { + when { + expression { return params.DEPLOY } + } steps { script { def buildParams = getDefaultBuildParams() addBooleanParam(buildParams, 'SKIP_TESTS', true) - buildJob('../nightly/0-nightly', buildParams, 'nightly', false) + build(job: '../nightly/0-nightly', wait: false, parameters: buildParams, propagate: false) } } post { diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 3f474a7caef..d38feb205b6 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -45,8 +45,6 @@ How to retest this PR or trigger a specific build: - a compile downstream build please add comment: Jenkins run cdb -- a full production downstream build please add comment: Jenkins execute product fdb - - an upstream build please add comment: Jenkins run upstream - for quarkus branch checks diff --git a/.github/workflows/pr-backporting.yml b/.github/workflows/pr-backporting.yml index d1eb53041a3..5a763c70da5 100644 --- a/.github/workflows/pr-backporting.yml +++ b/.github/workflows/pr-backporting.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Set target branches id: set-targets - uses: kiegroup/kogito-pipelines/.ci/actions/parse-labels@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/parse-labels@main with: labels: ${LABELS} @@ -34,7 +34,7 @@ jobs: REVIEWERS: ${{ toJSON(github.event.pull_request.requested_reviewers) }} steps: - name: Backporting - uses: kiegroup/kogito-pipelines/.ci/actions/backporting@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/backporting@main with: target-branch: ${{ matrix.target-branch }} additional-reviewers: ${REVIEWERS} diff --git a/.github/workflows/pr-downstream-full.yml b/.github/workflows/pr-downstream-full.yml index 1bd112b8235..02c0479df51 100644 --- a/.github/workflows/pr-downstream-full.yml +++ b/.github/workflows/pr-downstream-full.yml @@ -30,24 +30,24 @@ jobs: name: Build Chain (${{ matrix.os }} / Java-${{ matrix.java-version }} / Maven-${{ matrix.maven-version }}) steps: - name: Clean Disk Space - uses: kiegroup/kogito-pipelines/.ci/actions/ubuntu-disk-space@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/ubuntu-disk-space@main if: ${{ matrix.os == 'ubuntu-latest' }} - name: Support long paths if: ${{ matrix.os == 'windows-latest' }} - uses: kiegroup/kogito-pipelines/.ci/actions/long-paths@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/long-paths@main - name: Java and Maven Setup - uses: kiegroup/kogito-pipelines/.ci/actions/maven@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/maven@main with: java-version: ${{ matrix.java-version }} maven-version: ${{ matrix.maven-version }} cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }} - name: Build Chain - uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/build-chain@main with: - definition-file: https://raw.githubusercontent.com/${GROUP:kiegroup}/drools/${BRANCH:main}/.ci/buildchain-config.yaml + definition-file: https://raw.githubusercontent.com/${GROUP:apache}/incubator-kie-drools/${BRANCH:main}/.ci/buildchain-config.yaml annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }} github-token: "${{ secrets.GITHUB_TOKEN }}" flow-type: full-downstream - name: Surefire Report - uses: kiegroup/kogito-pipelines/.ci/actions/surefire-report@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/surefire-report@main if: ${{ always() }} diff --git a/.github/workflows/pr-downstream.yml b/.github/workflows/pr-downstream.yml index 0c2c81a83c4..b8ad43bfa00 100644 --- a/.github/workflows/pr-downstream.yml +++ b/.github/workflows/pr-downstream.yml @@ -26,47 +26,49 @@ jobs: maven-version: ['3.8.7'] include: - job_name: kogito-runtimes - repository: kogito-runtimes + repository: incubator-kie-kogito-runtimes - job_name: kogito-apps - repository: kogito-apps + repository: incubator-kie-kogito-apps env_BUILD_MVN_OPTS: "-DskipUI" - job_name: kogito-quarkus-examples - repository: kogito-examples + repository: incubator-kie-kogito-examples env_KOGITO_EXAMPLES_SUBFOLDER_POM: kogito-quarkus-examples/ - job_name: kogito-springboot-examples - repository: kogito-examples + repository: incubator-kie-kogito-examples env_KOGITO_EXAMPLES_SUBFOLDER_POM: kogito-springboot-examples/ - job_name: serverless-workflow-examples - repository: kogito-examples + repository: incubator-kie-kogito-examples env_KOGITO_EXAMPLES_SUBFOLDER_POM: serverless-workflow-examples/ + # - job_name: kie-jpmml-integration + # repository: kie-jpmml-integration fail-fast: false runs-on: ${{ matrix.os }} name: ${{ matrix.job_name }} (${{ matrix.os }} / Java-${{ matrix.java-version }} / Maven-${{ matrix.maven-version }}) steps: - name: Clean Disk Space - uses: kiegroup/kogito-pipelines/.ci/actions/ubuntu-disk-space@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/ubuntu-disk-space@main if: ${{ matrix.os == 'ubuntu-latest' }} - name: Support long paths if: ${{ matrix.os == 'windows-latest' }} - uses: kiegroup/kogito-pipelines/.ci/actions/long-paths@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/long-paths@main - name: Java and Maven Setup - uses: kiegroup/kogito-pipelines/.ci/actions/maven@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/maven@main with: java-version: ${{ matrix.java-version }} maven-version: ${{ matrix.maven-version }} cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }} - name: Build Chain - uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/build-chain@main with: - definition-file: https://raw.githubusercontent.com/${GROUP:kiegroup}/drools/${BRANCH:main}/.ci/buildchain-config.yaml + definition-file: https://raw.githubusercontent.com/${GROUP:apache}/incubator-kie-drools/${BRANCH:main}/.ci/buildchain-config.yaml annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }} - starting-project: kiegroup/${{ matrix.repository }} + starting-project: apache/${{ matrix.repository }} github-token: "${{ secrets.GITHUB_TOKEN }}" env: BUILD_MVN_OPTS: ${{ matrix.env_BUILD_MVN_OPTS }} KOGITO_EXAMPLES_SUBFOLDER_POM: ${{ matrix.env_KOGITO_EXAMPLES_SUBFOLDER_POM }} - name: Surefire Report - uses: kiegroup/kogito-pipelines/.ci/actions/surefire-report@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/surefire-report@main if: ${{ always() }} with: report_paths: '**/*-reports/TEST-*.xml' diff --git a/.github/workflows/pr-drools-ansible.yml b/.github/workflows/pr-drools-ansible.yml index a9f022b48c1..5aae441d1cd 100644 --- a/.github/workflows/pr-drools-ansible.yml +++ b/.github/workflows/pr-drools-ansible.yml @@ -21,26 +21,27 @@ jobs: strategy: matrix: os: [ubuntu-latest] - java-version: [11] + java-version: [17] maven-version: ['3.8.7'] fail-fast: false runs-on: ${{ matrix.os }} name: Ansible Integration / ${{ matrix.os }} / Java-${{ matrix.java-version }} / Maven-${{ matrix.maven-version }} steps: - name: Clean Disk Space - uses: kiegroup/kogito-pipelines/.ci/actions/ubuntu-disk-space@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/ubuntu-disk-space@main if: ${{ matrix.os == 'ubuntu-latest' }} - name: Support long paths if: ${{ matrix.os == 'windows-latest' }} - uses: kiegroup/kogito-pipelines/.ci/actions/long-paths@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/long-paths@main - name: Java and Maven Setup - uses: kiegroup/kogito-pipelines/.ci/actions/maven@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/maven@main with: java-version: ${{ matrix.java-version }} maven-version: ${{ matrix.maven-version }} cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }} + allow-snapshots: true - name: Build Chain - uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/build-chain@main with: definition-file: https://raw.githubusercontent.com/${GROUP:kiegroup}/drools-ansible-rulebook-integration/${BRANCH:main}/.ci/pull-request-config.yaml annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }} diff --git a/.github/workflows/pr-drools-docs.yml b/.github/workflows/pr-drools-docs.yml index 3f89bf9b094..ee4d8fadb50 100644 --- a/.github/workflows/pr-drools-docs.yml +++ b/.github/workflows/pr-drools-docs.yml @@ -23,7 +23,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Java and Maven Setup - uses: kiegroup/kogito-pipelines/.ci/actions/maven@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/maven@main with: java-version: ${{ matrix.java-version }} maven-version: ${{ matrix.maven-version }} diff --git a/.github/workflows/pr-drools.yml b/.github/workflows/pr-drools.yml index 62545b455f7..ba3be596731 100644 --- a/.github/workflows/pr-drools.yml +++ b/.github/workflows/pr-drools.yml @@ -28,27 +28,27 @@ jobs: name: ${{ matrix.os }} / Java-${{ matrix.java-version }} / Maven-${{ matrix.maven-version }} steps: - name: Clean Disk Space - uses: kiegroup/kogito-pipelines/.ci/actions/ubuntu-disk-space@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/ubuntu-disk-space@main if: ${{ matrix.os == 'ubuntu-latest' }} - name: Support long paths if: ${{ matrix.os == 'windows-latest' }} - uses: kiegroup/kogito-pipelines/.ci/actions/long-paths@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/long-paths@main - name: Java and Maven Setup - uses: kiegroup/kogito-pipelines/.ci/actions/maven@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/maven@main with: java-version: ${{ matrix.java-version }} maven-version: ${{ matrix.maven-version }} cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }} - name: Build Chain - uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/build-chain@main env: BUILD_MVN_OPTS_CURRENT: -Dfull with: - definition-file: https://raw.githubusercontent.com/${GROUP:kiegroup}/drools/${BRANCH:main}/.ci/buildchain-config.yaml + definition-file: https://raw.githubusercontent.com/${GROUP:apache}/incubator-kie-drools/${BRANCH:main}/.ci/buildchain-config.yaml annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }} github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Surefire Report - uses: kiegroup/kogito-pipelines/.ci/actions/surefire-report@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/surefire-report@main if: ${{ always() }} with: report_paths: '**/*-reports/TEST-*.xml' diff --git a/.github/workflows/pr-jenkins.yml b/.github/workflows/pr-jenkins.yml index ed8a85c9276..670dd6d98bd 100644 --- a/.github/workflows/pr-jenkins.yml +++ b/.github/workflows/pr-jenkins.yml @@ -16,9 +16,9 @@ jobs: name: DSL steps: - name: DSL tests - uses: kiegroup/kogito-pipelines/.ci/actions/dsl-tests@main + uses: apache/incubator-kie-kogito-pipelines/.ci/actions/dsl-tests@main with: - project: drools - main-config-file-repo: kiegroup/drools + project: incubator-kie-drools + main-config-file-repo: apache/incubator-kie-drools main-config-file-path: .ci/jenkins/config/main.yaml - branch-config-file-repo: kiegroup/drools + branch-config-file-repo: apache/incubator-kie-drools diff --git a/.github/workflows/pr-optaplanner.yml b/.github/workflows/pr-optaplanner.yml deleted file mode 100644 index 122f3bbdbcb..00000000000 --- a/.github/workflows/pr-optaplanner.yml +++ /dev/null @@ -1,61 +0,0 @@ -# Tests RHBOP productized profile builds on PRs -name: Optaplanner Downstream - -on: - pull_request: - types: [opened, synchronize, reopened, labeled] - branches: - - main - - 8.* - paths-ignore: - - 'LICENSE*' - - '.gitignore' - - '**.md' - - '**.adoc' - - '*.txt' - - 'docsimg/**' - - '.ci/jenkins/**' - -defaults: - run: - shell: bash - -jobs: - productized-build-chain: - concurrency: - group: rhbop_pull_request-${{ github.event_name }}-${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.java-version }}-${{ matrix.maven-version }} - cancel-in-progress: true - timeout-minutes: 120 - strategy: - matrix: - os: [ubuntu-latest] - java-version: [11] - maven-version: ['3.8.7'] - fail-fast: false - runs-on: ${{ matrix.os }} - name: ${{ matrix.os }} / Java-${{ matrix.java-version }} / Maven-${{ matrix.maven-version }} - steps: - - name: Clean Disk Space - uses: kiegroup/kogito-pipelines/.ci/actions/ubuntu-disk-space@main - - name: Java and Maven Setup - uses: kiegroup/kogito-pipelines/.ci/actions/maven@main - with: - java-version: ${{ matrix.java-version }} - maven-version: ${{ matrix.maven-version }} - cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }} - - name: Productized Build Chain - uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main - env: - # maven-assembly-plugin occasionally fails on heap space when building the ZIP in optaplanner-docs - MAVEN_OPTS: "-Xmx2048m" - with: - definition-file: https://raw.githubusercontent.com/${GROUP:kiegroup}/optaplanner/${BRANCH:main}/.ci/pull-request-config-rhbop.yaml - annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }} - github-token: "${{ secrets.GITHUB_TOKEN }}" - starting-project: kiegroup/optaplanner - - name: Surefire Report - uses: kiegroup/kogito-pipelines/.ci/actions/surefire-report@main - if: ${{ always() }} - with: - report_paths: '**/*-reports/TEST-*.xml' - diff --git a/Makefile b/Makefile new file mode 100644 index 00000000000..56c65e26bd2 --- /dev/null +++ b/Makefile @@ -0,0 +1,101 @@ +mvn_opts= +mvn_cmd=mvn $(mvn_opts) + +build_chain_branch=$(shell git branch --show-current) +build_chain_file='https://raw.githubusercontent.com/kiegroup/drools/main/.ci/pull-request-config.yaml' +build_chain_group='kiegroup' +build_chain_project='kiegroup/drools' + +default: help + +.PHONY: build +## Build the project +build: + $(mvn_cmd) clean install + +.PHONY: build-quickly +## Perform a quick build of the project +build-quickly: + $(mvn_cmd) clean install -Dquickly + +.PHONY: build-upstream +## (build-chain) Build upstream projects from the same branch. If needed, you can modify the `build_chain_file`, `build_chain_group` and `build_chain_branch`. See `build_chain_file` for setting correct environment variables +build-upstream: build-chain + build-chain build cross_pr -f ${build_chain_file} -o /tmp/bc -p ${build_chain_project} -b ${build_chain_branch} -g ${build_chain_group} --skipParallelCheckout --skipProjectExecution kiegroup/kogito-runtimes --skipProjectCheckout kiegroup/kogito-runtimes + +.PHONY: build-pr +pr_link= +## (build-chain) Build projects from a given `pr_link` argument. If needed, you can also modify the `build_chain_file` and `build_chain_project`. See `build_chain_file` for setting correct environment variables +build-pr: build-chain + $(if $(pr_link),,$(error Please provide the 'pr_link' argument)) + build-chain build cross_pr -f ${build_chain_file} -o /tmp/bc -p ${build_chain_project} -u ${pr_link} --skipParallelCheckout + +.PHONY: test +## Launch full testing +test: + $(mvn_cmd) clean verify + +.PHONY: quick-test +## Launch unit testing +quick-test: + $(mvn_cmd) clean verify -DquickTests + +.PHONY: deploy +## Deploy the project +deploy: + $(mvn_cmd) deploy + +.PHONY: clean +## Clean the project +clean: + $(mvn_cmd) clean + +.PHONY: mvn +## Execute a Maven command with project configuration. Needs the `cmd` argument set +mvn: + $(mvn_cmd) ${cmd} + +.PHONY: update-quarkus +## Update the quarkus version. Needs the `quarkus_version` argument set. See also '.ci/environments/common/update_quarkus.sh' for setting correct environment variables +update-quarkus: + .ci/environments/common/update_quarkus.sh ${quarkus_version} + $(MAKE) show-diff + +.PHONY: prepare-env +## Prepare the repository for a specific environment. Needs the `environment` argument set. See also '.ci/environments/{environment}' script for setting correct environment variables +prepare-env: + .ci/environments/update.sh ${environment} + +.PHONY: tree +## Show project dependencies +tree: + $(mvn_cmd) dependency:tree + +.PHONY: show-diff +## Show Git diff +show-diff: + git status + git diff + +.PHONY: help +## This help screen +help: + @printf "Available targets:\n\n" + @awk '/^[a-zA-Z\-_0-9%:\\]+/ { \ + helpMessage = match(lastLine, /^## (.*)/); \ + if (helpMessage) { \ + helpCommand = $$1; \ + helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \ + gsub("\\\\", "", helpCommand); \ + gsub(":+$$", "", helpCommand); \ + printf " \x1b[32;01m%-35s\x1b[0m %s\n", helpCommand, helpMessage; \ + } \ + } \ + { lastLine = $$0 }' $(MAKEFILE_LIST) + @printf "\n" + @printf "All Maven commands can include some maven options via the \`mvn_opts\` argument !" + @printf "\n" + +.PHONY: build-chain +build-chain: + which build-chain || npm i @kie/build-chain-action -g || printf "\nERROR: Cannot install build-chain. Please run \`npm i @kie/build-chain-action -g\` as sudo user\n" \ No newline at end of file diff --git a/README.md b/README.md index fb960f6199e..b5f526392c0 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ There are two ways to activate such profile during maven build: The following two commands will execute tests on machine with locale different than _en_US_: -1. `mvn clean verify -Ptest-en` -2. `mvn clean verify -DTestEn` +1. `make test -Ptest-en` +2. `make test -DTestEn` diff --git a/bom/drools-bom/pom.xml b/bom/drools-bom/pom.xml index 177b268d612..3e2733cac14 100644 --- a/bom/drools-bom/pom.xml +++ b/bom/drools-bom/pom.xml @@ -6,7 +6,7 @@ org.kie kie-core-bom - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../kie-core-bom/pom.xml @@ -206,6 +206,26 @@ test-jar test + + + org.drools + drools-base + ${project.version} + + + org.drools + drools-base + ${project.version} + sources + + + org.drools + drools-base + ${project.version} + test-jar + test + + org.drools drools-drl-ast @@ -278,6 +298,24 @@ test-jar test + + org.drools + drools-reliability-h2mvstore + ${project.version} + + + org.drools + drools-reliability-h2mvstore + ${project.version} + sources + + + org.drools + drools-reliability-h2mvstore + ${project.version} + test-jar + test + org.drools drools-tms diff --git a/bom/kie-core-bom/pom.xml b/bom/kie-core-bom/pom.xml index 36c3e04f45c..d5329807d5d 100644 --- a/bom/kie-core-bom/pom.xml +++ b/bom/kie-core-bom/pom.xml @@ -6,7 +6,7 @@ org.kie drools-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../../pom.xml diff --git a/bom/kie-dmn-bom/pom.xml b/bom/kie-dmn-bom/pom.xml index 587891746df..2275d4e11fc 100644 --- a/bom/kie-dmn-bom/pom.xml +++ b/bom/kie-dmn-bom/pom.xml @@ -6,7 +6,7 @@ org.kie kie-core-bom - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../kie-core-bom/pom.xml diff --git a/bom/kie-efesto-bom/pom.xml b/bom/kie-efesto-bom/pom.xml index f5da15d29af..b52c9812a09 100644 --- a/bom/kie-efesto-bom/pom.xml +++ b/bom/kie-efesto-bom/pom.xml @@ -6,7 +6,7 @@ org.kie kie-core-bom - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../kie-core-bom/pom.xml diff --git a/bom/kie-pmml-bom/pom.xml b/bom/kie-pmml-bom/pom.xml index eed0fc693d4..bf1d694eb6e 100644 --- a/bom/kie-pmml-bom/pom.xml +++ b/bom/kie-pmml-bom/pom.xml @@ -6,7 +6,7 @@ org.kie kie-core-bom - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../kie-core-bom/pom.xml diff --git a/bom/pom.xml b/bom/pom.xml index 3c6355f9c1f..0b46d81e8b8 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -5,7 +5,7 @@ drools-parent org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/build-parent/pom.xml b/build-parent/pom.xml index a01370282c5..903733ba328 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -1,11 +1,31 @@ + drools-parent org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -40,23 +60,21 @@ 1.1.1 2.11.0 1.10.0 - 2.14.2 - 2.14.2 - 2.14.2 + 2.15.2 + 2.15.2 + 2.15.2 4.31.0 - 2.1.7 3.7.4 1.0.1 - 4.0 3.22.0 - 2.1.214 - 1.0.43 + 2.2.220 + 1.0.86 2.3.0 1.4.20 0.18.0 4.7.1 1.10.2 - 2.16.6.Final + 2.16.10.Final 3.1.1 8.5.11 4.13.1 @@ -71,16 +89,18 @@ 3.8.6 1.7.3 3.5.1 + 2.0.28 5.1.0 9.0.21 3.23.1 - 3.18.0 + 3.33.0 2.3.32 2.3.6 1.3 5.6.12.Final 2.3.0 + 14.0.13.Final 3.26.0-GA 5.13.1.Final 7.6.1.Final @@ -105,7 +125,7 @@ 1.1.6 1.5.1 5.9.2 - 2.4.15.Final + 2.5.0.Final 2.0.7 1.7.30 @@ -191,6 +211,8 @@ 3.24.2 + 32.0.1-jre + ${maven.multiModuleProjectDirectory} @@ -206,6 +228,10 @@ io.smallrye ${jandex.group-id} + + + 3.3.0 + 3.4.0 @@ -324,19 +350,6 @@ - - com.google.inject - guice - ${version.com.google.inject.guice} - no_aop - - - javax.inject - javax.inject - - - - com.google.protobuf protobuf-java @@ -645,6 +658,10 @@ javax.annotation javax.annotation-api + + com.google.guava + guava + @@ -1241,6 +1258,13 @@ test + + + com.google.guava + guava + ${version.com.google.guava} + + org.kie @@ -1557,7 +1581,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - ${version.checkstyle.plugin} + ${version.maven-checkstyle} validate @@ -1655,7 +1679,7 @@ org.apache.maven.plugins maven-failsafe-plugin - ${version.failsafe.plugin} + ${version.maven-surefire} @@ -1875,7 +1899,7 @@ org.apache.maven.plugins maven-deploy-plugin - ${version.deploy.plugin} + ${version.maven-deploy-plugin} 10 @@ -2029,6 +2053,19 @@ sonar-maven-plugin 3.6.0.1398 + + org.apache.maven.plugins + maven-javadoc-plugin + ${version.maven-javadoc-plugin} + +
${project.name} ${project.version}]]>
+
${project.name} ${project.version}]]>
+ + true + + ${javadoc.additional.params} +
+
@@ -2044,6 +2081,7 @@ org.codehaus.mojo build-helper-maven-plugin + ${version.build.helper.maven.plugin} generate-sources @@ -2063,7 +2101,7 @@ org.apache.maven.plugins maven-jar-plugin - ${version.jar.plugin} + ${version.maven-jar-plugin}
org.apache.maven.plugins @@ -2480,6 +2518,49 @@ + + test-with-custom-binaries + + + unpackbuild.version + + + src/main/java + + + + true + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + ${project.groupId} + ${project.artifactId} + ${unpackbuild.version} + ${project.packaging} + true + target/classes + + + + + + unpack-jar + compile + + unpack + + + + + + + default diff --git a/drools-alphanetwork-compiler/pom.xml b/drools-alphanetwork-compiler/pom.xml index dad1a7cc93b..7200a26642a 100644 --- a/drools-alphanetwork-compiler/pom.xml +++ b/drools-alphanetwork-compiler/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ANCConfiguration.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ANCConfiguration.java index ce93ac9daf5..054ad17e65b 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ANCConfiguration.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ANCConfiguration.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.ancompiler; public class ANCConfiguration { diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/AbstractCompilerHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/AbstractCompilerHandler.java index 5b66f584bf6..27bd0912931 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/AbstractCompilerHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/AbstractCompilerHandler.java @@ -1,32 +1,35 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.ancompiler; import java.util.NoSuchElementException; +import org.drools.base.common.NetworkNode; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.Sink; -import org.drools.core.rule.ContextEntry; +import org.drools.base.rule.ContextEntry; import org.drools.core.util.index.AlphaRangeIndex; /** * This handler is used as a base class for all {@link org.drools.ancompiler.NetworkHandler}s used for * generating a compiled network. It provides methods to return the variable type and names used for storing - * refernces to different {@link org.drools.core.common.NetworkNode}s and variable names for ClassFieldReaders. + * refernces to different {@link NetworkNode}s and variable names for ClassFieldReaders. */ abstract class AbstractCompilerHandler extends NetworkHandlerAdaptor { protected static final String NEWLINE = "\n"; @@ -80,7 +83,7 @@ protected String getVariableName() { * nodeId. * * @param clazz class whose simple name is lowercased and user as the prefix of the variable name - * @param nodeId id of {@link org.drools.core.common.NetworkNode} + * @param nodeId id of {@link NetworkNode} * @return variable name * @see Class#getSimpleName() */ diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/AssertHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/AssertHandler.java index a0bcf55f774..11c4519ae70 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/AssertHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/AssertHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import com.github.javaparser.ast.NodeList; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CanInlineInANC.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CanInlineInANC.java index ee30fa896bf..645d6871fd9 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CanInlineInANC.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CanInlineInANC.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import com.github.javaparser.ast.expr.Expression; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CompiledNetwork.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CompiledNetwork.java index 209cbc7db3f..a5b9d3eabe8 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CompiledNetwork.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CompiledNetwork.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.ancompiler; import java.io.IOException; @@ -21,9 +23,9 @@ import java.io.ObjectOutput; import org.drools.core.common.BaseNode; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.LeftInputAdapterNode; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CompiledNetworkSources.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CompiledNetworkSources.java index 939b4a7535b..c773bc8269c 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CompiledNetworkSources.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CompiledNetworkSources.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.Collection; @@ -24,8 +26,8 @@ import com.github.javaparser.ast.PackageDeclaration; import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.util.index.AlphaRangeIndex; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CouldNotCreateAlphaNetworkCompilerException.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CouldNotCreateAlphaNetworkCompilerException.java index db3b3c322bd..add000ed017 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CouldNotCreateAlphaNetworkCompilerException.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/CouldNotCreateAlphaNetworkCompilerException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ancompiler; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DebugHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DebugHandler.java index f21e11b3c3d..cdec172e143 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DebugHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DebugHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import org.drools.core.reteoo.AlphaNode; @@ -21,7 +23,7 @@ import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.IndexableConstraint; +import org.drools.base.rule.IndexableConstraint; import org.drools.core.util.index.AlphaRangeIndex; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DeclarationsHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DeclarationsHandler.java index 840ccf49d52..395bb1abd09 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DeclarationsHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DeclarationsHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.ancompiler; import java.util.Collection; @@ -23,14 +25,14 @@ import java.util.Map; import java.util.NoSuchElementException; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.Sink; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.IndexableConstraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.IndexableConstraint; import org.drools.core.util.index.AlphaRangeIndex; /** diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DelegateMethodsHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DelegateMethodsHandler.java index 2947340fa3c..4769d14fecb 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DelegateMethodsHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/DelegateMethodsHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import org.drools.core.common.InternalFactHandle; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/HashedAlphasDeclaration.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/HashedAlphasDeclaration.java index 1d97efe2518..396235be5cc 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/HashedAlphasDeclaration.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/HashedAlphasDeclaration.java @@ -1,22 +1,24 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.ancompiler; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import java.util.Map; import java.util.HashMap; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/InlineFieldReferenceInitHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/InlineFieldReferenceInitHandler.java index 796ec9a9c9d..2db3a780410 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/InlineFieldReferenceInitHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/InlineFieldReferenceInitHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.ancompiler; import java.util.ArrayList; @@ -39,7 +41,7 @@ import com.github.javaparser.ast.stmt.ReturnStmt; import com.github.javaparser.ast.type.ClassOrInterfaceType; import com.github.javaparser.ast.type.VoidType; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.Sink; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/KieBaseUpdaterANC.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/KieBaseUpdaterANC.java index 7bc8351dca3..b0e504a2f05 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/KieBaseUpdaterANC.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/KieBaseUpdaterANC.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.Map; @@ -95,7 +97,7 @@ public static void generateAndSetInMemoryANC(KieBase kbase) { KieBaseUpdaterOptions kieBaseUpdaterOptions = new KieBaseUpdaterOptions(new KieBaseUpdaterOptions.OptionEntry( AlphaNetworkCompilerOption.class, AlphaNetworkCompilerOption.INMEMORY)); KieBaseUpdatersContext context = new KieBaseUpdatersContext(kieBaseUpdaterOptions, - (( InternalKnowledgeBase ) kbase).getRete(), (( InternalKnowledgeBase ) kbase).getRootClassLoader()); + ((InternalKnowledgeBase) kbase).getRete(), ((InternalKnowledgeBase) kbase).getRootClassLoader()); new KieBaseUpdaterANC(context).run(); } } diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/KieBaseUpdaterANCFactory.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/KieBaseUpdaterANCFactory.java index ba2856e674d..4d829ecba6d 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/KieBaseUpdaterANCFactory.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/KieBaseUpdaterANCFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import org.drools.compiler.kie.builder.impl.KieBaseUpdater; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ListUtils.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ListUtils.java index 7ad4316c2f3..e6e2946b653 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ListUtils.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ListUtils.java @@ -1,22 +1,21 @@ -/* - * 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 +/** + * 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 + * 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. - * - * Originally copied from org.apache.commons.collections4.ListUtils + * 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. */ - package org.drools.ancompiler; import java.util.AbstractList; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/MapUtils.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/MapUtils.java index a71d31d8344..caf7d03ac21 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/MapUtils.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/MapUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.Map; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ModifyHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ModifyHandler.java index 47858259e8c..f5091fd2431 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ModifyHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ModifyHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import com.github.javaparser.ast.NodeList; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NetworkHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NetworkHandler.java index 2c467b04a13..c7aa302da46 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NetworkHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NetworkHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.ancompiler; import org.drools.core.reteoo.AlphaNode; @@ -21,7 +23,7 @@ import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.IndexableConstraint; +import org.drools.base.rule.IndexableConstraint; import org.drools.core.util.index.AlphaRangeIndex; /** diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NetworkHandlerAdaptor.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NetworkHandlerAdaptor.java index 48144caa212..7377e760765 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NetworkHandlerAdaptor.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NetworkHandlerAdaptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.ancompiler; import com.github.javaparser.ast.Node; @@ -23,7 +25,7 @@ import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.IndexableConstraint; +import org.drools.base.rule.IndexableConstraint; import org.drools.core.util.index.AlphaRangeIndex; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NodeCollectorHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NodeCollectorHandler.java index 2d880afc146..c4222b5682d 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NodeCollectorHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/NodeCollectorHandler.java @@ -1,25 +1,27 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.ArrayList; import java.util.List; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.LeftInputAdapterNode; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ObjectTypeNodeCompiler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ObjectTypeNodeCompiler.java index 8e67ad8a532..1aec3b65ada 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ObjectTypeNodeCompiler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ObjectTypeNodeCompiler.java @@ -1,30 +1,23 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.function.Function; -import java.util.stream.Collectors; - import com.github.javaparser.StaticJavaParser; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.Modifier; @@ -37,15 +30,24 @@ import com.github.javaparser.ast.stmt.Statement; import com.github.javaparser.ast.type.VoidType; import com.github.javaparser.printer.PrettyPrinter; -import org.drools.core.InitialFact; -import org.drools.core.base.ClassObjectType; +import org.drools.base.InitialFact; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.Rete; -import org.drools.core.rule.accessor.ReadAccessor; import org.drools.core.util.index.AlphaRangeIndex; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; + import static com.github.javaparser.StaticJavaParser.parse; import static com.github.javaparser.StaticJavaParser.parseType; @@ -191,7 +193,7 @@ public CompiledNetworkSources generateSource() { private void addEmptySetNetworkReference(StringBuilder builder) { builder.append(" @Override\n" + - " protected void setNetworkNodeReference(org.drools.core.common.NetworkNode networkNode) {\n" + + " protected void setNetworkNodeReference(org.drools.base.common.NetworkNode networkNode) {\n" + " \n" + " }"); } diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ObjectTypeNodeParser.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ObjectTypeNodeParser.java index ee05f4940f9..763cd2cbbeb 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ObjectTypeNodeParser.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ObjectTypeNodeParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.ancompiler; import java.util.Collection; @@ -29,15 +31,15 @@ import org.drools.core.reteoo.CompositeObjectSinkAdapter.FieldIndex; import org.drools.core.reteoo.CompositePartitionAwareObjectSinkAdapter; import org.drools.core.reteoo.LeftInputAdapterNode; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectSink; import org.drools.core.reteoo.ObjectSinkNode; import org.drools.core.reteoo.ObjectSinkPropagator; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.SingleObjectSinkAdapter; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.core.util.index.AlphaRangeIndex; /** diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/PropagatorCompilerHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/PropagatorCompilerHandler.java index 2be8b2d276f..cb8220aa404 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/PropagatorCompilerHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/PropagatorCompilerHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.ArrayDeque; @@ -61,9 +63,9 @@ import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.Sink; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.IndexableConstraint; +import org.drools.base.rule.IndexableConstraint; import org.drools.core.common.PropagationContext; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.util.index.AlphaRangeIndex; import static com.github.javaparser.StaticJavaParser.parseExpression; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ResultCollectorSink.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ResultCollectorSink.java index 53c3b4f1920..b7eeb81313e 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ResultCollectorSink.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/ResultCollectorSink.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.ancompiler; diff --git a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/SetNodeReferenceHandler.java b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/SetNodeReferenceHandler.java index de520f9f48c..cd801e1d237 100644 --- a/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/SetNodeReferenceHandler.java +++ b/drools-alphanetwork-compiler/src/main/java/org/drools/ancompiler/SetNodeReferenceHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.ancompiler; import java.util.ArrayList; @@ -35,7 +37,7 @@ import com.github.javaparser.ast.stmt.SwitchStmt; import com.github.javaparser.ast.type.PrimitiveType; import com.github.javaparser.ast.type.VoidType; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.Sink; diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/AlphaNetworkCompilerTest.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/AlphaNetworkCompilerTest.java index 2c531c38103..2a7b1c483a9 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/AlphaNetworkCompilerTest.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/AlphaNetworkCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.io.Serializable; diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/AlphaNetworkInitTest.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/AlphaNetworkInitTest.java index 77f6ba48865..385b150935c 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/AlphaNetworkInitTest.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/AlphaNetworkInitTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.ArrayList; diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/BaseModelTest.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/BaseModelTest.java index 2d65a17be6f..d2d88b3200a 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/BaseModelTest.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/BaseModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.List; diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/ChildFactWithEnum1.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/ChildFactWithEnum1.java index 71e5cae50f5..8f662a3d44b 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/ChildFactWithEnum1.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/ChildFactWithEnum1.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; public class ChildFactWithEnum1 { diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/EnumFact1.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/EnumFact1.java index f4b763a5c10..6c1ae5f127d 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/EnumFact1.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/EnumFact1.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; public enum EnumFact1 { diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/KJARUtils.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/KJARUtils.java index 702a78ac195..56951a36710 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/KJARUtils.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/KJARUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import org.kie.api.builder.ReleaseId; diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/LargeAlphaNetworkTest.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/LargeAlphaNetworkTest.java index e2236a42bc1..39cf059f7f4 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/LargeAlphaNetworkTest.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/LargeAlphaNetworkTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.ArrayList; diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/MixedConstraintsTest.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/MixedConstraintsTest.java index 84038bef6f5..86a5691de79 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/MixedConstraintsTest.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/MixedConstraintsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.ArrayList; diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/MultipleIndexableConstraintsTest.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/MultipleIndexableConstraintsTest.java index 55a03a36458..9f5765d3b5e 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/MultipleIndexableConstraintsTest.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/MultipleIndexableConstraintsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.ArrayList; diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/Person.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/Person.java index 805e08fcf41..60eed312684 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/Person.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.math.BigDecimal; diff --git a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/RangeIndexANCTest.java b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/RangeIndexANCTest.java index 71b803fa464..fe64111579f 100644 --- a/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/RangeIndexANCTest.java +++ b/drools-alphanetwork-compiler/src/test/java/org/drools/ancompiler/RangeIndexANCTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ancompiler; import java.util.ArrayList; diff --git a/drools-alphanetwork-compiler/src/test/resources/logback-test.xml b/drools-alphanetwork-compiler/src/test/resources/logback-test.xml index e3a39178971..48c553b2fc4 100644 --- a/drools-alphanetwork-compiler/src/test/resources/logback-test.xml +++ b/drools-alphanetwork-compiler/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-base/pom.xml b/drools-base/pom.xml new file mode 100644 index 00000000000..68468e2a459 --- /dev/null +++ b/drools-base/pom.xml @@ -0,0 +1,229 @@ + + + + + 4.0.0 + + org.kie + drools-build-parent + 8.45.0-SNAPSHOT + ../build-parent/pom.xml + + + org.drools + drools-base + + Drools :: base + + + org.drools.base + 2 + + + + + + org.kie + kie-api + + + + org.drools + drools-util + + + + org.drools + drools-wiring-api + + + + + org.kie + kie-internal + + + + org.assertj + assertj-core + test + + + + com.sun.xml.bind + jaxb-xjc + provided + + + com.sun.xml.bind + jaxb-core + provided + + + com.sun.xml.bind + jaxb-impl + provided + + + jakarta.xml.bind + jakarta.xml.bind-api + provided + + + jakarta.activation + jakarta.activation-api + provided + + + + jakarta.inject + jakarta.inject-api + provided + + + + + org.slf4j + slf4j-api + + + ch.qos.logback + logback-classic + test + + + + + commons-codec + commons-codec + + + + org.apache.commons + commons-lang3 + test + + + + junit + junit + test + + + org.mockito + mockito-core + test + + + + + + + grammarsProfile + + + grammars + + + + + + maven-antrun-plugin + + + generate-sources + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + run + + + + + + + + + + + + + src/main/resources + + + true + src/main/filtered-resources + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + + com.github.spotbugs + spotbugs-maven-plugin + + ${project.basedir}/src/main/spotbugs/spotbugs-exclude.xml + + + + + + diff --git a/drools-base/src/main/java/org/drools/base/InitialFact.java b/drools-base/src/main/java/org/drools/base/InitialFact.java new file mode 100644 index 00000000000..2c35c675df9 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/InitialFact.java @@ -0,0 +1,31 @@ +/** + * 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. + */ +package org.drools.base; + +import java.io.Serializable; + +/** + * Initial fact, automatically put into the network. This fact is needed by 'not' CEs + * when they are the CEs in the rule. + */ +public interface InitialFact + extends + Serializable { + +} diff --git a/drools-base/src/main/java/org/drools/base/RuleBase.java b/drools-base/src/main/java/org/drools/base/RuleBase.java new file mode 100644 index 00000000000..90253297633 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/RuleBase.java @@ -0,0 +1,33 @@ +/** + * 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. + */ +package org.drools.base; + + +import org.drools.base.rule.TypeDeclaration; +import org.kie.api.KieBaseConfiguration; + +public interface RuleBase { + ClassLoader getRootClassLoader(); + + TypeDeclaration getOrCreateExactTypeDeclaration(Class nodeClass); + + TypeDeclaration getTypeDeclaration(Class classType); + + KieBaseConfiguration getConfiguration(); +} diff --git a/drools-base/src/main/java/org/drools/base/RuleBuildContext.java b/drools-base/src/main/java/org/drools/base/RuleBuildContext.java new file mode 100644 index 00000000000..c294aba07d1 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/RuleBuildContext.java @@ -0,0 +1,25 @@ +/** + * 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. + */ +package org.drools.base; + +import org.drools.base.definitions.rule.impl.RuleImpl; + +public interface RuleBuildContext { + RuleImpl getRule(); +} diff --git a/drools-base/src/main/java/org/drools/base/base/AcceptsClassObjectType.java b/drools-base/src/main/java/org/drools/base/base/AcceptsClassObjectType.java new file mode 100644 index 00000000000..666cfa0773e --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/AcceptsClassObjectType.java @@ -0,0 +1,23 @@ +/** + * 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. + */ +package org.drools.base.base; + +public interface AcceptsClassObjectType { + void setClassObjectType(ClassObjectType classObjectType); +} diff --git a/drools-core/src/main/java/org/drools/core/base/AccessorKey.java b/drools-base/src/main/java/org/drools/base/base/AccessorKey.java similarity index 77% rename from drools-core/src/main/java/org/drools/core/base/AccessorKey.java rename to drools-base/src/main/java/org/drools/base/base/AccessorKey.java index 672044b3d14..e7c33be0153 100644 --- a/drools-core/src/main/java/org/drools/core/base/AccessorKey.java +++ b/drools-base/src/main/java/org/drools/base/base/AccessorKey.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.base; +package org.drools.base.base; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-base/src/main/java/org/drools/base/base/AccessorKeySupplier.java b/drools-base/src/main/java/org/drools/base/base/AccessorKeySupplier.java new file mode 100644 index 00000000000..f908fdb9d5a --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/AccessorKeySupplier.java @@ -0,0 +1,23 @@ +/** + * 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. + */ +package org.drools.base.base; + +public interface AccessorKeySupplier { + AccessorKey getAccessorKey(); +} diff --git a/drools-core/src/main/java/org/drools/core/base/BaseClassFieldReader.java b/drools-base/src/main/java/org/drools/base/base/BaseClassFieldReader.java similarity index 79% rename from drools-core/src/main/java/org/drools/core/base/BaseClassFieldReader.java rename to drools-base/src/main/java/org/drools/base/base/BaseClassFieldReader.java index 7301ecabd1a..c765c5a8308 100644 --- a/drools-core/src/main/java/org/drools/core/base/BaseClassFieldReader.java +++ b/drools-base/src/main/java/org/drools/base/base/BaseClassFieldReader.java @@ -1,30 +1,32 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ +package org.drools.base.base; -package org.drools.core.base; +import org.drools.base.common.DroolsObjectInput; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.util.ClassUtils; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.common.DroolsObjectInput; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.util.ClassUtils; - /** * This is the supertype for the ASM generated classes for accessing a field. */ @@ -112,11 +114,6 @@ public Object getValue(Object object) { object ); } - public boolean isNullValue(Object object) { - return isNullValue( null, - object ); - } - public int getHashCode(Object object) { return getHashCode( null, object ); diff --git a/drools-base/src/main/java/org/drools/base/base/ClassFieldInspector.java b/drools-base/src/main/java/org/drools/base/base/ClassFieldInspector.java new file mode 100644 index 00000000000..b7b308d1112 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/ClassFieldInspector.java @@ -0,0 +1,44 @@ +/** + * 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. + */ +package org.drools.base.base; + +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.util.Collection; +import java.util.Map; + +import org.kie.internal.builder.KnowledgeBuilderResult; + +public interface ClassFieldInspector { + Map getFieldNames(); + + boolean isNonGetter( String name ); + + Map getFieldTypesField(); + + Map> getFieldTypes(); + + Class< ? > getFieldType(String name); + + Map getGetterMethods(); + + Map getSetterMethods(); + + Collection getInspectionResults( String fieldName ); +} diff --git a/drools-core/src/main/java/org/drools/core/base/ClassObjectType.java b/drools-base/src/main/java/org/drools/base/base/ClassObjectType.java similarity index 86% rename from drools-core/src/main/java/org/drools/core/base/ClassObjectType.java rename to drools-base/src/main/java/org/drools/base/base/ClassObjectType.java index 49feb5bf33f..150fad3d6ee 100644 --- a/drools-core/src/main/java/org/drools/core/base/ClassObjectType.java +++ b/drools-base/src/main/java/org/drools/base/base/ClassObjectType.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.base; +package org.drools.base.base; import java.io.Externalizable; import java.io.IOException; @@ -23,11 +25,11 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.InitialFact; -import org.drools.core.common.DroolsObjectInput; -import org.drools.core.reteoo.InitialFactImpl; +import org.drools.base.InitialFact; +import org.drools.base.common.DroolsObjectInput; +import org.drools.base.reteoo.InitialFactImpl; import org.drools.util.ClassUtils; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.kie.api.runtime.rule.Match; /** diff --git a/drools-base/src/main/java/org/drools/base/base/ClassWireable.java b/drools-base/src/main/java/org/drools/base/base/ClassWireable.java new file mode 100644 index 00000000000..d33591fbb72 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/ClassWireable.java @@ -0,0 +1,30 @@ +/** + * 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. + */ +package org.drools.base.base; + + +public interface ClassWireable { + + void wire( Class klass ); + + String getClassName(); + + Class getClassType(); + +} diff --git a/drools-base/src/main/java/org/drools/base/base/CoreComponentsBuilder.java b/drools-base/src/main/java/org/drools/base/base/CoreComponentsBuilder.java new file mode 100644 index 00000000000..102d1de6f03 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/CoreComponentsBuilder.java @@ -0,0 +1,64 @@ +/** + * 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. + */ +package org.drools.base.base; + +import java.io.IOException; + +import org.drools.base.common.MissingDependencyException; +import org.drools.base.rule.DialectRuntimeData; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.util.Drools; +import org.drools.base.util.MVELExecutor; +import org.kie.api.internal.utils.KieService; + +public interface CoreComponentsBuilder extends KieService { + + String NO_MVEL = "You're trying to compile a Drools asset without mvel. Please add the module org.drools:drools-mvel to your classpath."; + + static T throwExceptionForMissingMvel() { + if (Drools.isNativeImage()) { + return null; + } + throw new MissingDependencyException(NO_MVEL); + } + + class Holder { + private static final CoreComponentsBuilder cBuilder = KieService.load( CoreComponentsBuilder.class ); + } + + static CoreComponentsBuilder get() { + return Holder.cBuilder != null ? Holder.cBuilder : throwExceptionForMissingMvel(); + } + + static boolean present() { + return Holder.cBuilder != null; + } + + ReadAccessor getReadAcessor(String className, String expr, boolean typesafe, Class returnType ); + + Object evaluateMvelExpression(DialectRuntimeData data, ClassLoader classLoader, String expr ); + + default ClassFieldInspector createClassFieldInspector( final Class classUnderInspection ) throws IOException { + return createClassFieldInspector( classUnderInspection, true ); + } + + ClassFieldInspector createClassFieldInspector( Class classUnderInspection, boolean includeFinalMethods ) throws IOException; + + MVELExecutor getMVELExecutor(); +} diff --git a/drools-base/src/main/java/org/drools/base/base/DroolsQuery.java b/drools-base/src/main/java/org/drools/base/base/DroolsQuery.java new file mode 100644 index 00000000000..aa60b4653af --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/DroolsQuery.java @@ -0,0 +1,29 @@ +/** + * 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. + */ +package org.drools.base.base; + +import org.kie.api.runtime.rule.Variable; + +public interface DroolsQuery { + Variable[] getVariables(); + + Object getName(); + + public Object[] getElements(); +} diff --git a/drools-base/src/main/java/org/drools/base/base/EnabledBoolean.java b/drools-base/src/main/java/org/drools/base/base/EnabledBoolean.java new file mode 100644 index 00000000000..312dee062cf --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/EnabledBoolean.java @@ -0,0 +1,70 @@ +/** + * 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. + */ +package org.drools.base.base; + +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.accessor.Enabled; +import org.drools.base.rule.Declaration; + +public class EnabledBoolean + implements + Enabled, + Externalizable { + + private static final long serialVersionUID = 510l; + + public static final Enabled ENABLED_TRUE = new EnabledBoolean( true ); + public static final Enabled ENABLED_FALSE = new EnabledBoolean( false ); + + private boolean value; + + public EnabledBoolean() { + } + + public EnabledBoolean(boolean value) { + this.value = value; + } + + public void readExternal(ObjectInput in) throws IOException, + ClassNotFoundException { + value = in.readBoolean(); + } + + public void writeExternal(ObjectOutput out) throws IOException { + out.writeBoolean( value ); + } + + public boolean getValue(final BaseTuple tuple, + final Declaration[] declarations, + final RuleImpl rule, + final ValueResolver valueResolver) { + return this.value; + } + + public String toString() { + return String.valueOf( this.value ); + } + +} diff --git a/drools-base/src/main/java/org/drools/base/base/FieldAccessor.java b/drools-base/src/main/java/org/drools/base/base/FieldAccessor.java new file mode 100755 index 00000000000..4ad458c1b55 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/FieldAccessor.java @@ -0,0 +1,30 @@ +/** + * 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. + */ +package org.drools.base.base; + +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.WriteAccessor; + + +/** + * An interface for Accessor classes that joins both reader and writer accessor methods + */ +public interface FieldAccessor extends ReadAccessor, WriteAccessor { + +} diff --git a/drools-base/src/main/java/org/drools/base/base/ObjectType.java b/drools-base/src/main/java/org/drools/base/base/ObjectType.java new file mode 100644 index 00000000000..03cdd4f6482 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/ObjectType.java @@ -0,0 +1,52 @@ +/** + * 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. + */ +package org.drools.base.base; + +import java.io.Externalizable; + +/** + * Semantic object type differentiator. + */ +public interface ObjectType + extends + Externalizable { + + boolean isAssignableFrom(Class clazz); + + boolean isAssignableTo(Class clazz); + + boolean isAssignableFrom(ObjectType objectType); + + /** + * Returns true if the object type represented by this object + * is an event object type. False otherwise. + * @return + */ + boolean isEvent(); + + ValueType getValueType(); + + Object getTypeKey(); + + String getClassName(); + + boolean hasField(String name); + + boolean isTemplate(); +} diff --git a/drools-base/src/main/java/org/drools/base/base/ReadAccessorSupplier.java b/drools-base/src/main/java/org/drools/base/base/ReadAccessorSupplier.java new file mode 100644 index 00000000000..2141067bc20 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/ReadAccessorSupplier.java @@ -0,0 +1,25 @@ +/** + * 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. + */ +package org.drools.base.base; + +import org.drools.base.rule.accessor.ReadAccessor; + +public interface ReadAccessorSupplier { + ReadAccessor getReader(AccessorKey key); +} diff --git a/drools-core/src/main/java/org/drools/core/base/SalienceInteger.java b/drools-base/src/main/java/org/drools/base/base/SalienceInteger.java similarity index 51% rename from drools-core/src/main/java/org/drools/core/base/SalienceInteger.java rename to drools-base/src/main/java/org/drools/base/base/SalienceInteger.java index 9dce476f531..7fc8106c633 100644 --- a/drools-core/src/main/java/org/drools/core/base/SalienceInteger.java +++ b/drools-base/src/main/java/org/drools/base/base/SalienceInteger.java @@ -1,34 +1,35 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.base; +package org.drools.base.base; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.accessor.Salience; +import org.drools.base.rule.accessor.Salience; import org.kie.api.definition.rule.Rule; +import org.kie.api.runtime.rule.Match; public class SalienceInteger implements - Salience, Externalizable { + Salience, Externalizable { private static final long serialVersionUID = 510l; @@ -51,9 +52,9 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(value); } - public int getValue(final InternalMatch internalMatch, + public int getValue(final Match activation, final Rule rule, - final ReteEvaluator reteEvaluator) { + final ValueResolver valueResolver) { return this.value; } diff --git a/drools-base/src/main/java/org/drools/base/base/SimpleValueType.java b/drools-base/src/main/java/org/drools/base/base/SimpleValueType.java new file mode 100644 index 00000000000..8cf19e50e34 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/SimpleValueType.java @@ -0,0 +1,34 @@ +/** + * 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. + */ +package org.drools.base.base; + +public class SimpleValueType { + public static final int UNKNOWN = 0; + public static final int NULL = 1; + public static final int BOOLEAN = 2; + public static final int NUMBER = 3; + public static final int INTEGER = 4; + public static final int DECIMAL = 5; + public static final int CHAR = 6; + public static final int STRING = 7; + public static final int DATE = 8; + public static final int LIST = 9; + public static final int OBJECT = 10; + public static final int FUNCTION = 11; //This one is for LISP +} diff --git a/drools-base/src/main/java/org/drools/base/base/ValueResolver.java b/drools-base/src/main/java/org/drools/base/base/ValueResolver.java new file mode 100644 index 00000000000..1c1e3306ec7 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/ValueResolver.java @@ -0,0 +1,35 @@ +/** + * 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. + */ +package org.drools.base.base; + +import org.drools.base.RuleBase; +import org.drools.base.rule.accessor.GlobalResolver; + +public interface ValueResolver { + + default Object getGlobal(String identifier) { + return getGlobalResolver().resolveGlobal( identifier ); + } + + long getCurrentTime(); + + GlobalResolver getGlobalResolver(); + + RuleBase getRuleBase(); +} diff --git a/drools-core/src/main/java/org/drools/core/base/ValueType.java b/drools-base/src/main/java/org/drools/base/base/ValueType.java similarity index 84% rename from drools-core/src/main/java/org/drools/core/base/ValueType.java rename to drools-base/src/main/java/org/drools/base/base/ValueType.java index d4653781b89..e3edc67f655 100644 --- a/drools-core/src/main/java/org/drools/core/base/ValueType.java +++ b/drools-base/src/main/java/org/drools/base/base/ValueType.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.base; +package org.drools.base.base; import java.math.BigDecimal; import java.math.BigInteger; @@ -23,10 +25,11 @@ import java.util.Date; import java.util.function.Function; -import org.drools.core.common.EventFactHandle; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.facttemplates.FactTemplate; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.util.CoercionUtil; +import org.kie.api.runtime.rule.EventHandle; public enum ValueType { @@ -63,8 +66,9 @@ public enum ValueType { STRING_TYPE( "String", String.class, SimpleValueType.STRING, CoercionUtil::coerceToString ), OBJECT_TYPE( "Object", Object.class, SimpleValueType.OBJECT ), FACTTEMPLATE_TYPE( "FactTemplate", FactTemplate.class, SimpleValueType.UNKNOWN ), - EVENT_TYPE( "Event", EventFactHandle.class, SimpleValueType.OBJECT ), - QUERY_TYPE( "Query", DroolsQuery.class, SimpleValueType.OBJECT ), + + EVENT_TYPE("Event", EventHandle.class, SimpleValueType.OBJECT ), + QUERY_TYPE("Query", DroolsQuery.class, SimpleValueType.OBJECT ), TRAIT_TYPE( "Trait", Thing.class, SimpleValueType.OBJECT ), CLASS_TYPE( "Class", Class.class, SimpleValueType.OBJECT ); @@ -128,7 +132,7 @@ public boolean isDate() { } public boolean isEvent() { - return this.classType == EventFactHandle.class; + return this.classType == EventHandle.class; } public static ValueType determineValueType(final Class clazz) { @@ -196,7 +200,7 @@ public static ValueType determineValueType(final Class clazz) { return ValueType.ARRAY_TYPE; } else if ( clazz == String.class ) { return ValueType.STRING_TYPE; - } else if ( clazz == EventFactHandle.class ) { + } else if ( clazz == EventHandle.class ) { return ValueType.EVENT_TYPE; } else if ( clazz == Class.class ) { return ValueType.CLASS_TYPE; diff --git a/drools-core/src/main/java/org/drools/core/base/XMLSupport.java b/drools-base/src/main/java/org/drools/base/base/XMLSupport.java similarity index 71% rename from drools-core/src/main/java/org/drools/core/base/XMLSupport.java rename to drools-base/src/main/java/org/drools/base/base/XMLSupport.java index 7095b457cdb..71929218c2b 100644 --- a/drools-core/src/main/java/org/drools/core/base/XMLSupport.java +++ b/drools-base/src/main/java/org/drools/base/base/XMLSupport.java @@ -1,26 +1,29 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - -package org.drools.core.base; +package org.drools.base.base; import java.io.File; import java.io.InputStream; import java.net.URL; -import org.drools.core.common.MissingDependencyException; -import org.drools.core.util.Drools; +import org.drools.base.common.MissingDependencyException; +import org.drools.base.util.Drools; import org.kie.api.internal.utils.KieService; public interface XMLSupport extends KieService { diff --git a/drools-core/src/main/java/org/drools/core/base/extractors/ArrayElementReader.java b/drools-base/src/main/java/org/drools/base/base/extractors/ArrayElementReader.java similarity index 75% rename from drools-core/src/main/java/org/drools/core/base/extractors/ArrayElementReader.java rename to drools-base/src/main/java/org/drools/base/base/extractors/ArrayElementReader.java index 6acbf0da9f5..0ca90a40ca9 100644 --- a/drools-core/src/main/java/org/drools/core/base/extractors/ArrayElementReader.java +++ b/drools-base/src/main/java/org/drools/base/base/extractors/ArrayElementReader.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.base.extractors; +package org.drools.base.base.extractors; import java.io.Externalizable; import java.io.IOException; @@ -22,18 +24,18 @@ import java.io.ObjectOutput; import java.lang.reflect.Method; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.AcceptsReadAccessor; -import org.drools.core.base.ClassWireable; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.accessor.AcceptsReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueType; +import org.drools.base.base.ClassWireable; import org.drools.util.ClassUtils; import org.drools.util.StringUtils; public class ArrayElementReader implements - AcceptsReadAccessor, - ReadAccessor, + AcceptsReadAccessor, + ReadAccessor, ClassWireable, Externalizable { private ReadAccessor arrayReadAccessor; @@ -81,51 +83,51 @@ public String getExtractToClassName() { return ClassUtils.canonicalName( type ); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, + public boolean getBooleanValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return ((Boolean) array[this.index]).booleanValue(); } - public byte getByteValue(ReteEvaluator reteEvaluator, + public byte getByteValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return ((Number) array[this.index]).byteValue(); } - public char getCharValue(ReteEvaluator reteEvaluator, + public char getCharValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return ((Character) array[this.index]).charValue(); } - public double getDoubleValue(ReteEvaluator reteEvaluator, + public double getDoubleValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return ((Number) array[this.index]).doubleValue(); } - public float getFloatValue(ReteEvaluator reteEvaluator, + public float getFloatValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return ((Number) array[this.index]).floatValue(); } - public int getIntValue(ReteEvaluator reteEvaluator, + public int getIntValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return ((Number) array[this.index]).intValue(); } - public long getLongValue(ReteEvaluator reteEvaluator, + public long getLongValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return ((Number) array[this.index]).longValue(); } @@ -133,7 +135,7 @@ public long getLongValue(ReteEvaluator reteEvaluator, public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod(getNativeReadMethodName(), - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); @@ -147,16 +149,16 @@ public String getNativeReadMethodName() { return "get" + method + "Value"; } - public short getShortValue(ReteEvaluator reteEvaluator, + public short getShortValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return ((Number) array[this.index]).shortValue(); } - public Object getValue(ReteEvaluator reteEvaluator, + public Object getValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return array[this.index]; } @@ -165,16 +167,16 @@ public ValueType getValueType() { return ValueType.OBJECT_TYPE; } - public boolean isNullValue(ReteEvaluator reteEvaluator, + public boolean isNullValue(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); return array[this.index] == null; } - public int getHashCode(ReteEvaluator reteEvaluator, + public int getHashCode(ValueResolver valueResolver, Object object) { - Object[] array = (Object[]) this.arrayReadAccessor.getValue( reteEvaluator, + Object[] array = (Object[]) this.arrayReadAccessor.getValue( valueResolver, object ); Object value = array[this.index]; diff --git a/drools-core/src/main/java/org/drools/core/base/extractors/BaseObjectClassFieldReader.java b/drools-base/src/main/java/org/drools/base/base/extractors/BaseObjectClassFieldReader.java similarity index 68% rename from drools-core/src/main/java/org/drools/core/base/extractors/BaseObjectClassFieldReader.java rename to drools-base/src/main/java/org/drools/base/base/extractors/BaseObjectClassFieldReader.java index 2b8179d16b5..5635a53e03d 100755 --- a/drools-core/src/main/java/org/drools/core/base/extractors/BaseObjectClassFieldReader.java +++ b/drools-base/src/main/java/org/drools/base/base/extractors/BaseObjectClassFieldReader.java @@ -1,27 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.base.extractors; +package org.drools.base.base.extractors; import java.lang.reflect.Method; import java.util.Date; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; public abstract class BaseObjectClassFieldReader extends BaseClassFieldReader { @@ -39,12 +41,12 @@ protected BaseObjectClassFieldReader(final int index, valueType ); } - public abstract Object getValue(ReteEvaluator reteEvaluator, + public abstract Object getValue(ValueResolver valueResolver, Object object); - public boolean getBooleanValue(ReteEvaluator reteEvaluator, + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); if ( value instanceof Boolean ) { @@ -54,9 +56,9 @@ public boolean getBooleanValue(ReteEvaluator reteEvaluator, throw new RuntimeException( "Conversion to boolean not supported from " + getExtractToClass().getName() ); } - public byte getByteValue(ReteEvaluator reteEvaluator, + public byte getByteValue(ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); if ( value instanceof Character ) { @@ -66,9 +68,9 @@ public byte getByteValue(ReteEvaluator reteEvaluator, throw new RuntimeException( "Conversion to byte not supported from " + getExtractToClass().getName()); } - public char getCharValue(ReteEvaluator reteEvaluator, + public char getCharValue(ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); if ( value instanceof Character ) { @@ -78,9 +80,9 @@ public char getCharValue(ReteEvaluator reteEvaluator, throw new RuntimeException( "Conversion to char not supported from " + getExtractToClass().getName() ); } - public double getDoubleValue(ReteEvaluator reteEvaluator, + public double getDoubleValue(ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); if( value instanceof Character ) { @@ -92,9 +94,9 @@ public double getDoubleValue(ReteEvaluator reteEvaluator, throw new RuntimeException( "Conversion to double not supported from " + getExtractToClass().getName() ); } - public float getFloatValue(ReteEvaluator reteEvaluator, + public float getFloatValue(ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); if( value instanceof Character ) { @@ -106,9 +108,9 @@ public float getFloatValue(ReteEvaluator reteEvaluator, throw new RuntimeException( "Conversion to float not supported from " + getExtractToClass().getName() ); } - public int getIntValue(ReteEvaluator reteEvaluator, + public int getIntValue(ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); if( value instanceof Character ) { @@ -120,9 +122,9 @@ public int getIntValue(ReteEvaluator reteEvaluator, throw new RuntimeException( "Conversion to int not supported from " + getExtractToClass().getName() ); } - public long getLongValue(ReteEvaluator reteEvaluator, + public long getLongValue(ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); if( value instanceof Character ) { @@ -136,9 +138,9 @@ public long getLongValue(ReteEvaluator reteEvaluator, throw new RuntimeException( "Conversion to long not supported from " + getExtractToClass().getName() ); } - public short getShortValue(ReteEvaluator reteEvaluator, + public short getShortValue(ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); if( value instanceof Character ) { @@ -150,12 +152,12 @@ public short getShortValue(ReteEvaluator reteEvaluator, throw new RuntimeException( "Conversion to short not supported from " + getExtractToClass().getName() ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, + public boolean isNullValue(ValueResolver valueResolver, final Object object) { if ( object == null ) { return true; } else { - return getValue( reteEvaluator, + return getValue( valueResolver, object ) == null; } } @@ -163,7 +165,7 @@ public boolean isNullValue(ReteEvaluator reteEvaluator, public Method getNativeReadMethod() { try { return this.getClass().getMethod(getNativeReadMethodName(), - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); @@ -178,9 +180,9 @@ public String getNativeReadMethodName() { return "get" + type.getName().substring(0, 1).toUpperCase() + type.getName().substring(1) + "Value"; } - public int getHashCode(ReteEvaluator reteEvaluator, + public int getHashCode(ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); return (value != null) ? value.hashCode() : 0; } diff --git a/drools-base/src/main/java/org/drools/base/base/extractors/SelfReferenceClassFieldReader.java b/drools-base/src/main/java/org/drools/base/base/extractors/SelfReferenceClassFieldReader.java new file mode 100755 index 00000000000..c8bba4dc006 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/base/extractors/SelfReferenceClassFieldReader.java @@ -0,0 +1,55 @@ +/** + * 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. + */ +package org.drools.base.base.extractors; + +import java.io.Externalizable; + +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; + +/** + * A special field extractor for the self reference "this". + */ +public class SelfReferenceClassFieldReader extends BaseObjectClassFieldReader implements Externalizable { + + private static final long serialVersionUID = 510l; + + public SelfReferenceClassFieldReader() { + + } + + public SelfReferenceClassFieldReader(final Class clazz) { + super( 0, // index + clazz, // fieldType + ValueType.determineValueType( clazz ) ); // value type + } + + public Object getValue(ValueResolver valueResolver, final Object object) { + return object; + } + + public boolean isNullValue(ValueResolver valueResolver, final Object object) { + return getValue( valueResolver, object ) == null; + } + + @Override + public boolean isSelfReference() { + return true; + } +} diff --git a/drools-core/src/main/java/org/drools/core/base/field/ObjectFieldImpl.java b/drools-base/src/main/java/org/drools/base/base/field/ObjectFieldImpl.java similarity index 86% rename from drools-core/src/main/java/org/drools/core/base/field/ObjectFieldImpl.java rename to drools-base/src/main/java/org/drools/base/base/field/ObjectFieldImpl.java index ad4ded71012..1e6d8d7f0e5 100644 --- a/drools-core/src/main/java/org/drools/core/base/field/ObjectFieldImpl.java +++ b/drools-base/src/main/java/org/drools/base/base/field/ObjectFieldImpl.java @@ -1,36 +1,37 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.base.field; +package org.drools.base.base.field; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import java.io.Serializable; import java.math.BigDecimal; import java.math.BigInteger; import java.util.Collection; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.FieldValue; import org.drools.util.MathUtils; public class ObjectFieldImpl implements - FieldValue, + FieldValue, Externalizable { private static final long serialVersionUID = 510l; diff --git a/drools-base/src/main/java/org/drools/base/beliefsystem/Mode.java b/drools-base/src/main/java/org/drools/base/beliefsystem/Mode.java new file mode 100644 index 00000000000..1ae6a0e93fa --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/beliefsystem/Mode.java @@ -0,0 +1,22 @@ +/** + * 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. + */ +package org.drools.base.beliefsystem; + +public interface Mode { +} diff --git a/drools-base/src/main/java/org/drools/base/common/DroolsObjectInput.java b/drools-base/src/main/java/org/drools/base/common/DroolsObjectInput.java new file mode 100644 index 00000000000..648a513196c --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/common/DroolsObjectInput.java @@ -0,0 +1,33 @@ +/** + * 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. + */ +package org.drools.base.common; + +import org.drools.base.RuleBase; + +import java.io.ObjectInput; + +public interface DroolsObjectInput extends ObjectInput { + ClassLoader getParentClassLoader(); + ClassLoader getClassLoader(); + void setClassLoader(ClassLoader classLoader); + RuleBase getRuleBase(); + void setRuleBase(RuleBase kBase); + Package getPackage(); + void setPackage(Package pkg); +} diff --git a/drools-core/src/main/java/org/drools/core/common/DroolsObjectInputStream.java b/drools-base/src/main/java/org/drools/base/common/DroolsObjectInputStream.java similarity index 81% rename from drools-core/src/main/java/org/drools/core/common/DroolsObjectInputStream.java rename to drools-base/src/main/java/org/drools/base/common/DroolsObjectInputStream.java index 8f995123395..d37fe74401d 100644 --- a/drools-core/src/main/java/org/drools/core/common/DroolsObjectInputStream.java +++ b/drools-base/src/main/java/org/drools/base/common/DroolsObjectInputStream.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.common; +package org.drools.base.common; import java.io.IOException; import java.io.InputStream; @@ -27,11 +29,11 @@ import java.util.Map; import java.util.function.Consumer; -import org.drools.core.base.AccessorKey; -import org.drools.core.base.ReadAccessorSupplier; -import org.drools.core.impl.RuleBase; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.base.AccessorKey; +import org.drools.base.base.ReadAccessorSupplier; import org.drools.util.ClassUtils; +import org.drools.base.RuleBase; public class DroolsObjectInputStream extends ObjectInputStream implements @@ -39,7 +41,6 @@ public class DroolsObjectInputStream extends ObjectInputStream private ClassLoader classLoader; private RuleBase ruleBase; - private InternalWorkingMemory workingMemory; private Package pkg; private ReadAccessorSupplier store; @@ -112,14 +113,6 @@ public void setRuleBase(RuleBase ruleBase) { this.classLoader = this.ruleBase.getRootClassLoader(); } - public InternalWorkingMemory getWorkingMemory() { - return workingMemory; - } - - public void setWorkingMemory(InternalWorkingMemory workingMemory) { - this.workingMemory = workingMemory; - } - public Package getPackage() { return pkg; } diff --git a/drools-core/src/main/java/org/drools/core/common/DroolsObjectOutputStream.java b/drools-base/src/main/java/org/drools/base/common/DroolsObjectOutputStream.java similarity index 61% rename from drools-core/src/main/java/org/drools/core/common/DroolsObjectOutputStream.java rename to drools-base/src/main/java/org/drools/base/common/DroolsObjectOutputStream.java index 4d6c7664b7d..b1992484cac 100644 --- a/drools-core/src/main/java/org/drools/core/common/DroolsObjectOutputStream.java +++ b/drools-base/src/main/java/org/drools/base/common/DroolsObjectOutputStream.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.common; +package org.drools.base.common; import java.io.IOException; import java.io.ObjectOutputStream; diff --git a/drools-base/src/main/java/org/drools/base/common/DroolsObjectStreamConstants.java b/drools-base/src/main/java/org/drools/base/common/DroolsObjectStreamConstants.java new file mode 100644 index 00000000000..a3107be6617 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/common/DroolsObjectStreamConstants.java @@ -0,0 +1,38 @@ +/** + * 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. + */ +package org.drools.base.common; + +public interface DroolsObjectStreamConstants { + int STREAM_MAGIC = 0x001500d2; + short STREAM_VERSION = 400; + + byte RT_CLASS = 11; + byte RT_SERIALIZABLE = 12; + byte RT_REFERENCE = 13; + byte RT_EMPTY_SET = 14; + byte RT_EMPTY_LIST = 15; + byte RT_EMPTY_MAP = 16; + byte RT_MAP = 17; + byte RT_ARRAY = 18; + byte RT_STRING = 19; + byte RT_NULL = 20; + byte RT_COLLECTION = 21; + byte RT_EXTERNALIZABLE = 22; + byte RT_ATOMICREFERENCEARRAY = 30; +} diff --git a/drools-base/src/main/java/org/drools/base/common/MissingDependencyException.java b/drools-base/src/main/java/org/drools/base/common/MissingDependencyException.java new file mode 100644 index 00000000000..e52de19d6d0 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/common/MissingDependencyException.java @@ -0,0 +1,26 @@ +/** + * 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. + */ +package org.drools.base.common; + +public class MissingDependencyException extends RuntimeException { + + public MissingDependencyException(String message) { + super(message); + } +} diff --git a/drools-base/src/main/java/org/drools/base/common/NetworkNode.java b/drools-base/src/main/java/org/drools/base/common/NetworkNode.java new file mode 100644 index 00000000000..70b08f7ce3d --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/common/NetworkNode.java @@ -0,0 +1,61 @@ +/** + * 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. + */ +package org.drools.base.common; + +import java.io.Serializable; + +import org.drools.base.reteoo.BaseTerminalNode; +import org.kie.api.definition.rule.Rule; + +/** + * Interface used to expose generic information on Rete nodes outside of he package. It is used + * for exposing information events. + */ +public interface NetworkNode extends Serializable { + + /** + * Returns the unique id that represents the node in the Rete network + */ + int getId(); + + /** + * Returns the partition ID to which this node belongs to + */ + RuleBasePartitionId getPartitionId(); + + short getType(); + + Rule[] getAssociatedRules(); + + boolean isAssociatedWith( Rule rule ); + + void addAssociatedTerminal(BaseTerminalNode terminalNode); + void removeAssociatedTerminal(BaseTerminalNode terminalNode); + + int getAssociatedTerminalsSize(); + + boolean hasAssociatedTerminal(BaseTerminalNode terminalNode); + + NetworkNode[] getSinks(); + + default boolean isRightInputIsRiaNode() { + // not ideal, but this was here to allow NetworkNode to be in drools-base + return false; + } +} diff --git a/drools-base/src/main/java/org/drools/base/common/PartitionsManager.java b/drools-base/src/main/java/org/drools/base/common/PartitionsManager.java new file mode 100644 index 00000000000..79777ae52f2 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/common/PartitionsManager.java @@ -0,0 +1,76 @@ +/** + * 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. + */ +package org.drools.base.common; + +import org.drools.util.ObjectPool; +import org.kie.internal.concurrent.ExecutorProviderFactory; + +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.ForkJoinPool; + +public class PartitionsManager { + + public static final int MIN_PARALLEL_THRESHOLD = 8; + public static final int MAX_PARALLEL_THRESHOLD = MIN_PARALLEL_THRESHOLD * 4; + + private int partitionCounter = 0; + + private int parallelEvaluationSlotsCount = -1; + + public RuleBasePartitionId createNewPartitionId() { + return new RuleBasePartitionId(this, ++partitionCounter); + } + + public boolean hasParallelEvaluation() { + return partitionCounter >= MIN_PARALLEL_THRESHOLD; + } + + public int getParallelEvaluationSlotsCount() { + return parallelEvaluationSlotsCount; + } + + public void init() { + this.parallelEvaluationSlotsCount = Math.min(partitionCounter, MAX_PARALLEL_THRESHOLD); + } + + private static class ForkJoinPoolHolder { + private static final ForkJoinPool RULES_EVALUATION_POOL = new ForkJoinPool(); // avoid common pool + } + + public static void doOnForkJoinPool(Runnable task) { + ForkJoinPoolHolder.RULES_EVALUATION_POOL.submit( task ).join(); + } + + public static T doOnForkJoinPool(Callable task) { + return ForkJoinPoolHolder.RULES_EVALUATION_POOL.submit( task ).join(); + } + + private static class FireUntilHaltExecutorsPoolHolder { + private static final ObjectPool POOL = ObjectPool.newLockFreePool( () -> ExecutorProviderFactory.getExecutorProvider().newFixedThreadPool(MAX_PARALLEL_THRESHOLD)); + } + + public static ExecutorService borrowFireUntilHaltExecutors() { + return FireUntilHaltExecutorsPoolHolder.POOL.borrow(); + } + + public static void offerFireUntilHaltExecutors(ExecutorService executor) { + FireUntilHaltExecutorsPoolHolder.POOL.offer(executor); + } +} diff --git a/drools-base/src/main/java/org/drools/base/common/RuleBasePartitionId.java b/drools-base/src/main/java/org/drools/base/common/RuleBasePartitionId.java new file mode 100644 index 00000000000..92c1c51c0ce --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/common/RuleBasePartitionId.java @@ -0,0 +1,59 @@ +/** + * 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. + */ +package org.drools.base.common; + +/** + * A class to identify RuleBase partitions + */ +public final class RuleBasePartitionId { + + public static final RuleBasePartitionId MAIN_PARTITION = new RuleBasePartitionId(null, 0); + + private final PartitionsManager partitionsManager; + + private final int id; + + public RuleBasePartitionId(PartitionsManager partitionsManager, int id ) { + this.partitionsManager = partitionsManager; + this.id = id; + } + + public int getId() { + return id; + } + + public int getParallelEvaluationSlot() { + return id % partitionsManager.getParallelEvaluationSlotsCount(); + } + + @Override + public int hashCode() { + return id; + } + + @Override + public boolean equals(Object obj) { + return this == obj || (obj instanceof RuleBasePartitionId && id == ((RuleBasePartitionId)obj).id); + } + + @Override + public String toString() { + return "Partition(" + (id == 0 ? "MAIN" : id) + ")"; + } +} diff --git a/drools-core/src/main/java/org/drools/core/definitions/InternalKnowledgePackage.java b/drools-base/src/main/java/org/drools/base/definitions/InternalKnowledgePackage.java similarity index 72% rename from drools-core/src/main/java/org/drools/core/definitions/InternalKnowledgePackage.java rename to drools-base/src/main/java/org/drools/base/definitions/InternalKnowledgePackage.java index e4c3fed2c87..d1839f1e1a5 100644 --- a/drools-core/src/main/java/org/drools/core/definitions/InternalKnowledgePackage.java +++ b/drools-base/src/main/java/org/drools/base/definitions/InternalKnowledgePackage.java @@ -1,19 +1,22 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - -package org.drools.core.definitions; +package org.drools.base.definitions; import java.io.Externalizable; import java.lang.reflect.Type; @@ -23,23 +26,22 @@ import java.util.Map; import java.util.Set; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.base.ClassFieldAccessorCache; -import org.drools.core.base.ObjectType; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.facttemplates.FactTemplate; -import org.drools.core.impl.RuleBase; -import org.drools.core.rule.DialectRuntimeRegistry; -import org.drools.core.rule.Function; -import org.drools.core.rule.ImportDeclaration; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.WindowDeclaration; -import org.drools.core.rule.accessor.AcceptsReadAccessor; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.ruleunit.RuleUnitDescriptionLoader; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.rule.ImportDeclaration; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.ruleunit.RuleUnitDescriptionLoader; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.DialectRuntimeRegistry; +import org.drools.base.rule.Function; +import org.drools.base.rule.WindowDeclaration; +import org.drools.base.rule.accessor.AcceptsReadAccessor; import org.drools.util.TypeResolver; import org.kie.api.definition.KiePackage; import org.kie.api.definition.process.Process; +import org.drools.base.RuleBase; import org.kie.api.definition.type.FactType; import org.kie.api.io.Resource; import org.kie.api.runtime.rule.AccumulateFunction; @@ -174,5 +176,5 @@ default void removeClass( Class cls ) { } default ReadAccessor getFieldExtractor( TypeDeclaration type, String timestampField, Class returnType ) { return null; } - default void setClassFieldAccessorCache(ClassFieldAccessorCache classFieldAccessorCache) { } + default void setClassFieldAccessorCache(Object classFieldAccessorCache) { } } diff --git a/drools-core/src/main/java/org/drools/core/definitions/ProcessPackage.java b/drools-base/src/main/java/org/drools/base/definitions/ProcessPackage.java similarity index 68% rename from drools-core/src/main/java/org/drools/core/definitions/ProcessPackage.java rename to drools-base/src/main/java/org/drools/base/definitions/ProcessPackage.java index bd8fcfa1647..92e579ca676 100644 --- a/drools-core/src/main/java/org/drools/core/definitions/ProcessPackage.java +++ b/drools-base/src/main/java/org/drools/base/definitions/ProcessPackage.java @@ -1,21 +1,22 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - -package org.drools.core.definitions; +package org.drools.base.definitions; import java.util.HashMap; import java.util.Iterator; diff --git a/drools-core/src/main/java/org/drools/core/definitions/ResourceTypePackageRegistry.java b/drools-base/src/main/java/org/drools/base/definitions/ResourceTypePackageRegistry.java similarity index 61% rename from drools-core/src/main/java/org/drools/core/definitions/ResourceTypePackageRegistry.java rename to drools-base/src/main/java/org/drools/base/definitions/ResourceTypePackageRegistry.java index b26fde189b3..6f1ab12c703 100644 --- a/drools-core/src/main/java/org/drools/core/definitions/ResourceTypePackageRegistry.java +++ b/drools-base/src/main/java/org/drools/base/definitions/ResourceTypePackageRegistry.java @@ -1,21 +1,22 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.definitions; +package org.drools.base.definitions; import java.io.Serializable; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/definitions/impl/KnowledgePackageImpl.java b/drools-base/src/main/java/org/drools/base/definitions/impl/KnowledgePackageImpl.java similarity index 92% rename from drools-core/src/main/java/org/drools/core/definitions/impl/KnowledgePackageImpl.java rename to drools-base/src/main/java/org/drools/base/definitions/impl/KnowledgePackageImpl.java index db6813b9045..d23dacb4ce3 100644 --- a/drools-core/src/main/java/org/drools/core/definitions/impl/KnowledgePackageImpl.java +++ b/drools-base/src/main/java/org/drools/base/definitions/impl/KnowledgePackageImpl.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.definitions.impl; +package org.drools.base.definitions.impl; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; @@ -35,24 +37,25 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicBoolean; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.ProcessPackage; -import org.drools.core.definitions.ResourceTypePackageRegistry; -import org.drools.core.definitions.rule.impl.GlobalImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.facttemplates.FactTemplate; -import org.drools.core.impl.RuleBase; -import org.drools.core.rule.DialectRuntimeRegistry; -import org.drools.core.rule.Function; -import org.drools.core.rule.ImportDeclaration; -import org.drools.core.rule.InvalidRulePackage; -import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.WindowDeclaration; -import org.drools.core.ruleunit.RuleUnitDescriptionLoader; -import org.drools.core.util.CloneUtil; +import org.drools.base.rule.DialectRuntimeData; +import org.drools.base.rule.DuplicateRuleNameException; +import org.drools.base.rule.ImportDeclaration; +import org.drools.base.rule.InvalidRuleException; +import org.drools.base.rule.InvalidRulePackage; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.util.CloneUtil; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.ProcessPackage; +import org.drools.base.definitions.ResourceTypePackageRegistry; +import org.drools.base.definitions.rule.impl.GlobalImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.rule.DialectRuntimeRegistry; +import org.drools.base.rule.Function; +import org.drools.base.rule.WindowDeclaration; +import org.drools.base.ruleunit.RuleUnitDescriptionLoader; import org.drools.util.ClassTypeResolver; import org.drools.util.ClassUtils; import org.drools.util.TypeResolver; @@ -61,6 +64,7 @@ import org.kie.api.definition.rule.Global; import org.kie.api.definition.rule.Query; import org.kie.api.definition.rule.Rule; +import org.drools.base.RuleBase; import org.kie.api.definition.type.FactType; import org.kie.api.io.Resource; import org.kie.api.io.ResourceType; @@ -313,7 +317,7 @@ public String getName() { } public ClassLoader getPackageClassLoader() { - JavaDialectRuntimeData javaRuntime = (JavaDialectRuntimeData) getDialectRuntimeRegistry().getDialectData("java"); + DialectRuntimeData javaRuntime = getDialectRuntimeRegistry().getDialectData("java"); return javaRuntime.getClassLoader(); } @@ -458,9 +462,9 @@ public void addFactTemplate(final FactTemplate factTemplate) { * Add a Rule to this Package. * * @param rule The rule to add. - * @throws org.drools.core.rule.DuplicateRuleNameException If the Rule attempting to be added has the + * @throws DuplicateRuleNameException If the Rule attempting to be added has the * same name as another previously added Rule. - * @throws org.drools.core.rule.InvalidRuleException If the Rule is not valid. + * @throws InvalidRuleException If the Rule is not valid. */ public void addRule(RuleImpl rule) { this.rules.put(rule.getName(), @@ -686,7 +690,7 @@ public boolean removeFromResourceTypePackageGeneratedFromResource(Resource resou public List removeTypesGeneratedFromResource(Resource resource) { List typesToBeRemoved = getTypesGeneratedFromResource(resource); if (!typesToBeRemoved.isEmpty()) { - JavaDialectRuntimeData dialect = (JavaDialectRuntimeData) getDialectRuntimeRegistry().getDialectData("java"); + DialectRuntimeData dialect = getDialectRuntimeRegistry().getDialectData("java"); for (TypeDeclaration type : typesToBeRemoved) { if (type.getTypeClassName() != null) { // the type declaration might not have been built up to actual class, if an error was found first @@ -793,7 +797,7 @@ public KnowledgePackageImpl deepCloneIfAlreadyInUse(ClassLoader classLoader) { } if (classLoader instanceof ProjectClassLoader ) { - JavaDialectRuntimeData javaDialectRuntimeData = (JavaDialectRuntimeData) dialectRuntimeRegistry.getDialectData("java"); + DialectRuntimeData javaDialectRuntimeData = dialectRuntimeRegistry.getDialectData("java"); if (javaDialectRuntimeData == null) { // using the canonical model there's no runtime registry and no need for any clone return this; diff --git a/drools-core/src/main/java/org/drools/core/definitions/rule/impl/GlobalImpl.java b/drools-base/src/main/java/org/drools/base/definitions/rule/impl/GlobalImpl.java similarity index 67% rename from drools-core/src/main/java/org/drools/core/definitions/rule/impl/GlobalImpl.java rename to drools-base/src/main/java/org/drools/base/definitions/rule/impl/GlobalImpl.java index 34487828a6e..7f0a1aa7195 100644 --- a/drools-core/src/main/java/org/drools/core/definitions/rule/impl/GlobalImpl.java +++ b/drools-base/src/main/java/org/drools/base/definitions/rule/impl/GlobalImpl.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.definitions.rule.impl; +package org.drools.base.definitions.rule.impl; import org.kie.api.definition.rule.Global; diff --git a/drools-core/src/main/java/org/drools/core/definitions/rule/impl/QueryImpl.java b/drools-base/src/main/java/org/drools/base/definitions/rule/impl/QueryImpl.java similarity index 67% rename from drools-core/src/main/java/org/drools/core/definitions/rule/impl/QueryImpl.java rename to drools-base/src/main/java/org/drools/base/definitions/rule/impl/QueryImpl.java index afa24a0f671..316b7343ea1 100644 --- a/drools-core/src/main/java/org/drools/core/definitions/rule/impl/QueryImpl.java +++ b/drools-base/src/main/java/org/drools/base/definitions/rule/impl/QueryImpl.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.definitions.rule.impl; +package org.drools.base.definitions.rule.impl; import java.io.IOException; import java.io.ObjectInput; @@ -22,12 +24,12 @@ import java.lang.annotation.Annotation; import java.util.function.Function; -import org.drools.core.base.DroolsQuery; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.base.ObjectType; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.Declaration; +import org.drools.base.base.ObjectType; import org.kie.api.definition.rule.Query; +import org.kie.api.runtime.rule.Match; public class QueryImpl extends RuleImpl implements Query { @@ -83,8 +85,7 @@ public boolean isQuery() { public boolean isAbductive() { return false; } - - public boolean processAbduction(InternalMatch resultLeftTuple, DroolsQuery dquery, Object[] objects, ReteEvaluator reteEvaluator) { + public boolean processAbduction(Match resultLeftTuple, DroolsQuery dquery, Object[] objects, ValueResolver valueResolver) { return true; } diff --git a/drools-core/src/main/java/org/drools/core/definitions/rule/impl/RuleImpl.java b/drools-base/src/main/java/org/drools/base/definitions/rule/impl/RuleImpl.java similarity index 88% rename from drools-core/src/main/java/org/drools/core/definitions/rule/impl/RuleImpl.java rename to drools-base/src/main/java/org/drools/base/definitions/rule/impl/RuleImpl.java index e8d179e5abb..93b1e600976 100644 --- a/drools-core/src/main/java/org/drools/core/definitions/rule/impl/RuleImpl.java +++ b/drools-base/src/main/java/org/drools/base/definitions/rule/impl/RuleImpl.java @@ -1,20 +1,47 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.definitions.rule.impl; +package org.drools.base.definitions.rule.impl; + +import org.drools.base.base.EnabledBoolean; +import org.drools.base.base.SalienceInteger; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ConsequenceMetaData; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Dialectable; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElementFactory; +import org.drools.base.rule.InvalidPatternException; +import org.drools.base.rule.InvalidRuleException; +import org.drools.base.rule.LogicTransformer; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.Enabled; +import org.drools.base.rule.accessor.Salience; +import org.drools.base.rule.accessor.Wireable; +import org.drools.base.rule.consequence.Consequence; +import org.drools.base.time.impl.Timer; +import org.drools.util.StringUtils; +import org.kie.api.definition.rule.Query; +import org.kie.api.io.Resource; +import org.kie.api.runtime.rule.AgendaGroup; +import org.kie.internal.definition.rule.InternalRule; import java.io.Externalizable; import java.io.IOException; @@ -31,34 +58,9 @@ import java.util.List; import java.util.Map; -import org.drools.core.base.EnabledBoolean; -import org.drools.core.base.SalienceInteger; -import org.drools.core.common.InternalAgendaGroup; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.ConsequenceMetaData; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Dialectable; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElementFactory; -import org.drools.core.rule.InvalidPatternException; -import org.drools.core.rule.LogicTransformer; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.Enabled; -import org.drools.core.rule.accessor.Salience; -import org.drools.core.rule.accessor.Wireable; -import org.drools.core.rule.consequence.Consequence; -import org.drools.core.time.impl.Timer; -import org.drools.util.StringUtils; -import org.kie.api.definition.rule.Query; -import org.kie.api.io.Resource; -import org.kie.internal.definition.rule.InternalRule; - public class RuleImpl implements Externalizable, - Wireable, - Dialectable, + Wireable, + Dialectable, InternalRule, Query { @@ -85,7 +87,7 @@ public class RuleImpl implements Externalizable, private List children; /** Salience value. */ - private Salience salience = SalienceInteger.DEFAULT_SALIENCE; + private Salience salience = SalienceInteger.DEFAULT_SALIENCE; /** The Rule is dirty after patterns have been added */ private boolean dirty; @@ -96,7 +98,7 @@ public class RuleImpl implements Externalizable, private String dialect; - private String agendaGroup = InternalAgendaGroup.MAIN; + private String agendaGroup = AgendaGroup.MAIN; private Map metaAttributes = new HashMap<>(); @@ -121,13 +123,13 @@ public class RuleImpl implements Externalizable, private Calendar dateExpires; - private Enabled enabled = EnabledBoolean.ENABLED_TRUE; + private Enabled enabled = EnabledBoolean.ENABLED_TRUE; private Resource resource; protected String activationListener; - private ConsequenceMetaData consequenceMetaData = new ConsequenceMetaData(); + private ConsequenceMetaData consequenceMetaData = new ConsequenceMetaData(); private List usedQueries; @@ -388,7 +390,7 @@ public RuleImpl setAgendaGroup(final String agendaGroup) { @Override public boolean isMainAgendaGroup() { - return InternalAgendaGroup.MAIN.equals( agendaGroup ); + return AgendaGroup.MAIN.equals( agendaGroup ); } private void set( int flag, boolean b ) { @@ -413,20 +415,20 @@ public boolean isNoLoop() { * * This uses the dateEffective, dateExpires and enabled flag to decide this. */ - public boolean isEffective(Tuple tuple, - RuleTerminalNode rtn, - ReteEvaluator reteEvaluator) { + public boolean isEffective(BaseTuple tuple, + Declaration[] declarations, + ValueResolver valueResolver) { if ( !this.enabled.getValue( tuple, - rtn.getEnabledDeclarations(), + declarations, this, - reteEvaluator ) ) { + valueResolver ) ) { return false; } if ( this.dateEffective == null && this.dateExpires == null ) { return true; } else { Calendar now = Calendar.getInstance(); - now.setTimeInMillis( reteEvaluator.getSessionClock().getCurrentTime() ); + now.setTimeInMillis( valueResolver.getCurrentTime() ); if ( this.dateEffective != null && this.dateExpires != null ) { return (now.after( this.dateEffective ) && now.before( this.dateExpires )); @@ -536,7 +538,7 @@ public Map getDeclarations() { * * @param element * The Test to add. - * @throws org.drools.core.rule.InvalidRuleException + * @throws InvalidRuleException */ public void addPattern(final RuleConditionElement element) { this.dirty = true; @@ -586,9 +588,9 @@ private GroupElement getExtendedLhs(RuleImpl rule, * changed. * * @return - * @throws org.drools.core.rule.InvalidPatternException + * @throws InvalidPatternException */ - public GroupElement[] getTransformedLhs( LogicTransformer transformer, Map globals ) throws InvalidPatternException { + public GroupElement[] getTransformedLhs(LogicTransformer transformer, Map globals ) throws InvalidPatternException { //Moved to getExtendedLhs --final GroupElement cloned = (GroupElement) this.lhsRoot.clone(); return transformer.transform( getExtendedLhs( this, null ), globals ); } @@ -769,10 +771,10 @@ public Enabled getEnabled() { } - public boolean isEnabled(Tuple tuple, - RuleTerminalNode rtn, - ReteEvaluator reteEvaluator) { - return this.enabled.getValue( tuple, rtn.getEnabledDeclarations(), this, reteEvaluator ); + public boolean isEnabled(BaseTuple tuple, + Declaration[] enabledDeclarations, + ValueResolver valueResolver) { + return this.enabled.getValue( tuple, enabledDeclarations, this, valueResolver ); } public void addMetaAttribute(String key, @@ -806,7 +808,7 @@ public RuleImpl getParent() { return parent; } - public void addChild(RuleImpl child) { + public synchronized void addChild(RuleImpl child) { if (children == null) { children = new ArrayList<>(); } diff --git a/drools-base/src/main/java/org/drools/base/factmodel/AccessibleFact.java b/drools-base/src/main/java/org/drools/base/factmodel/AccessibleFact.java new file mode 100644 index 00000000000..51f80a0cd03 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/AccessibleFact.java @@ -0,0 +1,24 @@ +/** + * 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. + */ +package org.drools.base.factmodel; + +public interface AccessibleFact { + Object getValue(String fieldName); + void setValue(String fieldName, Object value); +} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/AnnotationDefinition.java b/drools-base/src/main/java/org/drools/base/factmodel/AnnotationDefinition.java similarity index 92% rename from drools-core/src/main/java/org/drools/core/factmodel/AnnotationDefinition.java rename to drools-base/src/main/java/org/drools/base/factmodel/AnnotationDefinition.java index 8fdf5457122..fbd5fb48ba4 100644 --- a/drools-core/src/main/java/org/drools/core/factmodel/AnnotationDefinition.java +++ b/drools-base/src/main/java/org/drools/base/factmodel/AnnotationDefinition.java @@ -1,20 +1,22 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.factmodel; +package org.drools.base.factmodel; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/factmodel/ClassDefinition.java b/drools-base/src/main/java/org/drools/base/factmodel/ClassDefinition.java similarity index 93% rename from drools-core/src/main/java/org/drools/core/factmodel/ClassDefinition.java rename to drools-base/src/main/java/org/drools/base/factmodel/ClassDefinition.java index a83d81e2840..40bdb25acfe 100755 --- a/drools-core/src/main/java/org/drools/core/factmodel/ClassDefinition.java +++ b/drools-base/src/main/java/org/drools/base/factmodel/ClassDefinition.java @@ -1,20 +1,22 @@ -/* - * Copyright 2008 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.factmodel; +package org.drools.base.factmodel; import java.io.IOException; import java.io.ObjectInput; @@ -30,7 +32,7 @@ import java.util.List; import java.util.Map; -import org.drools.core.phreak.Reactive; +import org.drools.base.phreak.Reactive; import org.kie.api.definition.type.Annotation; import org.kie.api.definition.type.FactField; import org.kie.api.definition.type.FactType; diff --git a/drools-core/src/main/java/org/drools/core/factmodel/FieldDefinition.java b/drools-base/src/main/java/org/drools/base/factmodel/FieldDefinition.java similarity index 94% rename from drools-core/src/main/java/org/drools/core/factmodel/FieldDefinition.java rename to drools-base/src/main/java/org/drools/base/factmodel/FieldDefinition.java index c46b08992c9..ba5d3b7d9f9 100755 --- a/drools-core/src/main/java/org/drools/core/factmodel/FieldDefinition.java +++ b/drools-base/src/main/java/org/drools/base/factmodel/FieldDefinition.java @@ -1,20 +1,22 @@ -/* - * Copyright 2008 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.factmodel; +package org.drools.base.factmodel; import java.io.IOException; import java.io.ObjectInput; @@ -25,9 +27,9 @@ import java.util.List; import java.util.Map; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.base.FieldAccessor; -import org.drools.core.factmodel.traits.Alias; +import org.drools.base.factmodel.traits.Alias; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.base.FieldAccessor; import org.drools.util.StringUtils; import org.kie.api.definition.type.Annotation; import org.kie.api.definition.type.FactField; diff --git a/drools-base/src/main/java/org/drools/base/factmodel/GeneratedFact.java b/drools-base/src/main/java/org/drools/base/factmodel/GeneratedFact.java new file mode 100644 index 00000000000..9d1b0a2e770 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/GeneratedFact.java @@ -0,0 +1,25 @@ +/** + * 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. + */ +package org.drools.base.factmodel; + +/** + * This is a marker interface implemented by classes dinamically generated from declared types or facts + */ +public interface GeneratedFact { +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/Alias.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/Alias.java new file mode 100644 index 00000000000..1e8c27d2a01 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/Alias.java @@ -0,0 +1,33 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention( value = RetentionPolicy.RUNTIME ) +@Target( value = ElementType.FIELD ) +public @interface Alias { + + String value(); + +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/CoreWrapper.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/CoreWrapper.java new file mode 100644 index 00000000000..bca27724844 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/CoreWrapper.java @@ -0,0 +1,27 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + +public interface CoreWrapper extends TraitableBean> { + + void init( K core ); + + K getCore(); + +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/Thing.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/Thing.java new file mode 100644 index 00000000000..07c0da375be --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/Thing.java @@ -0,0 +1,32 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + +import java.util.Map; + +@Trait +public interface Thing { + + Map getFields(); + + K getCore(); + + boolean isTop(); + +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/Trait.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/Trait.java new file mode 100644 index 00000000000..48143e25fb4 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/Trait.java @@ -0,0 +1,44 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(value = RetentionPolicy.RUNTIME) +@Target( value = ElementType.TYPE) +public @interface Trait { + + Class impl() default NullMixin.class; + + class NullMixin { + private NullMixin() {} + } + + boolean logical() default false; + + MixinConflictResolutionStrategy mixinSolveConflicts() default MixinConflictResolutionStrategy.DECLARATION_ORDER; + + enum MixinConflictResolutionStrategy { + DECLARATION_ORDER, ERROR_ON_CONFLICT + } +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitConstants.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitConstants.java new file mode 100644 index 00000000000..8be1aeb4038 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitConstants.java @@ -0,0 +1,25 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + +public interface TraitConstants { + String MAP_FIELD_NAME = "__$$dynamic_properties_map$$"; + String TRAITSET_FIELD_NAME = "__$$dynamic_traits_map$$"; + String FIELDTMS_FIELD_NAME = "__$$field_Tms$$"; +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitFactory.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitFactory.java new file mode 100644 index 00000000000..dc1009b9e54 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitFactory.java @@ -0,0 +1,24 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + +public interface TraitFactory { + + boolean isRuntimeClass( String resourceName ); +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitField.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitField.java new file mode 100644 index 00000000000..3cefc861c4f --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitField.java @@ -0,0 +1,26 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + +import java.util.Set; + +public interface TraitField { + + Set> getRangeTypes(); +} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitFieldTMS.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitFieldTMS.java similarity index 52% rename from drools-core/src/main/java/org/drools/core/factmodel/traits/TraitFieldTMS.java rename to drools-base/src/main/java/org/drools/base/factmodel/traits/TraitFieldTMS.java index 84970465d96..7b5f62e41fc 100644 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitFieldTMS.java +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitFieldTMS.java @@ -1,22 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ +package org.drools.base.factmodel.traits; -package org.drools.core.factmodel.traits; - -import org.drools.core.WorkingMemory; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import java.io.Externalizable; @@ -25,7 +27,7 @@ public interface TraitFieldTMS extends Externalizable { // Most of the code generation for traits is still in drools-core DefaultBeanClassBuilder so this module needs to know the name of the impl class for traits String TYPE_NAME = "org/drools/traits/core/factmodel/TraitFieldTMSImpl"; - void init( WorkingMemory wm ); + void init( Object wm ); boolean needsInit(); diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitType.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitType.java new file mode 100644 index 00000000000..7f3d6ac7f74 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitType.java @@ -0,0 +1,35 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + + +import java.util.BitSet; + +public interface TraitType { + + BitSet _getTypeCode(); + + boolean _isVirtual(); + + String traitNameField = "__$$trait_Name"; + + String _getTraitName(); + + boolean _hasTypeCode( BitSet typeCode ); +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitTypeEnum.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitTypeEnum.java new file mode 100644 index 00000000000..f02614846ba --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitTypeEnum.java @@ -0,0 +1,30 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + + +public enum TraitTypeEnum { + + TRAIT, // trait proxy + TRAITABLE, // native traitable bean + LEGACY_TRAITABLE, // legacy class marked as traitable, bean not yet traited (needs wrapping/injection to provide data structures + WRAPPED_TRAITABLE, // legacy class wrapped by a proxy to provide the core data structures. + NON_TRAIT // not marked as trait/traitable + +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitTypeMap.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitTypeMap.java new file mode 100644 index 00000000000..238c03a5061 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitTypeMap.java @@ -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. + */ +package org.drools.base.factmodel.traits; + +import java.util.BitSet; +import java.util.Collection; + +public interface TraitTypeMap, C> { + + K putSafe(String key, K value); + + Collection removeCascade(String traitName); + + Collection removeCascade(BitSet code); + + Collection getMostSpecificTraits(); + + BitSet getCurrentTypeCode(); + + void setBottomCode(BitSet code); +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitTypeMapConstants.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitTypeMapConstants.java new file mode 100644 index 00000000000..956e2506ce4 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitTypeMapConstants.java @@ -0,0 +1,24 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + +public interface TraitTypeMapConstants { + + String TYPE_NAME = "org/drools/traits/core/factmodel/TraitTypeMapImpl"; +} diff --git a/drools-base/src/main/java/org/drools/base/factmodel/traits/Traitable.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/Traitable.java new file mode 100644 index 00000000000..9364e3667f3 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/Traitable.java @@ -0,0 +1,33 @@ +/** + * 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. + */ +package org.drools.base.factmodel.traits; + + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention( value = RetentionPolicy.RUNTIME ) +@Target( value = ElementType.TYPE ) +public @interface Traitable { + + boolean logical() default false; + +} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitableBean.java b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitableBean.java similarity index 72% rename from drools-core/src/main/java/org/drools/core/factmodel/traits/TraitableBean.java rename to drools-base/src/main/java/org/drools/base/factmodel/traits/TraitableBean.java index 0c2b81ad230..ae43622136c 100644 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitableBean.java +++ b/drools-base/src/main/java/org/drools/base/factmodel/traits/TraitableBean.java @@ -1,20 +1,22 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.factmodel.traits; +package org.drools.base.factmodel.traits; import java.util.BitSet; import java.util.Collection; diff --git a/drools-base/src/main/java/org/drools/base/facttemplates/Event.java b/drools-base/src/main/java/org/drools/base/facttemplates/Event.java new file mode 100644 index 00000000000..8692847bddb --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/facttemplates/Event.java @@ -0,0 +1,34 @@ +/** + * 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. + */ +package org.drools.base.facttemplates; + +import java.util.concurrent.TimeUnit; + +public interface Event extends Fact { + + long getTimestamp(); + + long getExpiration(); + + Event withExpiration( long value, TimeUnit unit ); + + default boolean isEvent() { + return true; + } +} diff --git a/drools-base/src/main/java/org/drools/base/facttemplates/Fact.java b/drools-base/src/main/java/org/drools/base/facttemplates/Fact.java new file mode 100644 index 00000000000..3073a652b5e --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/facttemplates/Fact.java @@ -0,0 +1,36 @@ +/** + * 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. + */ +package org.drools.base.facttemplates; + +import java.util.Map; + +public interface Fact { + + Object get(String name); + + void set(String name, Object value); + + Map asMap(); + + FactTemplate getFactTemplate(); + + default boolean isEvent() { + return false; + } +} diff --git a/drools-core/src/main/java/org/drools/core/facttemplates/FactImpl.java b/drools-base/src/main/java/org/drools/base/facttemplates/FactImpl.java similarity index 67% rename from drools-core/src/main/java/org/drools/core/facttemplates/FactImpl.java rename to drools-base/src/main/java/org/drools/base/facttemplates/FactImpl.java index 9a85d5763f1..a50ff6a0de7 100644 --- a/drools-core/src/main/java/org/drools/core/facttemplates/FactImpl.java +++ b/drools-base/src/main/java/org/drools/base/facttemplates/FactImpl.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.facttemplates; +package org.drools.base.facttemplates; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-base/src/main/java/org/drools/base/facttemplates/FactTemplate.java b/drools-base/src/main/java/org/drools/base/facttemplates/FactTemplate.java new file mode 100644 index 00000000000..4b0ffaed98b --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/facttemplates/FactTemplate.java @@ -0,0 +1,63 @@ +/** + * 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. + */ +package org.drools.base.facttemplates; + +import java.io.Externalizable; +import java.util.Collection; + +import org.drools.base.definitions.InternalKnowledgePackage; + + +public interface FactTemplate + extends + Externalizable { + + InternalKnowledgePackage getPackage(); + + /** + * The name of the template may be the fully qualified + * class name, or an alias. + * @return + */ + String getName(); + + /** + * templates may have 1 or more slots. A slot is a named + * pattern with a specific type of value. + * @return + */ + int getNumberOfFields(); + + Collection getFieldNames(); + + /** + * Return the slot with the String name + * @return + */ + FieldTemplate getFieldTemplate(String name); + + /** + * Get the pattern index with the given name + * @param name + * @return + */ + int getFieldTemplateIndex(String name); + + Fact createFact(); +} diff --git a/drools-core/src/main/java/org/drools/core/facttemplates/FactTemplateFieldExtractor.java b/drools-base/src/main/java/org/drools/base/facttemplates/FactTemplateFieldExtractor.java similarity index 72% rename from drools-core/src/main/java/org/drools/core/facttemplates/FactTemplateFieldExtractor.java rename to drools-base/src/main/java/org/drools/base/facttemplates/FactTemplateFieldExtractor.java index aaaa8e15401..09aa3afe529 100644 --- a/drools-core/src/main/java/org/drools/core/facttemplates/FactTemplateFieldExtractor.java +++ b/drools-base/src/main/java/org/drools/base/facttemplates/FactTemplateFieldExtractor.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.facttemplates; +package org.drools.base.facttemplates; import java.io.Externalizable; import java.io.IOException; @@ -22,10 +24,9 @@ import java.io.ObjectOutput; import java.lang.reflect.Method; -import org.drools.core.base.ValueType; -import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueType; import org.drools.util.ClassUtils; public class FactTemplateFieldExtractor @@ -65,7 +66,7 @@ public ValueType getValueType() { return this.factTemplate.getFieldTemplate( this.fieldName ).getValueType(); } - public Object getValue(ReteEvaluator reteEvaluator, + public Object getValue(ValueResolver valueResolver, final Object object) { return ((Fact) object).get( this.fieldName ); } @@ -82,42 +83,42 @@ public String getExtractToClassName() { return ClassUtils.canonicalName( getExtractToClass() ); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { return ((Boolean) ((Fact) object).get( fieldName )).booleanValue(); } - public byte getByteValue(ReteEvaluator reteEvaluator, + public byte getByteValue(ValueResolver valueResolver, final Object object) { return ((Number) ((Fact) object).get( fieldName )).byteValue(); } - public char getCharValue(ReteEvaluator reteEvaluator, + public char getCharValue(ValueResolver valueResolver, final Object object) { return ((Character) ((Fact) object).get( fieldName )).charValue(); } - public double getDoubleValue(ReteEvaluator reteEvaluator, + public double getDoubleValue(ValueResolver valueResolver, final Object object) { return ((Number) ((Fact) object).get( fieldName )).doubleValue(); } - public float getFloatValue(ReteEvaluator reteEvaluator, + public float getFloatValue(ValueResolver valueResolver, final Object object) { return ((Number) ((Fact) object).get( fieldName )).floatValue(); } - public int getIntValue(ReteEvaluator reteEvaluator, + public int getIntValue(ValueResolver valueResolver, final Object object) { return ((Number) ((Fact) object).get( fieldName )).intValue(); } - public long getLongValue(ReteEvaluator reteEvaluator, + public long getLongValue(ValueResolver valueResolver, final Object object) { return ((Number) ((Fact) object).get( fieldName )).longValue(); } - public short getShortValue(ReteEvaluator reteEvaluator, + public short getShortValue(ValueResolver valueResolver, final Object object) { return ((Number) ((Fact) object).get( fieldName )).shortValue(); } @@ -125,7 +126,7 @@ public short getShortValue(ReteEvaluator reteEvaluator, public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getValue", - InternalWorkingMemory.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); @@ -136,8 +137,8 @@ public String getNativeReadMethodName() { return "getValue"; } - public int getHashCode(ReteEvaluator reteEvaluator, Object object) { - return getValue( reteEvaluator, object ).hashCode(); + public int getHashCode(ValueResolver valueResolver, Object object) { + return getValue( valueResolver, object ).hashCode(); } public boolean isGlobal() { @@ -148,7 +149,7 @@ public boolean isSelfReference() { return false; } - public boolean isNullValue(ReteEvaluator reteEvaluator, Object object) { + public boolean isNullValue(ValueResolver valueResolver, Object object) { return ((Fact) object).get( this.fieldName ) == null; } diff --git a/drools-core/src/main/java/org/drools/core/facttemplates/FactTemplateImpl.java b/drools-base/src/main/java/org/drools/base/facttemplates/FactTemplateImpl.java similarity index 78% rename from drools-core/src/main/java/org/drools/core/facttemplates/FactTemplateImpl.java rename to drools-base/src/main/java/org/drools/base/facttemplates/FactTemplateImpl.java index 31054bb943c..9172fd90987 100644 --- a/drools-core/src/main/java/org/drools/core/facttemplates/FactTemplateImpl.java +++ b/drools-base/src/main/java/org/drools/base/facttemplates/FactTemplateImpl.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.facttemplates; +package org.drools.base.facttemplates; import java.io.IOException; import java.io.ObjectInput; @@ -25,7 +27,7 @@ import java.util.SortedMap; import java.util.TreeMap; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; public class FactTemplateImpl implements FactTemplate { diff --git a/drools-core/src/main/java/org/drools/core/facttemplates/FactTemplateObjectType.java b/drools-base/src/main/java/org/drools/base/facttemplates/FactTemplateObjectType.java similarity index 81% rename from drools-core/src/main/java/org/drools/core/facttemplates/FactTemplateObjectType.java rename to drools-base/src/main/java/org/drools/base/facttemplates/FactTemplateObjectType.java index 6a1355d68b3..3c8c94453e2 100644 --- a/drools-core/src/main/java/org/drools/core/facttemplates/FactTemplateObjectType.java +++ b/drools-base/src/main/java/org/drools/base/facttemplates/FactTemplateObjectType.java @@ -1,35 +1,35 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.facttemplates; +package org.drools.base.facttemplates; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.Collection; -import org.drools.core.base.ValueType; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ValueType; +import org.drools.base.base.ObjectType; public class FactTemplateObjectType implements ObjectType { - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ + private static final long serialVersionUID = 510l; diff --git a/drools-base/src/main/java/org/drools/base/facttemplates/FieldTemplate.java b/drools-base/src/main/java/org/drools/base/facttemplates/FieldTemplate.java new file mode 100644 index 00000000000..fd77a04de15 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/facttemplates/FieldTemplate.java @@ -0,0 +1,29 @@ +/** + * 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. + */ +package org.drools.base.facttemplates; + +import org.drools.base.base.ValueType; + +public interface FieldTemplate { + + String getName(); + + ValueType getValueType(); + +} diff --git a/drools-core/src/main/java/org/drools/core/facttemplates/FieldTemplateImpl.java b/drools-base/src/main/java/org/drools/base/facttemplates/FieldTemplateImpl.java similarity index 66% rename from drools-core/src/main/java/org/drools/core/facttemplates/FieldTemplateImpl.java rename to drools-base/src/main/java/org/drools/base/facttemplates/FieldTemplateImpl.java index e987e509d10..9a2e63b84d1 100644 --- a/drools-core/src/main/java/org/drools/core/facttemplates/FieldTemplateImpl.java +++ b/drools-base/src/main/java/org/drools/base/facttemplates/FieldTemplateImpl.java @@ -1,27 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.facttemplates; +package org.drools.base.facttemplates; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; public class FieldTemplateImpl implements FieldTemplate, Externalizable { diff --git a/drools-base/src/main/java/org/drools/base/phreak/Reactive.java b/drools-base/src/main/java/org/drools/base/phreak/Reactive.java new file mode 100644 index 00000000000..244c2c86727 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/phreak/Reactive.java @@ -0,0 +1,29 @@ +/** + * 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. + */ +package org.drools.base.phreak; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(value = RetentionPolicy.RUNTIME) +@Target(value = ElementType.TYPE) +public @interface Reactive { +} diff --git a/drools-base/src/main/java/org/drools/base/phreak/ReactiveObject.java b/drools-base/src/main/java/org/drools/base/phreak/ReactiveObject.java new file mode 100644 index 00000000000..3b30d2fb64c --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/phreak/ReactiveObject.java @@ -0,0 +1,29 @@ +/** + * 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. + */ +package org.drools.base.phreak; + +import org.drools.base.reteoo.BaseTuple; + +import java.util.Collection; + +public interface ReactiveObject { + void addTuple(BaseTuple tuple); + void removeTuple(BaseTuple tuple); + Collection getTuples(); +} diff --git a/drools-base/src/main/java/org/drools/base/reteoo/AccumulateContextEntry.java b/drools-base/src/main/java/org/drools/base/reteoo/AccumulateContextEntry.java new file mode 100644 index 00000000000..7739c62718b --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/reteoo/AccumulateContextEntry.java @@ -0,0 +1,87 @@ +/** + * 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. + */ +package org.drools.base.reteoo; + +import org.kie.api.runtime.rule.FactHandle; + +public class AccumulateContextEntry { + private Object key; + private FactHandle resultFactHandle; + private BaseTuple resultLeftTuple; + private boolean propagated; + private Object functionContext; + private boolean toPropagate; + private boolean empty = true; + + public AccumulateContextEntry(Object key) { + this.key = key; + } + + public FactHandle getResultFactHandle() { + return resultFactHandle; + } + + public void setResultFactHandle(FactHandle resultFactHandle) { + this.resultFactHandle = resultFactHandle; + } + + public BaseTuple getResultLeftTuple() { + return resultLeftTuple; + } + + public void setResultLeftTuple(BaseTuple resultLeftTuple) { + this.resultLeftTuple = resultLeftTuple; + } + + public boolean isPropagated() { + return propagated; + } + + public void setPropagated(boolean propagated) { + this.propagated = propagated; + } + + public boolean isToPropagate() { + return toPropagate; + } + + public void setToPropagate(boolean toPropagate) { + this.toPropagate = toPropagate; + } + + public Object getFunctionContext() { + return functionContext; + } + + public void setFunctionContext(Object context) { + this.functionContext = context; + } + + public Object getKey() { + return this.key; + } + + public boolean isEmpty() { + return empty; + } + + public void setEmpty(boolean empty) { + this.empty = empty; + } +} diff --git a/drools-base/src/main/java/org/drools/base/reteoo/BaseTerminalNode.java b/drools-base/src/main/java/org/drools/base/reteoo/BaseTerminalNode.java new file mode 100644 index 00000000000..66f2b6b4d7b --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/reteoo/BaseTerminalNode.java @@ -0,0 +1,55 @@ +/** + * 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. + */ +package org.drools.base.reteoo; + +import org.drools.base.common.NetworkNode; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; +import org.drools.util.bitmask.BitMask; + +public interface BaseTerminalNode extends NetworkNode { + Declaration[] getAllDeclarations(); + + Declaration[] getRequiredDeclarations(); + + Declaration[] getSalienceDeclarations(); + + void initInferredMask(); + + BitMask getDeclaredMask(); + + void setDeclaredMask(BitMask mask); + + BitMask getInferredMask(); + + void setInferredMask(BitMask mask); + + BitMask getNegativeMask(); + + void setNegativeMask(BitMask mask); + + RuleImpl getRule(); + + GroupElement getSubRule(); + + boolean isFireDirect(); + + int getSubruleIndex(); +} diff --git a/drools-base/src/main/java/org/drools/base/reteoo/BaseTuple.java b/drools-base/src/main/java/org/drools/base/reteoo/BaseTuple.java new file mode 100644 index 00000000000..9a26e4931a5 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/reteoo/BaseTuple.java @@ -0,0 +1,81 @@ +/** + * 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. + */ +package org.drools.base.reteoo; + +import org.drools.base.rule.Declaration; +import org.kie.api.runtime.rule.FactHandle; + +public interface BaseTuple { + /** + * Returns the FactHandle for the given Declaration, which in turn + * specifcy the Pattern that they depend on. + * + * @param declaration + * The Declaration which specifies the Pattern + * @return + * The FactHandle + */ + FactHandle get(Declaration declaration); + + /** + * Returns the FactHandle for the given pattern index. If the pattern is empty + * It returns null. + * + * @param pattern + * The index of the pattern from which the FactHandleImpl is to be returned + * @return + * The FactHandle + */ + FactHandle get(int pattern); + + FactHandle getFactHandle(); + + Object getObject(int pattern); + + Object getObject(Declaration declaration); + + /** + * Returns the size of this tuple in number of elements (patterns) + */ + int size(); + + Object[] toObjects(); + + Object[] toObjects(boolean reverse); + + /** + * Returns the fact handles in reverse order + */ + FactHandle[] toFactHandles(); + + BaseTuple getParent(); + + /** + * Returns the tuple at the given index + * @param index + * @return + */ + BaseTuple getTuple(int index); + + int getIndex(); + + Object getContextObject(); + + BaseTuple skipEmptyHandles(); +} diff --git a/drools-core/src/main/java/org/drools/core/reteoo/InitialFactImpl.java b/drools-base/src/main/java/org/drools/base/reteoo/InitialFactImpl.java similarity index 57% rename from drools-core/src/main/java/org/drools/core/reteoo/InitialFactImpl.java rename to drools-base/src/main/java/org/drools/base/reteoo/InitialFactImpl.java index d298a916534..4da663da1a2 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/InitialFactImpl.java +++ b/drools-base/src/main/java/org/drools/base/reteoo/InitialFactImpl.java @@ -1,27 +1,29 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.reteoo; +package org.drools.base.reteoo; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.InitialFact; +import org.drools.base.InitialFact; /** * We dont want users to be able to instantiate InitialFact so we expose it as diff --git a/drools-core/src/main/java/org/drools/core/reteoo/NodeTypeEnums.java b/drools-base/src/main/java/org/drools/base/reteoo/NodeTypeEnums.java similarity index 79% rename from drools-core/src/main/java/org/drools/core/reteoo/NodeTypeEnums.java rename to drools-base/src/main/java/org/drools/base/reteoo/NodeTypeEnums.java index a2d3090787a..df05b2fb781 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/NodeTypeEnums.java +++ b/drools-base/src/main/java/org/drools/base/reteoo/NodeTypeEnums.java @@ -1,22 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ +package org.drools.base.reteoo; -package org.drools.core.reteoo; - -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; /** * @@ -90,7 +92,7 @@ public static boolean isBetaNode(NetworkNode node) { } public static boolean isBetaNodeWithRian(NetworkNode node) { - return node.getType() > NodeTypeEnums.BetaNode && ((org.drools.core.reteoo.BetaNode)node).isRightInputIsRiaNode(); + return node.getType() > NodeTypeEnums.BetaNode && node.isRightInputIsRiaNode(); } public static boolean isTerminalNode(NetworkNode node) { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/PropertySpecificUtil.java b/drools-base/src/main/java/org/drools/base/reteoo/PropertySpecificUtil.java similarity index 73% rename from drools-core/src/main/java/org/drools/core/reteoo/PropertySpecificUtil.java rename to drools-base/src/main/java/org/drools/base/reteoo/PropertySpecificUtil.java index 56ef9274f9b..f10e75f509c 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/PropertySpecificUtil.java +++ b/drools-base/src/main/java/org/drools/base/reteoo/PropertySpecificUtil.java @@ -1,47 +1,49 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.reteoo; + * 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. + */ +package org.drools.base.reteoo; import java.util.ArrayList; import java.util.Collection; import java.util.List; -import org.drools.core.base.ClassObjectType; -import org.drools.core.factmodel.traits.TraitConstants; -import org.drools.core.facttemplates.FactTemplateObjectType; -import org.drools.core.impl.RuleBase; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.base.ObjectType; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.AllSetButLastBitMask; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.util.bitmask.EmptyBitMask; -import org.drools.core.util.bitmask.EmptyButLastBitMask; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.base.ClassObjectType; +import org.drools.base.factmodel.traits.TraitConstants; +import org.drools.base.facttemplates.FactTemplateObjectType; +import org.drools.base.base.ObjectType; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.AllSetButLastBitMask; +import org.drools.util.bitmask.BitMask; +import org.drools.util.bitmask.EmptyBitMask; +import org.drools.util.bitmask.EmptyButLastBitMask; +import org.drools.base.RuleBase; public class PropertySpecificUtil { public static final int TRAITABLE_BIT = 0; public static final int CUSTOM_BITS_OFFSET = 1; - public static boolean isPropertyReactive(BuildContext context, ObjectType objectType) { + public static boolean isPropertyReactive(RuleBase ruleBase, ObjectType objectType) { if (objectType.isTemplate()) { return !((FactTemplateObjectType) objectType).getFieldNames().isEmpty(); } - TypeDeclaration typeDeclaration = context.getRuleBase().getTypeDeclaration(((ClassObjectType) objectType).getClassType() ); + TypeDeclaration typeDeclaration = ruleBase.getTypeDeclaration(((ClassObjectType) objectType).getClassType() ); return typeDeclaration != null && typeDeclaration.isPropertyReactive(); } @@ -125,7 +127,7 @@ public static boolean isPropertySetOnMask(BitMask mask, int index) { return mask.isSet(index + CUSTOM_BITS_OFFSET); } - public static List getAccessibleProperties(RuleBase ruleBase, ObjectType objectType ) { + public static List getAccessibleProperties(RuleBase ruleBase, ObjectType objectType) { return objectType.isTemplate() ? new ArrayList<>(((FactTemplateObjectType) objectType).getFieldNames()) : getAccessibleProperties(ruleBase, ((ClassObjectType) objectType).getClassType()); diff --git a/drools-base/src/main/java/org/drools/base/reteoo/SortDeclarations.java b/drools-base/src/main/java/org/drools/base/reteoo/SortDeclarations.java new file mode 100644 index 00000000000..2df32bacdac --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/reteoo/SortDeclarations.java @@ -0,0 +1,34 @@ +/** + * 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. + */ +package org.drools.base.reteoo; + +import org.drools.base.rule.Declaration; + +import java.util.Comparator; + +public class SortDeclarations + implements + Comparator { + public final static SortDeclarations instance = new SortDeclarations(); + + public int compare(Declaration d1, + Declaration d2) { + return (d1.getIdentifier().compareTo(d2.getIdentifier())); + } +} diff --git a/drools-core/src/main/java/org/drools/core/rule/Accumulate.java b/drools-base/src/main/java/org/drools/base/rule/Accumulate.java similarity index 69% rename from drools-core/src/main/java/org/drools/core/rule/Accumulate.java rename to drools-base/src/main/java/org/drools/base/rule/Accumulate.java index 6b1fd1aba8c..6bd1338c71d 100755 --- a/drools-core/src/main/java/org/drools/core/rule/Accumulate.java +++ b/drools-base/src/main/java/org/drools/base/rule/Accumulate.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.IOException; import java.io.ObjectInput; @@ -25,16 +27,11 @@ import java.util.List; import java.util.Map; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.AccumulateNode; -import org.drools.core.reteoo.AccumulateNode.GroupByContext; -import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.RightTuple; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.reteoo.Tuple; -import org.drools.core.util.index.TupleList; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.accessor.Accumulator; +import org.kie.api.runtime.rule.FactHandle; /** * A class to represent the Accumulate CE @@ -85,36 +82,35 @@ public void writeExternal(ObjectOutput out) throws IOException { */ public abstract Object init(final Object workingMemoryContext, final Object accContext, - Object funcContext, final Tuple leftTuple, - final ReteEvaluator reteEvaluator); + Object funcContext, final BaseTuple leftTuple, + final ValueResolver valueResolver); /** * Executes the accumulate (action) code for the given fact handle */ public abstract Object accumulate(final Object workingMemoryContext, final Object context, - final Tuple match, - final InternalFactHandle handle, - final ReteEvaluator reteEvaluator); + final BaseTuple match, + final FactHandle handle, + final ValueResolver valueResolver); /** * Executes the reverse (action) code for the given fact handle */ public abstract boolean tryReverse(final Object workingMemoryContext, final Object context, - final Tuple leftTuple, - final InternalFactHandle handle, - final RightTuple rightParent, - final LeftTuple match, - final ReteEvaluator reteEvaluator); + final BaseTuple leftTuple, + final FactHandle handle, + final BaseTuple match, + final ValueResolver valueResolver); /** * Gets the result of the accumulation */ public abstract Object getResult(final Object workingMemoryContext, final Object context, - final Tuple leftTuple, - final ReteEvaluator reteEvaluator); + final BaseTuple leftTuple, + final ValueResolver valueResolver); /** * Returns true if this accumulate supports reverse @@ -181,7 +177,7 @@ protected Declaration[] getInnerDeclarationCache() { private void initInnerDeclarationCache() { Map innerDeclarations = this.source.getInnerDeclarations(); this.innerDeclarationCache = innerDeclarations.values().toArray( new Declaration[innerDeclarations.size()] ); - Arrays.sort( this.innerDeclarationCache, RuleTerminalNode.SortDeclarations.instance ); + Arrays.sort(this.innerDeclarationCache, SortDeclarations.instance); } public Declaration[] getRequiredDeclarations() { @@ -197,10 +193,13 @@ public boolean requiresLeftActivation() { return true; } + public boolean isGroupBy() { return false; } - public abstract Object accumulate(Object workingMemoryContext, Tuple match, InternalFactHandle childHandle, - GroupByContext groupByContext, TupleList tupleList, ReteEvaluator reteEvaluator); + public abstract Object accumulate(Object workingMemoryContext, BaseTuple match, FactHandle childHandle, + Object groupByContext, + Object tupleList, + ValueResolver valueResolver); } diff --git a/drools-base/src/main/java/org/drools/base/rule/Annotated.java b/drools-base/src/main/java/org/drools/base/rule/Annotated.java new file mode 100644 index 00000000000..8975556a494 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/Annotated.java @@ -0,0 +1,45 @@ +/** + * 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. + */ +package org.drools.base.rule; + +import java.lang.annotation.Annotation; + +public interface Annotated { + boolean hasAnnotation( Class annotationClass ); + A getTypedAnnotation( Class annotationClass ); + + class ClassAdapter implements Annotated { + + private final Class cls; + + public ClassAdapter( Class cls ) { + this.cls = cls; + } + + @Override + public boolean hasAnnotation( Class annotationClass ) { + return cls.isAnnotationPresent(annotationClass); + } + + @Override + public A getTypedAnnotation( Class annotationClass ) { + return cls.getAnnotation(annotationClass); + } + } +} diff --git a/drools-core/src/main/java/org/drools/core/rule/AsyncReceive.java b/drools-base/src/main/java/org/drools/base/rule/AsyncReceive.java similarity index 70% rename from drools-core/src/main/java/org/drools/core/rule/AsyncReceive.java rename to drools-base/src/main/java/org/drools/base/rule/AsyncReceive.java index 2320c59988f..1813cf41f8a 100644 --- a/drools-core/src/main/java/org/drools/core/rule/AsyncReceive.java +++ b/drools-base/src/main/java/org/drools/base/rule/AsyncReceive.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.IOException; import java.io.ObjectInput; @@ -23,7 +25,7 @@ import java.util.List; import java.util.Map; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; public class AsyncReceive extends ConditionalElement implements PatternSource { @@ -93,6 +95,6 @@ public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundExce } public Class getResultClass() { - return ((ClassObjectType )resultPattern.getObjectType()).getClassType(); + return ((ClassObjectType)resultPattern.getObjectType()).getClassType(); } } diff --git a/drools-core/src/main/java/org/drools/core/rule/AsyncSend.java b/drools-base/src/main/java/org/drools/base/rule/AsyncSend.java similarity index 71% rename from drools-core/src/main/java/org/drools/core/rule/AsyncSend.java rename to drools-base/src/main/java/org/drools/base/rule/AsyncSend.java index 30a10196bb7..0cd9f50e3b1 100644 --- a/drools-core/src/main/java/org/drools/core/rule/AsyncSend.java +++ b/drools-base/src/main/java/org/drools/base/rule/AsyncSend.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.IOException; import java.io.ObjectInput; @@ -23,8 +25,8 @@ import java.util.List; import java.util.Map; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.accessor.DataProvider; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.accessor.DataProvider; public class AsyncSend extends ConditionalElement implements PatternSource { @@ -103,6 +105,6 @@ public Pattern getResultPattern() { } public Class getResultClass() { - return ((ClassObjectType )resultPattern.getObjectType()).getClassType(); + return ((ClassObjectType)resultPattern.getObjectType()).getClassType(); } } diff --git a/drools-base/src/main/java/org/drools/base/rule/Behavior.java b/drools-base/src/main/java/org/drools/base/rule/Behavior.java new file mode 100644 index 00000000000..21833edb4d4 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/Behavior.java @@ -0,0 +1,44 @@ +/** + * 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. + */ +package org.drools.base.rule; + +public interface Behavior extends RuleComponent, Cloneable { + + /** + * Returns the type of the behavior + */ + Behavior.BehaviorType getType(); + + long getExpirationOffset(); + + enum BehaviorType { + TIME_WINDOW( "time" ), + LENGTH_WINDOW( "length" ); + + private final String id; + + BehaviorType( String id ) { + this.id = id; + } + + public boolean matches( String id ) { + return this.id.equalsIgnoreCase( id ); + } + } +} \ No newline at end of file diff --git a/drools-core/src/main/java/org/drools/core/rule/Collect.java b/drools-base/src/main/java/org/drools/base/rule/Collect.java similarity index 80% rename from drools-core/src/main/java/org/drools/core/rule/Collect.java rename to drools-base/src/main/java/org/drools/base/rule/Collect.java index 5fdf1cd476d..6e665063191 100755 --- a/drools-core/src/main/java/org/drools/core/rule/Collect.java +++ b/drools-base/src/main/java/org/drools/base/rule/Collect.java @@ -1,23 +1,25 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ +package org.drools.base.rule; -package org.drools.core.rule; - -import org.drools.core.base.ClassObjectType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ClassObjectType; import java.io.IOException; import java.io.ObjectInput; @@ -31,7 +33,9 @@ import java.util.Objects; import java.util.Set; -public class Collect extends ConditionalElement implements PatternSource { +public class Collect extends ConditionalElement + implements + PatternSource { private static final long serialVersionUID = 510l; @@ -83,14 +87,14 @@ public Pattern getSourcePattern() { } @SuppressWarnings("unchecked") - public Collection instantiateResultObject(ReteEvaluator reteEvaluator) throws RuntimeException { + public Collection instantiateResultObject(ValueResolver valueResolver) throws RuntimeException { try { // Collect can only be used with a Collection implementation, so // FactTemplateObject type is not allowed if ( this.cls == null ) { ClassObjectType objType = ((ClassObjectType) this.resultPattern.getObjectType()); String className = determineResultClassName( objType ); - this.cls = (Class>) Class.forName( className, true, reteEvaluator.getKnowledgeBase().getRootClassLoader() ); + this.cls = (Class>) Class.forName( className, true, valueResolver.getRuleBase().getRootClassLoader() ); } return this.cls.newInstance(); } catch ( final ClassCastException cce ) { diff --git a/drools-core/src/main/java/org/drools/core/rule/ConditionalBranch.java b/drools-base/src/main/java/org/drools/base/rule/ConditionalBranch.java similarity index 81% rename from drools-core/src/main/java/org/drools/core/rule/ConditionalBranch.java rename to drools-base/src/main/java/org/drools/base/rule/ConditionalBranch.java index d4897c27b3b..a7b19154e92 100644 --- a/drools-core/src/main/java/org/drools/core/rule/ConditionalBranch.java +++ b/drools-base/src/main/java/org/drools/base/rule/ConditionalBranch.java @@ -1,19 +1,22 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule; + * 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. + */ +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-base/src/main/java/org/drools/base/rule/ConditionalElement.java b/drools-base/src/main/java/org/drools/base/rule/ConditionalElement.java new file mode 100644 index 00000000000..7273e9cc274 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/ConditionalElement.java @@ -0,0 +1,27 @@ +/** + * 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. + */ +package org.drools.base.rule; + +public abstract class ConditionalElement + implements + RuleConditionElement { + + public abstract ConditionalElement clone(); + +} diff --git a/drools-core/src/main/java/org/drools/core/rule/ConsequenceMetaData.java b/drools-base/src/main/java/org/drools/base/rule/ConsequenceMetaData.java similarity index 81% rename from drools-core/src/main/java/org/drools/core/rule/ConsequenceMetaData.java rename to drools-base/src/main/java/org/drools/base/rule/ConsequenceMetaData.java index 53f9f3a5802..1cd927ba488 100644 --- a/drools-core/src/main/java/org/drools/core/rule/ConsequenceMetaData.java +++ b/drools-base/src/main/java/org/drools/base/rule/ConsequenceMetaData.java @@ -1,19 +1,22 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule; + * 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. + */ +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-base/src/main/java/org/drools/base/rule/ContextEntry.java b/drools-base/src/main/java/org/drools/base/rule/ContextEntry.java new file mode 100644 index 00000000000..c502ef2abd5 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/ContextEntry.java @@ -0,0 +1,43 @@ +/** + * 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. + */ +package org.drools.base.rule; + +import java.io.Externalizable; + +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.kie.api.runtime.rule.FactHandle; + +public interface ContextEntry + extends + Externalizable { + + ContextEntry getNext(); + + void setNext(ContextEntry entry); + + void updateFromTuple(ValueResolver valueResolver, BaseTuple tuple); + + void updateFromFactHandle(ValueResolver valueResolver, FactHandle handle); + + void resetTuple(); + + void resetFactHandle(); + +} diff --git a/drools-core/src/main/java/org/drools/core/rule/Declaration.java b/drools-base/src/main/java/org/drools/base/rule/Declaration.java similarity index 75% rename from drools-core/src/main/java/org/drools/core/rule/Declaration.java rename to drools-base/src/main/java/org/drools/base/rule/Declaration.java index 96550919c61..d9f995c648f 100644 --- a/drools-core/src/main/java/org/drools/core/rule/Declaration.java +++ b/drools-base/src/main/java/org/drools/base/rule/Declaration.java @@ -1,29 +1,30 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule; - -import org.drools.core.base.AccessorKeySupplier; -import org.drools.core.base.ValueType; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.accessor.AcceptsReadAccessor; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.TupleValueExtractor; + * 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. + */ +package org.drools.base.rule; + +import org.drools.base.base.AccessorKeySupplier; +import org.drools.base.base.ValueType; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.accessor.AcceptsReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.TupleValueExtractor; import java.io.Externalizable; import java.io.IOException; @@ -31,15 +32,14 @@ import java.io.ObjectOutput; import java.lang.reflect.Method; +import org.drools.base.base.ValueResolver; +import org.kie.api.runtime.rule.FactHandle; + import static org.drools.util.ClassUtils.canonicalName; import static org.drools.util.ClassUtils.convertFromPrimitiveType; public class Declaration implements Externalizable, AcceptsReadAccessor, TupleValueExtractor { - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ - private static final long serialVersionUID = 510l; /** The identifier for the variable. */ @@ -47,7 +47,7 @@ public class Declaration implements Externalizable, AcceptsReadAccessor, TupleVa private String bindingName; - private ReadAccessor readAccessor; + private ReadAccessor readAccessor; private Pattern pattern; @@ -57,9 +57,6 @@ public class Declaration implements Externalizable, AcceptsReadAccessor, TupleVa private int xPathOffset = 0; - // ------------------------------------------------------------ - // Constructors - // ------------------------------------------------------------ public Declaration() { this( null, null, null ); } @@ -91,7 +88,6 @@ public Declaration(final String identifier, final ReadAccessor extractor, final } /** - * Construct. * * @param identifier * The name of the variable. @@ -140,10 +136,6 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(xPathOffset); } - // ------------------------------------------------------------ - // Instance methods - // ------------------------------------------------------------ - /** * Retrieve the variable's identifier. * @@ -234,62 +226,62 @@ public void setDeclarationClass( Class declarationClass ) { } @Override - public Object getValue(ReteEvaluator reteEvaluator, Tuple tuple) { - return getValue( reteEvaluator, tuple.get( this ) ); + public Object getValue(ValueResolver valueResolver, BaseTuple tuple) { + return getValue( valueResolver, tuple.get( this ) ); } - public Object getValue(ReteEvaluator reteEvaluator, InternalFactHandle fh) { - return getValue( reteEvaluator, fh.getObject() ); + public Object getValue(ValueResolver valueResolver, FactHandle fh) { + return getValue( valueResolver, fh.getObject() ); } - public Object getValue(ReteEvaluator reteEvaluator, + public Object getValue(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getValue( reteEvaluator, object ); + return this.readAccessor.getValue( valueResolver, object ); } - public char getCharValue(ReteEvaluator reteEvaluator, + public char getCharValue(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getCharValue(reteEvaluator, object); + return this.readAccessor.getCharValue(valueResolver, object); } - public int getIntValue(ReteEvaluator reteEvaluator, + public int getIntValue(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getIntValue(reteEvaluator, object); + return this.readAccessor.getIntValue(valueResolver, object); } - public byte getByteValue(ReteEvaluator reteEvaluator, + public byte getByteValue(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getByteValue(reteEvaluator, object); + return this.readAccessor.getByteValue(valueResolver, object); } - public short getShortValue(ReteEvaluator reteEvaluator, + public short getShortValue(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getShortValue(reteEvaluator, object); + return this.readAccessor.getShortValue(valueResolver, object); } - public long getLongValue(ReteEvaluator reteEvaluator, + public long getLongValue(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getLongValue(reteEvaluator, object); + return this.readAccessor.getLongValue(valueResolver, object); } - public float getFloatValue(ReteEvaluator reteEvaluator, + public float getFloatValue(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getFloatValue(reteEvaluator, object); + return this.readAccessor.getFloatValue(valueResolver, object); } - public double getDoubleValue(ReteEvaluator reteEvaluator, + public double getDoubleValue(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getDoubleValue(reteEvaluator, object); + return this.readAccessor.getDoubleValue(valueResolver, object); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getBooleanValue(reteEvaluator, object); + return this.readAccessor.getBooleanValue(valueResolver, object); } - public int getHashCode(ReteEvaluator reteEvaluator, + public int getHashCode(ValueResolver valueResolver, final Object object) { - return this.readAccessor.getHashCode(reteEvaluator, object); + return this.readAccessor.getHashCode(valueResolver, object); } public boolean isGlobal() { @@ -304,7 +296,7 @@ public Method getNativeReadMethod() { // return getValue to avoid null pointers, so rest of drl can attempt to build try { return this.getClass().getDeclaredMethod("getValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); diff --git a/drools-base/src/main/java/org/drools/base/rule/DialectRuntimeData.java b/drools-base/src/main/java/org/drools/base/rule/DialectRuntimeData.java new file mode 100644 index 00000000000..41dcd95987c --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/DialectRuntimeData.java @@ -0,0 +1,67 @@ +/** + * 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. + */ +package org.drools.base.rule; + +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.accessor.ReadAccessor; + +public interface DialectRuntimeData extends Cloneable { + void removeRule( KnowledgePackageImpl pkg, RuleImpl rule ); + + void removeFunction( KnowledgePackageImpl pkg, Function function ); + + void merge( DialectRuntimeRegistry registry, DialectRuntimeData newData ); + + void merge( DialectRuntimeRegistry registry, DialectRuntimeData newData, boolean excludeDeclaredClasses ); + + boolean isDirty(); + + void setDirty( boolean dirty ); + + void reload(); + + DialectRuntimeData clone( DialectRuntimeRegistry registry, ClassLoader rootClassLoader); + + DialectRuntimeData clone( DialectRuntimeRegistry registry, ClassLoader rootClassLoader, boolean excludeDeclaredClasses ); + + void onAdd( DialectRuntimeRegistry dialectRuntimeRegistry, ClassLoader rootClassLoader ); + + void onRemove(); + + void onBeforeExecute(); + + default void resetParserConfiguration() { } + + default void compile(ReadAccessor reader) { + throw new UnsupportedOperationException(); + } + + default public ClassLoader getClassLoader() { + throw new UnsupportedOperationException(); + } + + default boolean remove(String typeClassName) { + throw new UnsupportedOperationException(); + } + + default ClassLoader getRootClassLoader() { + throw new UnsupportedOperationException(); + } +} diff --git a/drools-core/src/main/java/org/drools/core/rule/DialectRuntimeRegistry.java b/drools-base/src/main/java/org/drools/base/rule/DialectRuntimeRegistry.java similarity index 83% rename from drools-core/src/main/java/org/drools/core/rule/DialectRuntimeRegistry.java rename to drools-base/src/main/java/org/drools/base/rule/DialectRuntimeRegistry.java index 80fab0f7a17..548c24542fa 100644 --- a/drools-core/src/main/java/org/drools/core/rule/DialectRuntimeRegistry.java +++ b/drools-base/src/main/java/org/drools/base/rule/DialectRuntimeRegistry.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; @@ -25,8 +27,8 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; public class DialectRuntimeRegistry implements @@ -83,7 +85,7 @@ public DialectRuntimeData getDialectData(String dialect) { } public void removeRule(KnowledgePackageImpl pkg, - RuleImpl rule) { + RuleImpl rule) { DialectRuntimeData dialect = this.dialects.get( rule.getDialect() ); if (dialect != null) { dialect.removeRule( pkg, rule ); diff --git a/drools-base/src/main/java/org/drools/base/rule/Dialectable.java b/drools-base/src/main/java/org/drools/base/rule/Dialectable.java new file mode 100644 index 00000000000..eda96ddeb3d --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/Dialectable.java @@ -0,0 +1,23 @@ +/** + * 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. + */ +package org.drools.base.rule; + +public interface Dialectable { + public String getDialect(); +} diff --git a/drools-core/src/main/java/org/drools/core/rule/DuplicateRuleNameException.java b/drools-base/src/main/java/org/drools/base/rule/DuplicateRuleNameException.java similarity index 76% rename from drools-core/src/main/java/org/drools/core/rule/DuplicateRuleNameException.java rename to drools-base/src/main/java/org/drools/base/rule/DuplicateRuleNameException.java index 3705a7a13db..04093a6601d 100644 --- a/drools-core/src/main/java/org/drools/core/rule/DuplicateRuleNameException.java +++ b/drools-base/src/main/java/org/drools/base/rule/DuplicateRuleNameException.java @@ -1,22 +1,24 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ +package org.drools.base.rule; -package org.drools.core.rule; - -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; /** * Indicates an attempt to add a Rule to a Package diff --git a/drools-core/src/main/java/org/drools/core/rule/EntryPointId.java b/drools-base/src/main/java/org/drools/base/rule/EntryPointId.java similarity index 81% rename from drools-core/src/main/java/org/drools/core/rule/EntryPointId.java rename to drools-base/src/main/java/org/drools/base/rule/EntryPointId.java index 002e82ae249..a1f913fb41b 100644 --- a/drools-core/src/main/java/org/drools/core/rule/EntryPointId.java +++ b/drools-base/src/main/java/org/drools/base/rule/EntryPointId.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/rule/EvalCondition.java b/drools-base/src/main/java/org/drools/base/rule/EvalCondition.java similarity index 82% rename from drools-core/src/main/java/org/drools/core/rule/EvalCondition.java rename to drools-base/src/main/java/org/drools/base/rule/EvalCondition.java index d09443a602b..3072e52c924 100644 --- a/drools-core/src/main/java/org/drools/core/rule/EvalCondition.java +++ b/drools-base/src/main/java/org/drools/base/rule/EvalCondition.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; @@ -25,16 +27,16 @@ import java.util.List; import java.util.Map; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.EvalExpression; -import org.drools.core.rule.accessor.Wireable; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.Wireable; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.accessor.EvalExpression; public class EvalCondition extends ConditionalElement implements Externalizable, - Wireable { + Wireable { private static final long serialVersionUID = 510l; protected EvalExpression expression; @@ -116,11 +118,11 @@ public Object createContext() { return this.expression.createContext(); } - public boolean isAllowed(final Tuple tuple, - final ReteEvaluator reteEvaluator, + public boolean isAllowed(final BaseTuple tuple, + final ValueResolver valueResolver, final Object context) { try { - return this.expression.evaluate( tuple, this.requiredDeclarations, reteEvaluator, context ); + return this.expression.evaluate( tuple, this.requiredDeclarations, valueResolver, context ); } catch ( final Exception e ) { throw new RuntimeException( this.getEvalExpression() + " : " + e, e ); } diff --git a/drools-base/src/main/java/org/drools/base/rule/EvalConditionFactory.java b/drools-base/src/main/java/org/drools/base/rule/EvalConditionFactory.java new file mode 100644 index 00000000000..3c8d5ad4309 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/EvalConditionFactory.java @@ -0,0 +1,45 @@ +/** + * 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. + */ +package org.drools.base.rule; + +import org.kie.api.internal.utils.KieService; + +public interface EvalConditionFactory extends KieService { + + EvalCondition createEvalCondition(final Declaration[] requiredDeclarations); + + class Factory { + + private static class LazyHolder { + + private static final EvalConditionFactory INSTANCE = createInstance(); + + private static EvalConditionFactory createInstance() { + EvalConditionFactory factory = KieService.load(EvalConditionFactory.class); + return factory != null ? factory : new EvalConditionFactoryImpl(); + } + } + + public static EvalConditionFactory get() { + return LazyHolder.INSTANCE; + } + + private Factory() {} + } +} diff --git a/drools-base/src/main/java/org/drools/base/rule/EvalConditionFactoryImpl.java b/drools-base/src/main/java/org/drools/base/rule/EvalConditionFactoryImpl.java new file mode 100644 index 00000000000..0f95ed58d24 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/EvalConditionFactoryImpl.java @@ -0,0 +1,27 @@ +/** + * 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. + */ +package org.drools.base.rule; + +public class EvalConditionFactoryImpl implements EvalConditionFactory { + + @Override + public EvalCondition createEvalCondition(final Declaration[] requiredDeclarations) { + return new EvalCondition(requiredDeclarations); + } +} diff --git a/drools-core/src/main/java/org/drools/core/rule/Forall.java b/drools-base/src/main/java/org/drools/base/rule/Forall.java similarity index 83% rename from drools-core/src/main/java/org/drools/core/rule/Forall.java rename to drools-base/src/main/java/org/drools/base/rule/Forall.java index 61b22599716..3bd8bfd9d94 100755 --- a/drools-core/src/main/java/org/drools/core/rule/Forall.java +++ b/drools-base/src/main/java/org/drools/base/rule/Forall.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.IOException; import java.io.ObjectInput; diff --git a/drools-core/src/main/java/org/drools/core/rule/From.java b/drools-base/src/main/java/org/drools/base/rule/From.java similarity index 73% rename from drools-core/src/main/java/org/drools/core/rule/From.java rename to drools-base/src/main/java/org/drools/base/rule/From.java index b3aff6adf83..5f261982025 100644 --- a/drools-core/src/main/java/org/drools/core/rule/From.java +++ b/drools-base/src/main/java/org/drools/base/rule/From.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; @@ -24,10 +26,10 @@ import java.util.List; import java.util.Map; -import org.drools.core.base.ClassObjectType; -import org.drools.core.facttemplates.Fact; -import org.drools.core.rule.accessor.DataProvider; -import org.drools.core.rule.accessor.Wireable; +import org.drools.base.rule.accessor.DataProvider; +import org.drools.base.rule.accessor.Wireable; +import org.drools.base.base.ClassObjectType; +import org.drools.base.facttemplates.Fact; public class From extends ConditionalElement implements @@ -37,7 +39,7 @@ public class From extends ConditionalElement private static final long serialVersionUID = 510l; - private DataProvider dataProvider; + private DataProvider dataProvider; private Pattern resultPattern; diff --git a/drools-core/src/main/java/org/drools/core/rule/Function.java b/drools-base/src/main/java/org/drools/base/rule/Function.java similarity index 71% rename from drools-core/src/main/java/org/drools/core/rule/Function.java rename to drools-base/src/main/java/org/drools/base/rule/Function.java index 99d8a1f51fd..ca014a3f82a 100644 --- a/drools-core/src/main/java/org/drools/core/rule/Function.java +++ b/drools-base/src/main/java/org/drools/base/rule/Function.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/rule/GroupElement.java b/drools-base/src/main/java/org/drools/base/rule/GroupElement.java similarity index 95% rename from drools-core/src/main/java/org/drools/core/rule/GroupElement.java rename to drools-base/src/main/java/org/drools/base/rule/GroupElement.java index 90bae7278e9..3c194be1c74 100644 --- a/drools-core/src/main/java/org/drools/core/rule/GroupElement.java +++ b/drools-base/src/main/java/org/drools/base/rule/GroupElement.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; @@ -27,7 +29,7 @@ import java.util.List; import java.util.Map; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import static org.drools.util.ClassUtils.findCommonSuperClass; diff --git a/drools-base/src/main/java/org/drools/base/rule/GroupElementFactory.java b/drools-base/src/main/java/org/drools/base/rule/GroupElementFactory.java new file mode 100755 index 00000000000..4ce562f12d8 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/GroupElementFactory.java @@ -0,0 +1,45 @@ +/** + * 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. + */ +package org.drools.base.rule; + +/** + * A simple factory for GroupElements + */ +public class GroupElementFactory { + + private GroupElementFactory() { + } + + public static GroupElement newAndInstance() { + return new GroupElement( GroupElement.AND ); + } + + public static GroupElement newOrInstance() { + return new GroupElement( GroupElement.OR ); + } + + public static GroupElement newNotInstance() { + return new GroupElement( GroupElement.NOT ); + } + + public static GroupElement newExistsInstance() { + return new GroupElement( GroupElement.EXISTS ); + } + +} diff --git a/drools-core/src/main/java/org/drools/core/rule/ImportDeclaration.java b/drools-base/src/main/java/org/drools/base/rule/ImportDeclaration.java similarity index 75% rename from drools-core/src/main/java/org/drools/core/rule/ImportDeclaration.java rename to drools-base/src/main/java/org/drools/base/rule/ImportDeclaration.java index 22605b6db58..e8d34ab1388 100644 --- a/drools-core/src/main/java/org/drools/core/rule/ImportDeclaration.java +++ b/drools-base/src/main/java/org/drools/base/rule/ImportDeclaration.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-base/src/main/java/org/drools/base/rule/IndexableConstraint.java b/drools-base/src/main/java/org/drools/base/rule/IndexableConstraint.java new file mode 100644 index 00000000000..2828349f07b --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/IndexableConstraint.java @@ -0,0 +1,46 @@ +/** + * 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. + */ +package org.drools.base.rule; + +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.TupleValueExtractor; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.util.FieldIndex; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.kie.api.KieBaseConfiguration; + +public interface IndexableConstraint extends Constraint { + + boolean isUnification(); + + boolean isIndexable(short nodeType, KieBaseConfiguration config); + + ConstraintTypeOperator getConstraintType(); + + FieldValue getField(); + + FieldIndex getFieldIndex(); + + ReadAccessor getFieldExtractor(); + + default void unsetUnification() { } + + TupleValueExtractor getIndexExtractor(); +} diff --git a/drools-base/src/main/java/org/drools/base/rule/IntervalProviderConstraint.java b/drools-base/src/main/java/org/drools/base/rule/IntervalProviderConstraint.java new file mode 100644 index 00000000000..0188acefe19 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/IntervalProviderConstraint.java @@ -0,0 +1,26 @@ +/** + * 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. + */ +package org.drools.base.rule; + +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.time.Interval; + +public interface IntervalProviderConstraint extends Constraint { + Interval getInterval(); +} diff --git a/drools-core/src/main/java/org/drools/core/rule/InvalidPatternException.java b/drools-base/src/main/java/org/drools/base/rule/InvalidPatternException.java similarity index 50% rename from drools-core/src/main/java/org/drools/core/rule/InvalidPatternException.java rename to drools-base/src/main/java/org/drools/base/rule/InvalidPatternException.java index af65324dee5..4f5eff215f5 100644 --- a/drools-core/src/main/java/org/drools/core/rule/InvalidPatternException.java +++ b/drools-base/src/main/java/org/drools/base/rule/InvalidPatternException.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; public class InvalidPatternException extends RuleConstructionException { private static final long serialVersionUID = 510l; diff --git a/drools-core/src/main/java/org/drools/core/rule/InvalidRuleException.java b/drools-base/src/main/java/org/drools/base/rule/InvalidRuleException.java similarity index 59% rename from drools-core/src/main/java/org/drools/core/rule/InvalidRuleException.java rename to drools-base/src/main/java/org/drools/base/rule/InvalidRuleException.java index eeb535d166d..7eb07157584 100644 --- a/drools-core/src/main/java/org/drools/core/rule/InvalidRuleException.java +++ b/drools-base/src/main/java/org/drools/base/rule/InvalidRuleException.java @@ -1,22 +1,24 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ +package org.drools.base.rule; -package org.drools.core.rule; - -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; /** * Indicates an error regarding the semantic validity of a rule. @@ -24,7 +26,7 @@ public class InvalidRuleException extends RuleConstructionException { private static final long serialVersionUID = 510l; /** The invalid rule. */ - private RuleImpl rule; + private RuleImpl rule; /** * @see java.lang.Exception#Exception() diff --git a/drools-base/src/main/java/org/drools/base/rule/InvalidRulePackage.java b/drools-base/src/main/java/org/drools/base/rule/InvalidRulePackage.java new file mode 100644 index 00000000000..5519b650c32 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/InvalidRulePackage.java @@ -0,0 +1,34 @@ +/** + * 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. + */ +package org.drools.base.rule; + +/** + * This exception is thrown when an invalid package (ie one that has errors) + * it attempted to be added to a RuleBase. + * The package and builder should be interrogated to show the specific errors. + */ +public class InvalidRulePackage extends RuntimeException { + + private static final long serialVersionUID = 510l; + + public InvalidRulePackage(final String summary) { + super( summary ); + } + +} diff --git a/drools-core/src/main/java/org/drools/core/rule/KieModuleMetaInfo.java b/drools-base/src/main/java/org/drools/base/rule/KieModuleMetaInfo.java similarity index 54% rename from drools-core/src/main/java/org/drools/core/rule/KieModuleMetaInfo.java rename to drools-base/src/main/java/org/drools/base/rule/KieModuleMetaInfo.java index 839725a7a9a..4f1343b1a71 100644 --- a/drools-core/src/main/java/org/drools/core/rule/KieModuleMetaInfo.java +++ b/drools-base/src/main/java/org/drools/base/rule/KieModuleMetaInfo.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule; + * 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. + */ +package org.drools.base.rule; import java.io.Serializable; import java.util.Map; import java.util.Set; -import org.drools.core.base.XMLSupport; +import org.drools.base.base.XMLSupport; public class KieModuleMetaInfo implements Serializable { diff --git a/drools-core/src/main/java/org/drools/core/rule/LineMappings.java b/drools-base/src/main/java/org/drools/base/rule/LineMappings.java similarity index 59% rename from drools-core/src/main/java/org/drools/core/rule/LineMappings.java rename to drools-base/src/main/java/org/drools/base/rule/LineMappings.java index a64f5b57c16..03f3c561b8d 100644 --- a/drools-core/src/main/java/org/drools/core/rule/LineMappings.java +++ b/drools-base/src/main/java/org/drools/base/rule/LineMappings.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/rule/LogicTransformer.java b/drools-base/src/main/java/org/drools/base/rule/LogicTransformer.java similarity index 94% rename from drools-core/src/main/java/org/drools/core/rule/LogicTransformer.java rename to drools-base/src/main/java/org/drools/base/rule/LogicTransformer.java index a07a106ff6c..1e6e01fb1fa 100644 --- a/drools-core/src/main/java/org/drools/core/rule/LogicTransformer.java +++ b/drools-base/src/main/java/org/drools/base/rule/LogicTransformer.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.lang.reflect.Type; import java.util.ArrayDeque; @@ -25,12 +27,12 @@ import java.util.Map; import java.util.Map.Entry; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.extractors.ArrayElementReader; -import org.drools.core.base.extractors.SelfReferenceClassFieldReader; -import org.drools.core.rule.accessor.DataProvider; -import org.drools.core.rule.accessor.DeclarationScopeResolver; -import org.drools.core.rule.constraint.Constraint; +import org.drools.base.rule.accessor.DataProvider; +import org.drools.base.rule.accessor.DeclarationScopeResolver; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.extractors.ArrayElementReader; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; +import org.drools.base.rule.constraint.Constraint; /** * LogicTransformation is reponsible for removing redundant nodes and move Or diff --git a/drools-core/src/main/java/org/drools/core/rule/MapBackedClassLoader.java b/drools-base/src/main/java/org/drools/base/rule/MapBackedClassLoader.java similarity index 83% rename from drools-core/src/main/java/org/drools/core/rule/MapBackedClassLoader.java rename to drools-base/src/main/java/org/drools/base/rule/MapBackedClassLoader.java index 1de34b28a4f..fceca7442fc 100644 --- a/drools-core/src/main/java/org/drools/core/rule/MapBackedClassLoader.java +++ b/drools-base/src/main/java/org/drools/base/rule/MapBackedClassLoader.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.ByteArrayInputStream; import java.io.InputStream; diff --git a/drools-core/src/main/java/org/drools/core/rule/MultiAccumulate.java b/drools-base/src/main/java/org/drools/base/rule/MultiAccumulate.java similarity index 78% rename from drools-core/src/main/java/org/drools/core/rule/MultiAccumulate.java rename to drools-base/src/main/java/org/drools/base/rule/MultiAccumulate.java index 462ae1bc29a..6e47441c85d 100644 --- a/drools-core/src/main/java/org/drools/core/rule/MultiAccumulate.java +++ b/drools-base/src/main/java/org/drools/base/rule/MultiAccumulate.java @@ -1,19 +1,22 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule; + * 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. + */ +package org.drools.base.rule; import java.io.IOException; import java.io.ObjectInput; @@ -21,17 +24,13 @@ import java.io.Serializable; import java.util.Arrays; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.AccumulateNode.AccumulateContextEntry; -import org.drools.core.reteoo.AccumulateNode.GroupByContext; -import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.RightTuple; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.Wireable; -import org.drools.core.util.index.TupleList; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.Wireable; +import org.drools.base.reteoo.AccumulateContextEntry; +import org.drools.base.reteoo.BaseTuple; +import org.kie.api.runtime.rule.FactHandle; public class MultiAccumulate extends Accumulate { private Accumulator[] accumulators; @@ -92,8 +91,8 @@ public Object[] createFunctionContext() { public Object init(final Object workingMemoryContext, final Object accContext, Object funcContext, - final Tuple leftTuple, - final ReteEvaluator reteEvaluator) { + final BaseTuple leftTuple, + final ValueResolver valueResolver) { Object[] functionContext = (Object[]) funcContext; for ( int i = 0; i < this.accumulators.length; i++ ) { @@ -101,16 +100,16 @@ public Object init(final Object workingMemoryContext, functionContext[i], leftTuple, this.requiredDeclarations, - reteEvaluator ); + valueResolver ); } return funcContext; } public Object accumulate(final Object workingMemoryContext, final Object context, - final Tuple match, - final InternalFactHandle handle, - final ReteEvaluator reteEvaluator) { + final BaseTuple match, + final FactHandle handle, + final ValueResolver valueResolver) { Object[] values = new Object[accumulators.length]; for ( int i = 0; i < this.accumulators.length; i++ ) { Object[] functionContext = (Object[]) ((AccumulateContextEntry)context).getFunctionContext(); @@ -120,25 +119,24 @@ public Object accumulate(final Object workingMemoryContext, handle, this.requiredDeclarations, getInnerDeclarationCache(), - reteEvaluator ); + valueResolver ); } return values; } @Override - public Object accumulate(Object workingMemoryContext, Tuple match, InternalFactHandle childHandle, - GroupByContext groupByContext, TupleList tupleList, ReteEvaluator reteEvaluator) { + public Object accumulate(Object workingMemoryContext, BaseTuple match, FactHandle childHandle, + Object groupByContext, Object tupleList, ValueResolver valueResolver) { throw new UnsupportedOperationException("This should never be called, it's for LambdaGroupByAccumulate only."); } @Override public boolean tryReverse(final Object workingMemoryContext, final Object context, - final Tuple leftTuple, - final InternalFactHandle handle, - final RightTuple rightParent, - final LeftTuple match, - final ReteEvaluator reteEvaluator) { + final BaseTuple leftTuple, + final FactHandle handle, + final BaseTuple match, + final ValueResolver valueResolver) { Object[] values = (Object[]) match.getContextObject(); for ( int i = 0; i < this.accumulators.length; i++ ) { Object[] functionContext = (Object[]) ((AccumulateContextEntry)context).getFunctionContext(); @@ -149,7 +147,7 @@ public boolean tryReverse(final Object workingMemoryContext, values[i], this.requiredDeclarations, getInnerDeclarationCache(), - reteEvaluator ); + valueResolver ); if (!reversed) { return false; } @@ -168,8 +166,8 @@ public boolean supportsReverse() { public Object[] getResult(final Object workingMemoryContext, final Object context, - final Tuple leftTuple, - final ReteEvaluator reteEvaluator) { + final BaseTuple leftTuple, + final ValueResolver valueResolver) { Object[] results = new Object[arraySize]; for ( int i = 0; i < this.accumulators.length; i++ ) { Object[] functionContext = (Object[]) ((AccumulateContextEntry)context).getFunctionContext(); @@ -177,7 +175,7 @@ public Object[] getResult(final Object workingMemoryContext, functionContext[i], leftTuple, this.requiredDeclarations, - reteEvaluator ); + valueResolver ); } return results; } diff --git a/drools-core/src/main/java/org/drools/core/rule/MutableTypeConstraint.java b/drools-base/src/main/java/org/drools/base/rule/MutableTypeConstraint.java similarity index 50% rename from drools-core/src/main/java/org/drools/core/rule/MutableTypeConstraint.java rename to drools-base/src/main/java/org/drools/base/rule/MutableTypeConstraint.java index 858d712fe99..c05541824ce 100644 --- a/drools-core/src/main/java/org/drools/core/rule/MutableTypeConstraint.java +++ b/drools-base/src/main/java/org/drools/base/rule/MutableTypeConstraint.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; @@ -22,20 +24,20 @@ import java.io.ObjectOutput; import java.util.concurrent.atomic.AtomicBoolean; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.rule.constraint.Constraint; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.Constraint; /** * A base class for constraints */ public abstract class MutableTypeConstraint implements - AlphaNodeFieldConstraint, - BetaNodeFieldConstraint, + AlphaNodeFieldConstraint, + BetaNodeFieldConstraint, Externalizable { - private Constraint.ConstraintType type = Constraint.ConstraintType.UNKNOWN; + private ConstraintType type = Constraint.ConstraintType.UNKNOWN; private transient AtomicBoolean inUse = new AtomicBoolean(false); diff --git a/drools-core/src/main/java/org/drools/core/rule/NamedConsequence.java b/drools-base/src/main/java/org/drools/base/rule/NamedConsequence.java similarity index 76% rename from drools-core/src/main/java/org/drools/core/rule/NamedConsequence.java rename to drools-base/src/main/java/org/drools/base/rule/NamedConsequence.java index 5c40f12f9e8..f07becdf525 100644 --- a/drools-core/src/main/java/org/drools/core/rule/NamedConsequence.java +++ b/drools-base/src/main/java/org/drools/base/rule/NamedConsequence.java @@ -1,19 +1,22 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule; + * 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. + */ +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; @@ -55,7 +58,7 @@ public void writeExternal(ObjectOutput out) throws IOException { * There is not reason to clone this object since it is stateless. * So a clone() call will return the instance itself. * - * @see org.drools.core.rule.ConditionalElement#clone() + * @see ConditionalElement#clone() */ @Override public NamedConsequence clone() { @@ -66,7 +69,7 @@ public NamedConsequence clone() { * It is not possible to declare any new variables, so always * return an Empty Map * - * @see org.drools.core.rule.RuleConditionElement#getInnerDeclarations() + * @see RuleConditionElement#getInnerDeclarations() */ public Map getInnerDeclarations() { return Collections.emptyMap(); @@ -76,7 +79,7 @@ public Map getInnerDeclarations() { * It is not possible to nest elements inside an entry point, so * always return an empty list. * - * @see org.drools.core.rule.RuleConditionElement#getNestedElements() + * @see RuleConditionElement#getNestedElements() */ public List getNestedElements() { return Collections.emptyList(); @@ -86,7 +89,7 @@ public List getNestedElements() { * It is not possible to declare and export any variables, * so always return an empty map * - * @see org.drools.core.rule.RuleConditionElement#getOuterDeclarations() + * @see RuleConditionElement#getOuterDeclarations() */ public Map getOuterDeclarations() { return Collections.emptyMap(); @@ -95,7 +98,7 @@ public Map getOuterDeclarations() { /** * Not possible to resolve any declaration, so always return null. * - * @see org.drools.core.rule.RuleConditionElement#resolveDeclaration(java.lang.String) + * @see RuleConditionElement#resolveDeclaration(java.lang.String) */ public Declaration resolveDeclaration(String identifier) { return null; diff --git a/drools-base/src/main/java/org/drools/base/rule/NamedConsequenceInvoker.java b/drools-base/src/main/java/org/drools/base/rule/NamedConsequenceInvoker.java new file mode 100644 index 00000000000..9bb324c7086 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/NamedConsequenceInvoker.java @@ -0,0 +1,24 @@ +/** + * 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. + */ +package org.drools.base.rule; + +public interface NamedConsequenceInvoker { + + boolean invokesConsequence(String consequenceName); +} diff --git a/drools-base/src/main/java/org/drools/base/rule/NoConsequenceException.java b/drools-base/src/main/java/org/drools/base/rule/NoConsequenceException.java new file mode 100644 index 00000000000..bee6ba634a2 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/NoConsequenceException.java @@ -0,0 +1,43 @@ +/** + * 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. + */ +package org.drools.base.rule; + +import org.drools.base.definitions.rule.impl.RuleImpl; + +/** + * Validity exception indicating that a Rule does not contain a + * Consequences. + */ +public class NoConsequenceException extends InvalidRuleException { + // ------------------------------------------------------------ + // Constructors + // ------------------------------------------------------------ + + private static final long serialVersionUID = 510l; + + /** + * Construct. + * + * @param rule + * The invalid Rule. + */ + public NoConsequenceException(final RuleImpl rule) { + super( rule ); + } +} diff --git a/drools-core/src/main/java/org/drools/core/rule/Pattern.java b/drools-base/src/main/java/org/drools/base/rule/Pattern.java similarity index 90% rename from drools-core/src/main/java/org/drools/core/rule/Pattern.java rename to drools-base/src/main/java/org/drools/base/rule/Pattern.java index 5f4a32bcf59..6c7fc648968 100644 --- a/drools-core/src/main/java/org/drools/core/rule/Pattern.java +++ b/drools-base/src/main/java/org/drools/base/rule/Pattern.java @@ -1,32 +1,32 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; - -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ObjectType; -import org.drools.core.factmodel.AnnotationDefinition; -import org.drools.core.impl.RuleBase; -import org.drools.core.reteoo.PropertySpecificUtil; -import org.drools.core.rule.accessor.PatternExtractor; -import org.drools.core.rule.constraint.Constraint; -import org.drools.core.rule.constraint.Constraint.ConstraintType; -import org.drools.core.rule.constraint.XpathConstraint; -import org.drools.core.util.bitmask.BitMask; +package org.drools.base.rule; + +import org.drools.base.rule.accessor.PatternExtractor; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.factmodel.AnnotationDefinition; +import org.drools.base.reteoo.PropertySpecificUtil; +import org.drools.base.rule.constraint.XpathConstraint; +import org.drools.util.bitmask.BitMask; import java.io.Externalizable; import java.io.IOException; @@ -41,12 +41,8 @@ import java.util.Map; import java.util.Objects; import java.util.Set; - -import static org.drools.core.reteoo.PropertySpecificUtil.calculateNegativeMask; -import static org.drools.core.reteoo.PropertySpecificUtil.calculatePositiveMask; -import static org.drools.wiring.api.util.ClassUtils.convertFromPrimitiveType; -import static org.drools.wiring.api.util.ClassUtils.isFinal; -import static org.drools.wiring.api.util.ClassUtils.isInterface; +import org.drools.wiring.api.util.ClassUtils; +import org.drools.base.RuleBase; import static org.kie.internal.ruleunit.RuleUnitUtil.isDataSource; public class Pattern implements RuleConditionElement, AcceptsClassObjectType, Externalizable { @@ -444,7 +440,7 @@ private void setConstraintType(final MutableTypeConstraint constraint) { } } - ConstraintType type = isAlphaConstraint ? ConstraintType.ALPHA : ConstraintType.BETA; + Constraint.ConstraintType type = isAlphaConstraint ? Constraint.ConstraintType.ALPHA : Constraint.ConstraintType.BETA; constraint.setType( type ); } @@ -496,7 +492,7 @@ public List getAccessibleProperties(RuleBase ruleBase) { public BitMask getPositiveWatchMask( List accessibleProperties ) { if (positiveWatchMask == null) { - positiveWatchMask = calculatePositiveMask( objectType, listenedProperties, accessibleProperties ); + positiveWatchMask = PropertySpecificUtil.calculatePositiveMask(objectType, listenedProperties, accessibleProperties); } return positiveWatchMask; } @@ -507,7 +503,7 @@ public void setPositiveWatchMask( BitMask positiveWatchMask ) { public BitMask getNegativeWatchMask( List accessibleProperties ) { if (negativeWatchMask == null) { - negativeWatchMask = calculateNegativeMask(objectType, listenedProperties, accessibleProperties); + negativeWatchMask = PropertySpecificUtil.calculateNegativeMask(objectType, listenedProperties, accessibleProperties); } return negativeWatchMask; } @@ -547,7 +543,7 @@ public static boolean isCompatibleWithAccumulateReturnType( Class patternType return returnType == null || returnType == Object.class || ( returnType == Number.class && patternType != null && Number.class.isAssignableFrom( patternType ) || - (patternType != null && patternType.isAssignableFrom( convertFromPrimitiveType(returnType) )) ); + (patternType != null && patternType.isAssignableFrom(ClassUtils.convertFromPrimitiveType(returnType))) ); } public static boolean isCompatibleWithFromReturnType( Class patternType, Class returnType ) { @@ -556,7 +552,7 @@ public static boolean isCompatibleWithFromReturnType( Class patternType, Clas isDataSource( returnType ) || ( patternType != null && ( returnType.isAssignableFrom( patternType ) || - ( !isFinal( returnType ) && isInterface(patternType)) + (!ClassUtils.isFinal(returnType) && ClassUtils.isInterface(patternType)) ) ); } diff --git a/drools-base/src/main/java/org/drools/base/rule/PatternSource.java b/drools-base/src/main/java/org/drools/base/rule/PatternSource.java new file mode 100644 index 00000000000..bdbaeaad9e7 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/PatternSource.java @@ -0,0 +1,26 @@ +/** + * 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. + */ +package org.drools.base.rule; + +/** + * A markup interface for pattern source elements + */ +public interface PatternSource extends RuleConditionElement { + boolean requiresLeftActivation(); +} diff --git a/drools-core/src/main/java/org/drools/core/rule/PredicateConstraint.java b/drools-base/src/main/java/org/drools/base/rule/PredicateConstraint.java similarity index 81% rename from drools-core/src/main/java/org/drools/core/rule/PredicateConstraint.java rename to drools-base/src/main/java/org/drools/base/rule/PredicateConstraint.java index 35975a971f4..9a78c0ba00c 100644 --- a/drools-core/src/main/java/org/drools/core/rule/PredicateConstraint.java +++ b/drools-base/src/main/java/org/drools/base/rule/PredicateConstraint.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; @@ -25,15 +27,14 @@ import java.util.Collections; import java.util.List; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.PredicateExpression; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.Wireable; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.PredicateExpression; +import org.drools.base.rule.accessor.Wireable; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.accessor.ReadAccessor; +import org.kie.api.runtime.rule.FactHandle; /** * A predicate can be written as a top level constraint or be nested @@ -42,12 +43,12 @@ */ public class PredicateConstraint extends MutableTypeConstraint implements - Wireable, + Wireable, Externalizable { private static final long serialVersionUID = 510l; - private PredicateExpression expression; + private PredicateExpression expression; private Declaration[] requiredDeclarations; @@ -230,14 +231,14 @@ public ContextEntry createContextEntry() { return ctx; } - public boolean isAllowed(final InternalFactHandle handle, - final ReteEvaluator reteEvaluator) { + public boolean isAllowed(final FactHandle handle, + final ValueResolver valueResolver) { try { return this.expression.evaluate( handle, null, this.previousDeclarations, this.localDeclarations, - reteEvaluator, + valueResolver, null ); //((PredicateContextEntry) ctx).dialectContext ); } catch ( final Exception e ) { throw new RuntimeException( "Exception executing predicate " + this.expression, @@ -246,21 +247,21 @@ public boolean isAllowed(final InternalFactHandle handle, } public boolean isAllowed(ReadAccessor extractor, - InternalFactHandle handle, - ReteEvaluator reteEvaluator, + final FactHandle handle, + final ValueResolver valueResolver, ContextEntry context) { throw new UnsupportedOperationException( "Method not supported. Please contact development team." ); } public boolean isAllowedCachedLeft(final ContextEntry context, - final InternalFactHandle handle) { + final FactHandle handle) { try { final PredicateContextEntry ctx = (PredicateContextEntry) context; return this.expression.evaluate( handle, ctx.tuple, this.previousDeclarations, this.localDeclarations, - ctx.reteEvaluator, + ctx.valueResolver, ctx.dialectContext ); } catch ( final Exception e ) { throw new RuntimeException( "Exception executing predicate " + this.expression, @@ -268,7 +269,7 @@ public boolean isAllowedCachedLeft(final ContextEntry context, } } - public boolean isAllowedCachedRight(final Tuple tuple, + public boolean isAllowedCachedRight(final BaseTuple tuple, final ContextEntry context) { try { final PredicateContextEntry ctx = (PredicateContextEntry) context; @@ -276,7 +277,7 @@ public boolean isAllowedCachedRight(final Tuple tuple, tuple, this.previousDeclarations, this.localDeclarations, - ctx.reteEvaluator, + ctx.valueResolver, ctx.dialectContext ); } catch ( final Exception e ) { throw new RuntimeException( "Exception executing predicate " + this.expression, @@ -315,9 +316,9 @@ public static class PredicateContextEntry private static final long serialVersionUID = 510l; - public Tuple tuple; - public InternalFactHandle rightHandle; - public ReteEvaluator reteEvaluator; + public BaseTuple tuple; + public FactHandle rightHandle; + public ValueResolver valueResolver; public Object dialectContext; @@ -328,9 +329,9 @@ public PredicateContextEntry() { public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { - tuple = (LeftTuple) in.readObject(); - rightHandle = (InternalFactHandle) in.readObject(); - reteEvaluator = (ReteEvaluator) in.readObject(); + tuple = (BaseTuple) in.readObject(); + rightHandle = (FactHandle) in.readObject(); + valueResolver = (ValueResolver) in.readObject(); dialectContext = in.readObject(); entry = (ContextEntry) in.readObject(); } @@ -338,7 +339,7 @@ public void readExternal(ObjectInput in) throws IOException, public void writeExternal(ObjectOutput out) throws IOException { out.writeObject( tuple ); out.writeObject( rightHandle ); - out.writeObject( reteEvaluator ); + out.writeObject( valueResolver ); out.writeObject( dialectContext ); out.writeObject( entry ); } @@ -351,15 +352,15 @@ public void setNext(final ContextEntry entry) { this.entry = entry; } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { - this.reteEvaluator = reteEvaluator; + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { + this.valueResolver = valueResolver; this.rightHandle = handle; } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { - this.reteEvaluator = reteEvaluator; + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { + this.valueResolver = valueResolver; this.tuple = tuple; } diff --git a/drools-core/src/main/java/org/drools/core/rule/QueryArgument.java b/drools-base/src/main/java/org/drools/base/rule/QueryArgument.java similarity index 64% rename from drools-core/src/main/java/org/drools/core/rule/QueryArgument.java rename to drools-base/src/main/java/org/drools/base/rule/QueryArgument.java index 11fef0ca7ce..0b7007ba123 100644 --- a/drools-core/src/main/java/org/drools/core/rule/QueryArgument.java +++ b/drools-base/src/main/java/org/drools/base/rule/QueryArgument.java @@ -1,44 +1,46 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.base.DroolsQuery; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.LeftTuple; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; import org.kie.api.runtime.rule.Variable; public interface QueryArgument extends Externalizable { QueryArgument normalize(ClassLoader classLoader); - Object getValue(ReteEvaluator reteEvaluator, LeftTuple leftTuple); + Object getValue(ValueResolver valueResolver, BaseTuple tuple); - static Object evaluateDeclaration( ReteEvaluator reteEvaluator, LeftTuple leftTuple, Declaration declaration ) { - Object tupleObject = leftTuple.get( declaration ).getObject(); - if ( tupleObject instanceof DroolsQuery && declaration.getExtractor().getIndex() >= 0 && + static Object evaluateDeclaration( ValueResolver valueResolver, BaseTuple tuple, Declaration declaration ) { + Object tupleObject = tuple.get( declaration ).getObject(); + if (tupleObject instanceof DroolsQuery && declaration.getExtractor().getIndex() >= 0 && ( (DroolsQuery) tupleObject ).getVariables()[declaration.getExtractor().getIndex()] != null ) { return Variable.v; } - return declaration.getValue( reteEvaluator, tupleObject ); + return declaration.getValue( valueResolver, tupleObject ); } class Declr implements QueryArgument { @@ -51,8 +53,8 @@ public Declr( Declaration declaration ) { } @Override - public Object getValue( ReteEvaluator reteEvaluator, LeftTuple leftTuple ) { - return QueryArgument.evaluateDeclaration( reteEvaluator, leftTuple, declaration ); + public Object getValue( ValueResolver valueResolver, BaseTuple tuple ) { + return QueryArgument.evaluateDeclaration( valueResolver, tuple, declaration ); } @Override @@ -89,7 +91,7 @@ public Literal( Object value ) { } @Override - public Object getValue( ReteEvaluator reteEvaluator, LeftTuple leftTuple) { + public Object getValue( ValueResolver valueResolver, BaseTuple baseTuple) { return value; } @@ -117,7 +119,7 @@ public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundExce class Var implements QueryArgument { @Override - public Object getValue( ReteEvaluator reteEvaluator, LeftTuple leftTuple) { + public Object getValue( ValueResolver valueResolver, BaseTuple tuple) { return Variable.v; } @@ -137,7 +139,7 @@ public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundExce class Null implements QueryArgument { @Override - public Object getValue( ReteEvaluator reteEvaluator, LeftTuple leftTuple) { + public Object getValue( ValueResolver valueResolver, BaseTuple tuple) { return null; } diff --git a/drools-core/src/main/java/org/drools/core/rule/QueryElement.java b/drools-base/src/main/java/org/drools/base/rule/QueryElement.java similarity index 87% rename from drools-core/src/main/java/org/drools/core/rule/QueryElement.java rename to drools-base/src/main/java/org/drools/base/rule/QueryElement.java index 0a96058c0fe..ad5ad3b5e80 100644 --- a/drools-core/src/main/java/org/drools/core/rule/QueryElement.java +++ b/drools-base/src/main/java/org/drools/base/rule/QueryElement.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-base/src/main/java/org/drools/base/rule/RuleComponent.java b/drools-base/src/main/java/org/drools/base/rule/RuleComponent.java new file mode 100644 index 00000000000..65f9c6582f6 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/RuleComponent.java @@ -0,0 +1,30 @@ +/** + * 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. + */ +package org.drools.base.rule; + + +/** + * Semantic component marker. + * + * + * @version $Id$ + */ +public interface RuleComponent { + +} diff --git a/drools-core/src/main/java/org/drools/core/rule/RuleConditionElement.java b/drools-base/src/main/java/org/drools/base/rule/RuleConditionElement.java similarity index 63% rename from drools-core/src/main/java/org/drools/core/rule/RuleConditionElement.java rename to drools-base/src/main/java/org/drools/base/rule/RuleConditionElement.java index 83fc44d2112..f6ad12a04de 100755 --- a/drools-core/src/main/java/org/drools/core/rule/RuleConditionElement.java +++ b/drools-base/src/main/java/org/drools/base/rule/RuleConditionElement.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.util.List; diff --git a/drools-core/src/main/java/org/drools/core/rule/RuleConstructionException.java b/drools-base/src/main/java/org/drools/base/rule/RuleConstructionException.java similarity index 52% rename from drools-core/src/main/java/org/drools/core/rule/RuleConstructionException.java rename to drools-base/src/main/java/org/drools/base/rule/RuleConstructionException.java index 4dc4fae9d78..e55acfb3411 100644 --- a/drools-core/src/main/java/org/drools/core/rule/RuleConstructionException.java +++ b/drools-base/src/main/java/org/drools/base/rule/RuleConstructionException.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; /** * Base exception for errors during Rule construction. diff --git a/drools-core/src/main/java/org/drools/core/rule/SingleAccumulate.java b/drools-base/src/main/java/org/drools/base/rule/SingleAccumulate.java similarity index 72% rename from drools-core/src/main/java/org/drools/core/rule/SingleAccumulate.java rename to drools-base/src/main/java/org/drools/base/rule/SingleAccumulate.java index 97e0c833cd7..248d53f2450 100644 --- a/drools-core/src/main/java/org/drools/core/rule/SingleAccumulate.java +++ b/drools-base/src/main/java/org/drools/base/rule/SingleAccumulate.java @@ -1,19 +1,22 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule; + * 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. + */ +package org.drools.base.rule; import java.io.IOException; import java.io.ObjectInput; @@ -21,17 +24,13 @@ import java.io.Serializable; import java.util.Arrays; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.AccumulateNode.AccumulateContextEntry; -import org.drools.core.reteoo.AccumulateNode.GroupByContext; -import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.RightTuple; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.Wireable; -import org.drools.core.util.index.TupleList; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.AccumulateContextEntry; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.Wireable; +import org.kie.api.runtime.rule.FactHandle; public class SingleAccumulate extends Accumulate { private Accumulator accumulator; @@ -79,42 +78,41 @@ public Object createFunctionContext() { public Object init(final Object workingMemoryContext, final Object accContext, - final Object funcContext, final Tuple leftTuple, - final ReteEvaluator reteEvaluator) { + final Object funcContext, final BaseTuple leftTuple, + final ValueResolver valueResolver) { Object returned = this.accumulator.init( workingMemoryContext, funcContext, leftTuple, - this.requiredDeclarations, reteEvaluator ); + this.requiredDeclarations, valueResolver ); return returned; } public Object accumulate(final Object workingMemoryContext, final Object context, - final Tuple match, - final InternalFactHandle handle, - final ReteEvaluator reteEvaluator) { + final BaseTuple match, + final FactHandle handle, + final ValueResolver valueResolver) { return this.accumulator.accumulate( workingMemoryContext, ((AccumulateContextEntry)context).getFunctionContext(), match, handle, this.requiredDeclarations, getInnerDeclarationCache(), - reteEvaluator ); + valueResolver ); } @Override - public Object accumulate(Object workingMemoryContext, Tuple match, InternalFactHandle childHandle, - GroupByContext groupByContext, TupleList tupleList, ReteEvaluator reteEvaluator) { + public Object accumulate(Object workingMemoryContext, BaseTuple match, FactHandle childHandle, + Object groupByContext, Object tupleList, ValueResolver valueResolver) { throw new UnsupportedOperationException("This should never be called, it's for LambdaGroupByAccumulate only."); } @Override public boolean tryReverse(final Object workingMemoryContext, final Object context, - final Tuple leftTuple, - final InternalFactHandle handle, - final RightTuple rightParent, - final LeftTuple match, - final ReteEvaluator reteEvaluator) { + final BaseTuple leftTuple, + final FactHandle handle, + final BaseTuple match, + final ValueResolver valueResolver) { return this.accumulator.tryReverse( workingMemoryContext, ((AccumulateContextEntry)context).getFunctionContext(), leftTuple, @@ -122,7 +120,7 @@ public boolean tryReverse(final Object workingMemoryContext, match.getContextObject(), this.requiredDeclarations, getInnerDeclarationCache(), - reteEvaluator ); + valueResolver ); } public boolean supportsReverse() { @@ -132,13 +130,13 @@ public boolean supportsReverse() { public Object getResult(final Object workingMemoryContext, final Object context, - final Tuple leftTuple, - final ReteEvaluator reteEvaluator) { + final BaseTuple leftTuple, + final ValueResolver valueResolver) { return this.accumulator.getResult( workingMemoryContext, ((AccumulateContextEntry)context).getFunctionContext(), leftTuple, this.requiredDeclarations, - reteEvaluator ); + valueResolver ); } public SingleAccumulate clone() { diff --git a/drools-core/src/main/java/org/drools/core/rule/TypeDeclaration.java b/drools-base/src/main/java/org/drools/base/rule/TypeDeclaration.java similarity index 92% rename from drools-core/src/main/java/org/drools/core/rule/TypeDeclaration.java rename to drools-base/src/main/java/org/drools/base/rule/TypeDeclaration.java index 1fd84d5324e..9eb169bb758 100644 --- a/drools-core/src/main/java/org/drools/core/rule/TypeDeclaration.java +++ b/drools-base/src/main/java/org/drools/base/rule/TypeDeclaration.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; @@ -23,15 +25,15 @@ import java.util.Collections; import java.util.List; -import org.drools.core.base.ClassObjectType; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.GeneratedFact; -import org.drools.core.facttemplates.FactTemplate; -import org.drools.core.facttemplates.FactTemplateObjectType; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.base.ObjectType; -import org.drools.core.util.PropertyReactivityUtil; -import org.drools.core.util.TimeIntervalParser; +import org.drools.base.base.ClassObjectType; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.GeneratedFact; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.facttemplates.FactTemplateObjectType; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.base.ObjectType; +import org.drools.base.util.PropertyReactivityUtil; +import org.drools.base.util.TimeIntervalParser; import org.drools.util.ClassUtils; import org.kie.api.definition.type.ClassReactive; import org.kie.api.definition.type.Expires; @@ -568,7 +570,7 @@ private static void configureExpirationOffset( TypeDeclaration type, Annotated a Expires expires = annotated.getTypedAnnotation(Expires.class); if (expires != null) { String expiration = expires.value(); - long offset = TimeIntervalParser.parseSingle( expiration ); + long offset = TimeIntervalParser.parseSingle(expiration); // @Expires( -1 ) means never expire type.setExpirationOffset(offset == -1L ? Long.MAX_VALUE : offset); type.setExpirationType( expires.policy() ); diff --git a/drools-core/src/main/java/org/drools/core/rule/TypeMetaInfo.java b/drools-base/src/main/java/org/drools/base/rule/TypeMetaInfo.java similarity index 60% rename from drools-core/src/main/java/org/drools/core/rule/TypeMetaInfo.java rename to drools-base/src/main/java/org/drools/base/rule/TypeMetaInfo.java index 9a12f9f3a88..7b6fe7fdf82 100644 --- a/drools-core/src/main/java/org/drools/core/rule/TypeMetaInfo.java +++ b/drools-base/src/main/java/org/drools/base/rule/TypeMetaInfo.java @@ -1,19 +1,22 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule; + * 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. + */ +package org.drools.base.rule; import org.kie.api.definition.type.Role; diff --git a/drools-core/src/main/java/org/drools/core/rule/WindowDeclaration.java b/drools-base/src/main/java/org/drools/base/rule/WindowDeclaration.java similarity index 75% rename from drools-core/src/main/java/org/drools/core/rule/WindowDeclaration.java rename to drools-base/src/main/java/org/drools/base/rule/WindowDeclaration.java index ef6108d07ab..656e5d0846e 100644 --- a/drools-core/src/main/java/org/drools/core/rule/WindowDeclaration.java +++ b/drools-base/src/main/java/org/drools/base/rule/WindowDeclaration.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/rule/WindowReference.java b/drools-base/src/main/java/org/drools/base/rule/WindowReference.java similarity index 78% rename from drools-core/src/main/java/org/drools/core/rule/WindowReference.java rename to drools-base/src/main/java/org/drools/base/rule/WindowReference.java index 425f28073bc..f73ed21e7dd 100644 --- a/drools-core/src/main/java/org/drools/core/rule/WindowReference.java +++ b/drools-base/src/main/java/org/drools/base/rule/WindowReference.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/rule/XpathBackReference.java b/drools-base/src/main/java/org/drools/base/rule/XpathBackReference.java similarity index 82% rename from drools-core/src/main/java/org/drools/core/rule/XpathBackReference.java rename to drools-base/src/main/java/org/drools/base/rule/XpathBackReference.java index f5af63c8ed6..cdc60f456b5 100644 --- a/drools-core/src/main/java/org/drools/core/rule/XpathBackReference.java +++ b/drools-base/src/main/java/org/drools/base/rule/XpathBackReference.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule; +package org.drools.base.rule; import java.util.Collection; import java.util.Collections; @@ -23,8 +25,8 @@ import java.util.Map; import java.util.Set; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.accessor.PatternExtractor; +import org.drools.base.rule.accessor.PatternExtractor; +import org.drools.base.base.ClassObjectType; public class XpathBackReference { public static final String BACK_REFERENCE_HEAD = "$back$ref$"; diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/AcceptsReadAccessor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/AcceptsReadAccessor.java new file mode 100644 index 00000000000..f4d323f06e8 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/AcceptsReadAccessor.java @@ -0,0 +1,23 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +public interface AcceptsReadAccessor { + void setReadAccessor(ReadAccessor readAccessor); +} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/Accumulator.java b/drools-base/src/main/java/org/drools/base/rule/accessor/Accumulator.java similarity index 60% rename from drools-core/src/main/java/org/drools/core/rule/accessor/Accumulator.java rename to drools-base/src/main/java/org/drools/base/rule/accessor/Accumulator.java index 10d3bb677fc..38b4dadc941 100755 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/Accumulator.java +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/Accumulator.java @@ -1,25 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule.accessor; - -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; +package org.drools.base.rule.accessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.kie.api.runtime.rule.FactHandle; /** * Accumulator @@ -53,14 +54,14 @@ public interface Accumulator * * @param leftTuple tuple causing the rule fire * @param declarations previous declarations - * @param reteEvaluator + * @param valueResolver * @throws Exception */ Object init(Object workingMemoryContext, Object context, - Tuple leftTuple, + BaseTuple leftTuple, Declaration[] declarations, - ReteEvaluator reteEvaluator); + ValueResolver valueResolver); /** * Executes the accumulate (action) code for the given fact handle @@ -69,16 +70,16 @@ Object init(Object workingMemoryContext, * @param handle * @param declarations * @param innerDeclarations - * @param reteEvaluator + * @param valueResolver * @throws Exception */ Object accumulate(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, + BaseTuple leftTuple, + FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator); + ValueResolver valueResolver); /** * Returns true if this accumulator supports operation reversal @@ -95,32 +96,32 @@ Object accumulate(Object workingMemoryContext, * @param handle * @param declarations * @param innerDeclarations - * @param reteEvaluator + * @param valueResolver * @throws Exception */ boolean tryReverse(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, + BaseTuple leftTuple, + FactHandle handle, Object value, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator); + ValueResolver valueResolver); /** * Gets the result of the accummulation * * @param leftTuple * @param declarations - * @param reteEvaluator + * @param valueResolver * @return * @throws Exception */ Object getResult(Object workingMemoryContext, Object context, - Tuple leftTuple, + BaseTuple leftTuple, Declaration[] declarations, - ReteEvaluator reteEvaluator); + ValueResolver valueResolver); default void replaceDeclaration(Declaration declaration, Declaration resolved) { } diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/CompiledInvoker.java b/drools-base/src/main/java/org/drools/base/rule/accessor/CompiledInvoker.java new file mode 100644 index 00000000000..1586fc35024 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/CompiledInvoker.java @@ -0,0 +1,40 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +/** + * This interface is used by semantic modules that are compiled + * to bytecode. + */ +public interface CompiledInvoker + extends + Invoker { + + /** + * Generated code should be able to return a String which represents the bytecode. + * The elements in the list will be used to compare one semantic invoker + * with another by making sure each item in the list is equivalent (equals()). + * There are utilities in the ASM package to retrieve the bytecode for this. + */ + String getMethodBytecode(); + + static boolean isCompiledInvoker(Invoker invoker) { + return invoker instanceof CompiledInvoker; + } +} diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/DataProvider.java b/drools-base/src/main/java/org/drools/base/rule/accessor/DataProvider.java new file mode 100644 index 00000000000..2b6e064cd52 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/DataProvider.java @@ -0,0 +1,47 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import java.io.Serializable; +import java.util.Iterator; + +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; + +public interface DataProvider + extends + Serializable, + Cloneable { + + Declaration[] getRequiredDeclarations(); + + Object createContext(); + + Iterator getResults(BaseTuple tuple, + ValueResolver valueResolver, + Object providerContext); + + DataProvider clone(); + + void replaceDeclaration(Declaration declaration, + Declaration resolved); + + boolean isReactive(); +} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/DeclarationScopeResolver.java b/drools-base/src/main/java/org/drools/base/rule/accessor/DeclarationScopeResolver.java similarity index 89% rename from drools-core/src/main/java/org/drools/core/rule/accessor/DeclarationScopeResolver.java rename to drools-base/src/main/java/org/drools/base/rule/accessor/DeclarationScopeResolver.java index 12fe32c17cd..65a573a6f42 100644 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/DeclarationScopeResolver.java +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/DeclarationScopeResolver.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule.accessor; +package org.drools.base.rule.accessor; import java.lang.reflect.Type; import java.util.ArrayDeque; @@ -24,14 +26,14 @@ import java.util.Map; import java.util.Optional; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.base.ClassObjectType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; import org.kie.internal.ruleunit.RuleUnitDescription; import static org.drools.util.ClassUtils.rawType; diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/Enabled.java b/drools-base/src/main/java/org/drools/base/rule/accessor/Enabled.java new file mode 100644 index 00000000000..ba33e71a5f1 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/Enabled.java @@ -0,0 +1,38 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import java.io.Serializable; +import java.util.Map; + +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; + +public interface Enabled extends Serializable { + boolean getValue(final BaseTuple tuple, + final Declaration[] declarations, + final RuleImpl rule, + final ValueResolver valueResolver); + + default Declaration[] findDeclarations( Map decls) { + return null; + } +} diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/EvalExpression.java b/drools-base/src/main/java/org/drools/base/rule/accessor/EvalExpression.java new file mode 100644 index 00000000000..7dc0a9bcc07 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/EvalExpression.java @@ -0,0 +1,45 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; + +public interface EvalExpression + extends + Invoker, + Cloneable { + + Object createContext(); + + boolean evaluate(BaseTuple tuple, + Declaration[] requiredDeclarations, + ValueResolver valueResolver, + Object context ) throws Exception; + + void replaceDeclaration(Declaration declaration, + Declaration resolved); + + EvalExpression clone(); + + default EvalExpression clonePreservingDeclarations(EvalExpression original) { + return original; + } +} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/Evaluator.java b/drools-base/src/main/java/org/drools/base/rule/accessor/Evaluator.java similarity index 74% rename from drools-core/src/main/java/org/drools/core/rule/accessor/Evaluator.java rename to drools-base/src/main/java/org/drools/base/rule/accessor/Evaluator.java index fa3e66a3b4c..e31b25f592b 100644 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/Evaluator.java +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/Evaluator.java @@ -1,27 +1,29 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule.accessor; +package org.drools.base.rule.accessor; import java.io.Serializable; -import org.drools.core.base.ValueType; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.time.Interval; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; import org.kie.api.runtime.rule.Operator; /** @@ -68,7 +70,7 @@ public interface Evaluator extends Serializable, org.kie.api.runtime.rule.Evalua * to the value of the name field, read by using the * extractor on the fact instance (object1). * - * @param workingMemory + * @param valueResolver * The current working memory * @param extractor * The extractor used to get the field value from the object @@ -79,9 +81,9 @@ public interface Evaluator extends Serializable, org.kie.api.runtime.rule.Evalua * * @return Returns true if evaluation is successful. false otherwise. */ - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(ValueResolver valueResolver, ReadAccessor extractor, - InternalFactHandle factHandle, + FactHandle factHandle, FieldValue value); /** @@ -98,7 +100,7 @@ public boolean evaluate(ReteEvaluator reteEvaluator, * This method will be used to extract and evaluate both * the "name" attribute and the "$someName" variable at once. * - * @param workingMemory + * @param valueResolver * The current working memory * @param leftExtractor * The extractor to read the left value. In the above example, @@ -116,11 +118,11 @@ public boolean evaluate(ReteEvaluator reteEvaluator, * * @return Returns true if evaluation is successful. false otherwise. */ - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(ValueResolver valueResolver, ReadAccessor leftExtractor, - InternalFactHandle left, + FactHandle left, ReadAccessor rightExtractor, - InternalFactHandle right); + FactHandle right); /** * Returns true if this evaluator implements a temporal evaluation, diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/FieldValue.java b/drools-base/src/main/java/org/drools/base/rule/accessor/FieldValue.java new file mode 100644 index 00000000000..5eceb430b4c --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/FieldValue.java @@ -0,0 +1,68 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.math.BigInteger; + +public interface FieldValue + extends + Serializable { + + Object getValue(); + + char getCharValue(); + + BigDecimal getBigDecimalValue(); + + BigInteger getBigIntegerValue(); + + int getIntValue(); + + byte getByteValue(); + + short getShortValue(); + + long getLongValue(); + + float getFloatValue(); + + double getDoubleValue(); + + boolean getBooleanValue(); + + boolean isNull(); + + boolean isBooleanField(); + + boolean isIntegerNumberField(); + + boolean isFloatNumberField(); + + boolean isObjectField(); + + /** + * Returns true if the given field value implements the Collection interface + * @return + */ + boolean isCollectionField(); + + boolean isStringField(); +} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/GlobalExtractor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/GlobalExtractor.java similarity index 74% rename from drools-core/src/main/java/org/drools/core/rule/accessor/GlobalExtractor.java rename to drools-base/src/main/java/org/drools/base/rule/accessor/GlobalExtractor.java index 305d2f0caa6..81a692e782c 100755 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/GlobalExtractor.java +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/GlobalExtractor.java @@ -1,20 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.rule.accessor; +package org.drools.base.rule.accessor; + +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.extractors.BaseObjectClassFieldReader; +import org.drools.base.facttemplates.Fact; +import org.drools.util.ClassUtils; import java.io.Externalizable; import java.io.IOException; @@ -22,14 +32,6 @@ import java.io.ObjectOutput; import java.lang.reflect.Method; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ObjectType; -import org.drools.core.base.extractors.BaseObjectClassFieldReader; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.facttemplates.Fact; -import org.drools.util.ClassUtils; - /** * This is a global variable extractor used to get a global variable value */ @@ -75,9 +77,9 @@ public void setClassObjectType(ClassObjectType objectType) { } @Override - public Object getValue(ReteEvaluator reteEvaluator, + public Object getValue(ValueResolver valueResolver, final Object object) { - return reteEvaluator.getGlobal( identifier ); + return valueResolver.getGlobal( identifier ); } public ObjectType getObjectType() { @@ -107,7 +109,7 @@ public String getExtractToClassName() { public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); @@ -152,8 +154,4 @@ public int getIndex() { public Object getValue(Object object) { throw new RuntimeException( "Can't extract a value from global " + identifier + " without a working memory reference" ); } - - public boolean isNullValue(Object object) { - throw new RuntimeException( "Can't extract a value from global " + identifier + " without a working memory reference" ); - } } diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/GlobalResolver.java b/drools-base/src/main/java/org/drools/base/rule/accessor/GlobalResolver.java new file mode 100644 index 00000000000..f22941cc1c2 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/GlobalResolver.java @@ -0,0 +1,29 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +public interface GlobalResolver { + Object resolveGlobal(String identifier); + + void setGlobal(String identifier, Object value); + + void removeGlobal(String identifier); + + void clear(); +} diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/Invoker.java b/drools-base/src/main/java/org/drools/base/rule/accessor/Invoker.java new file mode 100644 index 00000000000..4cda1f379fa --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/Invoker.java @@ -0,0 +1,27 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import org.drools.base.rule.RuleComponent; + +public interface Invoker extends RuleComponent { + default boolean wrapsCompiledInvoker() { + return false; + } +} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/PatternExtractor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/PatternExtractor.java similarity index 71% rename from drools-core/src/main/java/org/drools/core/rule/accessor/PatternExtractor.java rename to drools-base/src/main/java/org/drools/base/rule/accessor/PatternExtractor.java index c699fefdec2..a7b3d64cb70 100644 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/PatternExtractor.java +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/PatternExtractor.java @@ -1,20 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule.accessor; +package org.drools.base.rule.accessor; import java.io.Externalizable; import java.io.IOException; @@ -22,12 +24,12 @@ import java.io.ObjectOutput; import java.lang.reflect.Method; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ObjectType; -import org.drools.core.base.extractors.BaseObjectClassFieldReader; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.facttemplates.Fact; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.base.extractors.BaseObjectClassFieldReader; +import org.drools.base.facttemplates.Fact; import org.drools.util.ClassUtils; public class PatternExtractor extends BaseObjectClassFieldReader @@ -69,7 +71,7 @@ public void setClassObjectType(ClassObjectType objectType) { setValueType( objectType.getValueType() ); } - public Object getValue(ReteEvaluator reteEvaluator, + public Object getValue(ValueResolver valueResolver, final Object object) { return object; } @@ -97,7 +99,7 @@ public String getExtractToClassName() { public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/PredicateExpression.java b/drools-base/src/main/java/org/drools/base/rule/accessor/PredicateExpression.java new file mode 100644 index 00000000000..6dd3f6c55e6 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/PredicateExpression.java @@ -0,0 +1,38 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.kie.api.runtime.rule.FactHandle; + +public interface PredicateExpression + extends + Invoker { + + Object createContext(); + + public boolean evaluate(FactHandle handle, + BaseTuple tuple, + Declaration[] previousDeclarations, + Declaration[] localDeclarations, + ValueResolver valueResolver, + Object context ) throws Exception; +} diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/ReadAccessor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/ReadAccessor.java new file mode 100644 index 00000000000..b5e42660f00 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/ReadAccessor.java @@ -0,0 +1,72 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; + +import java.lang.reflect.Method; + +/** + * A public interface for Read accessors + */ +public interface ReadAccessor { + + Object getValue(Object object); + + ValueType getValueType(); + + Class< ? > getExtractToClass(); + + String getExtractToClassName(); + + Method getNativeReadMethod(); + + String getNativeReadMethodName(); + + int getHashCode(Object object); + + int getIndex(); + + Object getValue(ValueResolver valueResolver, Object object); + + char getCharValue(ValueResolver valueResolver, Object object); + + int getIntValue(ValueResolver valueResolver, Object object); + + byte getByteValue(ValueResolver valueResolver, Object object); + + short getShortValue(ValueResolver valueResolver, Object object); + + long getLongValue(ValueResolver valueResolver, Object object); + + float getFloatValue(ValueResolver valueResolver, Object object); + + double getDoubleValue(ValueResolver valueResolver, Object object); + + boolean getBooleanValue(ValueResolver valueResolver, Object object); + + boolean isNullValue(ValueResolver valueResolver, Object object); + + int getHashCode(ValueResolver valueResolver, Object object); + + boolean isGlobal(); + + boolean isSelfReference(); +} diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/ReturnValueExpression.java b/drools-base/src/main/java/org/drools/base/rule/accessor/ReturnValueExpression.java new file mode 100644 index 00000000000..c77d097707b --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/ReturnValueExpression.java @@ -0,0 +1,42 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.kie.api.runtime.rule.FactHandle; + +public interface ReturnValueExpression + extends + Invoker { + + Object createContext(); + + FieldValue evaluate(FactHandle handle, + BaseTuple tuple, + Declaration[] previousDeclarations, + Declaration[] localDeclarations, + ValueResolver valueResolver, + Object context ) throws Exception; + + void replaceDeclaration(Declaration declaration, + Declaration resolved); + +} diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/Salience.java b/drools-base/src/main/java/org/drools/base/rule/accessor/Salience.java new file mode 100644 index 00000000000..19069f0bdbc --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/Salience.java @@ -0,0 +1,48 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import java.io.Serializable; +import java.util.Map; + +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.Declaration; +import org.kie.api.definition.rule.Rule; +import org.kie.api.runtime.rule.Match; + +public interface Salience extends Serializable { + + int DEFAULT_SALIENCE_VALUE = 0; + + int getValue(final Match activation, + final Rule rule, + final ValueResolver valueResolver); + + int getValue(); + + boolean isDynamic(); + + default boolean isDefault() { + return getValue() == DEFAULT_SALIENCE_VALUE; + } + + default Declaration[] findDeclarations( Map decls) { + return null; + } +} diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/TupleValueExtractor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/TupleValueExtractor.java new file mode 100644 index 00000000000..ce458aff533 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/TupleValueExtractor.java @@ -0,0 +1,36 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.reteoo.BaseTuple; + +public interface TupleValueExtractor extends Cloneable { + + ValueType getValueType(); + + default Object getValue( BaseTuple tuple) { + return getValue( null, tuple ); + } + + Object getValue(ValueResolver valueResolver, BaseTuple tuple); + + TupleValueExtractor clone(); +} diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/Wireable.java b/drools-base/src/main/java/org/drools/base/rule/accessor/Wireable.java new file mode 100644 index 00000000000..48d8afb875e --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/Wireable.java @@ -0,0 +1,27 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +public interface Wireable { + void wire(Object object); + + interface Immutable extends Wireable { + boolean isInitialized(); + } +} diff --git a/drools-base/src/main/java/org/drools/base/rule/accessor/WriteAccessor.java b/drools-base/src/main/java/org/drools/base/rule/accessor/WriteAccessor.java new file mode 100644 index 00000000000..679a2756240 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/accessor/WriteAccessor.java @@ -0,0 +1,57 @@ +/** + * 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. + */ +package org.drools.base.rule.accessor; + +import java.io.Externalizable; +import java.lang.reflect.Method; + +import org.drools.base.base.ValueType; + +/** + * An interface for a class that is able to write values into a class + * field + */ +public interface WriteAccessor extends Externalizable { + + int getIndex(); + + void setValue( Object bean, Object value ); + + void setCharValue( Object bean, char value ); + + void setIntValue( Object bean, int value ); + + void setByteValue( Object bean, byte value ); + + void setShortValue( Object bean, short value ); + + void setLongValue( Object bean, long value ); + + void setFloatValue( Object bean, float value ); + + void setDoubleValue( Object bean, double value ); + + void setBooleanValue( Object bean, boolean value ); + + ValueType getValueType(); + + Class< ? > getFieldType(); + + Method getNativeWriteMethod(); +} diff --git a/drools-base/src/main/java/org/drools/base/rule/consequence/ConflictResolver.java b/drools-base/src/main/java/org/drools/base/rule/consequence/ConflictResolver.java new file mode 100644 index 00000000000..cbcc3f50a20 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/consequence/ConflictResolver.java @@ -0,0 +1,41 @@ +/** + * 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. + */ +package org.drools.base.rule.consequence; + +import java.io.Serializable; +import java.util.Comparator; + +/** + * Strategy for resolving conflicts amongst multiple rules. + * + *

+ * Since a fact or set of facts may activate multiple rules, a + * ConflictResolutionStrategy is used to provide priority + * ordering of conflicting rules. + *

+ * + * + * + * @version $Id: ConflictResolver.java,v 1.1 2005/07/26 01:06:32 mproctor Exp $ + */ +public interface ConflictResolver + extends + Serializable, + Comparator { +} diff --git a/drools-base/src/main/java/org/drools/base/rule/consequence/Consequence.java b/drools-base/src/main/java/org/drools/base/rule/consequence/Consequence.java new file mode 100644 index 00000000000..ae07226bba0 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/consequence/Consequence.java @@ -0,0 +1,46 @@ +/** + * 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. + */ +package org.drools.base.rule.consequence; + +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.accessor.Invoker; + +/** + * Consequence to be fired upon successful match of a Rule. + */ +public interface Consequence + extends + Invoker { + + String getName(); + + /** + * Execute the consequence for the supplied matching Tuple. + * + * @param knowledgeHelper + * @param valueResolver + * The working memory session. + * @throws ConsequenceException + * If an error occurs while attempting to invoke the + * consequence. + */ + void evaluate(T knowledgeHelper, + ValueResolver valueResolver) throws Exception; + +} diff --git a/drools-base/src/main/java/org/drools/base/rule/consequence/ConsequenceContext.java b/drools-base/src/main/java/org/drools/base/rule/consequence/ConsequenceContext.java new file mode 100644 index 00000000000..90e0cb7234d --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/consequence/ConsequenceContext.java @@ -0,0 +1,171 @@ +/** + * 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. + */ +package org.drools.base.rule.consequence; + +import org.drools.base.beliefsystem.Mode; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.util.bitmask.BitMask; +import org.kie.api.definition.rule.Rule; +import org.kie.api.runtime.Channel; +import org.kie.api.runtime.rule.EntryPoint; +import org.kie.api.runtime.rule.FactHandle; +import org.kie.api.runtime.rule.Match; +import org.kie.api.runtime.rule.RuleContext; + +import java.util.Collection; +import java.util.Map; + +public interface ConsequenceContext extends RuleContext { + + void reset(); + + /** + * Asserts an object + * + * @param object - + * the object to be asserted + */ + FactHandle insert(Object object) ; + + FactHandle insertAsync(Object object ); + + /** + * Asserts an object specifying that it implement the onPropertyChange + * listener + * + * @param object - + * the object to be asserted + * @param dynamic - + * specifies the object implements onPropertyChangeListener + */ + FactHandle insert(Object object, boolean dynamic); + + FactHandle insertLogical(Object object) ; + + + FactHandle insertLogical(Object object, Object value); + + FactHandle insertLogical(Object object, Mode belief) ; + + FactHandle insertLogical(Object object, Mode... beliefs) ; + + FactHandle getFactHandle(Object object); + + + FactHandle getFactHandle(FactHandle handle); + + void update(FactHandle handle, Object newObject); + + void update(FactHandle newObject); + void update(FactHandle newObject, BitMask mask, Class modifiedClass); + + void update(Object newObject); + void update(Object newObject, BitMask mask, Class modifiedClass); + + /** + * @deprecated Use delete + */ + void retract(FactHandle handle) ; + + /** + * @deprecated Use delete + */ + void retract(Object handle); + + void delete(Object handle); + void delete(Object object, FactHandle.State fhState); + + void delete(FactHandle handle); + void delete(FactHandle handle, FactHandle.State fhState); + + Object get(Declaration declaration); + + /** + * @return - The rule name + */ + Rule getRule(); + + BaseTuple getTuple(); + + Declaration[] getRequiredDeclarations(); + + Match getMatch(); + + void setFocus(String focus); + + EntryPoint getEntryPoint(String id); + + Channel getChannel(String id); + + Map getChannels(); + + Declaration getDeclaration(String identifier); + + void halt(); + + ClassLoader getProjectClassLoader(); + + + T getContext(Class contextClass); + + T don( K core, Class trait, boolean logical ); + + T don( K core, Class trait, Mode... modes ); + + T don( K core, Class trait ); + + T don(Thing core, Class trait); + + T don(K core, Collection> trait, boolean logical); + + T don( K core, Collection> trait, Mode... modes ); + + T don( K core, Collection> trait ); + + Thing shed( Thing thing, Class trait ); + + Thing shed(TraitableBean core, Class trait); + + FactHandle bolster( Object object ); + + FactHandle bolster( Object object, Object value ); + + default void run(String ruleUnitName) { + throw new UnsupportedOperationException(); + } + + default void run(Object ruleUnit) { + throw new UnsupportedOperationException(); + } + + default void run(Class ruleUnitClass) { + throw new UnsupportedOperationException(); + } + + default void guard(Object ruleUnit) { + throw new UnsupportedOperationException(); + } + + default void guard(Class ruleUnitClass) { + throw new UnsupportedOperationException(); + } +} diff --git a/drools-core/src/main/java/org/drools/core/rule/consequence/ConsequenceException.java b/drools-base/src/main/java/org/drools/base/rule/consequence/ConsequenceException.java similarity index 78% rename from drools-core/src/main/java/org/drools/core/rule/consequence/ConsequenceException.java rename to drools-base/src/main/java/org/drools/base/rule/consequence/ConsequenceException.java index aa5c250cd37..777145def35 100644 --- a/drools-core/src/main/java/org/drools/core/rule/consequence/ConsequenceException.java +++ b/drools-base/src/main/java/org/drools/base/rule/consequence/ConsequenceException.java @@ -1,22 +1,24 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ +package org.drools.base.rule.consequence; -package org.drools.core.rule.consequence; - -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; /** * Indicates an error during a Consequence invocation. diff --git a/drools-base/src/main/java/org/drools/base/rule/constraint/AlphaNodeFieldConstraint.java b/drools-base/src/main/java/org/drools/base/rule/constraint/AlphaNodeFieldConstraint.java new file mode 100644 index 00000000000..dbfb03fd645 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/constraint/AlphaNodeFieldConstraint.java @@ -0,0 +1,34 @@ +/** + * 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. + */ +package org.drools.base.rule.constraint; + +import org.drools.base.base.ValueResolver; +import org.kie.api.runtime.rule.FactHandle; + +public interface AlphaNodeFieldConstraint + extends + Constraint { + + boolean isAllowed(FactHandle handle, ValueResolver valueResolver); + + /** + * Clone this constraints only if it is already used by a different node, otherwise returns this + */ + AlphaNodeFieldConstraint cloneIfInUse(); +} diff --git a/drools-base/src/main/java/org/drools/base/rule/constraint/BetaNodeFieldConstraint.java b/drools-base/src/main/java/org/drools/base/rule/constraint/BetaNodeFieldConstraint.java new file mode 100644 index 00000000000..55ba7e3c26c --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/constraint/BetaNodeFieldConstraint.java @@ -0,0 +1,41 @@ +/** + * 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. + */ +package org.drools.base.rule.constraint; + +import org.drools.base.rule.ContextEntry; +import org.drools.base.reteoo.BaseTuple; +import org.kie.api.runtime.rule.FactHandle; + +public interface BetaNodeFieldConstraint + extends + Constraint { + + boolean isAllowedCachedLeft(ContextEntry context, + FactHandle handle); + + boolean isAllowedCachedRight(BaseTuple tuple, + ContextEntry context); + + ContextEntry createContextEntry(); + + /** + * Clone this constraints only if it is already used by a different node, otherwise returns this + */ + BetaNodeFieldConstraint cloneIfInUse(); +} diff --git a/drools-core/src/main/java/org/drools/core/rule/constraint/Constraint.java b/drools-base/src/main/java/org/drools/base/rule/constraint/Constraint.java similarity index 51% rename from drools-core/src/main/java/org/drools/core/rule/constraint/Constraint.java rename to drools-base/src/main/java/org/drools/base/rule/constraint/Constraint.java index 298236cdc57..8665c314fcc 100644 --- a/drools-core/src/main/java/org/drools/core/rule/constraint/Constraint.java +++ b/drools-base/src/main/java/org/drools/base/rule/constraint/Constraint.java @@ -1,34 +1,39 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.rule.constraint; +package org.drools.base.rule.constraint; import java.io.Externalizable; import java.util.Collection; import java.util.Collections; import java.util.List; +import java.util.Optional; -import org.drools.core.impl.RuleBase; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.RuleComponent; -import org.drools.core.base.ObjectType; -import org.drools.core.util.bitmask.BitMask; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleComponent; +import org.drools.base.rule.Declaration; +import org.drools.base.base.ObjectType; +import org.drools.util.bitmask.AllSetButLastBitMask; +import org.drools.util.bitmask.BitMask; +import org.drools.base.RuleBase; +import org.drools.base.RuleBuildContext; -import static org.drools.core.reteoo.PropertySpecificUtil.allSetButTraitBitMask; +//import static org.drools.core.reteoo.PropertySpecificUtil.allSetButTraitBitMask; public interface Constraint extends @@ -79,14 +84,26 @@ void replaceDeclaration(Declaration oldDecl, boolean isTemporal(); default BitMask getListenedPropertyMask(ObjectType objectType, List settableProperties ) { - return allSetButTraitBitMask(); + return getListenedPropertyMask(Optional.empty(), objectType, settableProperties); + } + + /** + * Returns property reactivity BitMask of this constraint. + * + * @param pattern which this constraint belongs to. if pattern is empty, bind variables are considered to be declared in the same pattern. It should be fine for alpha constraints + * @param objectType + * @param settableProperties + * @return property reactivity BitMask + */ + default BitMask getListenedPropertyMask(Optional pattern, ObjectType objectType, List settableProperties ) { + return AllSetButLastBitMask.get(); } default boolean equals(Object object, RuleBase kbase) { return this.equals( object ); } - default void registerEvaluationContext(BuildContext buildContext) { } + default void registerEvaluationContext(RuleBuildContext ruleBuildContext) { } default void mergeEvaluationContext(Constraint other) { } diff --git a/drools-core/src/main/java/org/drools/core/rule/constraint/NegConstraint.java b/drools-base/src/main/java/org/drools/base/rule/constraint/NegConstraint.java similarity index 69% rename from drools-core/src/main/java/org/drools/core/rule/constraint/NegConstraint.java rename to drools-base/src/main/java/org/drools/base/rule/constraint/NegConstraint.java index 58f0ccdf939..290c43902f6 100644 --- a/drools-core/src/main/java/org/drools/core/rule/constraint/NegConstraint.java +++ b/drools-base/src/main/java/org/drools/base/rule/constraint/NegConstraint.java @@ -1,28 +1,31 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule.constraint; + * 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. + */ +package org.drools.base.rule.constraint; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.concurrent.atomic.AtomicBoolean; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.Declaration; +import org.kie.api.runtime.rule.FactHandle; public class NegConstraint implements AlphaNodeFieldConstraint { @@ -41,7 +44,7 @@ public NegConstraint(boolean operator) { } @Override - public boolean isAllowed(InternalFactHandle handle, ReteEvaluator reteEvaluator) { + public boolean isAllowed(FactHandle handle, ValueResolver valueResolver) { return ( !operator && !handle.isNegated() ) || ( operator && handle.isNegated() ); } diff --git a/drools-core/src/main/java/org/drools/core/rule/constraint/QueryNameConstraint.java b/drools-base/src/main/java/org/drools/base/rule/constraint/QueryNameConstraint.java similarity index 61% rename from drools-core/src/main/java/org/drools/core/rule/constraint/QueryNameConstraint.java rename to drools-base/src/main/java/org/drools/base/rule/constraint/QueryNameConstraint.java index 98d43f91d73..577b48f3e46 100644 --- a/drools-core/src/main/java/org/drools/core/rule/constraint/QueryNameConstraint.java +++ b/drools-base/src/main/java/org/drools/base/rule/constraint/QueryNameConstraint.java @@ -1,38 +1,40 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule.constraint; + * 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. + */ +package org.drools.base.rule.constraint; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.DroolsQuery; -import org.drools.core.base.field.ObjectFieldImpl; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.accessor.AcceptsReadAccessor; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.util.AbstractHashTable; -import org.drools.core.util.index.IndexUtil; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.drools.base.base.field.ObjectFieldImpl; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.accessor.AcceptsReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.util.FieldIndex; import org.kie.api.KieBaseConfiguration; +import org.kie.api.runtime.rule.FactHandle; public class QueryNameConstraint implements AlphaNodeFieldConstraint, @@ -51,7 +53,7 @@ public QueryNameConstraint(ReadAccessor readAccessor, String queryName) { this.queryName = queryName; } - public boolean isAllowed(InternalFactHandle handle, ReteEvaluator reteEvaluator) { + public boolean isAllowed(FactHandle handle, ValueResolver valueResolver) { return ((DroolsQuery)handle.getObject()).getName().equals(queryName); } @@ -63,18 +65,18 @@ public boolean isIndexable(short nodeType, KieBaseConfiguration config) { return true; } - public IndexUtil.ConstraintType getConstraintType() { - return IndexUtil.ConstraintType.EQUAL; + public ConstraintTypeOperator getConstraintType() { + return ConstraintTypeOperator.EQUAL; } public FieldValue getField() { if ( fieldValue == null ) { - fieldValue = new ObjectFieldImpl( queryName ); + fieldValue = new ObjectFieldImpl(queryName ); } return fieldValue; } - public AbstractHashTable.FieldIndex getFieldIndex() { + public FieldIndex getFieldIndex() { return null; } diff --git a/drools-core/src/main/java/org/drools/core/rule/constraint/XpathConstraint.java b/drools-base/src/main/java/org/drools/base/rule/constraint/XpathConstraint.java similarity index 85% rename from drools-core/src/main/java/org/drools/core/rule/constraint/XpathConstraint.java rename to drools-base/src/main/java/org/drools/base/rule/constraint/XpathConstraint.java index 36806910438..6f15fb1e0d8 100644 --- a/drools-core/src/main/java/org/drools/core/rule/constraint/XpathConstraint.java +++ b/drools-base/src/main/java/org/drools/base/rule/constraint/XpathConstraint.java @@ -1,19 +1,22 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.rule.constraint; + * 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. + */ +package org.drools.base.rule.constraint; import java.io.Externalizable; import java.io.IOException; @@ -30,23 +33,22 @@ import java.util.List; import java.util.Objects; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.DroolsQuery; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.phreak.ReactiveObject; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.From; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.rule.accessor.DataProvider; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.accessor.PatternExtractor; -import org.drools.core.common.PropagationContext; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.From; +import org.drools.base.rule.accessor.DataProvider; +import org.drools.base.rule.accessor.PatternExtractor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.base.ClassObjectType; +import org.drools.base.phreak.ReactiveObject; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.base.ObjectType; import org.drools.util.ClassUtils; +import org.kie.api.runtime.rule.FactHandle; import static org.drools.util.ClassUtils.convertFromPrimitiveType; @@ -108,12 +110,12 @@ public boolean isTemporal() { } @Override - public boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle) { + public boolean isAllowedCachedLeft(ContextEntry context, FactHandle handle) { throw new UnsupportedOperationException(); } @Override - public boolean isAllowedCachedRight(Tuple tuple, ContextEntry context) { + public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) { throw new UnsupportedOperationException(); } @@ -123,7 +125,7 @@ public ContextEntry createContextEntry() { } @Override - public boolean isAllowed(InternalFactHandle handle, ReteEvaluator reteEvaluator) { + public boolean isAllowed(FactHandle handle, ValueResolver valueResolver) { throw new UnsupportedOperationException(); } @@ -172,7 +174,7 @@ public void setXpathStartDeclaration( Declaration xpathStartDeclaration ) { } private interface XpathEvaluator { - Iterable evaluate(ReteEvaluator reteEvaluator, Tuple leftTuple, Object object); + Iterable evaluate(ValueResolver valueResolver, BaseTuple leftBaseTuple, Object object); } @Override @@ -187,19 +189,19 @@ private SingleChunkXpathEvaluator(XpathChunk chunk) { this.chunk = chunk; } - public Iterable evaluate(ReteEvaluator reteEvaluator, Tuple leftTuple, Object object) { - return evaluateObject(reteEvaluator, leftTuple, chunk, new ArrayList<>(), object); + public Iterable evaluate(ValueResolver valueResolver, BaseTuple leftBaseTuple, Object object) { + return evaluateObject(valueResolver, leftBaseTuple, chunk, new ArrayList<>(), object); } - private List evaluateObject(ReteEvaluator reteEvaluator, Tuple leftTuple, XpathChunk chunk, List list, Object object) { + private List evaluateObject(ValueResolver valueResolver, BaseTuple leftBaseTuple, XpathChunk chunk, List list, Object object) { Object result = chunk.evaluate(object); if (!chunk.lazy && result instanceof ReactiveObject) { - ((ReactiveObject) result).addLeftTuple(leftTuple); + ((ReactiveObject) result).addTuple(leftBaseTuple); } if (chunk.iterate && result instanceof Iterable) { for (Object value : (Iterable) result) { if (!chunk.lazy && value instanceof ReactiveObject) { - ((ReactiveObject) value).addLeftTuple(leftTuple); + ((ReactiveObject) value).addTuple(leftBaseTuple); } if (value != null) { list.add(value); @@ -507,15 +509,17 @@ public Object createContext() { } @Override - public Iterator getResults(Tuple leftTuple, ReteEvaluator reteEvaluator, PropagationContext ctx, Object providerContext) { - InternalFactHandle fh = leftTuple.getFactHandle(); + public Iterator getResults(BaseTuple tuple, + ValueResolver valueResolver, + Object providerContext) { + FactHandle fh = tuple.getFactHandle(); Object obj = fh.getObject(); if (obj instanceof DroolsQuery) { obj = declaration.getValue(null, obj); } - return xpathEvaluator.evaluate(reteEvaluator, leftTuple, obj).iterator(); + return xpathEvaluator.evaluate(valueResolver, tuple, obj).iterator(); } @Override diff --git a/drools-base/src/main/java/org/drools/base/rule/package-info.java b/drools-base/src/main/java/org/drools/base/rule/package-info.java new file mode 100644 index 00000000000..9302618fa2f --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/rule/package-info.java @@ -0,0 +1,24 @@ +/** + * 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. + */ +/** + * + * Contains the binary representations of rule constructs, like Package (which the compiler produces), Rule, and Conditional Elements. + * + */ +package org.drools.base.rule; diff --git a/drools-core/src/main/java/org/drools/core/ruleunit/RuleUnitDescriptionLoader.java b/drools-base/src/main/java/org/drools/base/ruleunit/RuleUnitDescriptionLoader.java similarity index 71% rename from drools-core/src/main/java/org/drools/core/ruleunit/RuleUnitDescriptionLoader.java rename to drools-base/src/main/java/org/drools/base/ruleunit/RuleUnitDescriptionLoader.java index 72102df1f72..2ccc28e846f 100644 --- a/drools-core/src/main/java/org/drools/core/ruleunit/RuleUnitDescriptionLoader.java +++ b/drools-base/src/main/java/org/drools/base/ruleunit/RuleUnitDescriptionLoader.java @@ -1,20 +1,22 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.ruleunit; +package org.drools.base.ruleunit; import java.util.HashSet; import java.util.Map; @@ -22,8 +24,8 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; import org.kie.internal.ruleunit.RuleUnitComponentFactory; import org.kie.internal.ruleunit.RuleUnitDescription; diff --git a/drools-core/src/main/java/org/drools/core/ruleunit/RuleUnitDescriptionRegistry.java b/drools-base/src/main/java/org/drools/base/ruleunit/RuleUnitDescriptionRegistry.java similarity index 71% rename from drools-core/src/main/java/org/drools/core/ruleunit/RuleUnitDescriptionRegistry.java rename to drools-base/src/main/java/org/drools/base/ruleunit/RuleUnitDescriptionRegistry.java index 45a1fe63f2a..b580c39b510 100644 --- a/drools-core/src/main/java/org/drools/core/ruleunit/RuleUnitDescriptionRegistry.java +++ b/drools-base/src/main/java/org/drools/base/ruleunit/RuleUnitDescriptionRegistry.java @@ -1,26 +1,28 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.ruleunit; +package org.drools.base.ruleunit; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.kie.internal.ruleunit.RuleUnitDescription; public class RuleUnitDescriptionRegistry { diff --git a/drools-core/src/main/java/org/drools/core/time/Interval.java b/drools-base/src/main/java/org/drools/base/time/Interval.java similarity index 80% rename from drools-core/src/main/java/org/drools/core/time/Interval.java rename to drools-base/src/main/java/org/drools/base/time/Interval.java index 0395c032a6d..61b62f28441 100644 --- a/drools-core/src/main/java/org/drools/core/time/Interval.java +++ b/drools-base/src/main/java/org/drools/base/time/Interval.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.time; +package org.drools.base.time; /** * A class to represent a time interval. Specially useful to diff --git a/drools-base/src/main/java/org/drools/base/time/JobHandle.java b/drools-base/src/main/java/org/drools/base/time/JobHandle.java new file mode 100644 index 00000000000..7e716ab41f1 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/time/JobHandle.java @@ -0,0 +1,30 @@ +/** + * 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. + */ +package org.drools.base.time; +/** + * An interface for Job Handles + */ +public interface JobHandle { + + long getId(); + + void cancel(); + + boolean isCancel(); +} diff --git a/drools-core/src/main/java/org/drools/core/time/TimeUtils.java b/drools-base/src/main/java/org/drools/base/time/TimeUtils.java similarity index 73% rename from drools-core/src/main/java/org/drools/core/time/TimeUtils.java rename to drools-base/src/main/java/org/drools/base/time/TimeUtils.java index 1b3bcf0d4cf..7cad859c5fc 100644 --- a/drools-core/src/main/java/org/drools/core/time/TimeUtils.java +++ b/drools-base/src/main/java/org/drools/base/time/TimeUtils.java @@ -1,30 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ +package org.drools.base.time; -package org.drools.core.time; - -import java.util.Date; import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; -import org.drools.util.DateUtils; - /** * A helper class with utility methods for * time related operations. @@ -133,26 +129,4 @@ public static long parseTimeString( String time ) { } return result; } - - public static long evalTimeExpression( TimerExpression expr, Tuple leftTuple, Declaration[] declrs, ReteEvaluator reteEvaluator ) { - Object d = expr.getValue( leftTuple, declrs, reteEvaluator ); - if ( d instanceof Number ) { - return ((Number) d).longValue(); - } - return TimeUtils.parseTimeString( d.toString() ); - } - - public static Date evalDateExpression( TimerExpression expr, Tuple leftTuple, Declaration[] declrs, ReteEvaluator reteEvaluator ) { - if (expr == null) { - return null; - } - Object d = expr.getValue( leftTuple, declrs, reteEvaluator ); - if ( d == null ) { - return null; - } - if ( d instanceof Number ) { - return new Date( ((Number) d).longValue() ); - } - return DateUtils.parseDate( d.toString() ); - } } diff --git a/drools-core/src/main/java/org/drools/core/time/Trigger.java b/drools-base/src/main/java/org/drools/base/time/Trigger.java similarity index 55% rename from drools-core/src/main/java/org/drools/core/time/Trigger.java rename to drools-base/src/main/java/org/drools/base/time/Trigger.java index 6066d1124a1..9d1f9898f6a 100644 --- a/drools-core/src/main/java/org/drools/core/time/Trigger.java +++ b/drools-base/src/main/java/org/drools/base/time/Trigger.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.time; +package org.drools.base.time; import java.io.Serializable; import java.util.Date; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; /** * A trigger interface for scheduling jobs @@ -29,9 +31,9 @@ public interface Trigger extends Serializable { /** * this method will be called before any job being called to provide some context * to trigger - * @param reteEvaluator + * @param valueResolver */ - default void initialize(ReteEvaluator reteEvaluator) {} + default void initialize(ValueResolver valueResolver) {} /** * This method is used to query the trigger about the existence of a * possible next fire time, but WITHOUT changing any internal state diff --git a/drools-base/src/main/java/org/drools/base/time/impl/Timer.java b/drools-base/src/main/java/org/drools/base/time/impl/Timer.java new file mode 100644 index 00000000000..13bf753bd37 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/time/impl/Timer.java @@ -0,0 +1,43 @@ +/** + * 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. + */ +package org.drools.base.time.impl; + +import java.io.Serializable; + +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.RuleComponent; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; +import org.kie.api.runtime.Calendars; + +public interface Timer extends Serializable, RuleComponent, RuleConditionElement { + + Trigger createTrigger( long timestamp, String[] calendarNames, Calendars calendars); + + Trigger createTrigger(long timestamp, + BaseTuple leftTuple, + JobHandle jh, + String[] calendarNames, + Calendars calendars, + Declaration[][] declrs, + ValueResolver valueResolver); +} diff --git a/drools-core/src/main/java/org/drools/core/util/CloneUtil.java b/drools-base/src/main/java/org/drools/base/util/CloneUtil.java similarity index 64% rename from drools-core/src/main/java/org/drools/core/util/CloneUtil.java rename to drools-base/src/main/java/org/drools/base/util/CloneUtil.java index d7521730e31..6d9aa6b5cb1 100644 --- a/drools-core/src/main/java/org/drools/core/util/CloneUtil.java +++ b/drools-base/src/main/java/org/drools/base/util/CloneUtil.java @@ -1,20 +1,22 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.util; +package org.drools.base.util; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; @@ -23,8 +25,8 @@ import java.util.Collections; import java.util.Map; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; public class CloneUtil { diff --git a/drools-core/src/main/java/org/drools/core/util/Drools.java b/drools-base/src/main/java/org/drools/base/util/Drools.java similarity index 77% rename from drools-core/src/main/java/org/drools/core/util/Drools.java rename to drools-base/src/main/java/org/drools/base/util/Drools.java index 0eb9098e180..93222a2d42f 100644 --- a/drools-core/src/main/java/org/drools/core/util/Drools.java +++ b/drools-base/src/main/java/org/drools/base/util/Drools.java @@ -1,19 +1,22 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.util; + * 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. + */ +package org.drools.base.util; import java.io.IOException; import java.io.InputStream; @@ -21,8 +24,8 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.base.XMLSupport; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.base.XMLSupport; public class Drools { diff --git a/drools-base/src/main/java/org/drools/base/util/FieldIndex.java b/drools-base/src/main/java/org/drools/base/util/FieldIndex.java new file mode 100644 index 00000000000..4b9cfedf3d4 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/util/FieldIndex.java @@ -0,0 +1,85 @@ +/** + * 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. + */ +package org.drools.base.util; + +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.TupleValueExtractor; +import org.drools.base.rule.Declaration; + +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +public class FieldIndex implements Externalizable { + + private static final long serialVersionUID = 510l; + + private TupleValueExtractor leftExtractor; + private ReadAccessor rightExtractor; + private boolean requiresCoercion; + + public FieldIndex() { + } + + public FieldIndex(ReadAccessor rightExtractor, TupleValueExtractor leftExtractor) { + this.rightExtractor = rightExtractor; + this.leftExtractor = leftExtractor; + this.requiresCoercion = isCoercionRequired(rightExtractor, leftExtractor); + } + + private boolean isCoercionRequired(ReadAccessor extractor, TupleValueExtractor declaration) { + return extractor.getValueType() != declaration.getValueType(); + } + + @Override + public void readExternal(ObjectInput in) throws IOException, + ClassNotFoundException { + rightExtractor = (ReadAccessor) in.readObject(); + leftExtractor = (Declaration) in.readObject(); + requiresCoercion = isCoercionRequired(rightExtractor, leftExtractor); + } + + @Override + public void writeExternal(ObjectOutput out) throws IOException { + out.writeObject(rightExtractor); + out.writeObject(leftExtractor); + } + + public TupleValueExtractor getLeftExtractor() { + return this.leftExtractor; + } + + public ReadAccessor getRightExtractor() { + return this.rightExtractor; + } + + public boolean requiresCoercion() { + return requiresCoercion; + } + + public Object indexedValueOf(BaseTuple tuple, boolean left) { + return left ? + (requiresCoercion ? + rightExtractor.getValueType().coerce(leftExtractor.getValue(tuple)) : + leftExtractor.getValue(tuple)) : + rightExtractor.getValue(null, tuple.getFactHandle().getObject()); + } +} diff --git a/drools-core/src/main/java/org/drools/core/util/MVELExecutor.java b/drools-base/src/main/java/org/drools/base/util/MVELExecutor.java similarity index 60% rename from drools-core/src/main/java/org/drools/core/util/MVELExecutor.java rename to drools-base/src/main/java/org/drools/base/util/MVELExecutor.java index 8b9391fc291..fd12601fe82 100644 --- a/drools-core/src/main/java/org/drools/core/util/MVELExecutor.java +++ b/drools-base/src/main/java/org/drools/base/util/MVELExecutor.java @@ -1,18 +1,22 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.util; +package org.drools.base.util; import java.util.Map; diff --git a/drools-core/src/main/java/org/drools/core/util/PropertyReactivityUtil.java b/drools-base/src/main/java/org/drools/base/util/PropertyReactivityUtil.java similarity index 87% rename from drools-core/src/main/java/org/drools/core/util/PropertyReactivityUtil.java rename to drools-base/src/main/java/org/drools/base/util/PropertyReactivityUtil.java index a90e711636e..0ef18ceae29 100644 --- a/drools-core/src/main/java/org/drools/core/util/PropertyReactivityUtil.java +++ b/drools-base/src/main/java/org/drools/base/util/PropertyReactivityUtil.java @@ -1,20 +1,22 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -package org.drools.core.util; +package org.drools.base.util; import java.lang.reflect.Field; import java.lang.reflect.Method; diff --git a/drools-core/src/main/java/org/drools/core/util/TimeIntervalParser.java b/drools-base/src/main/java/org/drools/base/util/TimeIntervalParser.java similarity index 70% rename from drools-core/src/main/java/org/drools/core/util/TimeIntervalParser.java rename to drools-base/src/main/java/org/drools/base/util/TimeIntervalParser.java index 91570008780..8d89d95af1b 100644 --- a/drools-core/src/main/java/org/drools/core/util/TimeIntervalParser.java +++ b/drools-base/src/main/java/org/drools/base/util/TimeIntervalParser.java @@ -1,20 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - -package org.drools.core.util; +package org.drools.base.util; import java.time.Instant; import java.time.LocalDate; @@ -22,7 +24,7 @@ import java.time.ZonedDateTime; import java.util.Date; -import org.drools.core.time.TimeUtils; +import org.drools.base.time.TimeUtils; /** * A parameters parser that uses JodaTime for time units parsing. diff --git a/drools-base/src/main/java/org/drools/base/util/index/ConstraintTypeOperator.java b/drools-base/src/main/java/org/drools/base/util/index/ConstraintTypeOperator.java new file mode 100644 index 00000000000..51e88d6c8b1 --- /dev/null +++ b/drools-base/src/main/java/org/drools/base/util/index/ConstraintTypeOperator.java @@ -0,0 +1,147 @@ +/** + * 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. + */ +package org.drools.base.util.index; + +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.constraint.Constraint; +import org.kie.api.KieBaseConfiguration; + +public enum ConstraintTypeOperator { + EQUAL(true, "=="), + NOT_EQUAL(false, "!="), + GREATER_THAN(true, ">"), + GREATER_OR_EQUAL(true, ">="), + LESS_THAN(true, "<"), + LESS_OR_EQUAL(true, "<="), + RANGE(true, null), + UNKNOWN(false, null); + + private final boolean indexable; + private final String operator; + + ConstraintTypeOperator(boolean indexable, String operator) { + this.indexable = indexable; + this.operator = operator; + } + + public boolean isComparison() { + return isAscending() || isDescending(); + } + + public boolean isEquality() { + return this == EQUAL || this == NOT_EQUAL; + } + + public boolean isAscending() { + return this == GREATER_THAN || this == GREATER_OR_EQUAL; + } + + public boolean isDescending() { + return this == LESS_THAN || this == LESS_OR_EQUAL; + } + + public boolean isIndexable() { + return indexable; + } + + /** + * May be null. + * + * @return the operator string representation if does exists, null otherwise. + */ + public String getOperator() { + return this.operator; + } + + public boolean isIndexableForNode(short nodeType, IndexableConstraint constraint, KieBaseConfiguration config) { + switch (this) { + case EQUAL: + return true; + case NOT_EQUAL: + case UNKNOWN: + return false; + default: + return IndexUtil.canHaveRangeIndex(nodeType, constraint, config); + } + } + + public ConstraintTypeOperator negate() { + switch (this) { + case EQUAL: + return NOT_EQUAL; + case NOT_EQUAL: + return EQUAL; + case GREATER_THAN: + return LESS_OR_EQUAL; + case GREATER_OR_EQUAL: + return LESS_THAN; + case LESS_OR_EQUAL: + return GREATER_THAN; + case LESS_THAN: + return GREATER_OR_EQUAL; + } + return UNKNOWN; + } + + public boolean canInverse() { + switch (this) { + case EQUAL: + case NOT_EQUAL: + case GREATER_THAN: + case GREATER_OR_EQUAL: + case LESS_THAN: + case LESS_OR_EQUAL: + return true; + default: + return false; + } + } + + public ConstraintTypeOperator inverse() { + switch (this) { + case GREATER_THAN: + return LESS_THAN; + case GREATER_OR_EQUAL: + return LESS_OR_EQUAL; + case LESS_THAN: + return GREATER_THAN; + case LESS_OR_EQUAL: + return GREATER_OR_EQUAL; + default: + return this; + } + } + + public static ConstraintTypeOperator decode(String operator) { + return decode(operator, false); + } + + public static ConstraintTypeOperator decode(String operator, boolean negated) { + for (ConstraintTypeOperator c : ConstraintTypeOperator.values()) { + if (c.getOperator() != null && c.getOperator().equals(operator)) { + return negated ? c.negate() : c; + } + } + return UNKNOWN; + } + + public static ConstraintTypeOperator getType(Constraint constraint) { + return constraint instanceof IndexableConstraint ? ((IndexableConstraint) constraint).getConstraintType() : UNKNOWN; + } +} diff --git a/drools-core/src/main/java/org/drools/core/util/index/IndexUtil.java b/drools-base/src/main/java/org/drools/base/util/index/IndexUtil.java similarity index 57% rename from drools-core/src/main/java/org/drools/core/util/index/IndexUtil.java rename to drools-base/src/main/java/org/drools/base/util/index/IndexUtil.java index fc5131185ce..eb09a4ce81b 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/IndexUtil.java +++ b/drools-base/src/main/java/org/drools/base/util/index/IndexUtil.java @@ -1,28 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.util.index; - -import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ValueType; -import org.drools.core.reteoo.NodeTypeEnums; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.TupleValueExtractor; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.rule.constraint.Constraint; + * 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. + */ +package org.drools.base.util.index; + +import org.drools.base.rule.accessor.TupleValueExtractor; +import org.drools.base.base.ValueType; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.kie.api.KieBaseConfiguration; import org.kie.api.conf.BetaRangeIndexOption; import org.kie.internal.conf.IndexPrecedenceOption; @@ -33,7 +34,7 @@ public class IndexUtil { static boolean USE_COMPARISON_INDEX = true; static boolean USE_COMPARISON_INDEX_JOIN = true; - public static boolean compositeAllowed(BetaNodeFieldConstraint[] constraints, short betaNodeType, RuleBaseConfiguration config) { + public static boolean compositeAllowed(BetaNodeFieldConstraint[] constraints, short betaNodeType, KieBaseConfiguration config) { // 1) If there is 1 or more unification restrictions it cannot be composite // 2) Ensures any non unification restrictions are first int firstUnification = -1; @@ -64,7 +65,7 @@ public static boolean isIndexable(BetaNodeFieldConstraint constraint, short node return constraint instanceof IndexableConstraint && ((IndexableConstraint)constraint).isIndexable(nodeType, config); } - private static boolean canHaveRangeIndex(short nodeType, IndexableConstraint constraint, KieBaseConfiguration config) { + public static boolean canHaveRangeIndex(short nodeType, IndexableConstraint constraint, KieBaseConfiguration config) { return canHaveRangeIndexForNodeType(nodeType, config) && areRangeIndexCompatibleOperands(constraint); } @@ -103,12 +104,12 @@ private static boolean areRangeIndexCompatibleOperands(IndexableConstraint const return false; } - public static boolean isIndexableForNode(short nodeType, BetaNodeFieldConstraint constraint, RuleBaseConfiguration config) { + public static boolean isIndexableForNode(short nodeType, BetaNodeFieldConstraint constraint, KieBaseConfiguration config) { if ( !(constraint instanceof IndexableConstraint) ) { return false; } - ConstraintType constraintType = ((IndexableConstraint)constraint).getConstraintType(); + ConstraintTypeOperator constraintType = ((IndexableConstraint)constraint).getConstraintType(); if (isBigDecimalEqualityConstraint((IndexableConstraint)constraint)) { return false; } @@ -117,10 +118,10 @@ public static boolean isIndexableForNode(short nodeType, BetaNodeFieldConstraint public static boolean isBigDecimalEqualityConstraint(IndexableConstraint indexableConstraint) { // Note : BigDecimal is not indexable for equality, because new BigDecimal("10").equals(new BigDecimal("10.00")) returns false - return indexableConstraint.getConstraintType() == ConstraintType.EQUAL && indexableConstraint.getFieldExtractor() != null && indexableConstraint.getFieldExtractor().getValueType() == ValueType.BIG_DECIMAL_TYPE; + return indexableConstraint.getConstraintType() == ConstraintTypeOperator.EQUAL && indexableConstraint.getFieldExtractor() != null && indexableConstraint.getFieldExtractor().getValueType() == ValueType.BIG_DECIMAL_TYPE; } - public static boolean[] isIndexableForNode(IndexPrecedenceOption indexPrecedenceOption, short nodeType, int keyDepth, BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration config) { + public static boolean[] isIndexableForNode(IndexPrecedenceOption indexPrecedenceOption, short nodeType, int keyDepth, BetaNodeFieldConstraint[] constraints, KieBaseConfiguration config) { if (keyDepth < 1) { return new boolean[constraints.length]; } @@ -130,7 +131,7 @@ public static boolean[] isIndexableForNode(IndexPrecedenceOption indexPrecedence findIndexableWithPatternOrder(nodeType, keyDepth, constraints, config); } - private static boolean[] findIndexableWithEqualityPriority(short nodeType, int keyDepth, BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration config) { + private static boolean[] findIndexableWithEqualityPriority(short nodeType, int keyDepth, BetaNodeFieldConstraint[] constraints, KieBaseConfiguration config) { boolean[] indexable = new boolean[constraints.length]; if (hasEqualIndexable(keyDepth, indexable, constraints)) { return indexable; @@ -150,7 +151,7 @@ private static boolean[] findIndexableWithEqualityPriority(short nodeType, int k return indexable; } - private static boolean[] findIndexableWithPatternOrder(short nodeType, int keyDepth, BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration config) { + private static boolean[] findIndexableWithPatternOrder(short nodeType, int keyDepth, BetaNodeFieldConstraint[] constraints, KieBaseConfiguration config) { boolean[] indexable = new boolean[constraints.length]; for (int i = 0; i < constraints.length; i++) { if (isIndexable(constraints[i], nodeType, config)) { @@ -190,8 +191,8 @@ private static void sortRangeIndexable(BetaNodeFieldConstraint[] constraints, bo indexable[0] = true; } - private static boolean isEqualIndexable(BetaNodeFieldConstraint constraint) { - return constraint instanceof IndexableConstraint && ((IndexableConstraint)constraint).getConstraintType() == ConstraintType.EQUAL; + public static boolean isEqualIndexable(BetaNodeFieldConstraint constraint) { + return constraint instanceof IndexableConstraint && ((IndexableConstraint)constraint).getConstraintType() == ConstraintTypeOperator.EQUAL && !isBigDecimalEqualityConstraint((IndexableConstraint)constraint); } private static void swap(BetaNodeFieldConstraint[] constraints, int p1, int p2) { @@ -202,126 +203,4 @@ private static void swap(BetaNodeFieldConstraint[] constraints, int p1, int p2) } } - public enum ConstraintType { - EQUAL(true, "=="), - NOT_EQUAL(false, "!="), - GREATER_THAN(true, ">"), - GREATER_OR_EQUAL(true, ">="), - LESS_THAN(true, "<"), - LESS_OR_EQUAL(true, "<="), - RANGE(true, null), - UNKNOWN(false, null); - - private final boolean indexable; - private final String operator; - - ConstraintType( boolean indexable, String operator ) { - this.indexable = indexable; - this.operator = operator; - } - - public boolean isComparison() { - return isAscending() || isDescending(); - } - - public boolean isEquality() { - return this == EQUAL || this == NOT_EQUAL; - } - - public boolean isAscending() { - return this == GREATER_THAN || this == GREATER_OR_EQUAL; - } - - public boolean isDescending() { - return this == LESS_THAN || this == LESS_OR_EQUAL; - } - - public boolean isIndexable() { - return indexable; - } - - /** - * May be null. - * @return the operator string representation if does exists, null otherwise. - */ - public String getOperator() { - return this.operator; - } - - public boolean isIndexableForNode(short nodeType, IndexableConstraint constraint, KieBaseConfiguration config) { - switch (this) { - case EQUAL: - return true; - case NOT_EQUAL: - case UNKNOWN: - return false; - default: - return canHaveRangeIndex(nodeType, constraint, config); - } - } - - public ConstraintType negate() { - switch (this) { - case EQUAL: - return NOT_EQUAL; - case NOT_EQUAL: - return EQUAL; - case GREATER_THAN: - return LESS_OR_EQUAL; - case GREATER_OR_EQUAL: - return LESS_THAN; - case LESS_OR_EQUAL: - return GREATER_THAN; - case LESS_THAN: - return GREATER_OR_EQUAL; - } - return UNKNOWN; - } - - public boolean canInverse() { - switch (this) { - case EQUAL: - case NOT_EQUAL: - case GREATER_THAN: - case GREATER_OR_EQUAL: - case LESS_THAN: - case LESS_OR_EQUAL: - return true; - default: - return false; - } - } - - public ConstraintType inverse() { - switch (this) { - case GREATER_THAN: - return LESS_THAN; - case GREATER_OR_EQUAL: - return LESS_OR_EQUAL; - case LESS_THAN: - return GREATER_THAN; - case LESS_OR_EQUAL: - return GREATER_OR_EQUAL; - default: - return this; - } - } - - public static ConstraintType decode(String operator) { - return decode( operator, false ); - } - - public static ConstraintType decode(String operator, boolean negated) { - for ( ConstraintType c : ConstraintType.values() ) { - if ( c.getOperator() != null && c.getOperator().equals(operator) ) { - return negated ? c.negate() : c; - } - } - return UNKNOWN; - } - - public static ConstraintType getType(Constraint constraint) { - return constraint instanceof IndexableConstraint ? ((IndexableConstraint)constraint).getConstraintType() : UNKNOWN; - } - } } diff --git a/drools-base/src/test/resources/logback-test.xml b/drools-base/src/test/resources/logback-test.xml new file mode 100644 index 00000000000..9444605a1e6 --- /dev/null +++ b/drools-base/src/test/resources/logback-test.xml @@ -0,0 +1,37 @@ + + + + + + + %date{HH:mm:ss.SSS} [%thread] %-5level %class{36}.%method:%line - %msg%n + + + + + + + + + + + diff --git a/drools-beliefs/pom.xml b/drools-beliefs/pom.xml index ae2811a6bc9..5465e504ddd 100644 --- a/drools-beliefs/pom.xml +++ b/drools-beliefs/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesAbsorption.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesAbsorption.java index fe4b4396ed8..009c97aa3b4 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesAbsorption.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesAbsorption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import java.util.Arrays; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesBeliefSystem.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesBeliefSystem.java index ae4d28b40f4..3c24a57e3ed 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesBeliefSystem.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesBeliefSystem.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.core.rule.consequence.InternalMatch; @@ -21,7 +24,7 @@ import org.drools.core.common.InternalFactHandle; import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.drools.core.common.TruthMaintenanceSystem; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.common.PropagationContext; import org.drools.tms.LogicalDependency; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesFact.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesFact.java index 8cc2291c3e9..a90dcef3527 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesFact.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesFact.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; public interface BayesFact { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesHardEvidence.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesHardEvidence.java index 3f60eecfb33..4b6d6f2816c 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesHardEvidence.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesHardEvidence.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import java.util.Arrays; @@ -21,7 +24,7 @@ import org.drools.tms.beliefsystem.ModedAssertion; import org.drools.tms.LogicalDependency; import org.drools.core.util.AbstractBaseLinkedListNode; -import org.drools.core.beliefsystem.Mode; +import org.drools.base.beliefsystem.Mode; public class BayesHardEvidence> extends AbstractBaseLinkedListNode implements ModedAssertion { private double[] distribution; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesInstance.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesInstance.java index 224ab3f197e..8a94f5efd0e 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesInstance.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesInstance.java @@ -1,34 +1,39 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; import org.drools.beliefs.graph.GraphNode; -import org.drools.util.BitMaskUtil; +import org.drools.util.bitmask.BitMaskUtil; import java.lang.annotation.Annotation; import java.lang.reflect.Constructor; import java.lang.reflect.Field; +import java.security.SecureRandom; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.Random; public class BayesInstance { + private static final SecureRandom randomGenerator = new SecureRandom(); + private Graph graph; private JunctionTree tree; private Map variables; @@ -441,7 +446,7 @@ public T marginalize() { } if ( maximalCounts > 1 ) { // have maximal conflict, so choose random one - int picked = new Random().nextInt( maximalCounts ); + int picked = randomGenerator.nextInt( maximalCounts ); int count = 0; for (int j = 0, length = varState.getDistribution().length;j < length; j++ ){ if ( varState.getDistribution()[j] == highestValue ) { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesInstanceManager.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesInstanceManager.java index d3443cbf817..73b27433e07 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesInstanceManager.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesInstanceManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.kie.api.KieBase; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesLikelyhood.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesLikelyhood.java index 158c7281813..565cc963ae0 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesLikelyhood.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesLikelyhood.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesModeFactory.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesModeFactory.java index e52e247986c..821d6eca763 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesModeFactory.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesModeFactory.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; -import org.drools.core.beliefsystem.Mode; +import org.drools.base.beliefsystem.Mode; public interface BayesModeFactory { T create(double[] distribution); diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesModeFactoryImpl.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesModeFactoryImpl.java index 901f6b0c08d..8d1376840a3 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesModeFactoryImpl.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesModeFactoryImpl.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; -import org.drools.core.beliefsystem.Mode; +import org.drools.base.beliefsystem.Mode; public class BayesModeFactoryImpl implements BayesModeFactory { private BayesBeliefSystem beliefSystem; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesNetwork.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesNetwork.java index 43c06980516..649bd5a450a 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesNetwork.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesNetwork.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.impl.GraphImpl; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesProjection.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesProjection.java index 890f737b0e9..7d10735bb43 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesProjection.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesProjection.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import java.util.Arrays; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariable.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariable.java index 6bf57c498c4..1da88162c54 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariable.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariable.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import java.util.Arrays; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariableConstructor.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariableConstructor.java index ff8abe344e0..037a4450c24 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariableConstructor.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariableConstructor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import java.lang.annotation.Retention; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariableState.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariableState.java index d0479e8469d..17b98c05cf0 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariableState.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/BayesVariableState.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; public class BayesVariableState { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/CliqueBitSet.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/CliqueBitSet.java index 6b49399e0bc..21f49223fb1 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/CliqueBitSet.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/CliqueBitSet.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; -import org.drools.core.util.bitmask.OpenBitSet; +import org.drools.util.bitmask.OpenBitSet; public class CliqueBitSet { - private org.drools.core.util.bitmask.OpenBitSet OpenBitSet; + private org.drools.util.bitmask.OpenBitSet OpenBitSet; private int weight; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/CliqueState.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/CliqueState.java index 526423e73de..1eb09f901b5 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/CliqueState.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/CliqueState.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; public class CliqueState { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/EliminationCandidate.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/EliminationCandidate.java index 20a37a864ec..4cc993f1fbc 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/EliminationCandidate.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/EliminationCandidate.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; import org.drools.beliefs.graph.GraphNode; -import org.drools.core.util.bitmask.OpenBitSet; +import org.drools.util.bitmask.OpenBitSet; public class EliminationCandidate implements Comparable { private Graph g; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/GlobalUpdateListener.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/GlobalUpdateListener.java index b258f226012..aad070150f9 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/GlobalUpdateListener.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/GlobalUpdateListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; public interface GlobalUpdateListener { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTree.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTree.java index 6e62ff754ad..ab871514c90 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTree.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTree.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeBuilder.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeBuilder.java index a1571cb766f..4879f54c8e9 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeBuilder.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeBuilder.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Edge; import org.drools.beliefs.graph.Graph; import org.drools.beliefs.graph.GraphNode; -import org.drools.core.util.bitmask.OpenBitSet; +import org.drools.util.bitmask.OpenBitSet; import org.kie.api.io.Resource; import java.util.ArrayList; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeClique.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeClique.java index 3b2acc3869f..8e3a8f0779e 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeClique.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeClique.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; -import org.drools.core.util.bitmask.OpenBitSet; +import org.drools.util.bitmask.OpenBitSet; import java.util.ArrayList; import java.util.Arrays; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeSeparator.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeSeparator.java index a7baf6f594d..0882580f24b 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeSeparator.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/JunctionTreeSeparator.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; -import org.drools.core.util.bitmask.OpenBitSet; +import org.drools.util.bitmask.OpenBitSet; import java.util.ArrayList; import java.util.Arrays; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/Marginalizer.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/Marginalizer.java index 4fd30053643..40fcb28f54a 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/Marginalizer.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/Marginalizer.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; public class Marginalizer { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/NonConflictingModeSet.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/NonConflictingModeSet.java index cf87ec4fb07..fdf17dc5377 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/NonConflictingModeSet.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/NonConflictingModeSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.tms.beliefsystem.BeliefSet; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PassMessageListener.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PassMessageListener.java index 321dd6a6011..de2aecfb043 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PassMessageListener.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PassMessageListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; public interface PassMessageListener { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PotentialMultiplier.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PotentialMultiplier.java index 41f533e0ef0..b943b609bbe 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PotentialMultiplier.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PotentialMultiplier.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import java.util.Arrays; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PropertyReference.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PropertyReference.java index 869f31717b9..5288c2bb0c8 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PropertyReference.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/PropertyReference.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import java.beans.IntrospectionException; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/SeparatorSet.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/SeparatorSet.java index dfe09b0aefd..80e0f30412c 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/SeparatorSet.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/SeparatorSet.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; import org.drools.beliefs.graph.GraphNode; -import org.drools.core.util.bitmask.OpenBitSet; +import org.drools.util.bitmask.OpenBitSet; public class SeparatorSet implements Comparable { private int id1; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/SeparatorState.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/SeparatorState.java index 6d9a82e2ede..27e98aba779 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/SeparatorState.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/SeparatorState.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; public class SeparatorState { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/VarName.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/VarName.java index 1c5cfbeb6e8..9d32de7611d 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/VarName.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/VarName.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import java.lang.annotation.Retention; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesAssemblerService.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesAssemblerService.java index b28caa9364e..0e16e49c9af 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesAssemblerService.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesAssemblerService.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.beliefs.bayes.assembler; import org.drools.beliefs.bayes.JunctionTree; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesNetworkAssemblerError.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesNetworkAssemblerError.java index 45a31865e22..5c442263d31 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesNetworkAssemblerError.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesNetworkAssemblerError.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.assembler; import org.drools.drl.parser.DroolsError; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesPackage.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesPackage.java index 33170606d3b..51fb469a86f 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesPackage.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/BayesPackage.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.assembler; import org.drools.beliefs.bayes.JunctionTree; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/JunctionTreeProcessor.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/JunctionTreeProcessor.java index dfd8d61bad7..75226e08966 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/JunctionTreeProcessor.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/assembler/JunctionTreeProcessor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.beliefs.bayes.assembler; import java.util.ArrayList; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Bif.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Bif.java index ebfca049f62..5ab67e620e6 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Bif.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Bif.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.model; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Definition.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Definition.java index 58145a9572f..d7daef7e559 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Definition.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Definition.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.model; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Network.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Network.java index 47870a3e21c..f96f15e48c9 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Network.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Network.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.model; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Probability.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Probability.java index 63999204cb6..37cb506b4d5 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Probability.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Probability.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.model; public class Probability { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Variable.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Variable.java index 0f005f4ea3e..c58d5ce039e 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Variable.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/Variable.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.model; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/VariableXml.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/VariableXml.java index 0f613f3c1f3..42877203621 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/VariableXml.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/VariableXml.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.model; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/XmlBifParser.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/XmlBifParser.java index 3a41d332a6b..4571c55ea40 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/XmlBifParser.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/model/XmlBifParser.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.model; import java.io.IOException; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntime.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntime.java index bccd3c31622..0c1b2e04a27 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntime.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntime.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.runtime; import org.drools.beliefs.bayes.BayesInstance; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntimeImpl.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntimeImpl.java index 2d3ef98549e..85b4d2544b7 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntimeImpl.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntimeImpl.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.beliefs.bayes.runtime; import org.drools.beliefs.bayes.BayesInstance; import org.drools.beliefs.bayes.JunctionTree; import org.drools.beliefs.bayes.assembler.BayesPackage; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.ResourceTypePackageRegistry; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.ResourceTypePackageRegistry; import org.kie.api.KieBase; import org.kie.api.io.ResourceType; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntimeService.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntimeService.java index fda3ff52eb5..7fb8c5a52b5 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntimeService.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/runtime/BayesRuntimeService.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.runtime; import org.kie.api.KieBase; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/weaver/BayesWeaverService.java b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/weaver/BayesWeaverService.java index bea6a6bc0a0..165b06f2d14 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/bayes/weaver/BayesWeaverService.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/bayes/weaver/BayesWeaverService.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.beliefs.bayes.weaver; import org.drools.beliefs.bayes.assembler.BayesPackage; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.kie.api.definition.KiePackage; import org.kie.api.internal.weaver.KieWeaverService; import org.kie.api.io.ResourceType; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/Direction.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/Direction.java index a898ed42264..089bb815994 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/Direction.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/Direction.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph; public enum Direction { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/Edge.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/Edge.java index 1e46a5c5126..e80b026cddc 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/Edge.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/Edge.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph; public interface Edge { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/Graph.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/Graph.java index f685300cafd..3db00718c08 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/Graph.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/Graph.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph; public interface Graph extends Iterable> { diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/GraphNode.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/GraphNode.java index a6a15553a6e..f3f67e2d1c6 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/GraphNode.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/GraphNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph; import java.util.List; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/EdgeImpl.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/EdgeImpl.java index 13d3b778bfe..e8034811a32 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/EdgeImpl.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/EdgeImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph.impl; import org.drools.beliefs.graph.Edge; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphImpl.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphImpl.java index 1125c3f786f..be4424f248a 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphImpl.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph.impl; import org.drools.beliefs.graph.Graph; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphNodeImpl.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphNodeImpl.java index 84ab6c68909..dedf2ecdba9 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphNodeImpl.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphNodeImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph.impl; import org.drools.beliefs.graph.Edge; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphStore.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphStore.java index 7a701c4986e..5316d9816d2 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphStore.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/GraphStore.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph.impl; import org.drools.beliefs.graph.GraphNode; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/ListGraphStore.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/ListGraphStore.java index d0d92e5e307..ee8ccb06a63 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/ListGraphStore.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/ListGraphStore.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph.impl; import org.drools.beliefs.graph.GraphNode; diff --git a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/MapGraphStore.java b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/MapGraphStore.java index 583e2a7c732..6a7e5a8782d 100644 --- a/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/MapGraphStore.java +++ b/drools-beliefs/src/main/java/org/drools/beliefs/graph/impl/MapGraphStore.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.graph.impl; import org.drools.beliefs.graph.GraphNode; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/BayesAbsorbtionTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/BayesAbsorbtionTest.java index 05a450fe41e..07c5a481ddf 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/BayesAbsorbtionTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/BayesAbsorbtionTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/BayesProjectionTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/BayesProjectionTest.java index 0abce5c1135..bb6aabcacea 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/BayesProjectionTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/BayesProjectionTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/GlobalUpdateTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/GlobalUpdateTest.java index 4b3f785ad68..3955b007eca 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/GlobalUpdateTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/GlobalUpdateTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/GraphTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/GraphTest.java index 5464763e3f9..640b78a32a7 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/GraphTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/GraphTest.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; import org.drools.beliefs.graph.GraphNode; import org.drools.beliefs.graph.impl.EdgeImpl; -import org.drools.core.util.bitmask.OpenBitSet; +import org.drools.util.bitmask.OpenBitSet; import java.util.ArrayList; import java.util.Collection; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/JunctionTreeBuilderTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/JunctionTreeBuilderTest.java index cee5d539ece..56fcb2675ac 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/JunctionTreeBuilderTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/JunctionTreeBuilderTest.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; import org.drools.beliefs.graph.GraphNode; -import org.drools.core.util.bitmask.OpenBitSet; +import org.drools.util.bitmask.OpenBitSet; import org.junit.Test; import java.util.ArrayList; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/JunctionTreeTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/JunctionTreeTest.java index 1f2c7aaa6fb..9787252a3e1 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/JunctionTreeTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/JunctionTreeTest.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import junit.framework.AssertionFailedError; import org.drools.beliefs.graph.Graph; import org.drools.beliefs.graph.GraphNode; -import org.drools.core.util.bitmask.OpenBitSet; +import org.drools.util.bitmask.OpenBitSet; import org.junit.Test; import java.math.BigDecimal; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/LikelyhoodTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/LikelyhoodTest.java index 37e1ff530b7..757703c93a6 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/LikelyhoodTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/LikelyhoodTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; public class LikelyhoodTest { diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/MarginalizerTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/MarginalizerTest.java index 267f25662b6..d22cbd91f34 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/MarginalizerTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/MarginalizerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/PassMessageTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/PassMessageTest.java index 2bef1f04473..73dfbb58943 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/PassMessageTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/PassMessageTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes; import org.drools.beliefs.graph.Graph; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/example/EarthQuakeTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/example/EarthQuakeTest.java index e27950014a8..2ada7aaf4e0 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/example/EarthQuakeTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/example/EarthQuakeTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.example; import org.drools.beliefs.bayes.BayesInstance; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/example/SprinkerTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/example/SprinkerTest.java index 6319db3fbdc..7d164305e08 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/example/SprinkerTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/example/SprinkerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.example; import org.drools.beliefs.bayes.BayesInstance; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/AssemblerTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/AssemblerTest.java index aed86944dd0..639433d3e8c 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/AssemblerTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/AssemblerTest.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.integration; import org.drools.beliefs.bayes.assembler.BayesPackage; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.junit.Test; import org.kie.api.io.ResourceType; import org.kie.internal.io.ResourceFactory; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/BayesBeliefSystemTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/BayesBeliefSystemTest.java index 81bf9bccf56..1736cef5411 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/BayesBeliefSystemTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/BayesBeliefSystemTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.integration; import org.drools.beliefs.bayes.BayesBeliefSystem; @@ -26,7 +29,7 @@ import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.drools.core.common.TruthMaintenanceSystemFactory; import org.drools.core.impl.RuleBaseFactory; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; @@ -34,7 +37,6 @@ import org.kie.api.io.ResourceType; import org.kie.api.runtime.KieSession; import org.kie.api.runtime.KieSessionConfiguration; -import org.kie.api.runtime.conf.BeliefSystemTypeOption; import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.builder.KnowledgeBuilder; import org.kie.internal.builder.KnowledgeBuilderFactory; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/BayesRuntimeTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/BayesRuntimeTest.java index 83f937ef4dc..18ade7b8550 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/BayesRuntimeTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/BayesRuntimeTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.integration; import org.drools.beliefs.bayes.BayesInstance; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/Garden.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/Garden.java index a44c1667cc1..c374c2edc45 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/Garden.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/Garden.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.integration; import org.drools.beliefs.bayes.BayesFact; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/ParserTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/ParserTest.java index ddac501b028..e8207f4dd7f 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/ParserTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/ParserTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.integration; import org.drools.beliefs.bayes.BayesNetwork; diff --git a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/WeaverTest.java b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/WeaverTest.java index 4bf5b53bba6..60daf82220b 100644 --- a/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/WeaverTest.java +++ b/drools-beliefs/src/test/java/org/drools/beliefs/bayes/integration/WeaverTest.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.beliefs.bayes.integration; import org.drools.beliefs.bayes.JunctionTree; import org.drools.beliefs.bayes.assembler.BayesPackage; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.ResourceTypePackageRegistry; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.ResourceTypePackageRegistry; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.junit.Test; diff --git a/drools-beliefs/src/test/resources/logback-test.xml b/drools-beliefs/src/test/resources/logback-test.xml index 3a968179687..a655a154a3f 100644 --- a/drools-beliefs/src/test/resources/logback-test.xml +++ b/drools-beliefs/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-commands/pom.xml b/drools-commands/pom.xml index c495078b013..ec180aca458 100644 --- a/drools-commands/pom.xml +++ b/drools-commands/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-commands/src/main/java/org/drools/commands/AbstractNewKieContainerCommand.java b/drools-commands/src/main/java/org/drools/commands/AbstractNewKieContainerCommand.java index 6728e57de6f..0000fdbb2b2 100644 --- a/drools-commands/src/main/java/org/drools/commands/AbstractNewKieContainerCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/AbstractNewKieContainerCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import org.kie.api.KieServices; diff --git a/drools-commands/src/main/java/org/drools/commands/ChainableRunner.java b/drools-commands/src/main/java/org/drools/commands/ChainableRunner.java index 444125efe3d..1f9faa42045 100644 --- a/drools-commands/src/main/java/org/drools/commands/ChainableRunner.java +++ b/drools-commands/src/main/java/org/drools/commands/ChainableRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import org.kie.api.runtime.ExecutableRunner; diff --git a/drools-commands/src/main/java/org/drools/commands/ConversationContextManager.java b/drools-commands/src/main/java/org/drools/commands/ConversationContextManager.java index 37eafe41782..c865af22820 100644 --- a/drools-commands/src/main/java/org/drools/commands/ConversationContextManager.java +++ b/drools-commands/src/main/java/org/drools/commands/ConversationContextManager.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.commands; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/EndConversationCommand.java b/drools-commands/src/main/java/org/drools/commands/EndConversationCommand.java index 924d6cd659b..eaa8094abdd 100644 --- a/drools-commands/src/main/java/org/drools/commands/EndConversationCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/EndConversationCommand.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.commands; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/EntryPointCreator.java b/drools-commands/src/main/java/org/drools/commands/EntryPointCreator.java index 6f75fe32564..c97ada6114c 100644 --- a/drools-commands/src/main/java/org/drools/commands/EntryPointCreator.java +++ b/drools-commands/src/main/java/org/drools/commands/EntryPointCreator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.commands; import org.kie.api.runtime.rule.EntryPoint; diff --git a/drools-commands/src/main/java/org/drools/commands/ExecuteCommand.java b/drools-commands/src/main/java/org/drools/commands/ExecuteCommand.java index 99ca49968ff..1263872a3a1 100644 --- a/drools-commands/src/main/java/org/drools/commands/ExecuteCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/ExecuteCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/FinishedCommand.java b/drools-commands/src/main/java/org/drools/commands/FinishedCommand.java index 740c665e75f..f48f0b2b015 100644 --- a/drools-commands/src/main/java/org/drools/commands/FinishedCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/FinishedCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/GetKieContainerCommand.java b/drools-commands/src/main/java/org/drools/commands/GetKieContainerCommand.java index 85cd37d93c0..0013fb59bb5 100644 --- a/drools-commands/src/main/java/org/drools/commands/GetKieContainerCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/GetKieContainerCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import org.kie.api.KieServices; diff --git a/drools-commands/src/main/java/org/drools/commands/GetSessionClockCommand.java b/drools-commands/src/main/java/org/drools/commands/GetSessionClockCommand.java index 64f729fa3fd..3baa18cb6f5 100644 --- a/drools-commands/src/main/java/org/drools/commands/GetSessionClockCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/GetSessionClockCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java b/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java index 281582bfd3b..5fc6fea50ef 100644 --- a/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/GetVariableCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/IdentifiableResult.java b/drools-commands/src/main/java/org/drools/commands/IdentifiableResult.java index e329026ff17..1bc16e27ec6 100644 --- a/drools-commands/src/main/java/org/drools/commands/IdentifiableResult.java +++ b/drools-commands/src/main/java/org/drools/commands/IdentifiableResult.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.commands; diff --git a/drools-commands/src/main/java/org/drools/commands/InternalLocalRunner.java b/drools-commands/src/main/java/org/drools/commands/InternalLocalRunner.java index b6a4ca817f1..62f377584e3 100644 --- a/drools-commands/src/main/java/org/drools/commands/InternalLocalRunner.java +++ b/drools-commands/src/main/java/org/drools/commands/InternalLocalRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import java.util.List; diff --git a/drools-commands/src/main/java/org/drools/commands/JoinConversationCommand.java b/drools-commands/src/main/java/org/drools/commands/JoinConversationCommand.java index 9858efeacc2..5858067e617 100644 --- a/drools-commands/src/main/java/org/drools/commands/JoinConversationCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/JoinConversationCommand.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.commands; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/NewKieSessionCommand.java b/drools-commands/src/main/java/org/drools/commands/NewKieSessionCommand.java index aa343cad525..dbddb8fac3b 100644 --- a/drools-commands/src/main/java/org/drools/commands/NewKieSessionCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/NewKieSessionCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import java.util.function.BiFunction; diff --git a/drools-commands/src/main/java/org/drools/commands/NewKnowledgeBuilderConfigurationCommand.java b/drools-commands/src/main/java/org/drools/commands/NewKnowledgeBuilderConfigurationCommand.java index a585cb56578..1c8db609b9e 100644 --- a/drools-commands/src/main/java/org/drools/commands/NewKnowledgeBuilderConfigurationCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/NewKnowledgeBuilderConfigurationCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/OutCommand.java b/drools-commands/src/main/java/org/drools/commands/OutCommand.java index 61b954c24a9..b936a10827a 100644 --- a/drools-commands/src/main/java/org/drools/commands/OutCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/OutCommand.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.commands; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/RequestContextImpl.java b/drools-commands/src/main/java/org/drools/commands/RequestContextImpl.java index 84ff5808abb..4e888485ddb 100644 --- a/drools-commands/src/main/java/org/drools/commands/RequestContextImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/RequestContextImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import java.util.Collections; diff --git a/drools-commands/src/main/java/org/drools/commands/SetActiveAgendaGroup.java b/drools-commands/src/main/java/org/drools/commands/SetActiveAgendaGroup.java index ac047f40c2a..a4d33e53024 100644 --- a/drools-commands/src/main/java/org/drools/commands/SetActiveAgendaGroup.java +++ b/drools-commands/src/main/java/org/drools/commands/SetActiveAgendaGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import java.util.Objects; diff --git a/drools-commands/src/main/java/org/drools/commands/SetKieContainerCommand.java b/drools-commands/src/main/java/org/drools/commands/SetKieContainerCommand.java index 527f429314d..c3fbe41b18b 100644 --- a/drools-commands/src/main/java/org/drools/commands/SetKieContainerCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/SetKieContainerCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/SetVariableCommandFromCommand.java b/drools-commands/src/main/java/org/drools/commands/SetVariableCommandFromCommand.java index 3671256c7a5..46517e61a2b 100644 --- a/drools-commands/src/main/java/org/drools/commands/SetVariableCommandFromCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/SetVariableCommandFromCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; import org.drools.commands.impl.ContextManagerImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/SingleSessionCommandService.java b/drools-commands/src/main/java/org/drools/commands/SingleSessionCommandService.java index a57f4a002bd..ed1d032372c 100644 --- a/drools-commands/src/main/java/org/drools/commands/SingleSessionCommandService.java +++ b/drools-commands/src/main/java/org/drools/commands/SingleSessionCommandService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands; diff --git a/drools-commands/src/main/java/org/drools/commands/StartConversationCommand.java b/drools-commands/src/main/java/org/drools/commands/StartConversationCommand.java index 1b71f49fbb8..84c573c17fa 100644 --- a/drools-commands/src/main/java/org/drools/commands/StartConversationCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/StartConversationCommand.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.commands; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/BaseBatchFluent.java b/drools-commands/src/main/java/org/drools/commands/fluent/BaseBatchFluent.java index cc420cf064a..ce44792af22 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/BaseBatchFluent.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/BaseBatchFluent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import org.drools.commands.EndConversationCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/BaseBatchWithProcessFluent.java b/drools-commands/src/main/java/org/drools/commands/fluent/BaseBatchWithProcessFluent.java index 971b749d688..20430b8a2e8 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/BaseBatchWithProcessFluent.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/BaseBatchWithProcessFluent.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.commands.fluent; import java.util.Map; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/Batch.java b/drools-commands/src/main/java/org/drools/commands/fluent/Batch.java index 0dc24e1749b..b0e7cde1d9b 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/Batch.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/Batch.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import java.util.List; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/BatchImpl.java b/drools-commands/src/main/java/org/drools/commands/fluent/BatchImpl.java index 907517391c4..d1de6ae9a4b 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/BatchImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/BatchImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/CommandRegister.java b/drools-commands/src/main/java/org/drools/commands/fluent/CommandRegister.java index 0acf3b81571..e8b9cb86699 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/CommandRegister.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/CommandRegister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/ExecutableBuilderImpl.java b/drools-commands/src/main/java/org/drools/commands/fluent/ExecutableBuilderImpl.java index cb4edd784fb..424d93d3e86 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/ExecutableBuilderImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/ExecutableBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import org.drools.commands.GetKieContainerCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/ExecutableImpl.java b/drools-commands/src/main/java/org/drools/commands/fluent/ExecutableImpl.java index 7f3575c63a3..cf0e07bc3f8 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/ExecutableImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/ExecutableImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/FluentComponentFactory.java b/drools-commands/src/main/java/org/drools/commands/fluent/FluentComponentFactory.java index 07093fe5080..4c88c0c709b 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/FluentComponentFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/FluentComponentFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/GetCommand.java b/drools-commands/src/main/java/org/drools/commands/fluent/GetCommand.java index a710ca4dc55..04c4bc7425e 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/GetCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/GetCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import org.drools.commands.RequestContextImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/GetContextCommand.java b/drools-commands/src/main/java/org/drools/commands/fluent/GetContextCommand.java index 43de7eb2a7f..d5dfcf9799b 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/GetContextCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/GetContextCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import org.drools.commands.RequestContextImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/InternalExecutable.java b/drools-commands/src/main/java/org/drools/commands/fluent/InternalExecutable.java index 6281ab3fd35..0d24d86f2b1 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/InternalExecutable.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/InternalExecutable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import java.util.List; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/KieContainerFluentImpl.java b/drools-commands/src/main/java/org/drools/commands/fluent/KieContainerFluentImpl.java index 3c708628b25..f95fae21154 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/KieContainerFluentImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/KieContainerFluentImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import java.util.function.BiFunction; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/KieSessionFluentImpl.java b/drools-commands/src/main/java/org/drools/commands/fluent/KieSessionFluentImpl.java index 7dfcd980bb2..f3e1ca4a87b 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/KieSessionFluentImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/KieSessionFluentImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import org.drools.commands.SetActiveAgendaGroup; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/NewContextCommand.java b/drools-commands/src/main/java/org/drools/commands/fluent/NewContextCommand.java index ab51359485b..0512b3d674d 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/NewContextCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/NewContextCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import org.drools.commands.RequestContextImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/PseudoClockRunner.java b/drools-commands/src/main/java/org/drools/commands/fluent/PseudoClockRunner.java index fc944588e03..4d841704925 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/PseudoClockRunner.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/PseudoClockRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import java.util.Comparator; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/SetCommand.java b/drools-commands/src/main/java/org/drools/commands/fluent/SetCommand.java index 369a0e7e4ef..59458eccc9c 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/SetCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/SetCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import org.drools.commands.RequestContextImpl; diff --git a/drools-commands/src/main/java/org/drools/commands/fluent/SetVarAsRegistryEntry.java b/drools-commands/src/main/java/org/drools/commands/fluent/SetVarAsRegistryEntry.java index def08a463e9..168da9859b0 100644 --- a/drools-commands/src/main/java/org/drools/commands/fluent/SetVarAsRegistryEntry.java +++ b/drools-commands/src/main/java/org/drools/commands/fluent/SetVarAsRegistryEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.fluent; import java.util.Map; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/AbstractInterceptor.java b/drools-commands/src/main/java/org/drools/commands/impl/AbstractInterceptor.java index dac88c6c5ec..c386ee8a319 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/AbstractInterceptor.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/AbstractInterceptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.impl; import org.drools.commands.ChainableRunner; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/AsynchronousInterceptor.java b/drools-commands/src/main/java/org/drools/commands/impl/AsynchronousInterceptor.java index ee8bd6fddd9..af0d4f03fab 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/AsynchronousInterceptor.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/AsynchronousInterceptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.impl; import org.kie.api.runtime.Executable; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/CommandBasedEntryPoint.java b/drools-commands/src/main/java/org/drools/commands/impl/CommandBasedEntryPoint.java index 9fd6192ed1b..43e29c1f80a 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/CommandBasedEntryPoint.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/CommandBasedEntryPoint.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.commands.impl; import org.kie.api.runtime.ExecutableRunner; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/CommandBasedStatefulKnowledgeSessionImpl.java b/drools-commands/src/main/java/org/drools/commands/impl/CommandBasedStatefulKnowledgeSessionImpl.java index b75d8769592..66521acc61f 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/CommandBasedStatefulKnowledgeSessionImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/CommandBasedStatefulKnowledgeSessionImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.impl; import java.util.Collection; @@ -77,7 +79,7 @@ import org.drools.core.impl.AbstractRuntime; import org.drools.core.process.WorkItem; import org.drools.core.process.WorkItemManager; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.kie.api.KieBase; import org.kie.api.command.Command; import org.kie.api.event.process.ProcessEventListener; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/CommandFactoryServiceImpl.java b/drools-commands/src/main/java/org/drools/commands/impl/CommandFactoryServiceImpl.java index 3244e708a17..0c747b73545 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/CommandFactoryServiceImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/CommandFactoryServiceImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.impl; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/ContextImpl.java b/drools-commands/src/main/java/org/drools/commands/impl/ContextImpl.java index f92c767eb73..74fb8710f95 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/ContextImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/ContextImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.impl; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/ContextImplWithEviction.java b/drools-commands/src/main/java/org/drools/commands/impl/ContextImplWithEviction.java index 8efd91e575c..5217322707b 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/ContextImplWithEviction.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/ContextImplWithEviction.java @@ -1,20 +1,21 @@ -/* - * Copyright 2010 salaboy. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.impl; import java.util.Map; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/ContextManagerImpl.java b/drools-commands/src/main/java/org/drools/commands/impl/ContextManagerImpl.java index f804df0762f..9f9e538a853 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/ContextManagerImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/ContextManagerImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.impl; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/ExecutableCommand.java b/drools-commands/src/main/java/org/drools/commands/impl/ExecutableCommand.java index 2440fbc1e23..7caa2357365 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/ExecutableCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/ExecutableCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.commands.impl; /** diff --git a/drools-commands/src/main/java/org/drools/commands/impl/FireAllRulesInterceptor.java b/drools-commands/src/main/java/org/drools/commands/impl/FireAllRulesInterceptor.java index e22fe8f60fa..644370f2f92 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/FireAllRulesInterceptor.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/FireAllRulesInterceptor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.commands.impl; import org.drools.commands.fluent.Batch; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/FluentCommandFactoryServiceImpl.java b/drools-commands/src/main/java/org/drools/commands/impl/FluentCommandFactoryServiceImpl.java index d1088cb4995..1820d1ab645 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/FluentCommandFactoryServiceImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/FluentCommandFactoryServiceImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.commands.impl; import org.kie.api.command.Command; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/LoggingInterceptor.java b/drools-commands/src/main/java/org/drools/commands/impl/LoggingInterceptor.java index d7b3f9d84c7..cb375163c01 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/LoggingInterceptor.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/LoggingInterceptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.impl; import org.kie.api.runtime.Executable; diff --git a/drools-commands/src/main/java/org/drools/commands/impl/NotTransactionalCommand.java b/drools-commands/src/main/java/org/drools/commands/impl/NotTransactionalCommand.java index 77671681ad2..e13e5076766 100644 --- a/drools-commands/src/main/java/org/drools/commands/impl/NotTransactionalCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/impl/NotTransactionalCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.impl; public interface NotTransactionalCommand extends org.kie.api.command.ExecutableCommand { diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java index 90fbda1b37f..2ef2899704a 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListAdapter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.jaxb; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java index 92d5dd68112..3731c9cedf2 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbListWrapper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.commands.jaxb; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java index 544431b3509..0086b7b657a 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbMapAdapter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.jaxb; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java index 292a2dfd925..4eed12a05b1 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbObjectObjectPair.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.jaxb; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java index 97c1d42a5e9..cdbd1691683 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbStringObjectPair.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.jaxb; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java index 79b902ab82c..176f5a6e0f5 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/JaxbUnknownAdapter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.commands.jaxb; import java.lang.reflect.Array; diff --git a/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java index b76eb0770fe..6406f23fe13 100644 --- a/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/jaxb/ObjectFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.jaxb; import javax.xml.bind.annotation.XmlRegistry; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/AddEventListenerCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/AddEventListenerCommand.java index 47c443b87fc..372aff38a54 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/AddEventListenerCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/AddEventListenerCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java index c757b616b89..38df33a7f85 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/AdvanceSessionTimeCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import java.util.concurrent.TimeUnit; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java b/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java index d40c2188773..4970214a046 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/BatchExecutionCommandImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.commands.runtime; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/DestroySessionCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/DestroySessionCommand.java index 11cd0d07d1f..88234c874de 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/DestroySessionCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/DestroySessionCommand.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.commands.runtime; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java index b8e8c073656..be75a9796ad 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/DisposeCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java index 0a0b17d9fab..7bd405dc160 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import java.io.Serializable; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java index d0295f1f1cf..0056413ec4b 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/ExecutionResultsMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import java.util.Collection; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java b/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java index 6440f4a8850..d853414697d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/FlatQueryResults.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import java.util.ArrayList; @@ -38,7 +40,7 @@ import org.drools.core.QueryResultsRowImpl; import org.drools.core.common.DisconnectedFactHandle; import org.drools.core.common.InternalFactHandle; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.drools.core.runtime.rule.impl.FlatQueryResultRow; import org.kie.api.runtime.rule.FactHandle; import org.kie.api.runtime.rule.QueryResults; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetCalendarsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetCalendarsCommand.java index 426d107b7d1..fbcd096da1b 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetCalendarsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetCalendarsCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetChannelsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetChannelsCommand.java index 7dc49646626..e31f4fa1ce5 100755 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetChannelsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetChannelsCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetEnvironmentCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetEnvironmentCommand.java index 62512c282dc..37b12db6568 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetEnvironmentCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetEnvironmentCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.drools.commands.impl.NotTransactionalCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java index 71053ae9aa6..cab731bc8f4 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountInEntryPointCommand.java index cb140e2b0c4..700ef63e414 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetFactCountInEntryPointCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java index cba80658f74..27b4865b694 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalsCommand.java index d4cc80e57f2..70d729954bf 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetGlobalsCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java index 5ac74b60bff..983a6bcfce0 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetIdCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetKieBaseCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetKieBaseCommand.java index a3aa9415cef..54f6d2733ed 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetKieBaseCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetKieBaseCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.KieBase; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java index fd4f9744a89..032e7b4eb97 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/GetSessionTimeCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/KBuilderSetPropertyCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/KBuilderSetPropertyCommand.java index 0af2e2446ae..28ecc6e6845 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/KBuilderSetPropertyCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/KBuilderSetPropertyCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java index 39592aabb1a..458b82e1644 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/ObjectFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import javax.xml.bind.annotation.XmlRegistry; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java b/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java index d0ef1d951c9..b89d48c644f 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/QueryResultsJaxbAdapter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import javax.xml.bind.annotation.adapters.XmlAdapter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/RegisterChannelCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/RegisterChannelCommand.java index d7c7a50d405..42471e64d5b 100755 --- a/drools-commands/src/main/java/org/drools/commands/runtime/RegisterChannelCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/RegisterChannelCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/RemoveEventListenerCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/RemoveEventListenerCommand.java index 163ee3134c8..24f0c3524a5 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/RemoveEventListenerCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/RemoveEventListenerCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java index 08e5d4a98c6..986a3920854 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/SetGlobalCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/UnregisterChannelCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/UnregisterChannelCommand.java index 5a2ac657e6e..025b96dde56 100755 --- a/drools-commands/src/main/java/org/drools/commands/runtime/UnregisterChannelCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/UnregisterChannelCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java index 1e91f79151b..45487d20b14 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/pmml/ApplyPmmlModelCommand.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.commands.runtime.pmml; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/pmml/PmmlConstants.java b/drools-commands/src/main/java/org/drools/commands/runtime/pmml/PmmlConstants.java index 0a842aeed6a..08f5a0ea537 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/pmml/PmmlConstants.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/pmml/PmmlConstants.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.commands.runtime.pmml; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java index 6b40c5f256e..b198432940f 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortProcessInstanceCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java index 5b4bcfa3d8f..8a1acc9175f 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/AbortWorkItemCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java index 833fb1bb0ed..5f063d2cc9d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/CompleteWorkItemCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java index c71fb3bf366..28df02f2bd3 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateCorrelatedProcessInstanceCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java index 6757e315f7e..4b6249c07d9 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/CreateProcessInstanceCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java index 47f0b5ea64d..718504c30e1 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessEventListenersCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.Collection; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java index 893fec0e559..f3b25ddfe74 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessIdsCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java index f04f897b551..57e4771a89a 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceByCorrelationKeyCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java index 5884fb86a5b..04359a21741 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstanceCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java index ea9550c78fb..81eea329090 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetProcessInstancesCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java index 2aef697a603..cdebb4536e1 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java index 08d5b3dc8cd..52d3faf9f5e 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/GetWorkItemIdsCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java index 930a531761b..3e562063057 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/ObjectFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java index aaf8c067f71..f1092a1f369 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/ReTryWorkItemCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java index c82fbefe244..efa4b6c9b91 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/RegisterWorkItemHandlerCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java index 7e56dd5259b..853bdf56262 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/SetProcessInstanceVariablesCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java index 3da07dc90d3..927298a7c29 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/SignalEventCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java index 105e02086be..f96051e049b 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartCorrelatedProcessCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java index c4c40115ee1..7d60ff3ab80 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.HashMap; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java index 76fb6823511..69cd161651b 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessFromNodeIdsCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import java.util.List; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java index 447c57795b9..5a7239447de 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/process/StartProcessInstanceCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.process; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java index d511668f891..cc8d5328e9d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/AgendaGroupSetFocusCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java index 7c034b26a1a..0a3ac217400 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearActivationGroupCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java index 0f09bf1434a..7fa3ec07208 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java index 86b7f492c0d..59ff66b1454 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearAgendaGroupCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java index 70dec44eb70..75aa16956df 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ClearRuleFlowGroupCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java index 7523dcf5171..e7b813a9916 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java index a19f4abb70f..dbdb2275b53 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteFromEntryPointCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java index 63ebc428b52..6e2d286e426 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/DeleteObjectCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java index 1c1918de851..812fc30baf1 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/EnableAuditLogCommand.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java index 9fcd43364fa..4d41b24de69 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireAllRulesCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java index ba9c3be15a4..bc4545d39b3 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FireUntilHaltCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FromExternalFactHandleCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FromExternalFactHandleCommand.java index 424d26ff3fe..ef9a63355e2 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/FromExternalFactHandleCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/FromExternalFactHandleCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.commands.runtime.rule; import java.util.Collection; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java index 64c41a7e9f2..d138313dcbf 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetAgendaEventListenersCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.Collection; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java index 81e14c3bacf..55b5fa7ecb9 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAttribute; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java index 7351059accd..d0667678ea9 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetEntryPointsCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java index 279c6266714..4e3f871dc92 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAttribute; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java index 7ac7c370637..419e108ba31 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandleInEntryPointCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAttribute; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java index cf6b2e55768..8507d5836e0 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesInEntryPointCommand.java index 66fd5778f44..981bd43a6c3 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetFactHandlesInEntryPointCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java index 9bd16c9616a..0c42b317686 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java index c48f435a01c..bcead60ab85 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectInEntryPointCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java index 282b1dbb745..5f0df58eaec 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java index 81de706c881..fdd9184caf1 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetObjectsInEntryPointCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetRuleRuntimeEventListenersCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetRuleRuntimeEventListenersCommand.java index 4f44765641e..e5cb716da19 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetRuleRuntimeEventListenersCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/GetRuleRuntimeEventListenersCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.commands.runtime.rule; import java.util.Collection; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/HaltCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/HaltCommand.java index 2c6aff92a03..2c1d68c40bc 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/HaltCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/HaltCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import org.kie.api.command.ExecutableCommand; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java index db23b368272..d310d5b7701 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertElementsCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.ArrayList; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java index c23a0d5cfec..f6712f538df 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java index 461a05f632a..682f17534a1 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/InsertObjectInEntryPointCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java index e86c3577562..19eb642aed2 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ModifyCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.ArrayList; @@ -24,7 +26,7 @@ import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; -import org.drools.core.base.CoreComponentsBuilder; +import org.drools.base.base.CoreComponentsBuilder; import org.drools.core.common.DisconnectedFactHandle; import org.kie.api.command.ExecutableCommand; import org.kie.api.command.Setter; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java index 44a4e47881a..43dc943295d 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/ObjectFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import javax.xml.bind.annotation.XmlRegistry; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java index fed6d919b9f..f1393f83aa2 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/QueryCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.Arrays; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java index c427ffc2702..59e46cce81e 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.Arrays; diff --git a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java index 19c566794f9..752e90bb275 100644 --- a/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java +++ b/drools-commands/src/main/java/org/drools/commands/runtime/rule/UpdateInEntryPointCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.commands.runtime.rule; import java.util.Arrays; diff --git a/drools-commands/src/test/java/org/drools/commands/DeleteCommandTest.java b/drools-commands/src/test/java/org/drools/commands/DeleteCommandTest.java index c63ae538935..18b43f716ab 100644 --- a/drools-commands/src/test/java/org/drools/commands/DeleteCommandTest.java +++ b/drools-commands/src/test/java/org/drools/commands/DeleteCommandTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.commands; import org.drools.commands.runtime.rule.DeleteCommand; diff --git a/drools-commands/src/test/java/org/drools/commands/ExecuteCommandDisconnectedTest.java b/drools-commands/src/test/java/org/drools/commands/ExecuteCommandDisconnectedTest.java index 62a53de81e7..7e7c6084e5c 100644 --- a/drools-commands/src/test/java/org/drools/commands/ExecuteCommandDisconnectedTest.java +++ b/drools-commands/src/test/java/org/drools/commands/ExecuteCommandDisconnectedTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.commands; diff --git a/drools-commands/src/test/java/org/drools/commands/FromExternalFactHandleCommandTest.java b/drools-commands/src/test/java/org/drools/commands/FromExternalFactHandleCommandTest.java index a0cd3da31d9..0960ea2c6b2 100644 --- a/drools-commands/src/test/java/org/drools/commands/FromExternalFactHandleCommandTest.java +++ b/drools-commands/src/test/java/org/drools/commands/FromExternalFactHandleCommandTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.commands; import org.drools.commands.runtime.rule.FromExternalFactHandleCommand; diff --git a/drools-commands/src/test/java/org/drools/commands/GetFactHandlesCommandTest.java b/drools-commands/src/test/java/org/drools/commands/GetFactHandlesCommandTest.java index dccdd4c438c..47b921efbf3 100644 --- a/drools-commands/src/test/java/org/drools/commands/GetFactHandlesCommandTest.java +++ b/drools-commands/src/test/java/org/drools/commands/GetFactHandlesCommandTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.commands; import java.util.Collection; diff --git a/drools-commands/src/test/java/org/drools/commands/InternalExecutableTest.java b/drools-commands/src/test/java/org/drools/commands/InternalExecutableTest.java index 40abd4d0548..22a0ad616c9 100644 --- a/drools-commands/src/test/java/org/drools/commands/InternalExecutableTest.java +++ b/drools-commands/src/test/java/org/drools/commands/InternalExecutableTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.commands; import java.util.Arrays; diff --git a/drools-compiler/pom.xml b/drools-compiler/pom.xml index 93813a62531..5e08c4dbc88 100644 --- a/drools-compiler/pom.xml +++ b/drools-compiler/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -35,6 +55,10 @@ org.drools drools-wiring-api + + org.drools + drools-base + org.drools drools-core diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/AbstractAssemblerService.java b/drools-compiler/src/main/java/org/drools/compiler/builder/AbstractAssemblerService.java index 34bf51ddb16..f30888cbf2d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/AbstractAssemblerService.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/AbstractAssemblerService.java @@ -1,20 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder; import java.util.Collection; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/AbstractResourceProcessor.java b/drools-compiler/src/main/java/org/drools/compiler/builder/AbstractResourceProcessor.java index aefbfbf759d..009438aa3e1 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/AbstractResourceProcessor.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/AbstractResourceProcessor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/DroolsAssemblerContext.java b/drools-compiler/src/main/java/org/drools/compiler/builder/DroolsAssemblerContext.java index 355bd0541df..5d128f9ea91 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/DroolsAssemblerContext.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/DroolsAssemblerContext.java @@ -1,20 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder; import java.lang.reflect.Type; @@ -27,8 +28,8 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.rule.builder.PackageBuildContext; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.PackageDescr; import org.kie.internal.builder.KnowledgeBuilderErrors; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/InternalKnowledgeBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/builder/InternalKnowledgeBuilder.java index d261bf4455b..ede2753a3bc 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/InternalKnowledgeBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/InternalKnowledgeBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder; import java.lang.reflect.Type; @@ -28,9 +32,9 @@ import org.drools.compiler.compiler.PackageBuilderErrors; import org.drools.compiler.compiler.PackageBuilderResults; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.base.ObjectType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.base.ObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.PackageDescr; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.kie.api.KieBase; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/PackageRegistryManager.java b/drools-compiler/src/main/java/org/drools/compiler/builder/PackageRegistryManager.java index 603fc3018f4..b1cdfe0b17d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/PackageRegistryManager.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/PackageRegistryManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder; import org.drools.compiler.compiler.PackageRegistry; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/ResourceProcessor.java b/drools-compiler/src/main/java/org/drools/compiler/builder/ResourceProcessor.java index 5afd5d5b0e7..d951fc08d63 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/ResourceProcessor.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/ResourceProcessor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder; import java.util.Collection; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/conf/DecisionTableConfigurationImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/conf/DecisionTableConfigurationImpl.java index f68ce81048d..2404648188d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/conf/DecisionTableConfigurationImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/conf/DecisionTableConfigurationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.conf; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/conf/JaxbConfigurationImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/conf/JaxbConfigurationImpl.java index 52b0b6c416a..16800f1bddd 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/conf/JaxbConfigurationImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/conf/JaxbConfigurationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.conf; import java.io.ByteArrayInputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/AssetFilter.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/AssetFilter.java index e3f32578b45..80155d82e50 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/AssetFilter.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/AssetFilter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import org.kie.internal.builder.ResourceChange; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuildResultCollector.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuildResultCollector.java index 8208c73e6a5..f3ea9df9198 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuildResultCollector.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuildResultCollector.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; import org.kie.internal.builder.KnowledgeBuilderResult; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuildResultCollectorImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuildResultCollectorImpl.java index 47e850550ea..d408eff0e38 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuildResultCollectorImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuildResultCollectorImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import org.drools.compiler.compiler.ConfigurableSeverityResult; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuilderConfigurationProvider.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuilderConfigurationProvider.java index 2a31de416d6..43611db1d92 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuilderConfigurationProvider.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/BuilderConfigurationProvider.java @@ -1,16 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ package org.drools.compiler.builder.impl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ClassDefinitionFactory.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ClassDefinitionFactory.java index 5b4f55f41fa..8f2b7d62a56 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ClassDefinitionFactory.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ClassDefinitionFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import java.io.Externalizable; @@ -42,19 +45,19 @@ import org.drools.drl.ast.descr.TypeFieldDescr; import org.drools.compiler.rule.builder.util.AnnotationFactory; import org.drools.util.TypeResolver; -import org.drools.core.base.ClassFieldInspector; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.factmodel.AnnotationDefinition; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.base.ClassFieldInspector; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.factmodel.AnnotationDefinition; +import org.drools.base.factmodel.ClassDefinition; import org.drools.compiler.builder.impl.classbuilder.EnumClassDefinition; import org.drools.compiler.builder.impl.classbuilder.EnumLiteralDefinition; -import org.drools.core.factmodel.FieldDefinition; +import org.drools.base.factmodel.FieldDefinition; import org.kie.internal.definition.GenericTypeDefinition; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.TypeDeclaration; import org.drools.util.ClassUtils; import org.kie.api.definition.type.Key; import org.kie.api.definition.type.Position; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ClassHierarchyManager.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ClassHierarchyManager.java index 5d9219cc1b9..f3e8ecba24d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ClassHierarchyManager.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ClassHierarchyManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import java.io.IOException; @@ -27,13 +30,13 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.compiler.TypeDeclarationError; import org.drools.util.TypeResolver; -import org.drools.core.base.ClassFieldInspector; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.Alias; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.base.ClassFieldInspector; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.Alias; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr; import org.drools.drl.ast.descr.AnnotationDescr; import org.drools.drl.ast.descr.PatternDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/CompositeBuilderConfiguration.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/CompositeBuilderConfiguration.java index f16ec25f7a7..bd554eb712e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/CompositeBuilderConfiguration.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/CompositeBuilderConfiguration.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/CompositeKnowledgeBuilderImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/CompositeKnowledgeBuilderImpl.java index 54c03321dfa..1d0f2bbacb2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/CompositeKnowledgeBuilderImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/CompositeKnowledgeBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import org.drools.compiler.lang.descr.CompositePackageDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DeclaredClassBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DeclaredClassBuilder.java index e811872242a..602b09e9cf7 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DeclaredClassBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DeclaredClassBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import org.drools.compiler.compiler.PackageRegistry; @@ -20,9 +23,9 @@ import org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr; import org.drools.drl.ast.descr.TypeDeclarationDescr; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.factmodel.ClassDefinition; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; import org.drools.wiring.api.classloader.ProjectClassLoader; import org.drools.util.TypeResolver; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DefaultTypeDeclarationBuilderFactory.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DefaultTypeDeclarationBuilderFactory.java index 8a0caf27605..23c065d8cca 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DefaultTypeDeclarationBuilderFactory.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DefaultTypeDeclarationBuilderFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; public class DefaultTypeDeclarationBuilderFactory implements TypeDeclarationBuilderFactory { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DroolsAssemblerContextImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DroolsAssemblerContextImpl.java index 601c68cbf5e..01a0a48486f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DroolsAssemblerContextImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/DroolsAssemblerContextImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import java.lang.reflect.Type; @@ -21,10 +24,10 @@ import org.drools.compiler.builder.DroolsAssemblerContext; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ObjectType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.PackageDescr; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.kie.internal.builder.KnowledgeBuilderErrors; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/EvaluatorRegistry.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/EvaluatorRegistry.java index 964edef2178..4cf8588d8a4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/EvaluatorRegistry.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/EvaluatorRegistry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; import java.io.Externalizable; @@ -26,9 +28,9 @@ import org.drools.compiler.rule.builder.ConstraintBuilder; import org.drools.compiler.rule.builder.EvaluatorDefinition; -import org.drools.core.base.ValueType; -import org.drools.core.common.DroolsObjectInput; -import org.drools.core.rule.accessor.Evaluator; +import org.drools.base.base.ValueType; +import org.drools.base.common.DroolsObjectInput; +import org.drools.base.rule.accessor.Evaluator; import org.drools.drl.parser.impl.Operator; /** diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/GlobalVariableContext.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/GlobalVariableContext.java index 3767f5f2dba..e015351bf9b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/GlobalVariableContext.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/GlobalVariableContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; import java.lang.reflect.Type; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/GlobalVariableContextImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/GlobalVariableContextImpl.java index 0c31fac5574..9fa46f9ec46 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/GlobalVariableContextImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/GlobalVariableContextImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import java.lang.reflect.Type; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/HierarchySorter.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/HierarchySorter.java index 2848fba9ff8..0022f30a520 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/HierarchySorter.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/HierarchySorter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import java.util.*; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/InternalKnowledgeBaseProvider.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/InternalKnowledgeBaseProvider.java index 5ac79881be6..213e6f75fe3 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/InternalKnowledgeBaseProvider.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/InternalKnowledgeBaseProvider.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import org.drools.kiesession.rulebase.InternalKnowledgeBase; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/JaxbConfigurationFactoryServiceImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/JaxbConfigurationFactoryServiceImpl.java index b9c6717a747..a2ec67f2da0 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/JaxbConfigurationFactoryServiceImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/JaxbConfigurationFactoryServiceImpl.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; import com.sun.tools.xjc.Options; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderConfigurationFactories.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderConfigurationFactories.java index 51f381638bd..51e281ebe04 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderConfigurationFactories.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderConfigurationFactories.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import org.kie.api.conf.OptionsConfiguration; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderConfigurationImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderConfigurationImpl.java index 6c7391e42fa..c21cc85b10e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderConfigurationImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderConfigurationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; import java.io.File; @@ -28,7 +30,7 @@ import org.drools.compiler.kie.builder.impl.InternalKieModule.CompilationCache; import org.drools.compiler.rule.builder.ConstraintBuilder; import org.drools.core.BaseConfiguration; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.kie.api.conf.ConfigurationKey; import org.kie.api.conf.OptionKey; import org.kie.internal.builder.KnowledgeBuilderConfiguration; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderFactoryServiceImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderFactoryServiceImpl.java index 22fd450375c..90593b2f2ae 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderFactoryServiceImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderFactoryServiceImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import java.util.Properties; @@ -95,7 +98,7 @@ public KnowledgeBuilder newKnowledgeBuilder(KieBase kbase) { public KnowledgeBuilder newKnowledgeBuilder(KieBase kbase, KnowledgeBuilderConfiguration conf) { if ( kbase != null ) { - return new KnowledgeBuilderImpl( (InternalKnowledgeBase)kbase, conf ); + return new KnowledgeBuilderImpl((InternalKnowledgeBase)kbase, conf ); } else { return new KnowledgeBuilderImpl(conf ); } diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderFlowConfigurationImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderFlowConfigurationImpl.java index 0f734de4cf8..1266f6da273 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderFlowConfigurationImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderFlowConfigurationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; import java.util.Set; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderImpl.java index 812ec3cefe6..2820f541925 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import static java.util.Arrays.asList; @@ -43,7 +46,6 @@ import org.drools.compiler.builder.impl.processors.ReteCompiler; import org.drools.compiler.builder.impl.processors.RuleCompilationPhase; import org.drools.compiler.builder.impl.processors.RuleValidator; -import org.drools.compiler.builder.impl.resources.DecisionTableResourceHandler; import org.drools.compiler.builder.impl.resources.ResourceHandler; import org.drools.compiler.compiler.DroolsWarning; import org.drools.compiler.compiler.DuplicateFunction; @@ -54,14 +56,14 @@ import org.drools.compiler.compiler.ResourceTypeDeclarationWarning; import org.drools.compiler.kie.builder.impl.BuildContext; import org.drools.compiler.lang.descr.CompositePackageDescr; -import org.drools.core.base.ObjectType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.base.ObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.impl.RuleBaseFactory; -import org.drools.core.rule.Function; -import org.drools.core.rule.ImportDeclaration; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.Function; +import org.drools.base.rule.ImportDeclaration; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.ImportDescr; import org.drools.drl.ast.descr.PackageDescr; @@ -946,7 +948,7 @@ public KieBase newKnowledgeBase(KieBaseConfiguration conf) { } throw new IllegalArgumentException("Could not parse knowledge. See the logs for details."); } - RuleBase kbase = RuleBaseFactory.newRuleBase(conf); + InternalRuleBase kbase = RuleBaseFactory.newRuleBase(conf); kbase.addPackages(asList(getPackages())); return KnowledgeBaseFactory.newKnowledgeBase(kbase); } diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderRulesConfigurationImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderRulesConfigurationImpl.java index 511d38bc1d0..0c8a95b904b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderRulesConfigurationImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeBuilderRulesConfigurationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; import java.util.Collection; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeTypeManager.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeTypeManager.java index 58e5b7e34d6..af4bd4f6075 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeTypeManager.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/KnowledgeTypeManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; public class KnowledgeTypeManager { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageAttributeManagerImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageAttributeManagerImpl.java index e4b28916648..ae15602e9ce 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageAttributeManagerImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageAttributeManagerImpl.java @@ -1,16 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ package org.drools.compiler.builder.impl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageDescrBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageDescrBuilder.java index 0f81b088bb6..aebdd80511e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageDescrBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageDescrBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.compiler.builder.impl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageDescrManager.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageDescrManager.java index 9c7d243caf1..568ccfafa5a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageDescrManager.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageDescrManager.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl; import org.drools.drl.ast.descr.PackageDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageRegistryCompiler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageRegistryCompiler.java index e8b6e91c7dc..ea660b17d47 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageRegistryCompiler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageRegistryCompiler.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl; import org.kie.internal.builder.KnowledgeBuilderResult; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageRegistryManagerImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageRegistryManagerImpl.java index 17e5cd1afcc..d5044c8ca4a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageRegistryManagerImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/PackageRegistryManagerImpl.java @@ -1,23 +1,27 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ package org.drools.compiler.builder.impl; import org.drools.compiler.builder.PackageRegistryManager; import org.drools.compiler.compiler.PackageRegistry; import org.drools.core.base.ClassFieldAccessorCache; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.ImportDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ResourceBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ResourceBuilder.java index 9a48b4bfc79..8e9a36f01f6 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ResourceBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ResourceBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import org.kie.api.io.Resource; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ResourceHandlerManager.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ResourceHandlerManager.java index b67972fc469..7b7d62aecd6 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ResourceHandlerManager.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/ResourceHandlerManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.compiler.builder.impl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/RootClassLoaderProvider.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/RootClassLoaderProvider.java index 62f768d545d..7ae6923c71d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/RootClassLoaderProvider.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/RootClassLoaderProvider.java @@ -1,16 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ package org.drools.compiler.builder.impl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationBuilder.java index 68ffdeb50e9..e740f1ed7f6 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import java.util.Collection; @@ -24,11 +27,11 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.compiler.TypeDeclarationError; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; import org.drools.compiler.builder.impl.classbuilder.ClassBuilderFactory; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr; import org.drools.drl.ast.descr.AnnotationDescr; import org.drools.drl.ast.descr.EnumDeclarationDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationBuilderFactory.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationBuilderFactory.java index 6368855593c..7fde1a401c9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationBuilderFactory.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationBuilderFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl; import org.kie.api.internal.utils.KieService; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationCache.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationCache.java index efbb3daba19..352c4174ff2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationCache.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationCache.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import java.lang.reflect.Field; @@ -27,13 +30,12 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.compiler.TypeDeclarationError; -import org.drools.core.RuleBaseConfiguration; import org.drools.drl.ast.descr.PackageDescr; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.rule.Annotated; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.rule.Annotated; +import org.drools.base.rule.TypeDeclaration; import org.drools.util.ClassUtils; import org.kie.api.definition.type.Position; import org.kie.api.io.Resource; @@ -42,8 +44,8 @@ import static org.drools.compiler.builder.impl.ClassDefinitionFactory.createClassDefinition; import static org.drools.compiler.builder.impl.TypeDeclarationConfigurator.processMvelBasedAccessors; -import static org.drools.util.BitMaskUtil.isSet; -import static org.drools.core.util.Drools.hasMvel; +import static org.drools.util.bitmask.BitMaskUtil.isSet; +import static org.drools.base.util.Drools.hasMvel; public class TypeDeclarationCache { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationConfigurator.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationConfigurator.java index 0ac8233590d..37f6eee0af5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationConfigurator.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationConfigurator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import java.util.Map; @@ -23,9 +26,9 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.compiler.TypeDeclarationError; import org.drools.compiler.rule.builder.PackageBuildContext; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.Annotated; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.Annotated; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr; import org.drools.drl.ast.descr.BaseDescr; import org.kie.api.definition.type.Duration; @@ -34,7 +37,7 @@ import org.kie.internal.builder.conf.PropertySpecificOption; import static org.drools.compiler.rule.builder.util.AnnotationFactory.toAnnotated; -import static org.drools.core.rule.TypeDeclaration.processTypeAnnotations; +import static org.drools.base.rule.TypeDeclaration.processTypeAnnotations; public class TypeDeclarationConfigurator { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationContext.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationContext.java index 97e494e6656..9f27e95f81a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationContext.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; import org.drools.compiler.builder.PackageRegistryManager; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationContextImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationContextImpl.java index 43900555be7..cc16536f333 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationContextImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationContextImpl.java @@ -1,16 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ package org.drools.compiler.builder.impl; @@ -21,8 +25,8 @@ import org.drools.compiler.builder.PackageRegistryManager; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.PackageDescr; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.kie.internal.builder.ResourceChange; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationFactory.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationFactory.java index e52a48cbd8f..7ec15766230 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationFactory.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import java.io.IOException; @@ -28,11 +31,11 @@ import org.drools.drl.ast.descr.EnumDeclarationDescr; import org.drools.drl.ast.descr.TypeDeclarationDescr; import org.drools.drl.ast.descr.TypeFieldDescr; -import org.drools.core.base.ClassFieldInspector; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.GeneratedFact; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.base.ClassFieldInspector; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.GeneratedFact; +import org.drools.base.rule.TypeDeclaration; import org.kie.api.definition.type.FactField; import org.kie.api.definition.type.PropertyChangeSupport; import org.kie.api.definition.type.Role; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationManager.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationManager.java index 07141864304..6f5b0c45021 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationManager.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationManager.java @@ -1,22 +1,25 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.TypeDeclaration; /** * Public interface to a {@link TypeDeclarationBuilder} diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationManagerImpl.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationManagerImpl.java index d34dc8480e4..2c847740b81 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationManagerImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationManagerImpl.java @@ -1,24 +1,27 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ObjectType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.TypeDeclaration; import org.drools.kiesession.rulebase.InternalKnowledgeBase; /** diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationNameResolver.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationNameResolver.java index 3e0d9ac7237..b4a917f3d0e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationNameResolver.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationNameResolver.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import java.util.Collection; @@ -22,7 +25,7 @@ import org.drools.compiler.compiler.TypeDeclarationError; import org.drools.util.TypeResolver; import org.kie.internal.definition.GenericTypeDefinition; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; import org.drools.util.ClassUtils; import org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr; import org.drools.drl.ast.descr.EnumDeclarationDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationUtils.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationUtils.java index ff8cebda352..a354d148bec 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationUtils.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDeclarationUtils.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import java.io.IOException; @@ -25,11 +28,11 @@ import org.drools.drl.ast.descr.ImportDescr; import org.drools.drl.ast.descr.PackageDescr; import org.drools.util.TypeResolver; -import org.drools.core.base.ClassFieldInspector; -import org.drools.core.base.CoreComponentsBuilder; +import org.drools.base.base.ClassFieldInspector; +import org.drools.base.base.CoreComponentsBuilder; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.rule.TypeDeclaration; import org.drools.util.StringUtils; import org.kie.api.definition.type.Modifies; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDefinition.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDefinition.java index eb2681bcb96..927902fff0c 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDefinition.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/TypeDefinition.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl; import org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; public class TypeDefinition { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/BeanClassBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/BeanClassBuilder.java index 3e54b048ba0..aa49ff26cb7 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/BeanClassBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/BeanClassBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.classbuilder; public interface BeanClassBuilder extends ClassBuilder { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/BuildUtils.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/BuildUtils.java index dd66a707c12..dda932f9eb0 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/BuildUtils.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/BuildUtils.java @@ -1,22 +1,24 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.classbuilder; -import org.drools.core.factmodel.FieldDefinition; +import org.drools.base.factmodel.FieldDefinition; import org.kie.internal.definition.GenericTypeDefinition; import static java.util.stream.Collectors.joining; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/ClassBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/ClassBuilder.java index bef5a8f6cd2..1bfc21cbea5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/ClassBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/ClassBuilder.java @@ -1,25 +1,27 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.classbuilder; import java.io.IOException; import java.lang.reflect.InvocationTargetException; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.factmodel.ClassDefinition; import org.kie.api.internal.utils.KieService; public interface ClassBuilder extends KieService { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/ClassBuilderFactory.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/ClassBuilderFactory.java index 0735cbff71c..e3f2c97d81e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/ClassBuilderFactory.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/ClassBuilderFactory.java @@ -1,25 +1,27 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.classbuilder; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; import org.kie.api.internal.utils.KieService; -import static org.drools.core.base.CoreComponentsBuilder.throwExceptionForMissingMvel; +import static org.drools.base.base.CoreComponentsBuilder.throwExceptionForMissingMvel; public interface ClassBuilderFactory extends KieService { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumClassBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumClassBuilder.java index 2a35a550138..daa67e767a7 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumClassBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumClassBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.classbuilder; public interface EnumClassBuilder extends ClassBuilder { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumClassDefinition.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumClassDefinition.java index eaeb5493827..4e41aa5ef9f 100755 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumClassDefinition.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumClassDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl.classbuilder; import java.io.IOException; @@ -23,7 +25,7 @@ import java.util.ArrayList; import java.util.Collections; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.factmodel.ClassDefinition; /** * Declares an enum class to be dynamically created diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumLiteralDefinition.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumLiteralDefinition.java index c376d92fe7d..1c8aaa4319a 100755 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumLiteralDefinition.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/classbuilder/EnumLiteralDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.builder.impl.classbuilder; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/ErrorHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/ErrorHandler.java index 7b4ab529ea3..4721de837af 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/ErrorHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/ErrorHandler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/FunctionErrorHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/FunctionErrorHandler.java index 480f1aa62d5..8d813147ba9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/FunctionErrorHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/FunctionErrorHandler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/MissingImplementationException.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/MissingImplementationException.java index 603952120f3..d9e2c01cc38 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/MissingImplementationException.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/MissingImplementationException.java @@ -1,18 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.errors; import org.kie.api.io.Resource; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/RuleErrorHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/RuleErrorHandler.java index f490a605e35..b9ed5d4f0f2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/RuleErrorHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/RuleErrorHandler.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl.errors; import org.drools.drl.parser.DroolsError; import org.drools.compiler.compiler.RuleBuildError; import org.drools.drl.ast.descr.BaseDescr; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; public class RuleErrorHandler extends ErrorHandler { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/RuleInvokerErrorHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/RuleInvokerErrorHandler.java index df2dc104359..a04bab9dff5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/RuleInvokerErrorHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/RuleInvokerErrorHandler.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl.errors; import org.drools.drl.ast.descr.BaseDescr; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; public class RuleInvokerErrorHandler extends RuleErrorHandler { diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcError.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcError.java index 50f6c91e1ab..92c16e5c2bb 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcError.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcErrorHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcErrorHandler.java index 9f559eb9fa8..7d940c39a1e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcErrorHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/SrcErrorHandler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.builder.impl.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AbstractPackageCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AbstractPackageCompilationPhase.java index 594c4dd2e9d..b93ad54c60a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AbstractPackageCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AbstractPackageCompilationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.BuildResultCollector; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AccumulateFunctionCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AccumulateFunctionCompilationPhase.java index 8d39f8b8b69..99b9e96c566 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AccumulateFunctionCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AccumulateFunctionCompilationPhase.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.compiler.compiler.PackageRegistry; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AnnotationNormalizer.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AnnotationNormalizer.java index f1f821cc925..46e93428adc 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AnnotationNormalizer.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/AnnotationNormalizer.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.compiler.compiler.AnnotationDeclarationError; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/CompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/CompilationPhase.java index 8d3256196f2..670613dbf6a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/CompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/CompilationPhase.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.kie.internal.builder.KnowledgeBuilderResult; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/CompositePackageCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/CompositePackageCompilationPhase.java index f1db0cb3f9c..8ba36a2a315 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/CompositePackageCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/CompositePackageCompilationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.PackageRegistryManager; @@ -25,9 +26,9 @@ import org.drools.compiler.builder.impl.TypeDeclarationContext; import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.lang.descr.CompositePackageDescr; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.util.TypeResolver; import org.drools.util.StringUtils; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.kie.internal.builder.KnowledgeBuilderResult; import org.kie.internal.builder.ResultSeverity; import org.kie.internal.builder.conf.LanguageLevelOption; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ConsequenceCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ConsequenceCompilationPhase.java index efb0df970de..2ee32596c72 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ConsequenceCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ConsequenceCompilationPhase.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.PackageRegistryCompiler; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/EntryPointDeclarationCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/EntryPointDeclarationCompilationPhase.java index 1a5007d1908..6d4896a181d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/EntryPointDeclarationCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/EntryPointDeclarationCompilationPhase.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.compiler.compiler.PackageRegistry; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/FunctionCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/FunctionCompilationPhase.java index 4485c9afff9..87387bff6a5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/FunctionCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/FunctionCompilationPhase.java @@ -1,25 +1,26 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.compiler.DuplicateFunction; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.rule.Function; +import org.drools.base.rule.Function; import org.drools.drl.ast.descr.FunctionDescr; import org.drools.drl.ast.descr.FunctionImportDescr; import org.drools.drl.ast.descr.PackageDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/FunctionCompiler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/FunctionCompiler.java index be88829ec50..8f21ed441c5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/FunctionCompiler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/FunctionCompiler.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.AssetFilter; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/GlobalCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/GlobalCompilationPhase.java index 04eda46e5d6..30ba1c84f36 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/GlobalCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/GlobalCompilationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import java.lang.reflect.Type; @@ -22,7 +23,7 @@ import org.drools.compiler.builder.impl.AssetFilter; import org.drools.compiler.builder.impl.GlobalVariableContext; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.drl.ast.descr.PackageDescr; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.kie.internal.builder.ResourceChange; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableFunctionCompiler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableFunctionCompiler.java index 5450ba49113..649e904d3f9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableFunctionCompiler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableFunctionCompiler.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.compiler.Dialect; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableGlobalCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableGlobalCompilationPhase.java index 972f7880383..981806d9f63 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableGlobalCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableGlobalCompilationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import java.lang.reflect.Type; @@ -24,7 +25,7 @@ import org.drools.compiler.builder.impl.GlobalVariableContext; import org.drools.compiler.compiler.GlobalError; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.drl.ast.descr.GlobalDescr; import org.drools.drl.ast.descr.PackageDescr; import org.slf4j.Logger; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableRuleCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableRuleCompilationPhase.java index 98fbefaf732..6d67af015f9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableRuleCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImmutableRuleCompilationPhase.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import java.util.ArrayList; @@ -33,7 +36,7 @@ import org.drools.compiler.compiler.RuleBuildError; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.compiler.rule.builder.RuleBuilder; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.PackageDescr; import org.drools.drl.ast.descr.RuleDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImportCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImportCompilationPhase.java index cdb20fa9088..97ec0cf9677 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImportCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ImportCompilationPhase.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.compiler.compiler.PackageRegistry; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/IteratingPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/IteratingPhase.java index 6565a827a6c..370adcc30d6 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/IteratingPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/IteratingPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.PackageRegistryManager; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/OtherDeclarationCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/OtherDeclarationCompilationPhase.java index 57f143c25df..3139f075a99 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/OtherDeclarationCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/OtherDeclarationCompilationPhase.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.AssetFilter; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/PackageCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/PackageCompilationPhase.java index f9e9e920256..9ed117d62b5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/PackageCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/PackageCompilationPhase.java @@ -1,14 +1,30 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.AssetFilter; -import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; import org.drools.compiler.builder.impl.TypeDeclarationBuilder; import org.drools.compiler.compiler.PackageRegistry; import org.drools.drl.ast.descr.PackageDescr; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.kie.api.io.Resource; -import org.kie.internal.builder.KnowledgeBuilder; import org.kie.internal.builder.KnowledgeBuilderConfiguration; import org.kie.internal.builder.conf.LanguageLevelOption; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ReteCompiler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ReteCompiler.java index b5ee2ec0473..e4ea65d8fe4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ReteCompiler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/ReteCompiler.java @@ -1,10 +1,28 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.AssetFilter; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.drl.ast.descr.PackageDescr; import org.drools.drl.ast.descr.RuleDescr; import org.kie.internal.builder.ResourceChange; @@ -14,9 +32,9 @@ public class ReteCompiler extends AbstractPackageCompilationPhase { private final AssetFilter assetFilter; - private RuleBase kBase; + private InternalRuleBase kBase; - public ReteCompiler(PackageRegistry pkgRegistry, PackageDescr packageDescr, RuleBase kBase, AssetFilter assetFilter) { + public ReteCompiler(PackageRegistry pkgRegistry, PackageDescr packageDescr, InternalRuleBase kBase, AssetFilter assetFilter) { super(pkgRegistry, packageDescr); this.kBase = kBase; this.assetFilter = assetFilter; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleAnnotationNormalizer.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleAnnotationNormalizer.java index 001f6cb61fd..bbab170c2a1 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleAnnotationNormalizer.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleAnnotationNormalizer.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.drl.ast.descr.AnnotatedBaseDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleCompilationPhase.java index ff7762df867..40261b2956e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleCompilationPhase.java @@ -1,28 +1,29 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.AssetFilter; import org.drools.compiler.builder.impl.TypeDeclarationContext; import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.lang.descr.CompositePackageDescr; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.PackageDescr; import org.drools.drl.ast.descr.RuleDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleValidator.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleValidator.java index 55bd5e4e88b..69c9648ec69 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleValidator.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/RuleValidator.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import java.util.HashSet; @@ -5,8 +23,8 @@ import org.drools.compiler.compiler.DuplicateRule; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.drl.ast.descr.PackageDescr; import org.drools.drl.ast.descr.RuleDescr; import org.drools.drl.parser.ParserError; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/SinglePackagePhaseFactory.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/SinglePackagePhaseFactory.java index a874cbe5d01..7e8f3f40846 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/SinglePackagePhaseFactory.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/SinglePackagePhaseFactory.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.compiler.PackageRegistry; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationAnnotationNormalizer.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationAnnotationNormalizer.java index 265f84f67f9..27041586f9d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationAnnotationNormalizer.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationAnnotationNormalizer.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.drl.ast.descr.EnumDeclarationDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationCompilationPhase.java index 691bbf43ee5..b2703f895e4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationCompilationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.TypeDeclarationBuilder; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationCompositeCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationCompositeCompilationPhase.java index 2a192ce836c..777e19cec2c 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationCompositeCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/TypeDeclarationCompositeCompilationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.TypeDeclarationBuilder; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/WindowDeclarationCompilationPhase.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/WindowDeclarationCompilationPhase.java index 4eaaf55a59f..f849619528a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/WindowDeclarationCompilationPhase.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/WindowDeclarationCompilationPhase.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.builder.impl.processors; import org.drools.compiler.builder.impl.TypeDeclarationContext; @@ -6,9 +24,9 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.compiler.rule.builder.RuleConditionBuilder; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.WindowDeclaration; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.WindowDeclaration; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.PackageDescr; import org.drools.drl.ast.descr.RuleDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/package-info.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/package-info.java index aadd3334ccc..46a37dfa0dc 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/package-info.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/processors/package-info.java @@ -1,3 +1,21 @@ +/** + * 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. + */ /** * {@link org.drools.compiler.builder.impl.processors.CompilationPhase}s originate as * methods in {@link org.drools.compiler.builder.impl.KnowledgeBuilderImpl}. diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DecisionTableResourceHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DecisionTableResourceHandler.java index 6fcce05a53a..ee69c6b1b78 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DecisionTableResourceHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DecisionTableResourceHandler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.resources; import org.drools.compiler.builder.conf.DecisionTableConfigurationImpl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DrlResourceHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DrlResourceHandler.java index 5707226678e..62fba20aaa8 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DrlResourceHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DrlResourceHandler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.resources; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DslrResourceHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DslrResourceHandler.java index 10e71bbb5ea..bf93130fe7f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DslrResourceHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/DslrResourceHandler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.resources; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/ResourceHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/ResourceHandler.java index 7100e9fe84b..86e61cc6269 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/ResourceHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/ResourceHandler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.resources; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/TemplateResourceHandler.java b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/TemplateResourceHandler.java index fe3f064256a..2b45b1a4718 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/TemplateResourceHandler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/builder/impl/resources/TemplateResourceHandler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.builder.impl.resources; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ActionError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ActionError.java index 049c8befd16..0f27989d46f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ActionError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ActionError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/AnalysisResult.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/AnalysisResult.java index 4f335cf5e4f..2d5916b1e34 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/AnalysisResult.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/AnalysisResult.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import java.util.Set; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/AnnotationDeclarationError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/AnnotationDeclarationError.java index 8bf30a5ff74..bf105b7a017 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/AnnotationDeclarationError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/AnnotationDeclarationError.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.drools.drl.ast.descr.AnnotationDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/BoundIdentifiers.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/BoundIdentifiers.java index 11cbd08f7e8..e588ccf05a4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/BoundIdentifiers.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/BoundIdentifiers.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import java.lang.reflect.Type; @@ -24,12 +27,12 @@ import org.drools.compiler.rule.builder.EvaluatorWrapper; import org.drools.compiler.rule.builder.PackageBuildContext; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ObjectType; -import org.drools.core.facttemplates.Fact; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.XpathBackReference; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.facttemplates.Fact; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.XpathBackReference; import static org.drools.util.ClassUtils.rawType; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/BuilderResultUtils.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/BuilderResultUtils.java index be8ecc5c880..22fd41d0b82 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/BuilderResultUtils.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/BuilderResultUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.compiler; import org.kie.internal.jci.CompilationProblem; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ConfigurableSeverityResult.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ConfigurableSeverityResult.java index 0ad17dac903..46ca5bb189e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ConfigurableSeverityResult.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ConfigurableSeverityResult.java @@ -1,18 +1,22 @@ -/* -* Copyright 2011 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ +/** + * 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. + */ + package org.drools.compiler.compiler; import org.drools.drl.parser.BaseKnowledgeBuilderResultImpl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DeprecatedResourceTypeWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DeprecatedResourceTypeWarning.java index 3c8b1b4d918..ab6b40eed66 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DeprecatedResourceTypeWarning.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DeprecatedResourceTypeWarning.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.drools.io.InternalResource; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildError.java index 5ed91d9f1bd..4969f7231ac 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildWarning.java index 24c6ccb74a6..fc4d89682b3 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildWarning.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DescrBuildWarning.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/Dialect.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/Dialect.java index 5e8dafde5ae..228c45ccda6 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/Dialect.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/Dialect.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import java.util.List; @@ -24,6 +27,7 @@ import org.drools.compiler.rule.builder.EngineElementBuilder; import org.drools.compiler.rule.builder.EntryPointBuilder; import org.drools.compiler.rule.builder.FromBuilder; +import org.drools.compiler.rule.builder.GroupByBuilder; import org.drools.compiler.rule.builder.GroupElementBuilder; import org.drools.compiler.rule.builder.PackageBuildContext; import org.drools.compiler.rule.builder.PatternBuilder; @@ -34,9 +38,9 @@ import org.drools.compiler.rule.builder.RuleConditionBuilder; import org.drools.compiler.rule.builder.SalienceBuilder; import org.drools.util.TypeResolver; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.QueryImpl; import org.drools.drl.ast.descr.AndDescr; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.EntryPointDescr; @@ -51,7 +55,7 @@ import org.kie.api.io.Resource; import org.kie.internal.builder.KnowledgeBuilderResult; -import static org.drools.core.base.CoreComponentsBuilder.throwExceptionForMissingMvel; +import static org.drools.base.base.CoreComponentsBuilder.throwExceptionForMissingMvel; /** * A Dialect implementation handles the building and execution of code @@ -79,6 +83,8 @@ public interface Dialect { AccumulateBuilder getAccumulateBuilder(); + GroupByBuilder getGroupByBuilder(); + PredicateBuilder getPredicateBuilder(); ConsequenceBuilder getConsequenceBuilder(); @@ -249,6 +255,10 @@ public AccumulateBuilder getAccumulateBuilder() { return throwExceptionForMissingMvel(); } + public GroupByBuilder getGroupByBuilder() { + return throwExceptionForMissingMvel(); + } + @Override public PredicateBuilder getPredicateBuilder() { return throwExceptionForMissingMvel(); diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DialectCompiletimeRegistry.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DialectCompiletimeRegistry.java index e443a6d2113..4b9450e8b11 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DialectCompiletimeRegistry.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DialectCompiletimeRegistry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DialectConfiguration.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DialectConfiguration.java index 49ab3c1f571..7736a68f570 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DialectConfiguration.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DialectConfiguration.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; /** * Each Dialect can have its own configuration. Implementations of this class are typically diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsErrorWrapper.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsErrorWrapper.java index 70ffb4852ce..3f88e6e0e25 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsErrorWrapper.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsErrorWrapper.java @@ -1,18 +1,21 @@ -/* -* Copyright 2011 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ +/** + * 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. + */ package org.drools.compiler.compiler; import org.drools.drl.parser.DroolsError; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarning.java index b0f451900e1..02bde4e972c 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarning.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarning.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.drools.drl.parser.BaseKnowledgeBuilderResultImpl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarningWrapper.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarningWrapper.java index 916e24b3076..70834cca9be 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarningWrapper.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DroolsWarningWrapper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.kie.internal.builder.KnowledgeBuilderResult; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateFunction.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateFunction.java index e627beb433b..89a91bd673d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateFunction.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateFunction.java @@ -1,22 +1,26 @@ -/* -* Copyright 2011 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ +/** + * 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. + */ + package org.drools.compiler.compiler; import org.drools.drl.ast.descr.FunctionDescr; -import org.drools.core.rule.Function; +import org.drools.base.rule.Function; import org.kie.internal.builder.KnowledgeBuilderConfiguration; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateRule.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateRule.java index 6379531b47e..5ee49fbd17f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateRule.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/DuplicateRule.java @@ -1,19 +1,21 @@ -/* -* Copyright 2011 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ - +/** + * 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. + */ package org.drools.compiler.compiler; import org.drools.drl.ast.descr.PackageDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/FactTemplateError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/FactTemplateError.java index 0c8b4282894..0a254f05ee0 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/FactTemplateError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/FactTemplateError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/FieldTemplateError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/FieldTemplateError.java index 78016bc0155..50f6b6ab9bd 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/FieldTemplateError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/FieldTemplateError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/FunctionError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/FunctionError.java index d8f4e5519a7..058e1273d8a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/FunctionError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/FunctionError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.ast.descr.FunctionDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/GlobalError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/GlobalError.java index 0fd331e0ad2..6b7ee6331c7 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/GlobalError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/GlobalError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.ast.descr.GlobalDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ImportError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ImportError.java index 1c43cbe5255..5ee127ae9e2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ImportError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ImportError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.ast.descr.ImportDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/JavaDialectConfiguration.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/JavaDialectConfiguration.java index 27f2df526f0..bf8e66d0fb2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/JavaDialectConfiguration.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/JavaDialectConfiguration.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.builder.impl.KnowledgeBuilderFactoryServiceImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.kie.memorycompiler.JavaCompiler; import org.kie.memorycompiler.JavaCompilerFactory; import org.kie.memorycompiler.JavaConfiguration; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/MissingDependencyError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/MissingDependencyError.java index 85cce0edc2f..eb5818b7044 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/MissingDependencyError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/MissingDependencyError.java @@ -1,20 +1,24 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.compiler; -import org.drools.core.common.MissingDependencyException; +import org.drools.base.common.MissingDependencyException; import org.drools.drl.parser.DroolsError; import org.kie.api.io.Resource; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageBuilderErrors.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageBuilderErrors.java index df308cc6b80..e79b99e8843 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageBuilderErrors.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageBuilderErrors.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import java.io.Externalizable; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageBuilderResults.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageBuilderResults.java index c3d74b72da3..247ed5abf57 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageBuilderResults.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageBuilderResults.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import java.io.Externalizable; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageRegistry.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageRegistry.java index bc411d2f4bf..4023bcffcdf 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageRegistry.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/PackageRegistry.java @@ -1,26 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.drl.ast.descr.ImportDescr; import org.drools.util.TypeResolver; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.DialectRuntimeRegistry; -import org.drools.core.rule.ImportDeclaration; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.DialectRuntimeRegistry; +import org.drools.base.rule.ImportDeclaration; import org.kie.api.io.Resource; import org.kie.internal.builder.KnowledgeBuilderConfiguration; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilder.java index c3909c34b33..a87965e1a2e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.kie.api.definition.process.Process; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilderFactory.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilderFactory.java index e0310838438..a8819b10604 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilderFactory.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilderFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.kie.api.internal.utils.KieService; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilderFactoryService.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilderFactoryService.java index 2eb503d58fd..372ef55d325 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilderFactoryService.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessBuilderFactoryService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.compiler; import org.kie.api.internal.utils.KieService; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessLoadError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessLoadError.java index 9a0100ef717..48cceed33da 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessLoadError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProcessLoadError.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProjectJavaCompiler.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProjectJavaCompiler.java index d30cea09c89..501562b27d1 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ProjectJavaCompiler.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ProjectJavaCompiler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/ResourceTypeDeclarationWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/ResourceTypeDeclarationWarning.java index 6d3d539aaef..2e386d7dd6c 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/ResourceTypeDeclarationWarning.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/ResourceTypeDeclarationWarning.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.kie.api.io.Resource; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/RuleBuildError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/RuleBuildError.java index 45deca39feb..32c6001fcb8 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/RuleBuildError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/RuleBuildError.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.drools.drl.ast.descr.BaseDescr; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; public class RuleBuildError extends DescrBuildError { private final RuleImpl rule; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/RuleBuildWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/RuleBuildWarning.java index 57039f4db20..b4fbd2d039f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/RuleBuildWarning.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/RuleBuildWarning.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler; import org.drools.drl.ast.descr.BaseDescr; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; public class RuleBuildWarning extends DescrBuildWarning { private final RuleImpl rule; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/SerializableDroolsError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/SerializableDroolsError.java index e14ffdbfb1d..0fbbdd0d9c4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/SerializableDroolsError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/SerializableDroolsError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.parser.BaseKnowledgeBuilderResultImpl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationError.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationError.java index e28d2663f22..2160300c9c9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationError.java @@ -1,23 +1,25 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.ast.descr.BaseDescr; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.parser.DroolsError; public class TypeDeclarationError extends DroolsError { diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationWarning.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationWarning.java index e4dc650b986..1cb145fd4ff 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationWarning.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/TypeDeclarationWarning.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.compiler; import org.drools.drl.parser.BaseKnowledgeBuilderResultImpl; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/File.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/File.java index 8da969a9fe3..936912d3512 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/File.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/File.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler.io; import java.io.IOException; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/FileSystem.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/FileSystem.java index 0bb138c2bbb..a7624812a9d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/FileSystem.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/FileSystem.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler.io; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/FileSystemItem.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/FileSystemItem.java index 611ae909130..03ee5aaf2e3 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/FileSystemItem.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/FileSystemItem.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler.io; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/Folder.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/Folder.java index 90d30f2909a..7485be93a9c 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/Folder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/Folder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler.io; import java.util.Collection; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFile.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFile.java index 5017a85f6bc..8a48399447b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFile.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFile.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler.io.memory; import java.io.ByteArrayInputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFileSystem.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFileSystem.java index c9e1d568a1f..479f95dbbc4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFileSystem.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFileSystem.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler.io.memory; import java.io.ByteArrayInputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFolder.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFolder.java index f5c6e2e8875..63e157d8ec2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFolder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/io/memory/MemoryFolder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.compiler.io.memory; import java.io.Serializable; diff --git a/drools-compiler/src/main/java/org/drools/compiler/compiler/package-info.java b/drools-compiler/src/main/java/org/drools/compiler/compiler/package-info.java index df595b566c9..948d0850c05 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/compiler/package-info.java +++ b/drools-compiler/src/main/java/org/drools/compiler/compiler/package-info.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - /** * * This is the main package to load rules. Use PackageBuilder and RuleBaseLoader classes. diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/MaterializedLambda.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/MaterializedLambda.java index 498b93d6328..a5a28b9573c 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/MaterializedLambda.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/MaterializedLambda.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.kie.builder; import java.lang.annotation.ElementType; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java index b419c619d32..d8a4d9b044a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieModule.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.ByteArrayInputStream; @@ -34,9 +37,9 @@ import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.kproject.models.KieBaseModelImpl; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.impl.RuleBaseFactory; import org.drools.io.ResourceConfigurationImpl; import org.drools.kiesession.rulebase.InternalKnowledgeBase; @@ -201,7 +204,7 @@ public KnowledgePackagesBuildResult buildKnowledgePackages(KieBaseModelImpl kBas return new KnowledgePackagesBuildResult(false, pkgs); } - public InternalKnowledgeBase createKieBase( KieBaseModelImpl kBaseModel, KieProject kieProject, BuildContext buildContext, KieBaseConfiguration conf ) { + public InternalKnowledgeBase createKieBase(KieBaseModelImpl kBaseModel, KieProject kieProject, BuildContext buildContext, KieBaseConfiguration conf) { KnowledgePackagesBuildResult knowledgePackagesBuildResult = buildKnowledgePackages(kBaseModel, kieProject, buildContext); if(knowledgePackagesBuildResult.hasErrors()) { return null; @@ -217,7 +220,7 @@ public InternalKnowledgeBase createKieBase( KieBaseModelImpl kBaseModel, KieProj ((RuleBaseConfiguration)conf).setClassLoader(cl); } - RuleBase kBase = RuleBaseFactory.newRuleBase(kBaseModel.getName(), conf ); + InternalRuleBase kBase = RuleBaseFactory.newRuleBase(kBaseModel.getName(), conf); kBase.addPackages( pkgs ); return KnowledgeBaseFactory.newKnowledgeBase(kBase); } diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieProject.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieProject.java index b90cb05379b..134c67e2f13 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieProject.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieProject.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.Collection; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieScanner.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieScanner.java index 5e2715f4a64..5ba5572b569 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieScanner.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/AbstractKieScanner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.Collection; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/BuildContext.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/BuildContext.java index dc8b1027605..f9b564d7745 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/BuildContext.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/BuildContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; public class BuildContext { diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java index 076439dbfef..34c9fae29aa 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.File; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/CompilationCacheProvider.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/CompilationCacheProvider.java index 6b0cff8c13f..b660f3a5d7f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/CompilationCacheProvider.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/CompilationCacheProvider.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.Map; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/CompilationProblemAdapter.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/CompilationProblemAdapter.java index 0ab2b57fc95..fc4015624e2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/CompilationProblemAdapter.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/CompilationProblemAdapter.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; /** diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DecisionTableConfigurationDelegate.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DecisionTableConfigurationDelegate.java index 32617892fa8..004cd72c3a9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DecisionTableConfigurationDelegate.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DecisionTableConfigurationDelegate.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.kie.builder.impl; import org.kie.api.io.Resource; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DiskResourceReader.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DiskResourceReader.java index e9fedcf1d80..1f94d4d3101 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DiskResourceReader.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DiskResourceReader.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.io.File; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DrlProject.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DrlProject.java index b4d181113bf..0b38131ceb6 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DrlProject.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/DrlProject.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.function.BiFunction; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/FileKieModule.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/FileKieModule.java index d51aaadc376..2796ca3ddcb 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/FileKieModule.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/FileKieModule.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.File; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/IncrementalResultsImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/IncrementalResultsImpl.java index 1d5e9d16b20..71a8bc9705b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/IncrementalResultsImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/IncrementalResultsImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieModule.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieModule.java index b9aea293e5e..a0a37c5b692 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieModule.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieModule.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.File; @@ -33,7 +36,7 @@ import org.drools.compiler.kie.util.KieJarChangeSet; import org.drools.compiler.kproject.models.KieBaseModelImpl; import org.drools.compiler.kproject.models.KieModuleModelImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.io.InternalResource; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.wiring.api.ResourceProvider; @@ -122,7 +125,7 @@ default byte[] getBytes( final PortablePath resourcePath ) { KnowledgeBuilderConfiguration createBuilderConfiguration( KieBaseModel kBaseModel, ClassLoader classLoader ); - InternalKnowledgeBase createKieBase( KieBaseModelImpl kBaseModel, KieProject kieProject, BuildContext buildContext, KieBaseConfiguration conf ); + InternalKnowledgeBase createKieBase(KieBaseModelImpl kBaseModel, KieProject kieProject, BuildContext buildContext, KieBaseConfiguration conf); default void afterKieBaseCreationUpdate(String name, InternalKnowledgeBase kBase) { } diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieModuleProvider.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieModuleProvider.java index 2a640534fa8..f4b8cea3c61 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieModuleProvider.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieModuleProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.io.File; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieScanner.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieScanner.java index 6afd801a901..e040160e6e1 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieScanner.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieScanner.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.InputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieServices.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieServices.java index 538b308a26d..805fcb493a5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieServices.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/InternalKieServices.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import org.drools.compiler.kie.builder.impl.event.KieServicesEventListerner; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdater.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdater.java index 87e5943a17c..b28ee513fbe 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdater.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdater.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; public interface KieBaseUpdater extends Runnable { diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterFactory.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterFactory.java index 660afb569e5..4a7b4922d4d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterFactory.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; public interface KieBaseUpdaterFactory { diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterImpl.java index 466602ea663..fc4453c095f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed under the Apache License; private final 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 * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing; private final software - * distributed under the License is distributed on an "AS IS" BASIS; private final - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND; private final either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.List; @@ -21,14 +23,14 @@ import org.drools.compiler.builder.InternalKnowledgeBuilder; import org.drools.compiler.compiler.PackageBuilderErrors; import org.drools.core.impl.KieBaseUpdate; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.InternalWorkingMemoryEntryPoint; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.rule.DialectRuntimeData; +import org.drools.base.rule.DialectRuntimeData; import org.kie.api.builder.model.KieBaseModel; import org.kie.api.io.Resource; import org.kie.api.runtime.rule.EntryPoint; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterImplContext.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterImplContext.java index 2fa00cb0661..6767be42abe 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterImplContext.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterImplContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.Collection; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterOptions.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterOptions.java index 0f4d6a920ab..82f25f9ae9a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterOptions.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaterOptions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.HashMap; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaters.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaters.java index 1c90641e89e..6ae5224fdc8 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaters.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdaters.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.Collection; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdatersContext.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdatersContext.java index 7643442f259..e1a7d2b0822 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdatersContext.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdatersContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.Optional; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdatersImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdatersImpl.java index e0ffa7f530a..c61494b0ae6 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdatersImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBaseUpdatersImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBuilderImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBuilderImpl.java index 1c1304f2df1..809cebf4f08 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBuilderImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.ByteArrayInputStream; @@ -69,7 +72,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import static org.drools.core.util.Drools.hasXmlSupport; +import static org.drools.base.util.Drools.hasXmlSupport; import static org.drools.util.StringUtils.codeAwareIndexOf; import static org.kie.internal.builder.KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration; @@ -378,18 +381,13 @@ private static boolean isFileInKieBase( KieBaseModel kieBase, String fileName, S return true; } else { String folderNameForFile = lastSep > 0 ? fileName.substring( 0, lastSep ) : ""; - int resourcesPos = folderNameForFile.indexOf( RESOURCES_ROOT ); - if (resourcesPos >= 0) { - folderNameForFile = folderNameForFile.substring( resourcesPos + RESOURCES_ROOT.length() ); - } String pkgNameForFile = packageNameForFile( fileName, folderNameForFile, !useFolders, file ); return isPackageInKieBase( kieBase, pkgNameForFile ); } } private static String packageNameForFile( String fileName, String folderNameForFile, boolean discoverPackage, Supplier file ) { - String packageNameFromFolder = folderNameForFile.replace( '/', '.' ); - + String packageNameFromFolder = getRelativePackageName(folderNameForFile.replace( '/', '.' )); if (discoverPackage) { String packageNameForFile = packageNameFromAsset(fileName, file.get()); if (packageNameForFile != null) { diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBuilderSetImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBuilderSetImpl.java index 68d157069fd..76ad7a8450d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBuilderSetImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieBuilderSetImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.IOException; @@ -31,7 +34,7 @@ import org.drools.compiler.builder.InternalKnowledgeBuilder; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.io.BaseResource; import org.drools.wiring.api.classloader.ProjectClassLoader; import org.kie.api.KieServices; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerImpl.java index d6ac8da0047..5eb73dd68e5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.io.InputStream; @@ -38,7 +41,7 @@ import org.drools.compiler.management.KieContainerMonitor; import org.drools.core.SessionConfiguration; import org.drools.core.impl.InternalKieContainer; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.management.DroolsManagementAgent; import org.drools.core.management.DroolsManagementAgent.CBSKey; import org.drools.core.reteoo.RuntimeComponentFactory; @@ -81,7 +84,7 @@ import static java.util.stream.Collectors.toList; import static org.drools.compiler.kie.util.InjectionHelper.wireSessionComponents; -import static org.drools.core.util.Drools.isJndiAvailable; +import static org.drools.base.util.Drools.isJndiAvailable; import static org.drools.util.ClassUtils.convertResourceToClassName; public class KieContainerImpl @@ -540,7 +543,7 @@ StatefulSessionPool createKieSessionsPool(String kSessionName, KieSessionConfigu log.error("Unknown KieSession name: " + kSessionName); return null; } - InternalKnowledgeBase kBase = (InternalKnowledgeBase) getKieBaseFromKieSessionModel( kSessionModel ); + InternalKnowledgeBase kBase = (InternalKnowledgeBase) getKieBaseFromKieSessionModel(kSessionModel); return kBase == null ? null : new StatefulSessionPool(kBase, initialSize, () -> { SessionConfiguration sessConf = conf != null ? conf.as(SessionConfiguration.KEY) : kBase.getSessionConfiguration().as(SessionConfiguration.KEY); StatefulKnowledgeSessionImpl kSession = stateless ? @@ -608,11 +611,11 @@ public KieSession newKieSession(String kSessionName, Environment environment, Ki if ( kBase == null ) return null; KieSession kSession = kBase.newKieSession( conf != null ? conf : getKieSessionConfiguration( kSessionModel ), environment ); - registerNewKieSession( kSessionModel, ( InternalKnowledgeBase ) kBase, kSession ); + registerNewKieSession(kSessionModel, (InternalKnowledgeBase) kBase, kSession); return kSession; } - private void registerNewKieSession( KieSessionModel kSessionModel, InternalKnowledgeBase kBase, KieSession kSession ) { + private void registerNewKieSession(KieSessionModel kSessionModel, InternalKnowledgeBase kBase, KieSession kSession) { if (isJndiAvailable()) { wireSessionComponents( kSessionModel, kSession ); } @@ -725,15 +728,15 @@ private KieSessionConfiguration getKieSessionConfiguration( KieSessionModel kSes public void dispose() { sessionConfsCache.clear(); - kBases.values().forEach( kb -> ( (InternalKnowledgeBase) kb ).setKieContainer( null ) ); + kBases.values().forEach( kb -> ( (InternalKnowledgeBase) kb ).setKieContainer(null)); Set cbskeys = new HashSet<>(); if ( isMBeanOptionEnabled() ) { for (Entry kv : kSessions.entrySet()) { - cbskeys.add(new DroolsManagementAgent.CBSKey(containerId, ((RuleBase) kv.getValue().getKieBase()).getId(), kv.getKey())); + cbskeys.add(new DroolsManagementAgent.CBSKey(containerId, ((InternalRuleBase) kv.getValue().getKieBase()).getId(), kv.getKey())); } for (Entry kv : statelessKSessions.entrySet()) { - cbskeys.add(new DroolsManagementAgent.CBSKey(containerId, ((RuleBase) kv.getValue().getKieBase()).getId(), kv.getKey())); + cbskeys.add(new DroolsManagementAgent.CBSKey(containerId, ((InternalRuleBase) kv.getValue().getKieBase()).getId(), kv.getKey())); } } @@ -748,7 +751,7 @@ public void dispose() { DroolsManagementAgent.getInstance().unregisterKnowledgeSessionBean(c); } for (KieBase kb : kBases.values()) { - DroolsManagementAgent.getInstance().unregisterKnowledgeBase((RuleBase) kb); + DroolsManagementAgent.getInstance().unregisterKnowledgeBase((InternalRuleBase) kb); } DroolsManagementAgent.getInstance().unregisterMBeansFromOwner(this); } diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerSessionsPoolImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerSessionsPoolImpl.java index 4d24e25196c..5eae8f158a5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerSessionsPoolImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieContainerSessionsPoolImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import org.drools.kiesession.session.AbstractKieSessionsPool; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieFileSystemImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieFileSystemImpl.java index 289ac9f288d..83beb49a590 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieFileSystemImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieFileSystemImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.ByteArrayInputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieFileSystemScannerImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieFileSystemScannerImpl.java index d11948a7729..a76227613c5 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieFileSystemScannerImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieFileSystemScannerImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.io.File; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieMetaInfoBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieMetaInfoBuilder.java index 5db8621ca7d..ff5ebc80592 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieMetaInfoBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieMetaInfoBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl; import java.util.ArrayList; @@ -25,11 +29,11 @@ import org.kie.memorycompiler.resources.ResourceStore; import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.kproject.models.KieModuleModelImpl; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.factmodel.ClassDefinition; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.KieModuleMetaInfo; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.TypeMetaInfo; +import org.drools.base.rule.KieModuleMetaInfo; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.TypeMetaInfo; import org.drools.util.IoUtils; import org.kie.api.builder.model.KieModuleModel; import org.kie.api.definition.KiePackage; @@ -37,7 +41,7 @@ import org.kie.api.definition.type.FactType; import org.kie.internal.builder.KnowledgeBuilder; -import static org.drools.core.util.Drools.hasMvel; +import static org.drools.base.util.Drools.hasMvel; public class KieMetaInfoBuilder { diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieModuleKieProject.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieModuleKieProject.java index 445b33b47e5..1b6e3b8db04 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieModuleKieProject.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieModuleKieProject.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.InputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieProject.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieProject.java index 55d9360a99f..8265179b77f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieProject.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieProject.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.InputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieRepositoryImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieRepositoryImpl.java index b7095573a46..cd20a202a56 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieRepositoryImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieRepositoryImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.ByteArrayInputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieServicesImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieServicesImpl.java index dbacdf9f25c..0722212ab5f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieServicesImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieServicesImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.File; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KnowledgePackagesBuildResult.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KnowledgePackagesBuildResult.java index 7b845050d50..197121f4781 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KnowledgePackagesBuildResult.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KnowledgePackagesBuildResult.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.util.Collection; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/MemoryKieModule.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/MemoryKieModule.java index a2abd82d1b5..d3258487517 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/MemoryKieModule.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/MemoryKieModule.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.ByteArrayInputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ResultsImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ResultsImpl.java index b6bdc2e6936..7e664248998 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ResultsImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ResultsImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ZipKieModule.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ZipKieModule.java index 4504f183a33..ae150b9d126 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ZipKieModule.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ZipKieModule.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl; import java.io.BufferedInputStream; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/AbstractKieServicesEventListerner.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/AbstractKieServicesEventListerner.java index 9aad74d741c..581a3da691e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/AbstractKieServicesEventListerner.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/AbstractKieServicesEventListerner.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl.event; public abstract class AbstractKieServicesEventListerner implements KieServicesEventListerner { diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieModuleDiscovered.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieModuleDiscovered.java index adc15820869..5e28957382f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieModuleDiscovered.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieModuleDiscovered.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl.event; public class KieModuleDiscovered { diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerEventSupport.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerEventSupport.java index e94334f2e24..ae35c72893a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerEventSupport.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerEventSupport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl.event; import org.drools.core.event.AbstractEventSupport; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerStatusChangeEventImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerStatusChangeEventImpl.java index 236432f7225..c6c40a49401 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerStatusChangeEventImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerStatusChangeEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl.event; import org.kie.api.builder.KieScanner.Status; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerUpdateResultsEventImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerUpdateResultsEventImpl.java index 08b3b1fc74d..9afc64a9ae2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerUpdateResultsEventImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieScannerUpdateResultsEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.builder.impl.event; import org.kie.api.builder.Results; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieServicesEventListerner.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieServicesEventListerner.java index a80c8ce3f08..8b4856a84f4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieServicesEventListerner.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/event/KieServicesEventListerner.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.builder.impl.event; public interface KieServicesEventListerner { diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/util/BeanCreator.java b/drools-compiler/src/main/java/org/drools/compiler/kie/util/BeanCreator.java index 347e0cc5fcd..a9f3078763d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/util/BeanCreator.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/util/BeanCreator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.util; import org.kie.api.builder.model.QualifierModel; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/util/ChangeSetBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/kie/util/ChangeSetBuilder.java index 1d1ed29ba48..ebc9900e3cf 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/util/ChangeSetBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/util/ChangeSetBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.compiler.kie.util; @@ -26,7 +29,6 @@ import java.util.Map; import java.util.Set; -import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.builder.impl.KnowledgeBuilderFactoryServiceImpl; import org.drools.drl.parser.DrlParser; import org.drools.compiler.kie.builder.impl.InternalKieModule; @@ -38,7 +40,7 @@ import org.drools.drl.ast.descr.TypeDeclarationDescr; import org.drools.drl.ast.descr.TypeFieldDescr; import org.drools.util.TypeResolver; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.io.ByteArrayResource; import org.drools.util.StringUtils; import org.kie.api.io.ResourceType; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/util/InjectionHelper.java b/drools-compiler/src/main/java/org/drools/compiler/kie/util/InjectionHelper.java index f6e13ce6554..269667a9e3e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/util/InjectionHelper.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/util/InjectionHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.util; import java.util.List; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/util/KieJarChangeSet.java b/drools-compiler/src/main/java/org/drools/compiler/kie/util/KieJarChangeSet.java index e849682e180..735c9d65559 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/util/KieJarChangeSet.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/util/KieJarChangeSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.compiler.kie.util; import java.util.HashMap; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/util/ReflectionBeanCreator.java b/drools-compiler/src/main/java/org/drools/compiler/kie/util/ReflectionBeanCreator.java index ee2f04a91ed..b841397ccdd 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kie/util/ReflectionBeanCreator.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kie/util/ReflectionBeanCreator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kie.util; import org.kie.api.builder.model.QualifierModel; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/KieModuleException.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/KieModuleException.java new file mode 100644 index 00000000000..6431efc7654 --- /dev/null +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/KieModuleException.java @@ -0,0 +1,26 @@ +/** + * 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. + */ +package org.drools.compiler.kproject; + +public class KieModuleException extends RuntimeException { + + public KieModuleException(String message) { + super(message); + } +} diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/ChannelModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/ChannelModelImpl.java index cfc1940e9ee..7704e9e3ab4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/ChannelModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/ChannelModelImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.kproject.models; import org.kie.api.builder.model.ChannelModel; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/FileLoggerModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/FileLoggerModelImpl.java index d084ef98e7c..16b733ca7b9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/FileLoggerModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/FileLoggerModelImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kproject.models; import org.kie.api.builder.model.FileLoggerModel; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java index fd61b0366ee..bdae5fabbcf 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieBaseModelImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kproject.models; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieModuleModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieModuleModelImpl.java index 29fd4e8a3bf..d73d5cb9f8b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieModuleModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieModuleModelImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kproject.models; import java.io.InputStream; @@ -21,7 +24,7 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.XMLSupport; +import org.drools.base.base.XMLSupport; import org.drools.util.StringUtils; import org.kie.api.builder.model.KieBaseModel; import org.kie.api.builder.model.KieModuleModel; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieSessionModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieSessionModelImpl.java index 9fb9152838a..08847623e41 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieSessionModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/KieSessionModelImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kproject.models; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/ListenerModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/ListenerModelImpl.java index b37f9bb5a08..35d21544ea1 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/ListenerModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/ListenerModelImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kproject.models; import org.kie.api.builder.model.ListenerModel; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/QualifierModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/QualifierModelImpl.java index d4a0e43cb71..936a7d2ce8f 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/QualifierModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/QualifierModelImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kproject.models; import java.util.HashMap; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/RuleTemplateModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/RuleTemplateModelImpl.java index 9ef2b6d286e..a0c885e401c 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/RuleTemplateModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/RuleTemplateModelImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.compiler.kproject.models; import org.kie.api.builder.model.KieBaseModel; diff --git a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/WorkItemHandlerModelImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/WorkItemHandlerModelImpl.java index 172e9368ff7..d67549d78c9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/kproject/models/WorkItemHandlerModelImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/kproject/models/WorkItemHandlerModelImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.kproject.models; import org.kie.api.builder.model.QualifierModel; diff --git a/drools-compiler/src/main/java/org/drools/compiler/lang/DescrDumper.java b/drools-compiler/src/main/java/org/drools/compiler/lang/DescrDumper.java index 350001573e8..32fe74e4101 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/lang/DescrDumper.java +++ b/drools-compiler/src/main/java/org/drools/compiler/lang/DescrDumper.java @@ -1,3 +1,21 @@ +/** + * 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. + */ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +47,7 @@ import org.drools.drl.ast.descr.OperatorDescr; import org.drools.drl.ast.descr.RelationalExprDescr; import org.drools.drl.parser.impl.Operator; -import org.drools.core.rule.XpathBackReference; +import org.drools.base.rule.XpathBackReference; import org.kie.internal.builder.conf.LanguageLevelOption; import static org.drools.compiler.rule.builder.dialect.DialectUtil.findClassByName; diff --git a/drools-compiler/src/main/java/org/drools/compiler/lang/DumperContext.java b/drools-compiler/src/main/java/org/drools/compiler/lang/DumperContext.java index 7f8363f2cf7..266494c354b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/lang/DumperContext.java +++ b/drools-compiler/src/main/java/org/drools/compiler/lang/DumperContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.lang; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/lang/ExpressionRewriter.java b/drools-compiler/src/main/java/org/drools/compiler/lang/ExpressionRewriter.java index ec8a080b2ef..fd5c95f9504 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/lang/ExpressionRewriter.java +++ b/drools-compiler/src/main/java/org/drools/compiler/lang/ExpressionRewriter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.lang; diff --git a/drools-compiler/src/main/java/org/drools/compiler/lang/ReflectiveVisitor.java b/drools-compiler/src/main/java/org/drools/compiler/lang/ReflectiveVisitor.java index 8fa8f84f48e..3513b9ff18a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/lang/ReflectiveVisitor.java +++ b/drools-compiler/src/main/java/org/drools/compiler/lang/ReflectiveVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.lang; import java.lang.reflect.Method; diff --git a/drools-compiler/src/main/java/org/drools/compiler/lang/Visitor.java b/drools-compiler/src/main/java/org/drools/compiler/lang/Visitor.java index 555d0192c43..ac0dfa946c0 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/lang/Visitor.java +++ b/drools-compiler/src/main/java/org/drools/compiler/lang/Visitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.lang; public interface Visitor { diff --git a/drools-compiler/src/main/java/org/drools/compiler/lang/descr/CompositePackageDescr.java b/drools-compiler/src/main/java/org/drools/compiler/lang/descr/CompositePackageDescr.java index 9ddcbbe3383..b7da760ee75 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/lang/descr/CompositePackageDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/lang/descr/CompositePackageDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.lang.descr; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/management/KieContainerMonitor.java b/drools-compiler/src/main/java/org/drools/compiler/management/KieContainerMonitor.java index 6d30c75cefc..48fe0d1ebaa 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/management/KieContainerMonitor.java +++ b/drools-compiler/src/main/java/org/drools/compiler/management/KieContainerMonitor.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.management; import org.drools.core.impl.InternalKieContainer; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/AccumulateBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/AccumulateBuilder.java index db53f54e99b..ad2679daf5e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/AccumulateBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/AccumulateBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; /** diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/CollectBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/CollectBuilder.java index 7358063c75a..8c08a58154b 100755 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/CollectBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/CollectBuilder.java @@ -1,27 +1,29 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.compiler.rule.builder; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.CollectDescr; import org.drools.drl.ast.descr.PatternDescr; -import org.drools.core.rule.Collect; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.Collect; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; public class CollectBuilder implements diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConditionalBranchBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConditionalBranchBuilder.java index a79caca94d0..8490aaad03a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConditionalBranchBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConditionalBranchBuilder.java @@ -1,31 +1,34 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; import java.util.List; import org.drools.drl.parser.DroolsError; import org.drools.compiler.compiler.RuleBuildError; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.ConditionalBranch; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.NamedConsequence; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.ConditionalBranch; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.NamedConsequence; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.ConditionalBranchDescr; import org.drools.drl.ast.descr.EvalDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConsequenceBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConsequenceBuilder.java index f21f7fb0407..74a25acf56a 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConsequenceBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConsequenceBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; public interface ConsequenceBuilder { diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConstraintBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConstraintBuilder.java index c01fd8300c8..b0e3dca43e2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConstraintBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ConstraintBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; @@ -25,15 +28,15 @@ import org.drools.compiler.compiler.DialectConfiguration; import org.drools.compiler.compiler.JavaDialectConfiguration; import org.drools.compiler.kie.util.BeanCreator; -import org.drools.core.base.ObjectType; -import org.drools.core.base.ValueType; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.QueryArgument; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.constraint.Constraint; +import org.drools.base.base.ObjectType; +import org.drools.base.base.ValueType; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.QueryArgument; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.constraint.Constraint; import org.drools.core.time.TimerExpression; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.LiteralRestrictionDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EnabledBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EnabledBuilder.java index b97c604004d..4428a600c53 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EnabledBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EnabledBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; public interface EnabledBuilder { diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EngineElementBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EngineElementBuilder.java index 0cf451a8043..e3064d30a3b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EngineElementBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EngineElementBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2008 Red Hat - * - * Licensed 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. +/** + * 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. */ package org.drools.compiler.rule.builder; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EntryPointBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EntryPointBuilder.java index 502d1de2e60..54e97274c67 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EntryPointBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EntryPointBuilder.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.EntryPointDescr; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; /** * A class capable of building entry point instances diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EvaluatorDefinition.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EvaluatorDefinition.java index e5d78f1d78c..c77425d68a0 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EvaluatorDefinition.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EvaluatorDefinition.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.rule.builder; import java.io.Externalizable; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.drl.parser.impl.Operator; -import org.drools.core.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.Evaluator; /** * An evaluator definition interface that allows for pluggable diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EvaluatorWrapper.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EvaluatorWrapper.java index de5b75ffcba..cb13ddb5d76 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EvaluatorWrapper.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/EvaluatorWrapper.java @@ -1,33 +1,36 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.rule.builder; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.core.base.extractors.ConstantValueReader; -import org.drools.core.base.extractors.SelfReferenceClassFieldReader; -import org.drools.core.base.field.ObjectFieldImpl; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; +import org.drools.base.base.field.ObjectFieldImpl; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; import static org.drools.core.common.InternalFactHandle.dummyFactHandleOf; @@ -124,22 +127,22 @@ public ValueType getCoercedValueType() { return evaluator.getCoercedValueType(); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(ValueResolver valueResolver, ReadAccessor extractor, - InternalFactHandle factHandle, + FactHandle factHandle, FieldValue value) { - return evaluator.evaluate( reteEvaluator, + return evaluator.evaluate( valueResolver, extractor, factHandle, value ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(ValueResolver valueResolver, ReadAccessor leftExtractor, - InternalFactHandle left, + FactHandle left, ReadAccessor rightExtractor, - InternalFactHandle right) { - return evaluator.evaluate( reteEvaluator, + FactHandle right) { + return evaluator.evaluate( valueResolver, leftExtractor, left, rightExtractor, @@ -162,18 +165,18 @@ public Interval getInterval() { return evaluator.getInterval(); } - public void loadHandles(InternalFactHandle[] handles, InternalFactHandle rightHandle) { - InternalFactHandle localLeftHandle = selfLeft ? null : getFactHandle(leftBinding, handles); + public void loadHandles(FactHandle[] handles, FactHandle rightHandle) { + FactHandle localLeftHandle = selfLeft ? null : getFactHandle(leftBinding, handles); - InternalFactHandle localRightHandle = selfRight ? rightHandle : getFactHandle(rightBinding, handles); + FactHandle localRightHandle = selfRight ? rightHandle : getFactHandle(rightBinding, handles); this.rightLiteral = localRightHandle == null; if (isTemporal()) { if (localLeftHandle == null) { localLeftHandle = rightHandle; } - leftTimestamp = localLeftHandle instanceof EventFactHandle ? (( EventFactHandle ) localLeftHandle).getStartTimestamp() : null; - rightTimestamp = localRightHandle instanceof EventFactHandle ? (( EventFactHandle ) localRightHandle).getStartTimestamp() : null; + leftTimestamp = localLeftHandle instanceof DefaultEventHandle ? ((DefaultEventHandle) localLeftHandle).getStartTimestamp() : null; + rightTimestamp = localRightHandle instanceof DefaultEventHandle ? ((DefaultEventHandle) localRightHandle).getStartTimestamp() : null; } } @@ -195,8 +198,8 @@ public void setBindingName( String bindingName ) { this.bindingName = bindingName; } - private static InternalFactHandle getFactHandle( Declaration declaration, - InternalFactHandle[] handles ) { + private static FactHandle getFactHandle( Declaration declaration, + FactHandle[] handles ) { return handles != null && handles.length > declaration.getObjectIndex() ? handles[declaration.getObjectIndex()] : null; } } diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ForallBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ForallBuilder.java index 2d1c03adeae..431c1cd5ec5 100755 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ForallBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/ForallBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.compiler.rule.builder; import org.drools.drl.ast.descr.BaseDescr; @@ -21,10 +23,10 @@ import org.drools.drl.ast.descr.ForallDescr; import org.drools.drl.ast.descr.NotDescr; import org.drools.drl.ast.descr.PatternDescr; -import org.drools.core.rule.Forall; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.Forall; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; public class ForallBuilder implements diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/FromBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/FromBuilder.java index 3ff440c35e6..3064a235e2c 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/FromBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/FromBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; /** diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/FunctionBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/FunctionBuilder.java index 1469a3a03b2..e88e3d075e4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/FunctionBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/FunctionBuilder.java @@ -1,27 +1,29 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.rule.builder; import java.util.List; import java.util.Map; import org.drools.drl.ast.descr.FunctionDescr; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.LineMappings; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.LineMappings; import org.kie.internal.builder.KnowledgeBuilderResult; import org.drools.util.TypeResolver; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/GroupByBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/GroupByBuilder.java new file mode 100644 index 00000000000..6549b050446 --- /dev/null +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/GroupByBuilder.java @@ -0,0 +1,26 @@ +/** + * 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. + */ +package org.drools.compiler.rule.builder; + +/** + * A markup interface for AccumulateBuilders + */ +public interface GroupByBuilder extends RuleConditionBuilder { + +} diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/GroupElementBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/GroupElementBuilder.java index 171f698facc..2fd20abb3e6 100755 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/GroupElementBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/GroupElementBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.compiler.rule.builder; import org.drools.drl.ast.descr.AndDescr; @@ -22,10 +24,10 @@ import org.drools.drl.ast.descr.ExistsDescr; import org.drools.drl.ast.descr.NotDescr; import org.drools.drl.ast.descr.OrDescr; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElementFactory; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElementFactory; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; public class GroupElementBuilder implements diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/JavaRuleClassBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/JavaRuleClassBuilder.java index e255e6a5043..6599079d019 100755 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/JavaRuleClassBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/JavaRuleClassBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.rule.builder; import org.drools.drl.ast.descr.RuleDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/NamedConsequenceBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/NamedConsequenceBuilder.java index a1d99772f41..bc9c3872efc 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/NamedConsequenceBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/NamedConsequenceBuilder.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.NamedConsequenceDescr; -import org.drools.core.rule.NamedConsequence; -import org.drools.core.rule.Pattern; +import org.drools.base.rule.NamedConsequence; +import org.drools.base.rule.Pattern; public class NamedConsequenceBuilder implements RuleConditionBuilder { diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PackageBuildContext.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PackageBuildContext.java index e40c7c6d67f..16093c00e2b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PackageBuildContext.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PackageBuildContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.compiler.rule.builder; import java.lang.reflect.Type; @@ -28,8 +30,8 @@ import org.drools.compiler.compiler.Dialect; import org.drools.compiler.compiler.DialectCompiletimeRegistry; import org.drools.compiler.compiler.DroolsWarning; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.Dialectable; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.Dialectable; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.parser.DroolsError; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilder.java index 248c0e8462c..0fd9d75de1b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.compiler.rule.builder; import java.lang.reflect.Field; @@ -43,41 +45,41 @@ import org.drools.compiler.rule.builder.EvaluatorDefinition.Target; import org.drools.compiler.rule.builder.XpathAnalysis.XpathPart; import org.drools.compiler.rule.builder.util.ConstraintUtil; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.base.FieldNameSupplier; -import org.drools.core.base.ObjectType; -import org.drools.core.base.ValueType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.AnnotationDefinition; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.facttemplates.FactTemplate; -import org.drools.core.facttemplates.FactTemplateFieldExtractor; -import org.drools.core.facttemplates.FactTemplateObjectType; -import org.drools.core.reteoo.RuleTerminalNode.SortDeclarations; -import org.drools.core.rule.Behavior; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.PatternSource; -import org.drools.core.rule.PredicateConstraint; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.base.ObjectType; +import org.drools.base.base.ValueType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.AnnotationDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.facttemplates.FactTemplateFieldExtractor; +import org.drools.base.facttemplates.FactTemplateObjectType; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.core.rule.BehaviorRuntime; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.PatternSource; +import org.drools.base.rule.PredicateConstraint; +import org.drools.base.rule.RuleConditionElement; import org.drools.core.rule.SlidingLengthWindow; import org.drools.core.rule.SlidingTimeWindow; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.XpathBackReference; -import org.drools.core.rule.accessor.AcceptsReadAccessor; -import org.drools.core.rule.accessor.DeclarationScopeResolver; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.constraint.Constraint; -import org.drools.core.rule.constraint.NegConstraint; -import org.drools.core.rule.constraint.XpathConstraint; -import org.drools.core.time.TimeUtils; -import org.drools.core.util.index.IndexUtil; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.XpathBackReference; +import org.drools.base.rule.accessor.AcceptsReadAccessor; +import org.drools.base.rule.accessor.DeclarationScopeResolver; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.rule.constraint.NegConstraint; +import org.drools.base.rule.constraint.XpathConstraint; +import org.drools.base.time.TimeUtils; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.drl.ast.descr.AnnotationDescr; import org.drools.drl.ast.descr.AtomicExprDescr; import org.drools.drl.ast.descr.BaseDescr; @@ -376,7 +378,7 @@ private void processSource(RuleBuildContext context, PatternDescr patternDescr, private void processBehaviors(RuleBuildContext context, PatternDescr patternDescr, Pattern pattern) { for (BehaviorDescr behaviorDescr : patternDescr.getBehaviors()) { if (pattern.getObjectType().isEvent()) { - Behavior window = createWindow(behaviorDescr); + BehaviorRuntime window = createWindow(behaviorDescr); if (window != null) { pattern.addBehavior(window); context.setNeedStreamMode(); @@ -393,11 +395,11 @@ private void processBehaviors(RuleBuildContext context, PatternDescr patternDesc } } - private Behavior createWindow(BehaviorDescr behaviorDescr) { - if (Behavior.BehaviorType.TIME_WINDOW.matches(behaviorDescr.getSubType())) { + private BehaviorRuntime createWindow(BehaviorDescr behaviorDescr) { + if (BehaviorRuntime.BehaviorType.TIME_WINDOW.matches(behaviorDescr.getSubType())) { return new SlidingTimeWindow(TimeUtils.parseTimeString(behaviorDescr.getParameters().get(0))); } - if (Behavior.BehaviorType.LENGTH_WINDOW.matches(behaviorDescr.getSubType())) { + if (BehaviorRuntime.BehaviorType.LENGTH_WINDOW.matches(behaviorDescr.getSubType())) { return new SlidingLengthWindow(Integer.parseInt(behaviorDescr.getParameters().get(0))); } return null; @@ -997,7 +999,7 @@ private Constraint buildExpression(final RuleBuildContext context, } private String normalizeNegatedExpr(String expr, String operator) { - IndexUtil.ConstraintType constraintType = IndexUtil.ConstraintType.decode(operator); + ConstraintTypeOperator constraintType = ConstraintTypeOperator.decode(operator); return constraintType.getOperator() != null ? expr.replace( constraintType.getOperator(), constraintType.negate().getOperator() ) : "!(" + expr + ")"; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilderForAbductiveQuery.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilderForAbductiveQuery.java index 1f88b5fce4b..af334cdac12 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilderForAbductiveQuery.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilderForAbductiveQuery.java @@ -1,28 +1,31 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.rule.builder; import java.util.Arrays; import org.drools.compiler.compiler.DescrBuildError; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.Declaration; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.base.ObjectType; import org.drools.drl.ast.descr.AnnotationDescr; import org.drools.drl.ast.descr.QueryDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilderForQuery.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilderForQuery.java index efb291b2f9c..eb2234b4483 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilderForQuery.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PatternBuilderForQuery.java @@ -1,30 +1,33 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; import org.drools.compiler.compiler.DescrBuildError; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.drl.ast.descr.QueryDescr; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.extractors.ArrayElementReader; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.rule.constraint.QueryNameConstraint; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.extractors.ArrayElementReader; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.rule.constraint.QueryNameConstraint; +import org.drools.base.base.ObjectType; public class PatternBuilderForQuery implements EngineElementBuilder { diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PredicateBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PredicateBuilder.java index c712f0c0fd9..771f7c1241e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PredicateBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/PredicateBuilder.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; import org.drools.compiler.compiler.AnalysisResult; import org.drools.compiler.compiler.BoundIdentifiers; import org.drools.drl.ast.descr.PredicateDescr; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.PredicateConstraint; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.PredicateConstraint; public interface PredicateBuilder { public void build(final RuleBuildContext context, diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/QueryElementBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/QueryElementBuilder.java index db92d5c93b4..a6345f30fe4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/QueryElementBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/QueryElementBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; import java.util.ArrayList; @@ -24,19 +27,19 @@ import org.drools.compiler.compiler.DescrBuildError; import org.drools.compiler.lang.DescrDumper; import org.drools.compiler.lang.DumperContext; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.base.extractors.ArrayElementReader; -import org.drools.core.base.extractors.SelfReferenceClassFieldReader; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.QueryArgument; -import org.drools.core.rule.QueryElement; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.accessor.DeclarationScopeResolver; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.base.extractors.ArrayElementReader; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.QueryArgument; +import org.drools.base.rule.QueryElement; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.accessor.DeclarationScopeResolver; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.BindingDescr; import org.drools.drl.ast.descr.ConstraintConnectiveDescr; @@ -48,7 +51,7 @@ import org.drools.util.StringUtils; import org.kie.internal.builder.conf.LanguageLevelOption; -import static org.drools.core.rule.LogicTransformer.toIntArray; +import static org.drools.base.rule.LogicTransformer.toIntArray; import static org.drools.util.StringUtils.isDereferencingIdentifier; public class QueryElementBuilder diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleBuildContext.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleBuildContext.java index 5879a1001c1..95aa5893379 100755 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleBuildContext.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleBuildContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.rule.builder; import java.beans.IntrospectionException; @@ -27,11 +29,11 @@ import org.drools.compiler.compiler.DialectCompiletimeRegistry; import org.drools.compiler.compiler.RuleBuildError; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import org.drools.drl.ast.descr.QueryDescr; import org.drools.drl.ast.descr.RuleDescr; import org.drools.util.TypeResolver; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleBuilder.java index 8fa41bc9112..cdef6fe7f23 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.rule.builder; import java.text.ParseException; @@ -29,22 +31,22 @@ import org.drools.compiler.compiler.DroolsWarning; import org.drools.compiler.compiler.RuleBuildError; import org.drools.compiler.compiler.RuleBuildWarning; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.base.EnabledBoolean; -import org.drools.core.base.SalienceInteger; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.base.EnabledBoolean; +import org.drools.base.base.SalienceInteger; import org.drools.core.common.InternalAgendaGroup; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.AnnotationDefinition; -import org.drools.core.rule.GroupElement; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.rule.accessor.Salience; -import org.drools.core.time.TimeUtils; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.AnnotationDefinition; +import org.drools.base.rule.GroupElement; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.rule.accessor.Salience; +import org.drools.base.time.TimeUtils; import org.drools.core.time.TimerExpression; import org.drools.core.time.impl.CronExpression; import org.drools.core.time.impl.CronTimer; import org.drools.core.time.impl.ExpressionIntervalTimer; import org.drools.core.time.impl.IntervalTimer; -import org.drools.core.time.impl.Timer; +import org.drools.base.time.impl.Timer; import org.drools.drl.ast.descr.AnnotationDescr; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.QueryDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleClassBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleClassBuilder.java index ea971f8f6c7..78eb8547e6b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleClassBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleClassBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleConditionBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleConditionBuilder.java index 25920914ffb..1caafd5b13b 100755 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleConditionBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/RuleConditionBuilder.java @@ -1,24 +1,26 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.compiler.rule.builder; import org.drools.drl.ast.descr.BaseDescr; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; /** * An interface to define classes capable of building diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/SalienceBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/SalienceBuilder.java index e29a8f250b4..7257e9f10bb 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/SalienceBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/SalienceBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; public interface SalienceBuilder { diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/WindowReferenceBuilder.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/WindowReferenceBuilder.java index 7836b321189..867b59b10c3 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/WindowReferenceBuilder.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/WindowReferenceBuilder.java @@ -1,26 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; import org.drools.compiler.compiler.DescrBuildError; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.WindowReferenceDescr; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.WindowReference; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.WindowReference; /** * A class capable of building window source references diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/XpathAnalysis.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/XpathAnalysis.java index 0bfefc80915..bfe9712ffa2 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/XpathAnalysis.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/XpathAnalysis.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectError.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectError.java index 87c6b6fde41..edcd53101de 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectError.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectError.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect; import org.drools.drl.parser.DroolsError; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectUtil.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectUtil.java index b6cbe198634..3ca1706d3db 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectUtil.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/DialectUtil.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect; import java.util.HashSet; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/AbstractJavaBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/AbstractJavaBlockDescr.java index cd203daf599..565773c2a09 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/AbstractJavaBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/AbstractJavaBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; import java.util.List; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/AbstractJavaContainerBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/AbstractJavaContainerBlockDescr.java index bbee8eea5a7..32fcbafbb7b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/AbstractJavaContainerBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/AbstractJavaContainerBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaBlockDescr.java index 3323e49a42c..5da92e20147 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; import java.util.List; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaCatchBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaCatchBlockDescr.java index 312116cf736..1a2197011a7 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaCatchBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaCatchBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; public class JavaCatchBlockDescr extends AbstractJavaContainerBlockDescr diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaContainerBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaContainerBlockDescr.java index 31eb6c8ba55..70295c5fac9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaContainerBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaContainerBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; import java.util.List; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaElseBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaElseBlockDescr.java index 24852dd2306..4a3874d82f1 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaElseBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaElseBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; public class JavaElseBlockDescr extends AbstractJavaContainerBlockDescr diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaExitPointsDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaExitPointsDescr.java index 7cd0f9dc0a4..bcb7c51f7df 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaExitPointsDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaExitPointsDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaFinalBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaFinalBlockDescr.java index 4ce3dd2dabc..094b76d30fa 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaFinalBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaFinalBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; public class JavaFinalBlockDescr extends AbstractJavaContainerBlockDescr diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaForBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaForBlockDescr.java index 8ddf921352f..e50969d169e 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaForBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaForBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; public class JavaForBlockDescr extends AbstractJavaContainerBlockDescr diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaIfBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaIfBlockDescr.java index bd4b67c6360..83530cf1933 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaIfBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaIfBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; public class JavaIfBlockDescr extends AbstractJavaContainerBlockDescr diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaInterfacePointsDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaInterfacePointsDescr.java index 2126e3942ed..467a32f1c54 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaInterfacePointsDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaInterfacePointsDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaLexer.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaLexer.java index e21fc184237..6d8b69cee6d 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaLexer.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaLexer.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // $ANTLR 3.5 src/main/resources/org/drools/compiler/semantics/java/parser/Java.g 2017-05-16 10:26:33 package org.drools.compiler.rule.builder.dialect.java.parser; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaLocalDeclarationDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaLocalDeclarationDescr.java index 302d60042dc..acc31eef500 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaLocalDeclarationDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaLocalDeclarationDescr.java @@ -1,19 +1,20 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on Jun 18, 2007 + * 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. */ package org.drools.compiler.rule.builder.dialect.java.parser; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaModifyBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaModifyBlockDescr.java index 68214beb001..e71eccaf48c 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaModifyBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaModifyBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaParser.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaParser.java index 8a0457ca39b..becf8097228 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaParser.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaParser.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // $ANTLR 3.5.2 src/main/resources/org/drools/compiler/semantics/java/parser/Java.g 2020-01-03 12:48:30 package org.drools.compiler.rule.builder.dialect.java.parser; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaRootBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaRootBlockDescr.java index 9c0b7e7d300..79d0c6ccbec 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaRootBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaRootBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; public class JavaRootBlockDescr extends AbstractJavaContainerBlockDescr diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaStatementBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaStatementBlockDescr.java index 0523adc32ee..b7873ed6a78 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaStatementBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaStatementBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; public class JavaStatementBlockDescr extends AbstractJavaBlockDescr implements JavaBlockDescr { diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaThrowBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaThrowBlockDescr.java index 328969dd980..db7d4f195b6 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaThrowBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaThrowBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; /** diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaTryBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaTryBlockDescr.java index 5ac4c1ae43c..60f99508977 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaTryBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaTryBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; import java.util.ArrayList; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaWhileBlockDescr.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaWhileBlockDescr.java index 3c6b7759a02..4d99cf2d491 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaWhileBlockDescr.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/parser/JavaWhileBlockDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.dialect.java.parser; public class JavaWhileBlockDescr extends AbstractJavaContainerBlockDescr diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/AccumulateUtil.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/AccumulateUtil.java index 57a9941bd07..192873909f1 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/AccumulateUtil.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/AccumulateUtil.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.rule.builder.util; import java.math.BigDecimal; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/AnnotationFactory.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/AnnotationFactory.java index f710d5dfce3..39d4d82d046 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/AnnotationFactory.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/AnnotationFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.util; import java.lang.annotation.Annotation; @@ -20,7 +23,7 @@ import java.lang.reflect.Method; import org.drools.util.TypeResolver; -import org.drools.core.rule.Annotated; +import org.drools.base.rule.Annotated; import org.drools.drl.ast.descr.AnnotatedBaseDescr; import org.drools.drl.ast.descr.AnnotationDescr; diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/ConstraintUtil.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/ConstraintUtil.java index 5eff8c657b2..7cf071f3192 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/ConstraintUtil.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/ConstraintUtil.java @@ -1,9 +1,27 @@ +/** + * 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. + */ package org.drools.compiler.rule.builder.util; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.Pattern; -import org.drools.core.base.ObjectType; -import org.drools.core.util.index.IndexUtil; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.Pattern; +import org.drools.base.base.ObjectType; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.OperatorDescr; import org.drools.drl.ast.descr.RelationalExprDescr; @@ -54,7 +72,7 @@ public static String inverseExpression(RelationalExprDescr relDescr, String expr relDescr.setLeft(relDescr.getRight()); relDescr.setRight(left); - String inversedOperator = IndexUtil.ConstraintType.decode(operator).inverse().getOperator(); + String inversedOperator = ConstraintTypeOperator.decode(operator).inverse().getOperator(); operatorDescr.setOperator(inversedOperator); @@ -84,7 +102,7 @@ private static boolean canInverse(Pattern pattern, String operator, OperatorDesc if (leftProp.isEmpty() || rightProp.isEmpty()) { return false; } - return IndexUtil.ConstraintType.decode(operator).canInverse(); + return ConstraintTypeOperator.decode(operator).canInverse(); } private static String getFirstProp(String str) { diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/PackageBuilderUtil.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/PackageBuilderUtil.java index 572ae0af8c1..92565eb54fb 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/PackageBuilderUtil.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/PackageBuilderUtil.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.rule.builder.util; import org.drools.compiler.compiler.DescrBuildError; @@ -21,10 +24,10 @@ import org.drools.drl.ast.descr.PatternDescr; import org.drools.drl.ast.descr.WindowReferenceDescr; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.QueryElement; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.QueryElement; +import org.drools.base.rule.RuleConditionElement; public class PackageBuilderUtil { diff --git a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/PatternBuilderUtil.java b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/PatternBuilderUtil.java index c66155876a5..292d89709a9 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/PatternBuilderUtil.java +++ b/drools-compiler/src/main/java/org/drools/compiler/rule/builder/util/PatternBuilderUtil.java @@ -1,27 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.rule.builder.util; import java.time.LocalDate; import java.time.LocalDateTime; -import org.drools.core.base.ValueType; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.base.ValueType; +import org.drools.base.rule.accessor.FieldValue; import org.drools.drl.ast.descr.LiteralRestrictionDescr; -import static org.drools.core.util.TimeIntervalParser.getTimestampFromDate; +import static org.drools.base.util.TimeIntervalParser.getTimestampFromDate; public class PatternBuilderUtil { diff --git a/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java b/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java index 9b15d3e9d71..e6f93ed5ec4 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java +++ b/drools-compiler/src/main/java/org/drools/compiler/runtime/pipeline/impl/DroolsJaxbHelperProviderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.runtime.pipeline.impl; import java.io.ByteArrayOutputStream; @@ -45,7 +47,7 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.compiler.ProjectJavaCompiler; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.PackageDescr; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.wiring.api.classloader.ProjectClassLoader; diff --git a/drools-compiler/src/main/java/org/drools/compiler/testframework/RuleCoverageListener.java b/drools-compiler/src/main/java/org/drools/compiler/testframework/RuleCoverageListener.java index a0a4456fdb5..8c4a3ca43dc 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/testframework/RuleCoverageListener.java +++ b/drools-compiler/src/main/java/org/drools/compiler/testframework/RuleCoverageListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.testframework; import java.util.HashSet; diff --git a/drools-compiler/src/main/java/org/drools/compiler/testframework/TestingEventListener.java b/drools-compiler/src/main/java/org/drools/compiler/testframework/TestingEventListener.java index 042c30da00b..bdec940b81b 100644 --- a/drools-compiler/src/main/java/org/drools/compiler/testframework/TestingEventListener.java +++ b/drools-compiler/src/main/java/org/drools/compiler/testframework/TestingEventListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.testframework; import java.io.IOException; @@ -24,8 +27,8 @@ import java.util.Map; import java.util.Map.Entry; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; import org.kie.api.definition.rule.Rule; import org.kie.api.event.rule.AfterMatchFiredEvent; @@ -208,9 +211,9 @@ public void beforeRuleFlowGroupDeactivated(RuleFlowGroupDeactivatedEvent event) } -class NilConsequence implements Consequence { +class NilConsequence implements Consequence { - public void evaluate(KnowledgeHelper knowledgeHelper, ReteEvaluator reteEvaluator) throws Exception { + public void evaluate(KnowledgeHelper knowledgeHelper, ValueResolver valueResolver) throws Exception { } public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { diff --git a/drools-compiler/src/main/spotbugs/spotbugs-exclude.xml b/drools-compiler/src/main/spotbugs/spotbugs-exclude.xml index 0d013b50c04..63947bbcff1 100644 --- a/drools-compiler/src/main/spotbugs/spotbugs-exclude.xml +++ b/drools-compiler/src/main/spotbugs/spotbugs-exclude.xml @@ -1,4 +1,24 @@ + diff --git a/drools-core/pom.xml b/drools-core/pom.xml index 530fa03d835..42092de7979 100644 --- a/drools-core/pom.xml +++ b/drools-core/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -41,6 +61,10 @@ org.drools drools-wiring-api + + org.drools + drools-base + org.drools drools-wiring-static diff --git a/drools-core/src/main/filtered-resources/drools.versions.properties b/drools-core/src/main/filtered-resources/drools.versions.properties index d01d77ba5a4..c2c081302ad 100644 --- a/drools-core/src/main/filtered-resources/drools.versions.properties +++ b/drools-core/src/main/filtered-resources/drools.versions.properties @@ -1 +1,20 @@ +# +# 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. +# + drools.version=${project.version} \ No newline at end of file diff --git a/drools-core/src/main/java/org/drools/core/ActivationListenerFactory.java b/drools-core/src/main/java/org/drools/core/ActivationListenerFactory.java index 93462ad8784..78c62a7e2a9 100644 --- a/drools-core/src/main/java/org/drools/core/ActivationListenerFactory.java +++ b/drools-core/src/main/java/org/drools/core/ActivationListenerFactory.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.GroupElement; +import org.drools.base.rule.GroupElement; public interface ActivationListenerFactory { TerminalNode createActivationListener(int id, diff --git a/drools-core/src/main/java/org/drools/core/BaseConfiguration.java b/drools-core/src/main/java/org/drools/core/BaseConfiguration.java index 1e3ecaa28bb..7d2a7cc991c 100644 --- a/drools-core/src/main/java/org/drools/core/BaseConfiguration.java +++ b/drools-core/src/main/java/org/drools/core/BaseConfiguration.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/BaseConfigurationFactories.java b/drools-core/src/main/java/org/drools/core/BaseConfigurationFactories.java index 475f7e9f772..556c27f764c 100644 --- a/drools-core/src/main/java/org/drools/core/BaseConfigurationFactories.java +++ b/drools-core/src/main/java/org/drools/core/BaseConfigurationFactories.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core; import org.kie.api.conf.KieBaseOption; diff --git a/drools-core/src/main/java/org/drools/core/BeliefSystemType.java b/drools-core/src/main/java/org/drools/core/BeliefSystemType.java index 8056ff03f45..c18fb2900d3 100644 --- a/drools-core/src/main/java/org/drools/core/BeliefSystemType.java +++ b/drools-core/src/main/java/org/drools/core/BeliefSystemType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; /** diff --git a/drools-core/src/main/java/org/drools/core/ClassObjectFilter.java b/drools-core/src/main/java/org/drools/core/ClassObjectFilter.java index 2bc4194cb56..ad7e228fbef 100644 --- a/drools-core/src/main/java/org/drools/core/ClassObjectFilter.java +++ b/drools-core/src/main/java/org/drools/core/ClassObjectFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; diff --git a/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java b/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java index 9f0e1fadf94..1dbb032c7e7 100644 --- a/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java +++ b/drools-core/src/main/java/org/drools/core/ClassObjectSerializationFilter.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.core; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-core/src/main/java/org/drools/core/ClockType.java b/drools-core/src/main/java/org/drools/core/ClockType.java index fbb6619d587..d3aaa608a1e 100644 --- a/drools-core/src/main/java/org/drools/core/ClockType.java +++ b/drools-core/src/main/java/org/drools/core/ClockType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; import org.drools.core.time.TimerService; diff --git a/drools-core/src/main/java/org/drools/core/CompositeSessionConfiguration.java b/drools-core/src/main/java/org/drools/core/CompositeSessionConfiguration.java index 425a188d70b..41070ec5727 100644 --- a/drools-core/src/main/java/org/drools/core/CompositeSessionConfiguration.java +++ b/drools-core/src/main/java/org/drools/core/CompositeSessionConfiguration.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core; import org.kie.api.runtime.KieSessionConfiguration; diff --git a/drools-core/src/main/java/org/drools/core/EntryPointsManager.java b/drools-core/src/main/java/org/drools/core/EntryPointsManager.java index 24b9c1816f4..ba367595235 100644 --- a/drools-core/src/main/java/org/drools/core/EntryPointsManager.java +++ b/drools-core/src/main/java/org/drools/core/EntryPointsManager.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.core; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/FlowBaseConfiguration.java b/drools-core/src/main/java/org/drools/core/FlowBaseConfiguration.java index 9882cabbcdc..b81676ae75f 100755 --- a/drools-core/src/main/java/org/drools/core/FlowBaseConfiguration.java +++ b/drools-core/src/main/java/org/drools/core/FlowBaseConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/FlowSessionConfiguration.java b/drools-core/src/main/java/org/drools/core/FlowSessionConfiguration.java index ad86f2da4c7..51499fc5b56 100644 --- a/drools-core/src/main/java/org/drools/core/FlowSessionConfiguration.java +++ b/drools-core/src/main/java/org/drools/core/FlowSessionConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core; import java.io.Externalizable; @@ -24,7 +26,7 @@ import java.util.Map; import java.util.Set; -import org.drools.core.base.CoreComponentsBuilder; +import org.drools.base.base.CoreComponentsBuilder; import org.drools.core.process.WorkItemManagerFactory; import org.drools.core.util.ConfFileUtils; import org.kie.api.conf.ConfigurationKey; diff --git a/drools-core/src/main/java/org/drools/core/InitialFact.java b/drools-core/src/main/java/org/drools/core/InitialFact.java deleted file mode 100644 index ddf43df2afe..00000000000 --- a/drools-core/src/main/java/org/drools/core/InitialFact.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core; - -import java.io.Serializable; - -/** - * Initial fact, automatically put into the network. This fact is needed by 'not' CEs - * when they are the CEs in the rule. - */ -public interface InitialFact - extends - Serializable { - -} diff --git a/drools-core/src/main/java/org/drools/core/KieBaseConfigurationImpl.java b/drools-core/src/main/java/org/drools/core/KieBaseConfigurationImpl.java index f98df34a2bd..d41ffdb12f0 100755 --- a/drools-core/src/main/java/org/drools/core/KieBaseConfigurationImpl.java +++ b/drools-core/src/main/java/org/drools/core/KieBaseConfigurationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/QueryActivationListenerFactory.java b/drools-core/src/main/java/org/drools/core/QueryActivationListenerFactory.java index fd02ba36f87..5d35b854829 100644 --- a/drools-core/src/main/java/org/drools/core/QueryActivationListenerFactory.java +++ b/drools-core/src/main/java/org/drools/core/QueryActivationListenerFactory.java @@ -1,26 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.GroupElement; +import org.drools.base.rule.GroupElement; public class QueryActivationListenerFactory implements ActivationListenerFactory { public static final QueryActivationListenerFactory INSTANCE = new QueryActivationListenerFactory(); diff --git a/drools-core/src/main/java/org/drools/core/QueryResultsImpl.java b/drools-core/src/main/java/org/drools/core/QueryResultsImpl.java index 8d444d82337..fd2cf7a6cf7 100644 --- a/drools-core/src/main/java/org/drools/core/QueryResultsImpl.java +++ b/drools-core/src/main/java/org/drools/core/QueryResultsImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; import java.util.Collections; @@ -26,7 +28,7 @@ import org.drools.core.base.QueryRowWithSubruleIndex; import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.kie.api.runtime.rule.QueryResults; import org.kie.api.runtime.rule.QueryResultsRow; diff --git a/drools-core/src/main/java/org/drools/core/QueryResultsRowImpl.java b/drools-core/src/main/java/org/drools/core/QueryResultsRowImpl.java index b26e3cfa451..53d599f8e89 100644 --- a/drools-core/src/main/java/org/drools/core/QueryResultsRowImpl.java +++ b/drools-core/src/main/java/org/drools/core/QueryResultsRowImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core; import java.util.Map; @@ -21,7 +23,7 @@ import org.drools.core.base.QueryRowWithSubruleIndex; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.kie.api.runtime.rule.FactHandle; import org.kie.api.runtime.rule.QueryResultsRow; diff --git a/drools-core/src/main/java/org/drools/core/RuleActivationListenerFactory.java b/drools-core/src/main/java/org/drools/core/RuleActivationListenerFactory.java index 8067888149e..2e5193fdb31 100644 --- a/drools-core/src/main/java/org/drools/core/RuleActivationListenerFactory.java +++ b/drools-core/src/main/java/org/drools/core/RuleActivationListenerFactory.java @@ -1,26 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.GroupElement; +import org.drools.base.rule.GroupElement; public class RuleActivationListenerFactory implements ActivationListenerFactory { diff --git a/drools-core/src/main/java/org/drools/core/RuleBaseConfiguration.java b/drools-core/src/main/java/org/drools/core/RuleBaseConfiguration.java index 404e9ba6e11..0f4d0bde74d 100755 --- a/drools-core/src/main/java/org/drools/core/RuleBaseConfiguration.java +++ b/drools-core/src/main/java/org/drools/core/RuleBaseConfiguration.java @@ -1,29 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.util.HashMap; -import java.util.Map; - -import org.drools.core.rule.consequence.ConflictResolver; +import org.drools.base.rule.consequence.ConflictResolver; import org.drools.core.runtime.rule.impl.DefaultConsequenceExceptionHandler; import org.drools.util.StringUtils; import org.kie.api.KieBaseConfiguration; @@ -50,13 +45,20 @@ import org.kie.internal.conf.IndexPrecedenceOption; import org.kie.internal.conf.IndexRightBetaMemoryOption; import org.kie.internal.conf.MaxThreadsOption; -import org.kie.internal.conf.MultithreadEvaluationOption; +import org.kie.internal.conf.ParallelExecutionOption; import org.kie.internal.conf.SequentialAgendaOption; import org.kie.internal.conf.ShareAlphaNodesOption; import org.kie.internal.conf.ShareBetaNodesOption; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.util.HashMap; +import java.util.Map; + /** * RuleBaseConfiguration * @@ -141,10 +143,10 @@ public class RuleBaseConfiguration extends BaseConfiguration T getOption(OptionKey option) { case MaxThreadsOption.PROPERTY_NAME: { return (T) MaxThreadsOption.get(getMaxThreads()); } - case MultithreadEvaluationOption.PROPERTY_NAME: { - return (T) (this.multithread ? MultithreadEvaluationOption.YES : MultithreadEvaluationOption.NO); + case ParallelExecutionOption.PROPERTY_NAME: { + return (T) parallelExecution; } case DeclarativeAgendaOption.PROPERTY_NAME: { return (T) (this.isDeclarativeAgenda() ? DeclarativeAgendaOption.ENABLED : DeclarativeAgendaOption.DISABLED); @@ -419,8 +421,8 @@ public void setOption(KieBaseOption option) { setMaxThreads( ( (MaxThreadsOption) option ).getMaxThreads()); break; } - case MultithreadEvaluationOption.PROPERTY_NAME: { - setMultithreadEvaluation( ( (MultithreadEvaluationOption) option ).isMultithreadEvaluation()); + case ParallelExecutionOption.PROPERTY_NAME: { + setParallelExecution( (ParallelExecutionOption) option ); break; } case DeclarativeAgendaOption.PROPERTY_NAME: { @@ -502,8 +504,8 @@ public boolean setInternalProperty(String name, String value) { setRuleBaseUpdateHandler(StringUtils.isEmpty(value) ? "" : value); break; } - case MultithreadEvaluationOption.PROPERTY_NAME: { - setMultithreadEvaluation(StringUtils.isEmpty(value) ? false : Boolean.valueOf(value)); + case ParallelExecutionOption.PROPERTY_NAME: { + setParallelExecution(ParallelExecutionOption.determineParallelExecution(StringUtils.isEmpty(value) ? "sequential" : value)); break; } case MaxThreadsOption.PROPERTY_NAME: { @@ -575,8 +577,8 @@ public String getInternalProperty(String name) { case "drools.ruleBaseUpdateHandler": { return getRuleBaseUpdateHandler(); } - case MultithreadEvaluationOption.PROPERTY_NAME: { - return Boolean.toString(isMultithreadEvaluation()); + case ParallelExecutionOption.PROPERTY_NAME: { + return parallelExecution.toExternalForm(); } case MaxThreadsOption.PROPERTY_NAME: { return Integer.toString(getMaxThreads()); @@ -762,21 +764,13 @@ public void setSequentialAgenda(final SequentialAgenda sequentialAgenda) { this.sequentialAgenda = sequentialAgenda; } - /** - * Defines if the RuleBase should be executed using a pool of - * threads for evaluating the rules ("true"), or if the rulebase - * should work in classic single thread mode ("false"). - * - * @param enableMultithread true for multi-thread or - * false for single-thread. Default is false. - */ - public void setMultithreadEvaluation(boolean enableMultithread) { + public void setParallelExecution(ParallelExecutionOption parallelExecutionOption) { checkCanChange(); - this.multithread = enableMultithread; + this.parallelExecution = parallelExecutionOption; } public void enforceSingleThreadEvaluation() { - this.multithread = false; + this.parallelExecution = ParallelExecutionOption.SEQUENTIAL; } /** @@ -785,8 +779,12 @@ public void enforceSingleThreadEvaluation() { * * @return */ - public boolean isMultithreadEvaluation() { - return this.multithread; + public boolean isParallelEvaluation() { + return this.parallelExecution.isParallel(); + } + + public boolean isParallelExecution() { + return this.parallelExecution == ParallelExecutionOption.FULLY_PARALLEL; } /** diff --git a/drools-core/src/main/java/org/drools/core/RuleSessionConfiguration.java b/drools-core/src/main/java/org/drools/core/RuleSessionConfiguration.java index ac7b3617558..b03f4d5212d 100644 --- a/drools-core/src/main/java/org/drools/core/RuleSessionConfiguration.java +++ b/drools-core/src/main/java/org/drools/core/RuleSessionConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/SessionConfiguration.java b/drools-core/src/main/java/org/drools/core/SessionConfiguration.java index 551170c7d2e..a087e43644b 100644 --- a/drools-core/src/main/java/org/drools/core/SessionConfiguration.java +++ b/drools-core/src/main/java/org/drools/core/SessionConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/SessionConfigurationFactories.java b/drools-core/src/main/java/org/drools/core/SessionConfigurationFactories.java index 6b5aa49b842..edb44c8c315 100644 --- a/drools-core/src/main/java/org/drools/core/SessionConfigurationFactories.java +++ b/drools-core/src/main/java/org/drools/core/SessionConfigurationFactories.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core; import org.kie.api.conf.OptionsConfiguration; diff --git a/drools-core/src/main/java/org/drools/core/TimerJobFactoryType.java b/drools-core/src/main/java/org/drools/core/TimerJobFactoryType.java index b2f60e86a9a..ebba16257a4 100644 --- a/drools-core/src/main/java/org/drools/core/TimerJobFactoryType.java +++ b/drools-core/src/main/java/org/drools/core/TimerJobFactoryType.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/WorkItemHandlerNotFoundException.java b/drools-core/src/main/java/org/drools/core/WorkItemHandlerNotFoundException.java index a71987f44f8..bb5300c49dd 100644 --- a/drools-core/src/main/java/org/drools/core/WorkItemHandlerNotFoundException.java +++ b/drools-core/src/main/java/org/drools/core/WorkItemHandlerNotFoundException.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core; diff --git a/drools-core/src/main/java/org/drools/core/WorkingMemory.java b/drools-core/src/main/java/org/drools/core/WorkingMemory.java index d84a00b3a10..5991a5dac57 100644 --- a/drools-core/src/main/java/org/drools/core/WorkingMemory.java +++ b/drools-core/src/main/java/org/drools/core/WorkingMemory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; import java.util.Collection; @@ -22,7 +24,7 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.GlobalResolver; +import org.drools.base.rule.accessor.GlobalResolver; import org.kie.api.runtime.Environment; import org.kie.api.runtime.process.ProcessInstance; import org.kie.api.runtime.process.WorkItemManager; diff --git a/drools-core/src/main/java/org/drools/core/WorkingMemoryEntryPoint.java b/drools-core/src/main/java/org/drools/core/WorkingMemoryEntryPoint.java index 7f862181daf..982ce46fd3d 100644 --- a/drools-core/src/main/java/org/drools/core/WorkingMemoryEntryPoint.java +++ b/drools-core/src/main/java/org/drools/core/WorkingMemoryEntryPoint.java @@ -1,33 +1,35 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; import org.drools.core.common.ObjectStore; import org.drools.core.common.ObjectTypeConfigurationRegistry; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.kie.api.runtime.rule.EntryPoint; import org.kie.api.runtime.rule.FactHandle; @@ -61,7 +63,7 @@ FactHandle insert(Object object, ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry(); - RuleBase getKnowledgeBase(); + InternalRuleBase getKnowledgeBase(); void delete(FactHandle factHandle, RuleImpl rule, diff --git a/drools-core/src/main/java/org/drools/core/WorkingMemoryEventManager.java b/drools-core/src/main/java/org/drools/core/WorkingMemoryEventManager.java index 61d664ff6f8..de23364fda9 100644 --- a/drools-core/src/main/java/org/drools/core/WorkingMemoryEventManager.java +++ b/drools-core/src/main/java/org/drools/core/WorkingMemoryEventManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/base/AbstractQueryViewListener.java b/drools-core/src/main/java/org/drools/core/base/AbstractQueryViewListener.java index c4f4188899f..1ad3b510187 100644 --- a/drools-core/src/main/java/org/drools/core/base/AbstractQueryViewListener.java +++ b/drools-core/src/main/java/org/drools/core/base/AbstractQueryViewListener.java @@ -1,14 +1,32 @@ +/** + * 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. + */ package org.drools.core.base; import java.util.ArrayList; import java.util.List; -import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleNode; import org.drools.core.reteoo.QueryTerminalNode; +import org.kie.api.runtime.rule.FactHandle; public abstract class AbstractQueryViewListener implements InternalViewChangedEventListener { @@ -22,28 +40,28 @@ public List getResults() { return this.results; } - public abstract InternalFactHandle getHandle(InternalFactHandle originalHandle); + public abstract FactHandle getHandle(FactHandle originalHandle); public void rowAdded(RuleImpl rule, LeftTuple tuple, ReteEvaluator reteEvaluator) { - InternalFactHandle[] handles = new InternalFactHandle[((LeftTupleNode)tuple.getTupleSink()).getObjectCount()]; + FactHandle[] handles = new FactHandle[((LeftTupleNode)tuple.getTupleSink()).getObjectCount()]; LeftTuple entry = (LeftTuple) tuple.skipEmptyHandles(); // Add all the FactHandles int i = handles.length-1; while ( entry != null ) { - InternalFactHandle handle = entry.getFactHandle(); + FactHandle handle = entry.getFactHandle(); handles[i--] = getHandle(handle); entry = entry.getParent(); } - QueryTerminalNode node = tuple.getTupleSink(); + QueryTerminalNode node = (QueryTerminalNode) tuple.getTupleSink(); this.results.add( new QueryRowWithSubruleIndex(handles, node.getSubruleIndex()) ); } - public void rowRemoved( RuleImpl rule, LeftTuple tuple, ReteEvaluator reteEvaluator ) { + public void rowRemoved(RuleImpl rule, LeftTuple tuple, ReteEvaluator reteEvaluator ) { } - public void rowUpdated( RuleImpl rule, LeftTuple tuple, ReteEvaluator reteEvaluator ) { + public void rowUpdated(RuleImpl rule, LeftTuple tuple, ReteEvaluator reteEvaluator ) { } } diff --git a/drools-core/src/main/java/org/drools/core/base/AcceptsClassObjectType.java b/drools-core/src/main/java/org/drools/core/base/AcceptsClassObjectType.java deleted file mode 100644 index 68351bc1962..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/AcceptsClassObjectType.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.base; - -public interface AcceptsClassObjectType { - void setClassObjectType(ClassObjectType classObjectType); -} diff --git a/drools-core/src/main/java/org/drools/core/base/AccessorKeySupplier.java b/drools-core/src/main/java/org/drools/core/base/AccessorKeySupplier.java deleted file mode 100644 index bad444e7749..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/AccessorKeySupplier.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.base; - -public interface AccessorKeySupplier { - AccessorKey getAccessorKey(); -} diff --git a/drools-core/src/main/java/org/drools/core/base/ArrayElements.java b/drools-core/src/main/java/org/drools/core/base/ArrayElements.java index 2318d25e54f..6c17e910f7e 100644 --- a/drools-core/src/main/java/org/drools/core/base/ArrayElements.java +++ b/drools-core/src/main/java/org/drools/core/base/ArrayElements.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import java.util.Arrays; diff --git a/drools-core/src/main/java/org/drools/core/base/BaseClassFieldWriter.java b/drools-core/src/main/java/org/drools/core/base/BaseClassFieldWriter.java index ae8ee36c393..8becdfcd536 100644 --- a/drools-core/src/main/java/org/drools/core/base/BaseClassFieldWriter.java +++ b/drools-core/src/main/java/org/drools/core/base/BaseClassFieldWriter.java @@ -1,26 +1,31 @@ -/* - * Copyright 2008 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.rule.accessor.WriteAccessor; +import org.drools.base.base.ClassFieldInspector; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.base.ValueType; +import org.drools.base.rule.accessor.WriteAccessor; /** * This is the supertype for the ASM generated classes for writing values into fields. @@ -30,7 +35,7 @@ abstract public class BaseClassFieldWriter implements WriteAccessor { private Class< ? > fieldType; - private ValueType valueType; + private ValueType valueType; public BaseClassFieldWriter() { } diff --git a/drools-core/src/main/java/org/drools/core/base/CalendarsImpl.java b/drools-core/src/main/java/org/drools/core/base/CalendarsImpl.java index e2f546a30be..4832e311004 100644 --- a/drools-core/src/main/java/org/drools/core/base/CalendarsImpl.java +++ b/drools-core/src/main/java/org/drools/core/base/CalendarsImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/ClassFieldAccessorCache.java b/drools-core/src/main/java/org/drools/core/base/ClassFieldAccessorCache.java index 0262da039d3..ca875d550e9 100644 --- a/drools-core/src/main/java/org/drools/core/base/ClassFieldAccessorCache.java +++ b/drools-core/src/main/java/org/drools/core/base/ClassFieldAccessorCache.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import java.security.AccessController; @@ -23,8 +25,11 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.WriteAccessor; +import org.drools.base.base.AccessorKey; +import org.drools.base.base.ClassFieldInspector; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.WriteAccessor; import org.drools.wiring.api.ComponentsFactory; import org.drools.wiring.api.util.ByteArrayClassLoader; @@ -103,7 +108,7 @@ public void setReadAcessor(String className, String fieldName, ReadAccessor read getCacheEntry( cls ).setReadAccessor( getAccessorKey( className, fieldName ), readAccessor ); } - private AccessorKey getAccessorKey( String className, String fieldName ) { + private AccessorKey getAccessorKey(String className, String fieldName ) { return new AccessorKey( className, fieldName, AccessorKey.AccessorType.FieldAccessor ); } diff --git a/drools-core/src/main/java/org/drools/core/base/ClassFieldInspector.java b/drools-core/src/main/java/org/drools/core/base/ClassFieldInspector.java deleted file mode 100644 index 6797ae665aa..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/ClassFieldInspector.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.core.base; - -import java.lang.reflect.Field; -import java.lang.reflect.Method; -import java.util.Collection; -import java.util.Map; - -import org.kie.internal.builder.KnowledgeBuilderResult; - -public interface ClassFieldInspector { - Map getFieldNames(); - - boolean isNonGetter( String name ); - - Map getFieldTypesField(); - - Map> getFieldTypes(); - - Class< ? > getFieldType(String name); - - Map getGetterMethods(); - - Map getSetterMethods(); - - Collection getInspectionResults( String fieldName ); -} diff --git a/drools-core/src/main/java/org/drools/core/base/ClassWireable.java b/drools-core/src/main/java/org/drools/core/base/ClassWireable.java deleted file mode 100644 index 17cca8057b0..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/ClassWireable.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.base; - - -public interface ClassWireable { - - void wire( Class klass ); - - String getClassName(); - - Class getClassType(); - -} diff --git a/drools-core/src/main/java/org/drools/core/base/CoreComponentsBuilder.java b/drools-core/src/main/java/org/drools/core/base/CoreComponentsBuilder.java deleted file mode 100644 index 68f9814459a..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/CoreComponentsBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.core.base; - -import java.io.IOException; - -import org.drools.core.common.MissingDependencyException; -import org.drools.core.rule.DialectRuntimeData; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.util.Drools; -import org.drools.core.util.MVELExecutor; -import org.kie.api.internal.utils.KieService; - -public interface CoreComponentsBuilder extends KieService { - - String NO_MVEL = "You're trying to compile a Drools asset without mvel. Please add the module org.drools:drools-mvel to your classpath."; - - static T throwExceptionForMissingMvel() { - if (Drools.isNativeImage()) { - return null; - } - throw new MissingDependencyException(NO_MVEL); - } - - class Holder { - private static final CoreComponentsBuilder cBuilder = KieService.load( CoreComponentsBuilder.class ); - } - - static CoreComponentsBuilder get() { - return Holder.cBuilder != null ? Holder.cBuilder : throwExceptionForMissingMvel(); - } - - static boolean present() { - return Holder.cBuilder != null; - } - - ReadAccessor getReadAcessor( String className, String expr, boolean typesafe, Class returnType ); - - Object evaluateMvelExpression( DialectRuntimeData data, ClassLoader classLoader, String expr ); - - default ClassFieldInspector createClassFieldInspector( final Class classUnderInspection ) throws IOException { - return createClassFieldInspector( classUnderInspection, true ); - } - - ClassFieldInspector createClassFieldInspector( Class classUnderInspection, boolean includeFinalMethods ) throws IOException; - - MVELExecutor getMVELExecutor(); -} diff --git a/drools-core/src/main/java/org/drools/core/base/DroolsQuery.java b/drools-core/src/main/java/org/drools/core/base/DroolsQueryImpl.java similarity index 74% rename from drools-core/src/main/java/org/drools/core/base/DroolsQuery.java rename to drools-core/src/main/java/org/drools/core/base/DroolsQueryImpl.java index e86cd931c22..a86713ad743 100644 --- a/drools-core/src/main/java/org/drools/core/base/DroolsQuery.java +++ b/drools-core/src/main/java/org/drools/core/base/DroolsQueryImpl.java @@ -1,24 +1,27 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import java.util.Arrays; import java.util.List; +import org.drools.base.base.DroolsQuery; import org.drools.core.common.TupleSets; import org.drools.core.common.WorkingMemoryAction; import org.drools.core.phreak.StackEntry; @@ -26,11 +29,11 @@ import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.PathMemory; import org.drools.core.reteoo.QueryElementNode.QueryElementNodeMemory; -import org.drools.core.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.QueryImpl; import org.drools.core.util.index.TupleList; import org.kie.api.runtime.rule.Variable; -public final class DroolsQuery extends ArrayElements { +public final class DroolsQueryImpl extends ArrayElements implements DroolsQuery{ private final String name; private InternalViewChangedEventListener resultsCollector; private QueryImpl query; @@ -54,19 +57,19 @@ public final class DroolsQuery extends ArrayElements { private LeftTupleSink sink; - public DroolsQuery(String name, Object[] params, InternalViewChangedEventListener resultsCollector, boolean open) { + public DroolsQueryImpl(String name, Object[] params, InternalViewChangedEventListener resultsCollector, boolean open) { this(name, params, resultsCollector, open, null, null, null, null, null); } - public DroolsQuery(final String name, - final Object[] params, - final InternalViewChangedEventListener resultsCollector, - final boolean open, - final StackEntry stackEntry, - final List pmems, - final TupleSets resultLeftTuples, - final QueryElementNodeMemory qmem, - final LeftTupleSink sink) { + public DroolsQueryImpl(final String name, + final Object[] params, + final InternalViewChangedEventListener resultsCollector, + final boolean open, + final StackEntry stackEntry, + final List pmems, + final TupleSets resultLeftTuples, + final QueryElementNodeMemory qmem, + final LeftTupleSink sink) { setParameters(params); this.name = name; this.resultsCollector = resultsCollector; diff --git a/drools-core/src/main/java/org/drools/core/base/EnabledBoolean.java b/drools-core/src/main/java/org/drools/core/base/EnabledBoolean.java deleted file mode 100644 index 7e4dc091d13..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/EnabledBoolean.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.base; - -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; - -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Enabled; -import org.drools.core.reteoo.Tuple; - -public class EnabledBoolean - implements - Enabled, - Externalizable { - - private static final long serialVersionUID = 510l; - - public static final Enabled ENABLED_TRUE = new EnabledBoolean( true ); - public static final Enabled ENABLED_FALSE = new EnabledBoolean( false ); - - private boolean value; - - public EnabledBoolean() { - } - - public EnabledBoolean(boolean value) { - this.value = value; - } - - public void readExternal(ObjectInput in) throws IOException, - ClassNotFoundException { - value = in.readBoolean(); - } - - public void writeExternal(ObjectOutput out) throws IOException { - out.writeBoolean( value ); - } - - public boolean getValue(final Tuple tuple, - final Declaration[] declarations, - final RuleImpl rule, - final ReteEvaluator reteEvaluator) { - return this.value; - } - - public String toString() { - return String.valueOf( this.value ); - } - -} diff --git a/drools-core/src/main/java/org/drools/core/base/FieldAccessor.java b/drools-core/src/main/java/org/drools/core/base/FieldAccessor.java deleted file mode 100755 index 2a1449a51bd..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/FieldAccessor.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.base; - -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.WriteAccessor; - - -/** - * An interface for Accessor classes that joins both reader and writer accessor methods - */ -public interface FieldAccessor extends ReadAccessor, WriteAccessor { - -} diff --git a/drools-core/src/main/java/org/drools/core/base/FieldAccessorFactory.java b/drools-core/src/main/java/org/drools/core/base/FieldAccessorFactory.java index 2203de9d3c2..d75b459c343 100644 --- a/drools-core/src/main/java/org/drools/core/base/FieldAccessorFactory.java +++ b/drools-core/src/main/java/org/drools/core/base/FieldAccessorFactory.java @@ -1,24 +1,28 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.WriteAccessor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.WriteAccessor; import org.kie.api.internal.utils.KieService; -import static org.drools.core.base.CoreComponentsBuilder.throwExceptionForMissingMvel; +import static org.drools.base.base.CoreComponentsBuilder.throwExceptionForMissingMvel; public interface FieldAccessorFactory extends KieService { class Holder { diff --git a/drools-core/src/main/java/org/drools/core/base/FieldNameSupplier.java b/drools-core/src/main/java/org/drools/core/base/FieldNameSupplier.java index beea48eb26d..6aa33d717cd 100644 --- a/drools-core/src/main/java/org/drools/core/base/FieldNameSupplier.java +++ b/drools-core/src/main/java/org/drools/core/base/FieldNameSupplier.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; public interface FieldNameSupplier { diff --git a/drools-core/src/main/java/org/drools/core/base/InternalViewChangedEventListener.java b/drools-core/src/main/java/org/drools/core/base/InternalViewChangedEventListener.java index 7c240bf2db6..4fbd73e2cd4 100644 --- a/drools-core/src/main/java/org/drools/core/base/InternalViewChangedEventListener.java +++ b/drools-core/src/main/java/org/drools/core/base/InternalViewChangedEventListener.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import java.util.List; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.LeftTuple; public interface InternalViewChangedEventListener { diff --git a/drools-core/src/main/java/org/drools/core/base/MapGlobalResolver.java b/drools-core/src/main/java/org/drools/core/base/MapGlobalResolver.java index 01cbc0d6c40..c18fb884fec 100644 --- a/drools-core/src/main/java/org/drools/core/base/MapGlobalResolver.java +++ b/drools-core/src/main/java/org/drools/core/base/MapGlobalResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import java.io.Externalizable; @@ -28,7 +30,7 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.rule.accessor.GlobalResolver; +import org.drools.base.rule.accessor.GlobalResolver; import org.kie.api.runtime.Globals; public class MapGlobalResolver diff --git a/drools-core/src/main/java/org/drools/core/base/NonCloningQueryViewListener.java b/drools-core/src/main/java/org/drools/core/base/NonCloningQueryViewListener.java index ff869dd261d..65f3eaacc35 100644 --- a/drools-core/src/main/java/org/drools/core/base/NonCloningQueryViewListener.java +++ b/drools-core/src/main/java/org/drools/core/base/NonCloningQueryViewListener.java @@ -1,27 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import org.drools.core.common.InternalFactHandle; +import org.kie.api.runtime.rule.FactHandle; public class NonCloningQueryViewListener extends AbstractQueryViewListener { - public InternalFactHandle getHandle(InternalFactHandle originalHandle) { + public FactHandle getHandle(FactHandle originalHandle) { return originalHandle; } diff --git a/drools-core/src/main/java/org/drools/core/base/ObjectType.java b/drools-core/src/main/java/org/drools/core/base/ObjectType.java deleted file mode 100644 index 4df9e0db0db..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/ObjectType.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.base; - -import java.io.Externalizable; - -/** - * Semantic object type differentiator. - */ -public interface ObjectType - extends - Externalizable { - - boolean isAssignableFrom(Class clazz); - - boolean isAssignableTo(Class clazz); - - boolean isAssignableFrom(ObjectType objectType); - - /** - * Returns true if the object type represented by this object - * is an event object type. False otherwise. - * @return - */ - boolean isEvent(); - - ValueType getValueType(); - - Object getTypeKey(); - - String getClassName(); - - boolean hasField(String name); - - boolean isTemplate(); -} diff --git a/drools-core/src/main/java/org/drools/core/base/QueryRowWithSubruleIndex.java b/drools-core/src/main/java/org/drools/core/base/QueryRowWithSubruleIndex.java index 5f41e675f06..c68b169e55b 100644 --- a/drools-core/src/main/java/org/drools/core/base/QueryRowWithSubruleIndex.java +++ b/drools-core/src/main/java/org/drools/core/base/QueryRowWithSubruleIndex.java @@ -1,34 +1,38 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.base; import org.drools.core.common.InternalFactHandle; +import org.kie.api.runtime.rule.FactHandle; public class QueryRowWithSubruleIndex { - private InternalFactHandle[] handles; + private FactHandle[] handles; private int subruleIndex; - public QueryRowWithSubruleIndex(InternalFactHandle[] handles, + public QueryRowWithSubruleIndex(FactHandle[] handles, int subruleIndex) { this.handles = handles; this.subruleIndex = subruleIndex; } - public InternalFactHandle[] getHandles() { + public FactHandle[] getHandles() { return handles; } diff --git a/drools-core/src/main/java/org/drools/core/base/ReadAccessorSupplier.java b/drools-core/src/main/java/org/drools/core/base/ReadAccessorSupplier.java deleted file mode 100644 index ece24782091..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/ReadAccessorSupplier.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.base; - -import org.drools.core.rule.accessor.ReadAccessor; - -public interface ReadAccessorSupplier { - ReadAccessor getReader(AccessorKey key); -} diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java index cb579b95304..6b5556a52c4 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameEndsWithAgendaFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java index 74e86b8f30a..3401e228162 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameEqualsAgendaFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java index 6003fb3fbf8..d535a3be948 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameMatchesAgendaFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java b/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java index c5f6384f43a..53047b62f34 100644 --- a/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java +++ b/drools-core/src/main/java/org/drools/core/base/RuleNameStartsWithAgendaFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/base/SimpleValueType.java b/drools-core/src/main/java/org/drools/core/base/SimpleValueType.java deleted file mode 100644 index 805e666efb9..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/SimpleValueType.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.base; - -public class SimpleValueType { - public static final int UNKNOWN = 0; - public static final int NULL = 1; - public static final int BOOLEAN = 2; - public static final int NUMBER = 3; - public static final int INTEGER = 4; - public static final int DECIMAL = 5; - public static final int CHAR = 6; - public static final int STRING = 7; - public static final int DATE = 8; - public static final int LIST = 9; - public static final int OBJECT = 10; - public static final int FUNCTION = 11; //This one is for LISP -} diff --git a/drools-core/src/main/java/org/drools/core/base/StandardQueryViewChangedEventListener.java b/drools-core/src/main/java/org/drools/core/base/StandardQueryViewChangedEventListener.java index a446d0ffa24..11aac3af472 100644 --- a/drools-core/src/main/java/org/drools/core/base/StandardQueryViewChangedEventListener.java +++ b/drools-core/src/main/java/org/drools/core/base/StandardQueryViewChangedEventListener.java @@ -1,35 +1,39 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.InternalFactHandle; +import org.kie.api.runtime.rule.FactHandle; public class StandardQueryViewChangedEventListener extends AbstractQueryViewListener { - public InternalFactHandle getHandle(InternalFactHandle originalHandle) { + public FactHandle getHandle(FactHandle originalHandle) { + InternalFactHandle fh = (InternalFactHandle) originalHandle; // can be null for eval, not and exists that have no right input - return new DefaultFactHandle( originalHandle.getId(), - originalHandle.getEntryPointId() != null ? originalHandle.getEntryPointId().getEntryPointId() : null, - originalHandle.getIdentityHashCode(), - originalHandle.getObjectHashCode(), - originalHandle.getRecency(), - originalHandle.getObject() ); + return new DefaultFactHandle( fh.getId(), + fh.getEntryPointId() != null ? fh.getEntryPointId().getEntryPointId() : null, + fh.getIdentityHashCode(), + fh.getObjectHashCode(), + fh.getRecency(), + fh.getObject() ); } } diff --git a/drools-core/src/main/java/org/drools/core/base/TraitHelper.java b/drools-core/src/main/java/org/drools/core/base/TraitHelper.java index ccd1bc147c2..a91aa7df474 100644 --- a/drools-core/src/main/java/org/drools/core/base/TraitHelper.java +++ b/drools-core/src/main/java/org/drools/core/base/TraitHelper.java @@ -1,15 +1,33 @@ +/** + * 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. + */ package org.drools.core.base; import java.util.Collection; import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.core.reteoo.TerminalNode; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.beliefsystem.Mode; +import org.drools.util.bitmask.BitMask; +import org.drools.base.beliefsystem.Mode; public interface TraitHelper { diff --git a/drools-core/src/main/java/org/drools/core/base/UndefinedCalendarExcption.java b/drools-core/src/main/java/org/drools/core/base/UndefinedCalendarExcption.java index ca121830c34..75366955344 100644 --- a/drools-core/src/main/java/org/drools/core/base/UndefinedCalendarExcption.java +++ b/drools-core/src/main/java/org/drools/core/base/UndefinedCalendarExcption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.base; public class UndefinedCalendarExcption extends RuntimeException { diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/AbstractAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/AbstractAccumulateFunction.java index 6d1aa9f7449..73b54036072 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/AbstractAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/AbstractAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/AverageAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/AverageAccumulateFunction.java index 3b93188c240..d1bbb50b13f 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/AverageAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/AverageAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/BigDecimalAverageAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/BigDecimalAverageAccumulateFunction.java index 9b4bd306817..c9bbe6985a0 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/BigDecimalAverageAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/BigDecimalAverageAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/BigDecimalSumAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/BigDecimalSumAccumulateFunction.java index 11e93c059b4..1fe8119c298 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/BigDecimalSumAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/BigDecimalSumAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/BigIntegerSumAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/BigIntegerSumAccumulateFunction.java index c97e93697cd..5775b8496f8 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/BigIntegerSumAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/BigIntegerSumAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/CollectAccumulator.java b/drools-core/src/main/java/org/drools/core/base/accumulators/CollectAccumulator.java index e05175f9d63..78b864cc513 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/CollectAccumulator.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/CollectAccumulator.java @@ -1,28 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Collect; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Accumulator; +import org.drools.base.rule.Collect; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Accumulator; import java.io.Externalizable; import java.io.IOException; @@ -31,6 +30,10 @@ import java.util.Collection; import java.util.Objects; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.kie.api.runtime.rule.FactHandle; + /** * An accumulator to execute "collect" CEs */ @@ -72,10 +75,10 @@ public Object createContext() { */ public Object init(Object workingMemoryContext, Object context, - Tuple leftTuple, + BaseTuple leftTuple, Declaration[] declarations, - ReteEvaluator reteEvaluator) { - return this.collect.instantiateResultObject( reteEvaluator ); + ValueResolver valueResolver) { + return this.collect.instantiateResultObject( valueResolver ); } /* (non-Javadoc) @@ -83,11 +86,11 @@ public Object init(Object workingMemoryContext, */ public Object accumulate(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, + BaseTuple leftTuple, + FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { Object value = this.unwrapHandle ? ((LeftTuple) handle.getObject()).getFactHandle().getObject() : handle.getObject(); ((Collection) context).add( value ); return value; @@ -95,12 +98,12 @@ public Object accumulate(Object workingMemoryContext, public boolean tryReverse(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, + BaseTuple leftTuple, + FactHandle handle, Object value, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { ((Collection) context).remove( value ); return true; } @@ -110,9 +113,9 @@ public boolean tryReverse(Object workingMemoryContext, */ public Object getResult(Object workingMemoryContext, Object context, - Tuple leftTuple, + BaseTuple leftTuple, Declaration[] declarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { return context; } diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/CollectListAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/CollectListAccumulateFunction.java index 671ea675d03..22a41481433 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/CollectListAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/CollectListAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/CollectSetAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/CollectSetAccumulateFunction.java index da80db2a9ad..44f87d84adb 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/CollectSetAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/CollectSetAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/CountAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/CountAccumulateFunction.java index 47baaa184ff..fdb50c28cd2 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/CountAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/CountAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerMaxAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerMaxAccumulateFunction.java index 5671fd27f00..476ba633c43 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerMaxAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerMaxAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerMinAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerMinAccumulateFunction.java index 8ae4017e7c0..456fe8da2db 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerMinAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerMinAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerSumAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerSumAccumulateFunction.java index 8cf43621075..1927e911a41 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerSumAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/IntegerSumAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/JavaAccumulatorFunctionExecutor.java b/drools-core/src/main/java/org/drools/core/base/accumulators/JavaAccumulatorFunctionExecutor.java index e29703a7e06..5fd28ac8eb1 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/JavaAccumulatorFunctionExecutor.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/JavaAccumulatorFunctionExecutor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; @@ -22,14 +24,14 @@ import java.io.ObjectOutput; import java.io.Serializable; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.ReturnValueExpression; -import org.drools.core.rule.accessor.Wireable; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.ReturnValueExpression; +import org.drools.base.rule.accessor.Wireable; +import org.kie.api.runtime.rule.FactHandle; /** * A Java accumulator function executor implementation @@ -80,10 +82,10 @@ public Object createContext() { * @see org.kie.spi.Accumulator#init(java.lang.Object, org.kie.spi.Tuple, org.kie.rule.Declaration[], org.kie.WorkingMemory) */ public Object init(Object workingMemoryContext, - Object context, - Tuple leftTuple, - Declaration[] declarations, - ReteEvaluator reteEvaluator) { + Object context, + BaseTuple leftTuple, + Declaration[] declarations, + ValueResolver valueResolver) { return this.function.initContext( (Serializable) context ); } @@ -92,17 +94,17 @@ public Object init(Object workingMemoryContext, */ public Object accumulate(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, + BaseTuple leftTuple, + FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { try { Object value = this.expression.evaluate( handle, leftTuple, declarations, innerDeclarations, - reteEvaluator, + valueResolver, workingMemoryContext ).getValue(); return this.function.accumulateValue( (Serializable) context, value ); } catch (Exception e) { @@ -112,12 +114,12 @@ public Object accumulate(Object workingMemoryContext, public boolean tryReverse(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, + BaseTuple leftTuple, + FactHandle handle, Object value, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { return this.function.tryReverse( (Serializable) context, value ); } @@ -126,9 +128,9 @@ public boolean tryReverse(Object workingMemoryContext, */ public Object getResult(Object workingMemoryContext, Object context, - Tuple leftTuple, + BaseTuple leftTuple, Declaration[] declarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { try { return this.function.getResult( (Serializable) context ); } catch (Exception e) { diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/LongMaxAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/LongMaxAccumulateFunction.java index bc2ff11245a..4b1213db802 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/LongMaxAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/LongMaxAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/LongMinAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/LongMinAccumulateFunction.java index 2ef0d9eca20..8e047983556 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/LongMinAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/LongMinAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/LongSumAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/LongSumAccumulateFunction.java index f326bd274c3..0dd3cef3f63 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/LongSumAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/LongSumAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/MaxAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/MaxAccumulateFunction.java index 784781db829..8147c18287e 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/MaxAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/MaxAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/MinAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/MinAccumulateFunction.java index a7fa01a980d..a1c2fd0700d 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/MinAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/MinAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/NumericMaxAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/NumericMaxAccumulateFunction.java index 9ee34a3f9f6..b9afb487faf 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/NumericMaxAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/NumericMaxAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/NumericMinAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/NumericMinAccumulateFunction.java index df4a1de5226..36134e36c35 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/NumericMinAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/NumericMinAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/StandardDeviationAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/StandardDeviationAccumulateFunction.java index b6d4bf0a8e9..030a4f8987a 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/StandardDeviationAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/StandardDeviationAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/SumAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/SumAccumulateFunction.java index 3220c25467f..e9a87c41052 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/SumAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/SumAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/base/accumulators/VarianceAccumulateFunction.java b/drools-core/src/main/java/org/drools/core/base/accumulators/VarianceAccumulateFunction.java index ad8a159f0dd..645a50cef96 100644 --- a/drools-core/src/main/java/org/drools/core/base/accumulators/VarianceAccumulateFunction.java +++ b/drools-core/src/main/java/org/drools/core/base/accumulators/VarianceAccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.base.accumulators; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/base/extractors/ConstantValueReader.java b/drools-core/src/main/java/org/drools/core/base/extractors/ConstantValueReader.java index 7136944ff3e..13f7ebc98ed 100644 --- a/drools-core/src/main/java/org/drools/core/base/extractors/ConstantValueReader.java +++ b/drools-core/src/main/java/org/drools/core/base/extractors/ConstantValueReader.java @@ -1,27 +1,30 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.base.extractors; import java.lang.reflect.Method; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.rule.accessor.ReadAccessor; -import static org.drools.core.util.TimeIntervalParser.getTimestampFromDate; +import static org.drools.base.util.TimeIntervalParser.getTimestampFromDate; public class ConstantValueReader implements ReadAccessor { @@ -31,47 +34,47 @@ public ConstantValueReader(Object value) { this.value = value; } - public Object getValue(ReteEvaluator reteEvaluator, Object object) { + public Object getValue(ValueResolver valueResolver, Object object) { return value; } - public char getCharValue(ReteEvaluator reteEvaluator, Object object) { + public char getCharValue(ValueResolver valueResolver, Object object) { return (Character)value; } - public int getIntValue(ReteEvaluator reteEvaluator, Object object) { + public int getIntValue(ValueResolver valueResolver, Object object) { return (Integer)value; } - public byte getByteValue(ReteEvaluator reteEvaluator, Object object) { + public byte getByteValue(ValueResolver valueResolver, Object object) { return (Byte)value; } - public short getShortValue(ReteEvaluator reteEvaluator, Object object) { + public short getShortValue(ValueResolver valueResolver, Object object) { return (Short)value; } - public long getLongValue(ReteEvaluator reteEvaluator, Object object) { + public long getLongValue(ValueResolver valueResolver, Object object) { return value instanceof Long ? (Long)value : getTimestampFromDate( value ); } - public float getFloatValue(ReteEvaluator reteEvaluator, Object object) { + public float getFloatValue(ValueResolver valueResolver, Object object) { return (Float)value; } - public double getDoubleValue(ReteEvaluator reteEvaluator, Object object) { + public double getDoubleValue(ValueResolver valueResolver, Object object) { return (Double)value; } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, Object object) { + public boolean getBooleanValue(ValueResolver valueResolver, Object object) { return (Boolean)value; } - public boolean isNullValue(ReteEvaluator reteEvaluator, Object object) { + public boolean isNullValue(ValueResolver valueResolver, Object object) { return value == null; } - public int getHashCode(ReteEvaluator reteEvaluator, Object object) { + public int getHashCode(ValueResolver valueResolver, Object object) { return value.hashCode(); } diff --git a/drools-core/src/main/java/org/drools/core/base/extractors/SelfReferenceClassFieldReader.java b/drools-core/src/main/java/org/drools/core/base/extractors/SelfReferenceClassFieldReader.java deleted file mode 100755 index f5e65666c38..00000000000 --- a/drools-core/src/main/java/org/drools/core/base/extractors/SelfReferenceClassFieldReader.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.base.extractors; - -import java.io.Externalizable; - -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; - -/** - * A special field extractor for the self reference "this". - */ -public class SelfReferenceClassFieldReader extends BaseObjectClassFieldReader implements Externalizable { - - private static final long serialVersionUID = 510l; - - public SelfReferenceClassFieldReader() { - - } - - public SelfReferenceClassFieldReader(final Class clazz) { - super( 0, // index - clazz, // fieldType - ValueType.determineValueType( clazz ) ); // value type - } - - public Object getValue(ReteEvaluator reteEvaluator, final Object object) { - return object; - } - - public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { - return getValue( reteEvaluator, object ) == null; - } - - @Override - public boolean isSelfReference() { - return true; - } -} diff --git a/drools-core/src/main/java/org/drools/core/common/AbstractFactHandleFactory.java b/drools-core/src/main/java/org/drools/core/common/AbstractFactHandleFactory.java index 831b121a023..229c4215d14 100644 --- a/drools-core/src/main/java/org/drools/core/common/AbstractFactHandleFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/AbstractFactHandleFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.ArrayDeque; @@ -89,8 +91,8 @@ public DefaultFactHandle createDefaultFactHandle(long id, Object object, long re } @Override - public EventFactHandle createEventFactHandle(long id, Object object, long recency, WorkingMemoryEntryPoint entryPoint, long timestamp, long duration) { - return new EventFactHandle(id, object, recency, timestamp, duration, entryPoint); + public DefaultEventHandle createEventFactHandle(long id, Object object, long recency, WorkingMemoryEntryPoint entryPoint, long timestamp, long duration) { + return new DefaultEventHandle(id, object, recency, timestamp, duration, entryPoint); } protected WorkingMemoryEntryPoint getWmEntryPoint(ReteEvaluator reteEvaluator, WorkingMemoryEntryPoint wmEntryPoint) { diff --git a/drools-core/src/main/java/org/drools/core/common/ActivationGroupImpl.java b/drools-core/src/main/java/org/drools/core/common/ActivationGroupImpl.java index d9618465393..45b34d96eed 100644 --- a/drools-core/src/main/java/org/drools/core/common/ActivationGroupImpl.java +++ b/drools-core/src/main/java/org/drools/core/common/ActivationGroupImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import org.drools.core.rule.consequence.InternalMatch; diff --git a/drools-core/src/main/java/org/drools/core/common/ActivationGroupNode.java b/drools-core/src/main/java/org/drools/core/common/ActivationGroupNode.java index 686fa2070b0..cc01a1f2035 100644 --- a/drools-core/src/main/java/org/drools/core/common/ActivationGroupNode.java +++ b/drools-core/src/main/java/org/drools/core/common/ActivationGroupNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import org.drools.core.rule.consequence.InternalMatch; diff --git a/drools-core/src/main/java/org/drools/core/common/ActivationNode.java b/drools-core/src/main/java/org/drools/core/common/ActivationNode.java index c4608b83486..a537b00c6ce 100644 --- a/drools-core/src/main/java/org/drools/core/common/ActivationNode.java +++ b/drools-core/src/main/java/org/drools/core/common/ActivationNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import org.drools.core.rule.consequence.InternalMatch; diff --git a/drools-core/src/main/java/org/drools/core/common/ActivationsFilter.java b/drools-core/src/main/java/org/drools/core/common/ActivationsFilter.java index d113619a29a..d904a2c8a58 100644 --- a/drools-core/src/main/java/org/drools/core/common/ActivationsFilter.java +++ b/drools-core/src/main/java/org/drools/core/common/ActivationsFilter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.common; import org.drools.core.phreak.RuleAgendaItem; @@ -23,7 +26,5 @@ */ public interface ActivationsFilter extends AgendaFilter { - boolean accept(RuleAgendaItem activation); - - void fireRNEAs(InternalWorkingMemory wm); + void accept(RuleAgendaItem activation); } diff --git a/drools-core/src/main/java/org/drools/core/common/ActivationsManager.java b/drools-core/src/main/java/org/drools/core/common/ActivationsManager.java index 69c08113636..5042d5fce56 100644 --- a/drools-core/src/main/java/org/drools/core/common/ActivationsManager.java +++ b/drools-core/src/main/java/org/drools/core/common/ActivationsManager.java @@ -1,21 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; +import org.drools.base.common.NetworkNode; import org.drools.core.event.AgendaEventSupport; import org.drools.core.phreak.ExecutableEntry; import org.drools.core.phreak.PropagationEntry; @@ -74,6 +77,9 @@ InternalMatch createAgendaItem(RuleTerminalNodeLeftTuple rtnLeftTuple, void evaluateQueriesForRule(RuleAgendaItem item); KnowledgeHelper getKnowledgeHelper(); + void resetKnowledgeHelper(); + + void haltGroupEvaluation(); void executeTask(ExecutableEntry executableEntry); diff --git a/drools-core/src/main/java/org/drools/core/common/AgendaFactory.java b/drools-core/src/main/java/org/drools/core/common/AgendaFactory.java index ff5a48f4f38..6b5f7ee2b4a 100644 --- a/drools-core/src/main/java/org/drools/core/common/AgendaFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/AgendaFactory.java @@ -1,28 +1,25 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; -import org.drools.core.impl.RuleBase; - public interface AgendaFactory { - InternalAgenda createAgenda(RuleBase kBase, boolean initMain); - - InternalAgenda createAgenda(RuleBase kBase); - + InternalAgenda createAgenda(InternalWorkingMemory workingMemory); } diff --git a/drools-core/src/main/java/org/drools/core/common/AgendaGroupFactory.java b/drools-core/src/main/java/org/drools/core/common/AgendaGroupFactory.java index 44ddef835ea..1606d7edef3 100644 --- a/drools-core/src/main/java/org/drools/core/common/AgendaGroupFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/AgendaGroupFactory.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; public interface AgendaGroupFactory { - InternalAgendaGroup createAgendaGroup(String name, RuleBase kBase); + InternalAgendaGroup createAgendaGroup(String name, InternalRuleBase kBase); } diff --git a/drools-core/src/main/java/org/drools/core/common/AgendaGroupQueueImpl.java b/drools-core/src/main/java/org/drools/core/common/AgendaGroupQueueImpl.java index bacaeadcb09..4c2df781496 100644 --- a/drools-core/src/main/java/org/drools/core/common/AgendaGroupQueueImpl.java +++ b/drools-core/src/main/java/org/drools/core/common/AgendaGroupQueueImpl.java @@ -1,29 +1,25 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; -import java.io.IOException; -import java.util.Collection; -import java.util.Map; -import java.util.PriorityQueue; -import java.util.concurrent.ConcurrentHashMap; - import org.drools.core.conflict.RuleAgendaConflictResolver; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.phreak.PropagationEntry; import org.drools.core.phreak.RuleAgendaItem; @@ -31,6 +27,12 @@ import org.drools.core.util.Queue; import org.drools.core.util.QueueFactory; +import java.io.IOException; +import java.util.Collection; +import java.util.Map; +import java.util.PriorityQueue; +import java.util.concurrent.ConcurrentHashMap; + /** * AgendaGroup implementation that uses a PriorityQueue to prioritise the evaluation of added * ActivationQueues. The AgendaGroup also maintains a Map of ActivationQueues @@ -65,7 +67,7 @@ public class AgendaGroupQueueImpl private final boolean sequential; public AgendaGroupQueueImpl(final String name, - final RuleBase kBase) { + final InternalRuleBase kBase) { this.name = name; this.sequential = kBase.getRuleBaseConfiguration().isSequential(); @@ -138,7 +140,9 @@ public SetFocusAction( String name ) { @Override public void internalExecute(ReteEvaluator reteEvaluator ) { - ((InternalAgenda) reteEvaluator.getActivationsManager()).setFocus(this.name); + if ( ((InternalAgenda) reteEvaluator.getActivationsManager()).setFocus(this.name) ) { + reteEvaluator.getActivationsManager().haltGroupEvaluation(); + } } @Override @@ -152,13 +156,6 @@ public void reset() { this.lastRemoved = null; } - public Collection getAll() { - return this.priorityQueue.getAll(); - } - - /* (non-Javadoc) - * @see org.kie.spi.AgendaGroup#size() - */ public int size() { return this.priorityQueue.size(); } @@ -239,6 +236,9 @@ public String toString() { } public boolean equals(final Object object) { + if (this == object) { + return true; + } return object instanceof AgendaGroupQueueImpl && ((AgendaGroupQueueImpl) object).name.equals( this.name ); } diff --git a/drools-core/src/main/java/org/drools/core/common/AgendaGroupsManager.java b/drools-core/src/main/java/org/drools/core/common/AgendaGroupsManager.java index bdb68b55491..dc5d8225265 100644 --- a/drools-core/src/main/java/org/drools/core/common/AgendaGroupsManager.java +++ b/drools-core/src/main/java/org/drools/core/common/AgendaGroupsManager.java @@ -1,21 +1,27 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; +import org.drools.core.impl.InternalRuleBase; +import org.drools.core.phreak.RuleAgendaItem; +import org.drools.core.reteoo.RuntimeComponentFactory; + import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; @@ -30,12 +36,7 @@ import java.util.Map; import java.util.stream.Collectors; -import org.drools.core.impl.RuleBase; -import org.drools.core.phreak.RuleAgendaItem; -import org.drools.core.reteoo.RuntimeComponentFactory; - public interface AgendaGroupsManager extends Externalizable { - void setReteEvaluator(ReteEvaluator reteEvaluator); void reset(boolean clearForRecency); @@ -62,7 +63,7 @@ public interface AgendaGroupsManager extends Externalizable { InternalAgendaGroup getAgendaGroup(String name); - InternalAgendaGroup getAgendaGroup(String name, RuleBase kBase); + InternalAgendaGroup getAgendaGroup(String name, InternalRuleBase kBase); InternalAgendaGroup getNextFocus(); @@ -70,8 +71,6 @@ public interface AgendaGroupsManager extends Externalizable { boolean removeGroup(InternalAgendaGroup group); - int focusStackSize(); - int agendaSize(); int sizeOfRuleFlowGroup(String name); @@ -80,8 +79,9 @@ public interface AgendaGroupsManager extends Externalizable { InternalAgendaGroup getMainAgendaGroup(); - static AgendaGroupsManager create(RuleBase kBase, boolean initMain) { - return kBase.hasMultipleAgendaGroups() || !kBase.getProcesses().isEmpty() ? new StackedAgendaGroupsManager(kBase, initMain) : new SimpleAgendaGroupsManager(kBase); + static AgendaGroupsManager create(InternalWorkingMemory workingMemory) { + InternalRuleBase kBase = workingMemory.getKnowledgeBase(); + return kBase.hasMultipleAgendaGroups() || !kBase.getProcesses().isEmpty() ? new StackedAgendaGroupsManager(workingMemory) : new SimpleAgendaGroupsManager(workingMemory); } class SimpleAgendaGroupsManager implements AgendaGroupsManager { @@ -90,19 +90,10 @@ class SimpleAgendaGroupsManager implements AgendaGroupsManager { public SimpleAgendaGroupsManager() { } - public SimpleAgendaGroupsManager(RuleBase kBase) { - this.mainAgendaGroup = RuntimeComponentFactory.get().getAgendaGroupFactory().createAgendaGroup(InternalAgendaGroup.MAIN, kBase); - } - public SimpleAgendaGroupsManager(ReteEvaluator reteEvaluator) { - this(reteEvaluator.getKnowledgeBase()); - setReteEvaluator(reteEvaluator); - } - - @Override - public void setReteEvaluator(ReteEvaluator reteEvaluator) { this.reteEvaluator = reteEvaluator; - this.mainAgendaGroup.setReteEvaluator( reteEvaluator ); + this.mainAgendaGroup = RuntimeComponentFactory.get().getAgendaGroupFactory().createAgendaGroup(InternalAgendaGroup.MAIN, reteEvaluator.getKnowledgeBase()); + this.mainAgendaGroup.setReteEvaluator(reteEvaluator); } @Override @@ -179,7 +170,7 @@ public String getFocusName() { @Override public RuleAgendaItem peekNextRule() { - return (RuleAgendaItem) this.mainAgendaGroup.peek(); + return this.mainAgendaGroup.peek(); } @Override @@ -188,7 +179,7 @@ public InternalAgendaGroup getAgendaGroup(String name) { } @Override - public InternalAgendaGroup getAgendaGroup(String name, RuleBase kBase) { + public InternalAgendaGroup getAgendaGroup(String name, InternalRuleBase kBase) { return InternalAgendaGroup.MAIN.equals(name) ? this.mainAgendaGroup : null; } @@ -215,11 +206,6 @@ public boolean removeGroup(InternalAgendaGroup group) { throw new UnsupportedOperationException(); } - @Override - public int focusStackSize() { - return mainAgendaGroup.size(); - } - @Override public int agendaSize() { return mainAgendaGroup.size(); @@ -265,11 +251,14 @@ class StackedAgendaGroupsManager implements AgendaGroupsManager { public StackedAgendaGroupsManager() { } - public StackedAgendaGroupsManager(RuleBase kBase, boolean initMain) { + public StackedAgendaGroupsManager(InternalWorkingMemory workingMemory) { this.agendaGroupFactory = RuntimeComponentFactory.get().getAgendaGroupFactory(); - if (initMain) { - initMainAgendaGroup(kBase); + // stacked agenda groups are supported only for InternalWorkingMemory + this.workingMemory = workingMemory; + if (this.mainAgendaGroup == null) { + initMainAgendaGroup(workingMemory.getKnowledgeBase()); } + this.mainAgendaGroup.setReteEvaluator( workingMemory ); } @Override @@ -277,22 +266,12 @@ public InternalAgendaGroup getMainAgendaGroup() { return mainAgendaGroup; } - private void initMainAgendaGroup(RuleBase kBase) { + private void initMainAgendaGroup(InternalRuleBase kBase) { this.mainAgendaGroup = agendaGroupFactory.createAgendaGroup( InternalAgendaGroup.MAIN, kBase); this.agendaGroups.put( InternalAgendaGroup.MAIN, this.mainAgendaGroup ); this.focusStack.add( this.mainAgendaGroup ); } - @Override - public void setReteEvaluator(ReteEvaluator reteEvaluator) { - // stacked agenda groups are supported only for InternalWorkingMemory - this.workingMemory = (InternalWorkingMemory) reteEvaluator; - if (this.mainAgendaGroup == null) { - initMainAgendaGroup(reteEvaluator.getKnowledgeBase()); - } - this.mainAgendaGroup.setReteEvaluator( reteEvaluator ); - } - private boolean isEmpty() { return focusStack.isEmpty(); } @@ -345,7 +324,7 @@ public void clearAndCancelAgendaGroup(String name, InternalAgenda agenda) { private void clearAndCancelAgendaGroup(InternalAgendaGroup agendaGroup, InternalAgenda agenda) { // enforce materialization of all activations of this group before removing them for (RuleAgendaItem activation : agendaGroup.getActivations()) { - activation.getRuleExecutor().reEvaluateNetwork( agenda ); + activation.getRuleExecutor().evaluateNetworkIfDirty( agenda ); } final EventSupport eventsupport = this.workingMemory; @@ -355,7 +334,7 @@ private void clearAndCancelAgendaGroup(InternalAgendaGroup agendaGroup, Internal // this is thread safe for BinaryHeapQueue // Binary Heap locks while it returns the array and reset's it's own internal array. Lock is released afer getAndClear() List lazyItems = new ArrayList<>(); - for (RuleAgendaItem item : agendaGroup.getAll() ) { + for (RuleAgendaItem item : agendaGroup.getActivations() ) { lazyItems.add(item ); item.getRuleExecutor().cancel(workingMemory, eventsupport); } @@ -401,9 +380,8 @@ public boolean setFocus(final InternalAgendaGroup agendaGroup) { final EventSupport eventsupport = this.workingMemory; eventsupport.getAgendaEventSupport().fireAgendaGroupPushed( agendaGroup, this.workingMemory ); return true; - } else { - return false; } + return false; } @Override @@ -418,7 +396,7 @@ public String getFocusName() { @Override public RuleAgendaItem peekNextRule() { - return (RuleAgendaItem) (this.focusStack.peekLast()).peek(); + return this.focusStack.peekLast().peek(); } @Override @@ -427,7 +405,7 @@ public InternalAgendaGroup getAgendaGroup(final String name) { } @Override - public InternalAgendaGroup getAgendaGroup(final String name, RuleBase kBase) { + public InternalAgendaGroup getAgendaGroup(final String name, InternalRuleBase kBase) { String groupName = (name == null || name.length() == 0) ? InternalAgendaGroup.MAIN : name; InternalAgendaGroup agendaGroup = this.agendaGroups.get( groupName ); @@ -516,15 +494,6 @@ public boolean removeGroup(InternalAgendaGroup group) { return existed; } - @Override - public int focusStackSize() { - int size = 0; - for ( InternalAgendaGroup group : this.focusStack ) { - size += group.size(); - } - return size; - } - @Override public int agendaSize() { int size = 0; diff --git a/drools-core/src/main/java/org/drools/core/common/BaseNode.java b/drools-core/src/main/java/org/drools/core/common/BaseNode.java index 6acb9652553..08f5375e1b8 100644 --- a/drools-core/src/main/java/org/drools/core/common/BaseNode.java +++ b/drools-core/src/main/java/org/drools/core/common/BaseNode.java @@ -1,27 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - +import org.drools.base.common.NetworkNode; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.reteoo.BaseTerminalNode; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.ObjectSource; @@ -33,19 +32,24 @@ import org.drools.core.reteoo.builder.BuildContext; import org.kie.api.definition.rule.Rule; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + /** * The base class for all Rete nodes. */ public abstract class BaseNode implements - NetworkNode { + NetworkNode { protected int id; protected int memoryId = -1; - protected RuleBasePartitionId partitionId; - protected boolean partitionsEnabled; + protected RuleBasePartitionId partitionId; protected Set associations; private Map associatedTerminals; @@ -65,12 +69,10 @@ public BaseNode() { * The unique id */ public BaseNode(final int id, - final RuleBasePartitionId partitionId, - final boolean partitionsEnabled) { + final RuleBasePartitionId partitionId) { super(); this.id = id; this.partitionId = partitionId; - this.partitionsEnabled = partitionsEnabled; this.associations = new HashSet<>(); this.associatedTerminals = new HashMap<>(); } @@ -168,10 +170,6 @@ public void setPartitionId(BuildContext context, RuleBasePartitionId partitionId this.partitionId = partitionId; } - public void setPartitionsEnabled( boolean partitionsEnabled ) { - this.partitionsEnabled = partitionsEnabled; - } - /** * Associates this node with the give rule */ @@ -203,11 +201,13 @@ public boolean isAssociatedWith( Rule rule ) { return this.associations.contains( rule ); } - public void addAssociatedTerminal(TerminalNode terminalNode) { - associatedTerminals.put(terminalNode.getId(), terminalNode); + @Override + public void addAssociatedTerminal(BaseTerminalNode terminalNode) { + associatedTerminals.put(terminalNode.getId(),(TerminalNode) terminalNode); } - public void removeAssociatedTerminal(TerminalNode terminalNode) { + @Override + public void removeAssociatedTerminal(BaseTerminalNode terminalNode) { associatedTerminals.remove(terminalNode.getId()); } @@ -215,7 +215,7 @@ public int getAssociatedTerminalsSize() { return associatedTerminals.size(); } - public boolean hasAssociatedTerminal(NetworkNode terminalNode) { + public boolean hasAssociatedTerminal(BaseTerminalNode terminalNode) { return associatedTerminals.containsKey(terminalNode.getId()); } diff --git a/drools-core/src/main/java/org/drools/core/common/BetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/BetaConstraints.java index e6689926c76..89fdbaefbbb 100644 --- a/drools-core/src/main/java/org/drools/core/common/BetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/BetaConstraints.java @@ -1,32 +1,36 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.Externalizable; import java.util.List; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; import org.drools.core.reteoo.BetaMemory; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; public interface BetaConstraints extends @@ -40,10 +44,10 @@ void updateFromTuple(ContextEntry[] context, void updateFromFactHandle(ContextEntry[] context, ReteEvaluator reteEvaluator, - InternalFactHandle handle); + FactHandle handle); boolean isAllowedCachedLeft(ContextEntry[] context, - InternalFactHandle handle); + FactHandle handle); boolean isAllowedCachedRight(ContextEntry[] context, Tuple tuple); @@ -65,7 +69,7 @@ BetaMemory createBetaMemory(final RuleBaseConfiguration config, void resetFactHandle(final ContextEntry[] context); - BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties); + BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties); void init(BuildContext context, short betaNodeType); void initIndexes(int depth, short betaNodeType, RuleBaseConfiguration config); diff --git a/drools-core/src/main/java/org/drools/core/common/ClassAwareObjectStore.java b/drools-core/src/main/java/org/drools/core/common/ClassAwareObjectStore.java index e88f53ca581..99a95e86b07 100644 --- a/drools-core/src/main/java/org/drools/core/common/ClassAwareObjectStore.java +++ b/drools-core/src/main/java/org/drools/core/common/ClassAwareObjectStore.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.common; -import org.drools.core.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.CoreWrapper; import org.kie.api.runtime.ClassObjectFilter; import org.kie.api.runtime.ObjectFilter; diff --git a/drools-core/src/main/java/org/drools/core/common/ConcurrentNodeMemories.java b/drools-core/src/main/java/org/drools/core/common/ConcurrentNodeMemories.java index 2cc670aa46a..b1199fdafd7 100644 --- a/drools-core/src/main/java/org/drools/core/common/ConcurrentNodeMemories.java +++ b/drools-core/src/main/java/org/drools/core/common/ConcurrentNodeMemories.java @@ -1,30 +1,32 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; +import org.drools.core.impl.InternalRuleBase; +import org.drools.core.reteoo.SegmentMemory; +import org.kie.internal.runtime.StatefulKnowledgeSession; + import java.util.HashSet; import java.util.Set; import java.util.concurrent.atomic.AtomicReferenceArray; -import java.util.concurrent.locks.Lock; -import java.util.concurrent.locks.ReentrantLock; - -import org.drools.core.impl.RuleBase; -import org.drools.core.reteoo.SegmentMemory; -import org.kie.internal.runtime.StatefulKnowledgeSession; +import java.util.concurrent.locks.ReadWriteLock; +import java.util.concurrent.locks.ReentrantReadWriteLock; /** * A concurrent implementation for the node memories interface @@ -33,10 +35,10 @@ public class ConcurrentNodeMemories implements NodeMemories { private AtomicReferenceArray memories; - private final Lock lock = new ReentrantLock(); - private final RuleBase ruleBase; + private final ReadWriteLock lock = new ReentrantReadWriteLock(); + private final InternalRuleBase ruleBase; - public ConcurrentNodeMemories( RuleBase ruleBase) { + public ConcurrentNodeMemories( InternalRuleBase ruleBase) { this.ruleBase = ruleBase; this.memories = new AtomicReferenceArray<>( this.ruleBase.getMemoryCount() ); } @@ -52,7 +54,7 @@ public void clear() { } public void resetAllMemories(StatefulKnowledgeSession session) { - RuleBase kBase = (RuleBase) session.getKieBase(); + InternalRuleBase kBase = (InternalRuleBase) session.getKieBase(); Set smemSet = new HashSet<>(); for (int i = 0; i < memories.length(); i++) { @@ -66,7 +68,7 @@ public void resetAllMemories(StatefulKnowledgeSession session) { smemSet.forEach(smem -> resetSegmentMemory(session, kBase, smem)); } - private void resetSegmentMemory(StatefulKnowledgeSession session, RuleBase kBase, SegmentMemory smem) { + private void resetSegmentMemory(StatefulKnowledgeSession session, InternalRuleBase kBase, SegmentMemory smem) { if (smem != null) { smem.reset(kBase.getSegmentPrototype(smem)); if (smem.isSegmentLinked()) { @@ -83,15 +85,11 @@ private void resetSegmentMemory(StatefulKnowledgeSession session, RuleBase kBase */ public Memory getNodeMemory(MemoryFactory node, ReteEvaluator reteEvaluator) { if( node.getMemoryId() >= this.memories.length() ) { - resize( node ); - } - Memory memory = this.memories.get( node.getMemoryId() ); - - if( memory == null ) { - memory = createNodeMemory( node, reteEvaluator ); + resize( node.getMemoryId() ); } - return memory; + Memory memory = this.memories.get( node.getMemoryId() ); + return memory != null ? memory : createNodeMemory( node, reteEvaluator ); } @@ -101,43 +99,32 @@ public Memory getNodeMemory(MemoryFactory node, ReteEvaluator reteEvaluator) { */ private Memory createNodeMemory( MemoryFactory node, ReteEvaluator reteEvaluator ) { try { - this.lock.lock(); + this.lock.readLock().lock(); // need to try again in a synchronized code block to make sure // it was not created yet - Memory memory = this.memories.get( node.getMemoryId() ); - if( memory == null ) { - memory = node.createMemory( this.ruleBase.getRuleBaseConfiguration(), reteEvaluator ); - - if( !this.memories.compareAndSet( node.getMemoryId(), null, memory ) ) { - memory = this.memories.get( node.getMemoryId() ); - } - - } - return memory; + Memory memory = node.createMemory( this.ruleBase.getRuleBaseConfiguration(), reteEvaluator ); + return this.memories.compareAndSet( node.getMemoryId(), null, memory ) ? + memory : + this.memories.get( node.getMemoryId() ); } finally { - this.lock.unlock(); - + this.lock.readLock().unlock(); } } - /** - * @param node - */ - private void resize( MemoryFactory node ) { + private void resize( int newSize ) { try { - this.lock.lock(); - if( node.getMemoryId() >= this.memories.length() ) { + this.lock.writeLock().lock(); + if ( newSize >= this.memories.length() ) { // adding some buffer for new nodes, so that we reduce array copies - int size = Math.max( this.ruleBase.getMemoryCount(), node.getMemoryId() + 32 ); - AtomicReferenceArray newMem = new AtomicReferenceArray<>( size ); - for ( int i = 0; i < this.memories.length(); i++ ) { - newMem.set( i, - this.memories.get( i ) ); + int size = Math.max(this.ruleBase.getMemoryCount(), newSize + 32); + AtomicReferenceArray newMem = new AtomicReferenceArray<>(size); + for (int i = 0; i < this.memories.length(); i++) { + newMem.set(i, this.memories.get(i)); } this.memories = newMem; } } finally { - this.lock.unlock(); + this.lock.writeLock().unlock(); } } diff --git a/drools-core/src/main/java/org/drools/core/common/DefaultBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/DefaultBetaConstraints.java index 97ca4c128b7..e67af52c930 100644 --- a/drools-core/src/main/java/org/drools/core/common/DefaultBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/DefaultBetaConstraints.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.IOException; @@ -21,23 +23,26 @@ import java.io.ObjectOutput; import java.util.Arrays; import java.util.List; - +import java.util.Optional; + +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.Tuple; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.core.util.index.IndexFactory; +import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.conf.IndexPrecedenceOption; -import static org.drools.core.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; -import static org.drools.core.util.index.IndexUtil.compositeAllowed; -import static org.drools.core.util.index.IndexUtil.isIndexableForNode; +import static org.drools.base.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; +import static org.drools.base.util.index.IndexUtil.compositeAllowed; +import static org.drools.base.util.index.IndexUtil.isIndexableForNode; public class DefaultBetaConstraints @@ -155,7 +160,7 @@ public void updateFromTuple(final ContextEntry[] context, */ public void updateFromFactHandle(final ContextEntry[] context, final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + final FactHandle handle) { for (ContextEntry aContext : context) { aContext.updateFromFactHandle(reteEvaluator, handle); } @@ -177,7 +182,7 @@ public void resetFactHandle(final ContextEntry[] context) { * @see org.kie.common.BetaNodeConstraints#isAllowedCachedLeft(java.lang.Object) */ public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { for (int i = indexed; i < constraints.length; i++) { if ( !constraints[i].isAllowedCachedLeft(context[i], handle) ) { return false; @@ -261,10 +266,10 @@ public BetaConstraints getOriginalConstraint() { throw new UnsupportedOperationException(); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { BitMask mask = getEmptyPropertyReactiveMask(settableProperties.size()); for (BetaNodeFieldConstraint constraint : constraints) { - mask = mask.setAll(constraint.getListenedPropertyMask(modifiedType, settableProperties)); + mask = mask.setAll(constraint.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)); } return mask; } diff --git a/drools-core/src/main/java/org/drools/core/common/EventFactHandle.java b/drools-core/src/main/java/org/drools/core/common/DefaultEventHandle.java similarity index 58% rename from drools-core/src/main/java/org/drools/core/common/EventFactHandle.java rename to drools-core/src/main/java/org/drools/core/common/DefaultEventHandle.java index 939575cd538..a905894d59c 100644 --- a/drools-core/src/main/java/org/drools/core/common/EventFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/DefaultEventHandle.java @@ -1,30 +1,32 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; -import java.util.concurrent.atomic.AtomicInteger; - +import org.drools.base.rule.EntryPointId; +import org.drools.base.time.JobHandle; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.rule.EntryPointId; -import org.drools.core.time.JobHandle; import org.drools.core.time.TimerService; +import org.drools.core.time.impl.DefaultJobHandle; import org.drools.core.util.LinkedList; +import org.kie.api.runtime.rule.EventHandle; -public class EventFactHandle extends DefaultFactHandle implements Comparable { +public class DefaultEventHandle extends DefaultFactHandle implements EventHandle, Comparable { private static final long serialVersionUID = 510l; @@ -34,25 +36,25 @@ public class EventFactHandle extends DefaultFactHandle implements Comparable jobs = new LinkedList<>(); - private final transient LinkedList jobs = new LinkedList<>(); - - // ---------------------------------------------------------------------- - // Constructors - // ---------------------------------------------------------------------- - - public EventFactHandle() { + public DefaultEventHandle() { super(); this.startTimestamp = 0; this.duration = 0; } + public DefaultEventHandle(long id, EntryPointId entryPointId) { + super(id, null); + this.startTimestamp = 0; + this.duration = 0; + this.entryPointId = entryPointId; + } + /** * Creates a new event fact handle. * @@ -62,28 +64,24 @@ public EventFactHandle() { * @param timestamp the timestamp of the occurrence of this event * @param duration the duration of this event. May be 0 (zero) in case this is a primitive event. */ - public EventFactHandle(long id, - Object object, - long recency, - long timestamp, - long duration, - WorkingMemoryEntryPoint wmEntryPoint ) { + public DefaultEventHandle(long id, + Object object, + long recency, + long timestamp, + long duration, + WorkingMemoryEntryPoint wmEntryPoint) { super( id, object, recency, wmEntryPoint ); this.startTimestamp = timestamp; this.duration = duration; - - if ( wmEntryPoint.getKnowledgeBase() != null && wmEntryPoint.getKnowledgeBase().getRuleBaseConfiguration().isMultithreadEvaluation() ) { - notExpiredPartitions = new AtomicInteger( RuleBasePartitionId.PARALLEL_PARTITIONS_NUMBER ); - } } - protected EventFactHandle(long id, - int identityHashCode, - Object object, - long recency, - long timestamp, - long duration, - EntryPointId entryPointId ) { + protected DefaultEventHandle(long id, + int identityHashCode, + Object object, + long recency, + long timestamp, + long duration, + EntryPointId entryPointId) { super( id, identityHashCode, object, recency, entryPointId ); this.startTimestamp = timestamp; @@ -138,7 +136,7 @@ public long getEndTimestamp() { return this.startTimestamp + this.duration; } - public EventFactHandle getLinkedFactHandle() { + public DefaultEventHandle getLinkedFactHandle() { return linkedFactHandle; } @@ -169,14 +167,6 @@ public boolean isExpired() { } } - public boolean expirePartition() { - if ( linkedFactHandle != null ) { - return linkedFactHandle.expirePartition(); - } else { - return notExpiredPartitions == null || notExpiredPartitions.decrementAndGet() == 0; - } - } - public void setExpired(boolean expired) { if ( linkedFactHandle != null ) { linkedFactHandle.setExpired(expired); @@ -201,38 +191,6 @@ public void setPendingRemoveFromStore(boolean pendingRemove) { } } - public long getActivationsCount() { - if ( linkedFactHandle != null ) { - return linkedFactHandle.getActivationsCount(); - } else { - return activationsCount; - } - } - - public void setActivationsCount(long activationsCount) { - if ( linkedFactHandle != null ) { - linkedFactHandle.setActivationsCount( activationsCount ); - } else { - this.activationsCount = activationsCount; - } - } - - public void increaseActivationsCount() { - if ( linkedFactHandle != null ) { - linkedFactHandle.increaseActivationsCount(); - } else { - this.activationsCount++; - } - } - - public void decreaseActivationsCount() { - if ( linkedFactHandle != null ) { - linkedFactHandle.decreaseActivationsCount(); - } else { - this.activationsCount--; - } - } - public void increaseOtnCount() { otnCount++; } @@ -249,15 +207,14 @@ public void setOtnCount( int otnCount ) { this.otnCount = otnCount; } - public EventFactHandle clone() { - EventFactHandle clone = new EventFactHandle( getId(), - getIdentityHashCode(), - getObject(), - getRecency(), - getStartTimestamp(), - getDuration(), - getEntryPointId() ); - clone.setActivationsCount( getActivationsCount() ); + public DefaultEventHandle clone() { + DefaultEventHandle clone = new DefaultEventHandle(getId(), + getIdentityHashCode(), + getObject(), + getRecency(), + getStartTimestamp(), + getDuration(), + getEntryPointId() ); clone.setOtnCount( getOtnCount() ); clone.setExpired( isExpired() ); clone.setEqualityKey( getEqualityKey() ); @@ -267,26 +224,25 @@ public EventFactHandle clone() { return clone; } - private EventFactHandle cloneWithoutTuples() { - EventFactHandle clone = new EventFactHandle( getId(), - getIdentityHashCode(), - getObject(), - getRecency(), - getStartTimestamp(), - getDuration(), - getEntryPointId() ); - clone.setActivationsCount( getActivationsCount() ); + private DefaultEventHandle cloneWithoutTuples() { + DefaultEventHandle clone = new DefaultEventHandle(getId(), + getIdentityHashCode(), + getObject(), + getRecency(), + getStartTimestamp(), + getDuration(), + getEntryPointId() ); clone.setOtnCount( getOtnCount() ); clone.setExpired( isExpired() ); clone.setEqualityKey( getEqualityKey() ); - clone.linkedTuples = this.linkedTuples.newInstance(); + clone.linkedTuples = this.linkedTuples.cloneEmpty(); clone.setObjectHashCode(getObjectHashCode()); clone.wmEntryPoint = this.wmEntryPoint; return clone; } - public EventFactHandle cloneAndLink() { - EventFactHandle clone = cloneWithoutTuples(); + public DefaultEventHandle cloneAndLink() { + DefaultEventHandle clone = cloneWithoutTuples(); clone.linkedFactHandle = this; return clone; } @@ -303,17 +259,17 @@ public void quickCloneUpdate(DefaultFactHandle clone) { clone.setNegated( isNegated() ); } - public int compareTo(EventFactHandle e) { + public int compareTo(DefaultEventHandle e) { return (getStartTimestamp() < e.getStartTimestamp()) ? -1 : (getStartTimestamp() == e.getStartTimestamp() ? 0 : 1); } - public void addJob(JobHandle job) { + public void addJob(DefaultJobHandle job) { synchronized (jobs) { jobs.add(job); } } - public void removeJob(JobHandle job) { + public void removeJob(DefaultJobHandle job) { synchronized (jobs) { // the job could have been already removed if the event has been just retracted // and then the unscheduleAllJobs method has been invoked concurrently diff --git a/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java b/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java index f7d14914f27..c3a8820eec1 100644 --- a/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/DefaultFactHandle.java @@ -1,42 +1,45 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; -import java.util.Objects; -import java.util.function.Consumer; -import java.util.function.Predicate; -import java.util.stream.Stream; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlRootElement; - +import org.drools.base.factmodel.traits.TraitTypeEnum; +import org.drools.base.rule.EntryPointId; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.factmodel.traits.TraitTypeEnum; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.RightTuple; -import org.drools.core.rule.EntryPointId; +import org.drools.core.reteoo.RightTupleImpl; import org.drools.core.reteoo.Tuple; import org.drools.core.util.AbstractBaseLinkedListNode; import org.drools.util.StringUtils; import org.kie.api.runtime.rule.FactHandle; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import java.util.Objects; +import java.util.function.Consumer; +import java.util.function.Predicate; +import java.util.stream.Stream; + /** * Implementation of FactHandle. */ @@ -46,10 +49,6 @@ public class DefaultFactHandle extends AbstractBaseLinkedListNode K as( Class klass ) throws ClassCastException { + public K as(Class klass) throws ClassCastException { if ( klass.isAssignableFrom( object.getClass() ) ) { return (K) object; } @@ -365,9 +354,9 @@ public WorkingMemoryEntryPoint getEntryPoint(ReteEvaluator reteEvaluator) { return wmEntryPoint; } - protected void setLinkedTuples( RuleBase kbase ) { - linkedTuples = kbase != null && kbase.getRuleBaseConfiguration().isMultithreadEvaluation() ? - new CompositeLinkedTuples() : + protected void setLinkedTuples(InternalRuleBase kbase) { + linkedTuples = kbase != null && kbase.isPartitioned() ? + new CompositeLinkedTuples(kbase.getParallelEvaluationSlotsCount()) : new SingleLinkedTuples(); } @@ -387,10 +376,6 @@ public void removeLeftTuple( LeftTuple leftTuple ) { linkedTuples.removeLeftTuple( leftTuple ); } - public void addFirstRightTuple( RightTuple rightTuple ) { - linkedTuples.addFirstRightTuple( rightTuple ); - } - public void addLastRightTuple( RightTuple rightTuple ) { linkedTuples.addLastRightTuple( rightTuple ); } @@ -424,8 +409,8 @@ public static DefaultFactHandle createFromExternalFormat( String externalFormat DefaultFactHandle handle; if (FACT_FORMAT_VERSION.equals( elements[0]) ) { handle = new DefaultFactHandle(); - } else if (EventFactHandle.EVENT_FORMAT_VERSION.equals( elements[0])) { - handle = new EventFactHandle(); + } else if (DefaultEventHandle.EVENT_FORMAT_VERSION.equals(elements[0])) { + handle = new DefaultEventHandle(); } else { throw new RuntimeException( "Unknown fact handle version format: " + elements[0]); } @@ -483,7 +468,7 @@ public SingleLinkedTuples clone() { } @Override - public LinkedTuples newInstance() { + public LinkedTuples cloneEmpty() { return new SingleLinkedTuples(); } @@ -495,14 +480,13 @@ public boolean hasTuples() { @Override public void addFirstLeftTuple( LeftTuple leftTuple ) { LeftTuple previous = firstLeftTuple; + leftTuple.setHandlePrevious( null ); if ( previous == null ) { // no other LeftTuples, just add. - leftTuple.setHandlePrevious( null ); leftTuple.setHandleNext( null ); firstLeftTuple = leftTuple; lastLeftTuple = leftTuple; } else { - leftTuple.setHandlePrevious( null ); leftTuple.setHandleNext( previous ); previous.setHandlePrevious( leftTuple ); firstLeftTuple = leftTuple; @@ -517,13 +501,12 @@ public void addLastLeftTuple( LeftTuple leftTuple ) { leftTuple.setHandlePrevious( null ); leftTuple.setHandleNext( null ); firstLeftTuple = leftTuple; - lastLeftTuple = leftTuple; } else { leftTuple.setHandlePrevious( previous ); leftTuple.setHandleNext( null ); previous.setHandleNext( leftTuple ); - lastLeftTuple = leftTuple; } + lastLeftTuple = leftTuple; } @Override @@ -622,12 +605,11 @@ public void removeLeftTuple( LeftTuple leftTuple ) { public void addFirstRightTuple( RightTuple rightTuple ) { RightTuple previousFirst = firstRightTuple; firstRightTuple = rightTuple; + rightTuple.setHandlePrevious( null ); if ( previousFirst == null ) { - rightTuple.setHandlePrevious( null ); rightTuple.setHandleNext( null ); lastRightTuple = rightTuple; } else { - rightTuple.setHandlePrevious( null ); rightTuple.setHandleNext( previousFirst ); previousFirst.setHandlePrevious( rightTuple ); } @@ -636,26 +618,25 @@ public void addFirstRightTuple( RightTuple rightTuple ) { @Override public void addLastRightTuple( RightTuple rightTuple ) { RightTuple previousLast = lastRightTuple; - if( previousLast == null ){ + if ( previousLast == null ) { rightTuple.setHandlePrevious( null ); rightTuple.setHandleNext( null ); firstRightTuple = rightTuple; - lastRightTuple = rightTuple; } else { rightTuple.setHandlePrevious( previousLast ); rightTuple.setHandleNext( null ); previousLast.setHandleNext( rightTuple ); - lastRightTuple = rightTuple; } + lastRightTuple = rightTuple; } @Override public void removeRightTuple( RightTuple rightTuple ) { - RightTuple previous = rightTuple.getHandlePrevious(); - RightTuple next = rightTuple.getHandleNext(); + RightTupleImpl previous = rightTuple.getHandlePrevious(); + RightTupleImpl next = rightTuple.getHandleNext(); if ( previous != null && next != null ) { - // remove from middle + // remove from middle previous.setHandleNext( next ); next.setHandlePrevious( previous ); } else if ( next != null ) { @@ -689,25 +670,13 @@ public void clearRightTuples() { @Override public void forEachRightTuple(Consumer rightTupleConsumer) { - for (RightTuple rightTuple = firstRightTuple; rightTuple != null; ) { - RightTuple nextRightTuple = rightTuple.getHandleNext(); + for (RightTupleImpl rightTuple = (RightTupleImpl) firstRightTuple; rightTuple != null; ) { + RightTupleImpl nextRightTuple = rightTuple.getHandleNext(); rightTupleConsumer.accept( rightTuple ); rightTuple = nextRightTuple; } } - @Override - public RightTuple findFirstRightTuple(Predicate rightTuplePredicate ) { - for (RightTuple rightTuple = firstRightTuple; rightTuple != null; ) { - RightTuple nextRightTuple = rightTuple.getHandleNext(); - if (rightTuplePredicate.test( rightTuple )) { - return rightTuple; - } - rightTuple = nextRightTuple; - } - return null; - } - @Override public void forEachLeftTuple(Consumer leftTupleConsumer) { for ( LeftTuple leftTuple = firstLeftTuple; leftTuple != null; ) { @@ -737,15 +706,6 @@ LeftTuple getFirstLeftTuple() { return firstLeftTuple; } - @Override - public void setFirstLeftTuple( LeftTuple firstLeftTuple, int partition ) { - setFirstLeftTuple( firstLeftTuple ); - } - - void setFirstLeftTuple( LeftTuple firstLeftTuple ) { - this.firstLeftTuple = firstLeftTuple; - } - @Override public RightTuple getFirstRightTuple(int partition) { return getFirstRightTuple(); @@ -758,23 +718,34 @@ RightTuple getFirstRightTuple() { public static class CompositeLinkedTuples implements LinkedTuples { - private final SingleLinkedTuples[] partitionedTuples = new SingleLinkedTuples[RuleBasePartitionId.PARALLEL_PARTITIONS_NUMBER]; + private final LinkedTuples[] partitionedTuples; - public CompositeLinkedTuples() { - for (int i = 0; i < partitionedTuples.length; i++) { - partitionedTuples[i] = new SingleLinkedTuples(); + public CompositeLinkedTuples(int parallelEvaluationSlotsCount) { + this.partitionedTuples = new LinkedTuples[parallelEvaluationSlotsCount]; + } + + private LinkedTuples getPartitionedTuple(int partition) { + LinkedTuples tuples = partitionedTuples[partition]; + return tuples != null ? tuples : DummyLinkedTuples.INSTANCE; + } + + private LinkedTuples getOrCreatePartitionedTuple(int partition) { + LinkedTuples tuples = partitionedTuples[partition]; + if (tuples == null) { + tuples = ( partitionedTuples[partition] = new SingleLinkedTuples() ); } + return tuples; } @Override - public LinkedTuples newInstance() { - return new CompositeLinkedTuples(); + public LinkedTuples cloneEmpty() { + return new CompositeLinkedTuples(partitionedTuples.length); } @Override public boolean hasTuples() { for (int i = 0; i < partitionedTuples.length; i++) { - if (partitionedTuples[i].hasTuples()) { + if (getPartitionedTuple(i).hasTuples()) { return true; } } @@ -783,51 +754,55 @@ public boolean hasTuples() { @Override public LinkedTuples clone() { - CompositeLinkedTuples clone = new CompositeLinkedTuples(); + CompositeLinkedTuples clone = new CompositeLinkedTuples(partitionedTuples.length); for (int i = 0; i < partitionedTuples.length; i++) { - clone.partitionedTuples[i] = partitionedTuples[i].clone(); + clone.partitionedTuples[i] = partitionedTuples[i] == null ? null : partitionedTuples[i].clone(); } return clone; } - private LinkedTuples getPartitionTuples(Tuple tuple) { - return partitionedTuples[tuple.getTupleSink().getPartitionId().getParallelEvaluationSlot()]; + private LinkedTuples getPartitionedTuple(Tuple tuple) { + return getPartitionedTuple(tuple.getTupleSink().getPartitionId().getParallelEvaluationSlot()); + } + + private LinkedTuples getOrCreatePartitionedTuple(Tuple tuple) { + return getOrCreatePartitionedTuple(tuple.getTupleSink().getPartitionId().getParallelEvaluationSlot()); } @Override public void addFirstLeftTuple( LeftTuple leftTuple ) { - getPartitionTuples(leftTuple).addFirstLeftTuple( leftTuple ); + getOrCreatePartitionedTuple(leftTuple).addFirstLeftTuple( leftTuple ); } @Override public void addLastLeftTuple( LeftTuple leftTuple ) { - getPartitionTuples(leftTuple).addLastLeftTuple( leftTuple ); + getOrCreatePartitionedTuple(leftTuple).addLastLeftTuple( leftTuple ); } @Override public void addTupleInPosition( Tuple tuple ) { - getPartitionTuples(tuple).addTupleInPosition( tuple ); + getOrCreatePartitionedTuple(tuple).addTupleInPosition( tuple ); } @Override public void removeLeftTuple( LeftTuple leftTuple ) { - getPartitionTuples(leftTuple).removeLeftTuple( leftTuple ); + getPartitionedTuple(leftTuple).removeLeftTuple( leftTuple ); } @Override public void addFirstRightTuple( RightTuple rightTuple ) { - getPartitionTuples(rightTuple).addFirstRightTuple( rightTuple ); + getOrCreatePartitionedTuple(rightTuple).addFirstRightTuple( rightTuple ); } @Override public void addLastRightTuple( RightTuple rightTuple ) { - getPartitionTuples(rightTuple).addLastRightTuple( rightTuple ); + getOrCreatePartitionedTuple(rightTuple).addLastRightTuple( rightTuple ); } @Override public void removeRightTuple( RightTuple rightTuple ) { if (rightTuple.getTupleSink() != null) { - getPartitionTuples( rightTuple ).removeRightTuple( rightTuple ); + getPartitionedTuple( rightTuple ).removeRightTuple( rightTuple ); } } @@ -839,7 +814,7 @@ public void clearLeftTuples() { } public void clearLeftTuples(int partition) { - partitionedTuples[partition].clearLeftTuples(); + getPartitionedTuple(partition).clearLeftTuples(); } @Override @@ -850,7 +825,7 @@ public void clearRightTuples() { } public void clearRightTuples(int partition) { - partitionedTuples[partition].clearRightTuples(); + getPartitionedTuple(partition).clearRightTuples(); } @Override @@ -861,16 +836,7 @@ public void forEachRightTuple( Consumer rightTupleConsumer ) { } public void forEachRightTuple( int partition, Consumer rightTupleConsumer ) { - partitionedTuples[partition].forEachRightTuple( rightTupleConsumer ); - } - - @Override - public RightTuple findFirstRightTuple( Predicate rightTuplePredicate ) { - return Stream.of( partitionedTuples ) - .map( t -> t.findFirstRightTuple( rightTuplePredicate ) ) - .filter( Objects::nonNull ) - .findFirst() - .orElse( null ); + getPartitionedTuple(partition).forEachRightTuple( rightTupleConsumer ); } @Override @@ -881,11 +847,11 @@ public void forEachLeftTuple( Consumer leftTupleConsumer ) { } public void forEachLeftTuple( int partition, Consumer leftTupleConsumer ) { - partitionedTuples[partition].forEachLeftTuple( leftTupleConsumer ); + getPartitionedTuple(partition).forEachLeftTuple( leftTupleConsumer ); } @Override - public LeftTuple findFirstLeftTuple( Predicate lefttTuplePredicate ) { + public LeftTuple findFirstLeftTuple(Predicate lefttTuplePredicate ) { return Stream.of( partitionedTuples ) .map( t -> t.findFirstLeftTuple( lefttTuplePredicate ) ) .filter( Objects::nonNull ) @@ -895,17 +861,94 @@ public LeftTuple findFirstLeftTuple( Predicate lefttTuplePredicate ) @Override public LeftTuple getFirstLeftTuple(int partition) { - return partitionedTuples[partition].getFirstLeftTuple(); + return ((SingleLinkedTuples) partitionedTuples[partition]).getFirstLeftTuple(); } @Override - public void setFirstLeftTuple( LeftTuple firstLeftTuple, int partition ) { - partitionedTuples[partition].setFirstLeftTuple(firstLeftTuple); + public RightTuple getFirstRightTuple(int partition) { + return ((SingleLinkedTuples) partitionedTuples[partition]).getFirstRightTuple(); + } + } + + public static class DummyLinkedTuples implements LinkedTuples { + + private static final DummyLinkedTuples INSTANCE = new DummyLinkedTuples(); + + @Override + public LinkedTuples clone() { + return this; + } + + @Override + public LinkedTuples cloneEmpty() { + throw new UnsupportedOperationException(); + } + + @Override + public boolean hasTuples() { + return false; + } + + @Override + public void addFirstLeftTuple(LeftTuple leftTuple) { + throw new UnsupportedOperationException(); + } + + @Override + public void addLastLeftTuple(LeftTuple leftTuple) { + throw new UnsupportedOperationException(); + } + + @Override + public void addTupleInPosition(Tuple tuple) { + throw new UnsupportedOperationException(); + } + + @Override + public void removeLeftTuple(LeftTuple leftTuple) { + throw new UnsupportedOperationException(); + } + + @Override + public void addFirstRightTuple(RightTuple rightTuple) { + throw new UnsupportedOperationException(); + } + + @Override + public void addLastRightTuple(RightTuple rightTuple) { + throw new UnsupportedOperationException(); + } + + @Override + public void removeRightTuple(RightTuple rightTuple) { + throw new UnsupportedOperationException(); + } + + @Override + public void clearLeftTuples() { } + + @Override + public void clearRightTuples() { } + + @Override + public void forEachRightTuple(Consumer rightTupleConsumer) { } + + @Override + public void forEachLeftTuple(Consumer leftTupleConsumer) { } + + @Override + public LeftTuple findFirstLeftTuple(Predicate leftTuplePredicate) { + return null; + } + + @Override + public LeftTuple getFirstLeftTuple(int partition) { + return null; } @Override public RightTuple getFirstRightTuple(int partition) { - return partitionedTuples[partition].getFirstRightTuple(); + return null; } } @@ -914,11 +957,6 @@ public void forEachRightTuple(Consumer rightTupleConsumer) { linkedTuples.forEachRightTuple( rightTupleConsumer ); } - @Override - public RightTuple findFirstRightTuple(Predicate rightTuplePredicate ) { - return linkedTuples.findFirstRightTuple( rightTuplePredicate ); - } - @Override public void forEachLeftTuple(Consumer leftTupleConsumer) { linkedTuples.forEachLeftTuple( leftTupleConsumer ); @@ -937,15 +975,6 @@ public LeftTuple getFirstLeftTuple() { throw new UnsupportedOperationException(); } - @Override - public void setFirstLeftTuple( LeftTuple firstLeftTuple ) { - if (linkedTuples instanceof SingleLinkedTuples) { - ( (SingleLinkedTuples) linkedTuples ).setFirstLeftTuple( firstLeftTuple ); - } else { - throw new UnsupportedOperationException(); - } - } - @Override public RightTuple getFirstRightTuple() { if (linkedTuples instanceof SingleLinkedTuples) { @@ -968,16 +997,8 @@ public LinkedTuples detachLinkedTuples() { @Override public LinkedTuples detachLinkedTuplesForPartition(int i) { - LinkedTuples detached = ( (CompositeLinkedTuples) linkedTuples ).partitionedTuples[i]; - ( (CompositeLinkedTuples) linkedTuples ).partitionedTuples[i] = new SingleLinkedTuples(); + LinkedTuples detached = ( (CompositeLinkedTuples) linkedTuples ).getPartitionedTuple(i); + ( (CompositeLinkedTuples) linkedTuples ).partitionedTuples[i] = null; return detached; } - - public InternalFactHandle getParentHandle() { - return parentHandle; - } - - public void setParentHandle( InternalFactHandle parentHandle ) { - this.parentHandle = parentHandle; - } } diff --git a/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java b/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java index e1e365627c0..2710924f631 100644 --- a/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/DisconnectedFactHandle.java @@ -1,26 +1,33 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.core.common; -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.util.function.Consumer; -import java.util.function.Predicate; +import org.drools.base.factmodel.traits.TraitTypeEnum; +import org.drools.base.rule.EntryPointId; +import org.drools.core.WorkingMemoryEntryPoint; +import org.drools.core.base.ArrayElements; +import org.drools.core.base.DroolsQueryImpl; +import org.drools.core.reteoo.LeftTuple; +import org.drools.core.reteoo.RightTuple; +import org.drools.core.reteoo.Tuple; +import org.kie.api.runtime.rule.FactHandle; + import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; @@ -28,16 +35,12 @@ import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlSeeAlso; - -import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.base.ArrayElements; -import org.drools.core.base.DroolsQuery; -import org.drools.core.factmodel.traits.TraitTypeEnum; -import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.RightTuple; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.EntryPointId; -import org.kie.api.runtime.rule.FactHandle; +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.util.function.Consumer; +import java.util.function.Predicate; @XmlRootElement(name="disconnected-fact-handle") @XmlAccessorType(XmlAccessType.NONE) @@ -66,7 +69,7 @@ public class DisconnectedFactHandle private long recency; /** - * This could be a {@link DroolsQuery} object or other almost-impossible-to-serialize class + * This could be a {@link DroolsQueryImpl} object or other almost-impossible-to-serialize class */ @XmlElement private Object object; @@ -157,7 +160,7 @@ public void setNegated(boolean negated) { } @Override - public K as( Class klass ) throws ClassCastException { + public K as(Class klass) throws ClassCastException { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_ERROR_MESSAGE); } @@ -174,15 +177,10 @@ public boolean isPendingRemoveFromStore() { public void forEachRightTuple( Consumer rightTupleConsumer ) { } @Override - public void forEachLeftTuple( Consumer leftTupleConsumer ) { } + public void forEachLeftTuple( Consumer leftTupleConsumer) { } @Override - public RightTuple findFirstRightTuple( Predicate rightTuplePredicate ) { - return null; - } - - @Override - public LeftTuple findFirstLeftTuple( Predicate lefttTuplePredicate ) { + public LeftTuple findFirstLeftTuple(Predicate lefttTuplePredicate ) { return null; } @@ -260,10 +258,6 @@ public void setEqualityKey(EqualityKey key) { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_ERROR_MESSAGE); } - public void setFirstLeftTuple(LeftTuple leftTuple) { - throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_ERROR_MESSAGE); - } - @Override public LinkedTuples getLinkedTuples() { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_ERROR_MESSAGE); @@ -364,10 +358,6 @@ public void clearRightTuples() { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_ERROR_MESSAGE); } - public void addFirstRightTuple(RightTuple rightTuple) { - throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_ERROR_MESSAGE); - } - public void addLastRightTuple(RightTuple rightTuple) { throw new UnsupportedOperationException(UNSUPPORTED_OPERATION_ERROR_MESSAGE); } diff --git a/drools-core/src/main/java/org/drools/core/common/DoubleBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/DoubleBetaConstraints.java index 46e670fb7f8..ea7cd3226dd 100644 --- a/drools-core/src/main/java/org/drools/core/common/DoubleBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/DoubleBetaConstraints.java @@ -1,31 +1,36 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.List; +import java.util.Optional; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.conf.IndexPrecedenceOption; public class DoubleBetaConstraints extends MultipleBetaConstraint { @@ -83,7 +88,7 @@ public void updateFromTuple(final ContextEntry[] context, */ public void updateFromFactHandle(final ContextEntry[] context, final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + final FactHandle handle) { context[0].updateFromFactHandle( reteEvaluator, handle ); context[1].updateFromFactHandle( reteEvaluator, @@ -104,7 +109,7 @@ public void resetFactHandle(final ContextEntry[] context) { * @see org.kie.common.BetaNodeConstraints#isAllowedCachedLeft(java.lang.Object) */ public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { return (indexed[0] || constraints[0].isAllowedCachedLeft( context[0], handle )) && (indexed[1] || constraints[1].isAllowedCachedLeft( context[1], handle )); } @@ -157,9 +162,9 @@ public BetaConstraints getOriginalConstraint() { throw new UnsupportedOperationException(); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { - return constraints[0].getListenedPropertyMask(modifiedType, settableProperties) - .setAll(constraints[1].getListenedPropertyMask(modifiedType, settableProperties)); + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { + return constraints[0].getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties) + .setAll(constraints[1].getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)); } public void registerEvaluationContext(BuildContext buildContext) { diff --git a/drools-core/src/main/java/org/drools/core/common/DoubleNonIndexSkipBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/DoubleNonIndexSkipBetaConstraints.java index 227560d2711..24a4a32b26a 100644 --- a/drools-core/src/main/java/org/drools/core/common/DoubleNonIndexSkipBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/DoubleNonIndexSkipBetaConstraints.java @@ -1,35 +1,40 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.List; +import java.util.Optional; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; import org.drools.core.reteoo.BetaMemory; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; public class DoubleNonIndexSkipBetaConstraints implements @@ -88,7 +93,7 @@ public void updateFromTuple(ContextEntry[] context, public void updateFromFactHandle(ContextEntry[] context, ReteEvaluator reteEvaluator, - InternalFactHandle handle) { + FactHandle handle) { constraints.updateFromFactHandle( context, reteEvaluator, handle ); } @@ -135,7 +140,7 @@ public String toString() { } public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { return this.constraint0.isAllowedCachedLeft( context[0], handle ) && this.constraint1.isAllowedCachedLeft( context[1], handle ); @@ -146,9 +151,9 @@ public boolean isAllowedCachedRight(ContextEntry[] context, return this.constraints.isAllowedCachedRight( context, tuple ); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { - return constraint0.getListenedPropertyMask(modifiedType, settableProperties) - .setAll(constraint1.getListenedPropertyMask(modifiedType, settableProperties)); + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { + return constraint0.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties) + .setAll(constraint1.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)); } public boolean isLeftUpdateOptimizationAllowed() { diff --git a/drools-core/src/main/java/org/drools/core/common/DroolsObjectInput.java b/drools-core/src/main/java/org/drools/core/common/DroolsObjectInput.java deleted file mode 100644 index c384d0032d1..00000000000 --- a/drools-core/src/main/java/org/drools/core/common/DroolsObjectInput.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.common; - -import java.io.ObjectInput; - -import org.drools.core.impl.RuleBase; - -public interface DroolsObjectInput extends ObjectInput { - ClassLoader getParentClassLoader(); - ClassLoader getClassLoader(); - void setClassLoader(ClassLoader classLoader); - - RuleBase getRuleBase(); - void setRuleBase(RuleBase kBase); - - void setWorkingMemory(InternalWorkingMemory workingMemory); - InternalWorkingMemory getWorkingMemory(); - - Package getPackage(); - void setPackage(Package pkg); -} diff --git a/drools-core/src/main/java/org/drools/core/common/DroolsObjectStreamConstants.java b/drools-core/src/main/java/org/drools/core/common/DroolsObjectStreamConstants.java deleted file mode 100644 index a009118a9b9..00000000000 --- a/drools-core/src/main/java/org/drools/core/common/DroolsObjectStreamConstants.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.common; - -public interface DroolsObjectStreamConstants { - int STREAM_MAGIC = 0x001500d2; - short STREAM_VERSION = 400; - - byte RT_CLASS = 11; - byte RT_SERIALIZABLE = 12; - byte RT_REFERENCE = 13; - byte RT_EMPTY_SET = 14; - byte RT_EMPTY_LIST = 15; - byte RT_EMPTY_MAP = 16; - byte RT_MAP = 17; - byte RT_ARRAY = 18; - byte RT_STRING = 19; - byte RT_NULL = 20; - byte RT_COLLECTION = 21; - byte RT_EXTERNALIZABLE = 22; - byte RT_ATOMICREFERENCEARRAY = 30; -} diff --git a/drools-core/src/main/java/org/drools/core/common/EmptyBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/EmptyBetaConstraints.java index 92002e5aec6..4665629fc78 100644 --- a/drools-core/src/main/java/org/drools/core/common/EmptyBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/EmptyBetaConstraints.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.IOException; @@ -21,17 +23,19 @@ import java.io.ObjectOutput; import java.util.List; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; import org.drools.core.reteoo.BetaMemory; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; import org.drools.core.util.index.TupleList; +import org.kie.api.runtime.rule.FactHandle; -import static org.drools.core.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; +import static org.drools.base.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; public class EmptyBetaConstraints implements @@ -71,7 +75,7 @@ public void updateFromTuple(final ContextEntry[] context, */ public void updateFromFactHandle(final ContextEntry[] context, final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + final FactHandle handle) { } public void resetTuple(final ContextEntry[] context) { @@ -84,7 +88,7 @@ public void resetFactHandle(final ContextEntry[] context) { * @see org.kie.common.BetaNodeConstraints#isAllowedCachedLeft(java.lang.Object) */ public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { return true; } @@ -152,7 +156,7 @@ public BetaConstraints getOriginalConstraint() { throw new UnsupportedOperationException(); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { return getEmptyPropertyReactiveMask(settableProperties.size()); } diff --git a/drools-core/src/main/java/org/drools/core/common/EndOperationListener.java b/drools-core/src/main/java/org/drools/core/common/EndOperationListener.java index 2133160a651..0b8d8139422 100644 --- a/drools-core/src/main/java/org/drools/core/common/EndOperationListener.java +++ b/drools-core/src/main/java/org/drools/core/common/EndOperationListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.common; diff --git a/drools-core/src/main/java/org/drools/core/common/EntryPointFactory.java b/drools-core/src/main/java/org/drools/core/common/EntryPointFactory.java index 964fe3478d3..b4a980cfafa 100644 --- a/drools-core/src/main/java/org/drools/core/common/EntryPointFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/EntryPointFactory.java @@ -1,24 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import org.drools.core.EntryPointsManager; import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; public interface EntryPointFactory { diff --git a/drools-core/src/main/java/org/drools/core/common/EqualityKey.java b/drools-core/src/main/java/org/drools/core/common/EqualityKey.java index cdb21d221cc..227479112ee 100644 --- a/drools-core/src/main/java/org/drools/core/common/EqualityKey.java +++ b/drools-core/src/main/java/org/drools/core/common/EqualityKey.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/common/EventSupport.java b/drools-core/src/main/java/org/drools/core/common/EventSupport.java index fe0453566f6..506fe27791a 100644 --- a/drools-core/src/main/java/org/drools/core/common/EventSupport.java +++ b/drools-core/src/main/java/org/drools/core/common/EventSupport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/common/FactHandleClassStore.java b/drools-core/src/main/java/org/drools/core/common/FactHandleClassStore.java index b83ebf6f7b3..43f08728668 100644 --- a/drools-core/src/main/java/org/drools/core/common/FactHandleClassStore.java +++ b/drools-core/src/main/java/org/drools/core/common/FactHandleClassStore.java @@ -1,21 +1,25 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; import java.util.Iterator; -public interface FactHandleClassStore { +public interface FactHandleClassStore { Iterator iterator(); } diff --git a/drools-core/src/main/java/org/drools/core/common/IdentityObjectStore.java b/drools-core/src/main/java/org/drools/core/common/IdentityObjectStore.java index cf1bf920178..52edbca8683 100644 --- a/drools-core/src/main/java/org/drools/core/common/IdentityObjectStore.java +++ b/drools-core/src/main/java/org/drools/core/common/IdentityObjectStore.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; import java.util.IdentityHashMap; diff --git a/drools-core/src/main/java/org/drools/core/common/InternalActivationGroup.java b/drools-core/src/main/java/org/drools/core/common/InternalActivationGroup.java index 40bbdcbbe4d..7e65ffb19a9 100644 --- a/drools-core/src/main/java/org/drools/core/common/InternalActivationGroup.java +++ b/drools-core/src/main/java/org/drools/core/common/InternalActivationGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.Iterator; diff --git a/drools-core/src/main/java/org/drools/core/common/InternalAgenda.java b/drools-core/src/main/java/org/drools/core/common/InternalAgenda.java index 02fb2c9c880..e5b8c8bd621 100644 --- a/drools-core/src/main/java/org/drools/core/common/InternalAgenda.java +++ b/drools-core/src/main/java/org/drools/core/common/InternalAgenda.java @@ -1,28 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; -import java.util.Iterator; -import java.util.Map; - import org.drools.core.phreak.PropagationEntry; import org.kie.api.runtime.rule.Agenda; import org.kie.api.runtime.rule.AgendaFilter; +import java.util.Iterator; +import java.util.Map; + public interface InternalAgenda extends Agenda, ActivationsManager { /** @@ -34,8 +36,10 @@ public interface InternalAgenda extends Agenda, ActivationsManager { /** * Sets the Agenda's focus to the specified AgendaGroup + * + * @return true if the AgendaGroup is changed */ - void setFocus(String name); + boolean setFocus(String name); /** * Activates the RuleFlowGroup with the given name. @@ -80,12 +84,8 @@ public interface InternalAgenda extends Agenda, ActivationsManager { */ String getFocusName(); - int fireNextItem(AgendaFilter filter, int fireCount, int fireLimit); - boolean isDeclarativeAgenda(); - void setWorkingMemory(final InternalWorkingMemory workingMemory); - /** * Fires all activations currently in agenda that match the given agendaFilter * until the fireLimit is reached or no more activations exist. diff --git a/drools-core/src/main/java/org/drools/core/common/InternalAgendaGroup.java b/drools-core/src/main/java/org/drools/core/common/InternalAgendaGroup.java index eaa69c51c0a..8042993155d 100644 --- a/drools-core/src/main/java/org/drools/core/common/InternalAgendaGroup.java +++ b/drools-core/src/main/java/org/drools/core/common/InternalAgendaGroup.java @@ -1,32 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; +import org.drools.core.phreak.RuleAgendaItem; + import java.util.Collection; import java.util.Map; -import org.drools.core.phreak.RuleAgendaItem; public interface InternalAgendaGroup extends org.kie.api.runtime.rule.AgendaGroup { - /** - * Static reference to determine the default AgendaGroup name. - */ - String MAIN = "MAIN"; - /** * @return * The int total number of activations @@ -73,8 +71,6 @@ public interface InternalAgendaGroup extends org.kie.api.runtime.rule.AgendaGrou void setActive(boolean activate); - Collection getAll(); - void setActivatedForRecency(long recency); long getActivatedForRecency(); diff --git a/drools-core/src/main/java/org/drools/core/common/InternalFactHandle.java b/drools-core/src/main/java/org/drools/core/common/InternalFactHandle.java index 74bf60bfd60..ba247a32492 100644 --- a/drools-core/src/main/java/org/drools/core/common/InternalFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/InternalFactHandle.java @@ -1,33 +1,36 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; -import java.io.Serializable; -import java.util.function.Consumer; -import java.util.function.Predicate; - +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.factmodel.traits.TraitTypeEnum; +import org.drools.base.rule.EntryPointId; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.factmodel.traits.TraitTypeEnum; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.RightTuple; -import org.drools.core.rule.EntryPointId; import org.drools.core.reteoo.Tuple; import org.kie.api.runtime.rule.FactHandle; +import java.io.Serializable; +import java.util.function.Consumer; +import java.util.function.Predicate; + public interface InternalFactHandle extends FactHandle, Cloneable, Serializable { @@ -107,8 +110,6 @@ default String getEntryPointName() { void clearRightTuples(); - void addFirstRightTuple( RightTuple rightTuple ); - void addLastRightTuple( RightTuple rightTuple ); void removeRightTuple( RightTuple rightTuple ); @@ -118,19 +119,14 @@ default String getEntryPointName() { boolean isNegated(); void setNegated(boolean negated); - K as( Class klass ) throws ClassCastException; - boolean isExpired(); boolean isPendingRemoveFromStore(); void forEachRightTuple(Consumer rightTupleConsumer ); void forEachLeftTuple(Consumer leftTupleConsumer); - RightTuple findFirstRightTuple(Predicate rightTuplePredicate ); LeftTuple findFirstLeftTuple(Predicate lefttTuplePredicate ); - void setFirstLeftTuple( LeftTuple firstLeftTuple ); - LinkedTuples detachLinkedTuples(); LinkedTuples detachLinkedTuplesForPartition(int i); @@ -142,7 +138,7 @@ default boolean hasMatches() { interface LinkedTuples extends Serializable { LinkedTuples clone(); - LinkedTuples newInstance(); + LinkedTuples cloneEmpty(); boolean hasTuples(); @@ -162,20 +158,15 @@ interface LinkedTuples extends Serializable { void clearRightTuples(); void forEachRightTuple(Consumer rightTupleConsumer); - RightTuple findFirstRightTuple(Predicate rightTuplePredicate ); void forEachLeftTuple(Consumer leftTupleConsumer); LeftTuple findFirstLeftTuple(Predicate leftTuplePredicate ); - LeftTuple getFirstLeftTuple( int partition); - void setFirstLeftTuple( LeftTuple firstLeftTuple, int partition ); + LeftTuple getFirstLeftTuple(int partition); default LeftTuple getFirstLeftTuple(RuleBasePartitionId partitionId) { return getFirstLeftTuple( partitionId.getParallelEvaluationSlot() ); } - default void setFirstLeftTuple( LeftTuple firstLeftTuple, RuleBasePartitionId partitionId ) { - setFirstLeftTuple( firstLeftTuple, partitionId.getParallelEvaluationSlot() ); - } RightTuple getFirstRightTuple(int partition); @@ -184,14 +175,6 @@ default RightTuple getFirstRightTuple(RuleBasePartitionId partitionId) { } } - default InternalFactHandle getParentHandle() { - return null; - } - - default void setParentHandle( InternalFactHandle parentHandle ) { - throw new UnsupportedOperationException(); - } - static InternalFactHandle dummyFactHandleOf(Object object) { return new DummyFactHandle( object ); } @@ -314,7 +297,6 @@ public WorkingMemoryEntryPoint getEntryPoint( ReteEvaluator reteEvaluator ) { throw new UnsupportedOperationException(); } - @Override public InternalFactHandle clone() { throw new UnsupportedOperationException(); @@ -355,11 +337,6 @@ public void clearRightTuples() { throw new UnsupportedOperationException(); } - @Override - public void addFirstRightTuple( RightTuple rightTuple ) { - throw new UnsupportedOperationException(); - } - @Override public void addLastRightTuple( RightTuple rightTuple ) { throw new UnsupportedOperationException(); @@ -386,7 +363,7 @@ public void setNegated( boolean negated ) { } @Override - public K as( Class klass ) throws ClassCastException { + public K as(Class klass) throws ClassCastException { throw new UnsupportedOperationException(); } @@ -411,17 +388,7 @@ public void forEachLeftTuple( Consumer leftTupleConsumer ) { } @Override - public RightTuple findFirstRightTuple( Predicate rightTuplePredicate ) { - throw new UnsupportedOperationException(); - } - - @Override - public LeftTuple findFirstLeftTuple( Predicate lefttTuplePredicate ) { - throw new UnsupportedOperationException(); - } - - @Override - public void setFirstLeftTuple( LeftTuple firstLeftTuple ) { + public LeftTuple findFirstLeftTuple(Predicate lefttTuplePredicate ) { throw new UnsupportedOperationException(); } diff --git a/drools-core/src/main/java/org/drools/core/common/InternalKnowledgeRuntime.java b/drools-core/src/main/java/org/drools/core/common/InternalKnowledgeRuntime.java index f901209fd4d..e1634f0aed6 100644 --- a/drools-core/src/main/java/org/drools/core/common/InternalKnowledgeRuntime.java +++ b/drools-core/src/main/java/org/drools/core/common/InternalKnowledgeRuntime.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.common; import org.drools.core.runtime.process.InternalProcessRuntime; diff --git a/drools-core/src/main/java/org/drools/core/common/InternalRuleFlowGroup.java b/drools-core/src/main/java/org/drools/core/common/InternalRuleFlowGroup.java index 2c959e356a2..33d4be62198 100644 --- a/drools-core/src/main/java/org/drools/core/common/InternalRuleFlowGroup.java +++ b/drools-core/src/main/java/org/drools/core/common/InternalRuleFlowGroup.java @@ -1,68 +1,22 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; public interface InternalRuleFlowGroup extends InternalAgendaGroup, RuleFlowGroup { - -// void setWorkingMemory(InternalWorkingMemory workingMemory); -// -// InternalWorkingMemory getWorkingMemory(); -// -// void addActivation(Activation activation); -// -// void removeActivation(final Activation activation); -// -// void clear(); -// -// /** -// * Checks if this ruleflow group is active and should automatically deactivate. -// * If the queue is empty, it deactivates the group. -// */ -// public void deactivateIfEmpty(); -// -// /** -// * Activates or deactivates this RuleFlowGroup. -// * When activating, all activations of this RuleFlowGroup are added -// * to the agenda. -// * As long as the RuleFlowGroup remains active, -// * its activations are automatically added to the agenda. -// * When deactivating, all activations of this RuleFlowGroup are removed -// * to the agenda. -// * As long as the RuleFlowGroup remains deactive, -// * its activations are not added to the agenda. -// */ -// void setActive(boolean active); -// -// boolean isActive(); -// -// void addNodeInstance(String processInstanceId, String nodeInstanceId); -// -// void removeNodeInstance(String processInstanceId, String nodeInstanceId); -// -// public Activation[] getActivations(); -// -// Map getNodeInstances(); -// -// public void setActivatedForRecency(long recency); -// -// public long getActivatedForRecency(); -// -// public void setClearedForRecency(long recency); -// -// public long getClearedForRecency(); - } diff --git a/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemory.java b/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemory.java index af13b91d4b5..950a6c7f602 100644 --- a/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemory.java +++ b/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemoryActions.java b/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemoryActions.java index d2ef24f6fe0..dfa1f316901 100644 --- a/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemoryActions.java +++ b/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemoryActions.java @@ -1,32 +1,34 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.Collection; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.core.reteoo.TerminalNode; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.kie.api.runtime.rule.FactHandle; -import org.drools.core.beliefsystem.Mode; +import org.drools.base.beliefsystem.Mode; public interface InternalWorkingMemoryActions extends diff --git a/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemoryEntryPoint.java b/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemoryEntryPoint.java index 6f647563634..ebf3a72985c 100644 --- a/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemoryEntryPoint.java +++ b/drools-core/src/main/java/org/drools/core/common/InternalWorkingMemoryEntryPoint.java @@ -1,28 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.base.TraitHelper; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.TerminalNode; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.kie.api.runtime.rule.FactHandle; public interface InternalWorkingMemoryEntryPoint extends WorkingMemoryEntryPoint { @@ -68,14 +70,13 @@ PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, - InternalMatch internalMatch); - - PropagationContext delete(InternalFactHandle handle, - Object object, - ObjectTypeConf typeConf, - RuleImpl rule, - InternalMatch internalMatch, TerminalNode terminalNode); + PropagationContext immediateDelete(InternalFactHandle handle, + Object object, + ObjectTypeConf typeConf, + RuleImpl rule, + TerminalNode terminalNode); + void removeFromObjectStore(InternalFactHandle handle); } diff --git a/drools-core/src/main/java/org/drools/core/common/MapObjectStore.java b/drools-core/src/main/java/org/drools/core/common/MapObjectStore.java index 1d07be3450f..ee8770e000d 100644 --- a/drools-core/src/main/java/org/drools/core/common/MapObjectStore.java +++ b/drools-core/src/main/java/org/drools/core/common/MapObjectStore.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/common/MapStorage.java b/drools-core/src/main/java/org/drools/core/common/MapStorage.java index 9bc24637b2b..bf3a1a23400 100644 --- a/drools-core/src/main/java/org/drools/core/common/MapStorage.java +++ b/drools-core/src/main/java/org/drools/core/common/MapStorage.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/common/Memory.java b/drools-core/src/main/java/org/drools/core/common/Memory.java index d2033aca027..12a1b9d5c49 100644 --- a/drools-core/src/main/java/org/drools/core/common/Memory.java +++ b/drools-core/src/main/java/org/drools/core/common/Memory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.common; import org.drools.core.phreak.RuntimeSegmentUtilities; diff --git a/drools-core/src/main/java/org/drools/core/common/MemoryFactory.java b/drools-core/src/main/java/org/drools/core/common/MemoryFactory.java index 0063d51160b..df086cf19c4 100644 --- a/drools-core/src/main/java/org/drools/core/common/MemoryFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/MemoryFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import org.drools.core.RuleBaseConfiguration; diff --git a/drools-core/src/main/java/org/drools/core/common/MissingDependencyException.java b/drools-core/src/main/java/org/drools/core/common/MissingDependencyException.java deleted file mode 100644 index 1b015ceff66..00000000000 --- a/drools-core/src/main/java/org/drools/core/common/MissingDependencyException.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.core.common; - -public class MissingDependencyException extends RuntimeException { - - public MissingDependencyException(String message) { - super(message); - } -} diff --git a/drools-core/src/main/java/org/drools/core/common/MultipleBetaConstraint.java b/drools-core/src/main/java/org/drools/core/common/MultipleBetaConstraint.java index 8e24babb5cb..99e76625ffb 100644 --- a/drools-core/src/main/java/org/drools/core/common/MultipleBetaConstraint.java +++ b/drools-core/src/main/java/org/drools/core/common/MultipleBetaConstraint.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.common; import java.io.IOException; @@ -22,14 +25,14 @@ import org.drools.core.RuleBaseConfiguration; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.util.index.IndexFactory; import org.kie.internal.conf.IndexPrecedenceOption; -import static org.drools.core.util.index.IndexUtil.compositeAllowed; -import static org.drools.core.util.index.IndexUtil.isIndexableForNode; +import static org.drools.base.util.index.IndexUtil.compositeAllowed; +import static org.drools.base.util.index.IndexUtil.isIndexableForNode; public abstract class MultipleBetaConstraint implements BetaConstraints { protected BetaNodeFieldConstraint[] constraints; diff --git a/drools-core/src/main/java/org/drools/core/common/NetworkNode.java b/drools-core/src/main/java/org/drools/core/common/NetworkNode.java deleted file mode 100644 index 0633a6947da..00000000000 --- a/drools-core/src/main/java/org/drools/core/common/NetworkNode.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.common; - -import java.io.Serializable; - -import org.drools.core.reteoo.TerminalNode; -import org.kie.api.definition.rule.Rule; - -/** - * Interface used to expose generic information on Rete nodes outside of he package. It is used - * for exposing information events. - */ -public interface NetworkNode extends Serializable { - - /** - * Returns the unique id that represents the node in the Rete network - */ - int getId(); - - /** - * Returns the partition ID to which this node belongs to - */ - RuleBasePartitionId getPartitionId(); - - short getType(); - - Rule[] getAssociatedRules(); - - boolean isAssociatedWith( Rule rule ); - - void addAssociatedTerminal(TerminalNode terminalNode); - void removeAssociatedTerminal(TerminalNode terminalNode); - - int getAssociatedTerminalsSize(); - - boolean hasAssociatedTerminal(NetworkNode terminalNode); - - NetworkNode[] getSinks(); -} diff --git a/drools-core/src/main/java/org/drools/core/common/NodeMemories.java b/drools-core/src/main/java/org/drools/core/common/NodeMemories.java index c6f581102b1..03a564a76f7 100644 --- a/drools-core/src/main/java/org/drools/core/common/NodeMemories.java +++ b/drools-core/src/main/java/org/drools/core/common/NodeMemories.java @@ -1,22 +1,25 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; +import org.drools.base.common.NetworkNode; import org.kie.internal.runtime.StatefulKnowledgeSession; /** diff --git a/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java b/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java index 236d78023e1..d3c1b5d3e70 100644 --- a/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/ObjectFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import javax.xml.bind.annotation.XmlRegistry; diff --git a/drools-core/src/main/java/org/drools/core/common/ObjectStore.java b/drools-core/src/main/java/org/drools/core/common/ObjectStore.java index 95436d76b85..2ea6c0157eb 100644 --- a/drools-core/src/main/java/org/drools/core/common/ObjectStore.java +++ b/drools-core/src/main/java/org/drools/core/common/ObjectStore.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import org.kie.api.internal.utils.KieService; diff --git a/drools-core/src/main/java/org/drools/core/common/ObjectStoreWrapper.java b/drools-core/src/main/java/org/drools/core/common/ObjectStoreWrapper.java index 476e8dea589..42390ff52d1 100644 --- a/drools-core/src/main/java/org/drools/core/common/ObjectStoreWrapper.java +++ b/drools-core/src/main/java/org/drools/core/common/ObjectStoreWrapper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.ArrayList; diff --git a/drools-core/src/main/java/org/drools/core/common/ObjectTypeConfigurationRegistry.java b/drools-core/src/main/java/org/drools/core/common/ObjectTypeConfigurationRegistry.java index 5ccaf1edc51..7bfdc976948 100644 --- a/drools-core/src/main/java/org/drools/core/common/ObjectTypeConfigurationRegistry.java +++ b/drools-core/src/main/java/org/drools/core/common/ObjectTypeConfigurationRegistry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.Serializable; @@ -21,24 +23,26 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.base.ClassObjectType; -import org.drools.core.facttemplates.Fact; -import org.drools.core.impl.RuleBase; +import org.drools.base.base.ClassObjectType; +import org.drools.base.facttemplates.Fact; +import org.drools.base.facttemplates.FactImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.ClassObjectTypeConf; import org.drools.core.reteoo.FactTemplateTypeConf; import org.drools.core.reteoo.ObjectTypeConf; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; +import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; public class ObjectTypeConfigurationRegistry implements Serializable { private static final long serialVersionUID = 510l; private final Map typeConfMap = new ConcurrentHashMap<>(); - private final transient RuleBase ruleBase; + private final InternalRuleBase ruleBase; - public ObjectTypeConfigurationRegistry(RuleBase ruleBase) { + public ObjectTypeConfigurationRegistry(InternalRuleBase ruleBase) { this.ruleBase = ruleBase; } @@ -63,12 +67,18 @@ public ObjectTypeConf getOrCreateObjectTypeConf(EntryPointId entrypoint, Object return conf; } + // Avoid secondary super cache invalidation by testing for abstract classes first + // Then interfaces + // See: https://issues.redhat.com/browse/DROOLS-7521 private Object getKey( Object object ) { - if ( object instanceof InternalMatch) { + if (object instanceof RuleTerminalNodeLeftTuple) { return ClassObjectType.Match_ObjectType.getClassType(); - } - if ( object instanceof Fact) { + } else if (object instanceof FactImpl) { + return ((FactImpl) object).getFactTemplate().getName(); + } else if (object instanceof Fact) { return ((Fact) object).getFactTemplate().getName(); + } else if (object instanceof InternalMatch) { + return ClassObjectType.Match_ObjectType.getClassType(); } return object.getClass(); } diff --git a/drools-core/src/main/java/org/drools/core/common/PhreakPropagationContext.java b/drools-core/src/main/java/org/drools/core/common/PhreakPropagationContext.java index c0a7443b417..76122e30f60 100644 --- a/drools-core/src/main/java/org/drools/core/common/PhreakPropagationContext.java +++ b/drools-core/src/main/java/org/drools/core/common/PhreakPropagationContext.java @@ -1,39 +1,46 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.PropertySpecificUtil; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.TypeDeclaration; +import org.drools.core.marshalling.MarshallerReaderContext; +import org.drools.core.reteoo.TerminalNode; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; + import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.Collections; import java.util.List; -import org.drools.core.base.ClassObjectType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.marshalling.MarshallerReaderContext; -import org.drools.core.reteoo.PropertySpecificUtil; -import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.base.ObjectType; -import org.drools.core.util.bitmask.BitMask; - -import static org.drools.core.reteoo.PropertySpecificUtil.*; +import static org.drools.base.reteoo.PropertySpecificUtil.allSetBitMask; +import static org.drools.base.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; +import static org.drools.base.reteoo.PropertySpecificUtil.isAllSetPropertyReactiveMask; +import static org.drools.base.reteoo.PropertySpecificUtil.isPropertySetOnMask; +import static org.drools.base.reteoo.PropertySpecificUtil.setPropertyOnMask; public class PhreakPropagationContext implements @@ -47,7 +54,7 @@ public class PhreakPropagationContext private TerminalNode terminalNodeOrigin; - private InternalFactHandle factHandle; + private FactHandle factHandle; private long propagationNumber; @@ -177,11 +184,11 @@ public TerminalNode getTerminalNodeOrigin() { return terminalNodeOrigin; } - public InternalFactHandle getFactHandle() { + public FactHandle getFactHandle() { return this.factHandle; } - public void setFactHandle(InternalFactHandle factHandle) { + public void setFactHandle(FactHandle factHandle) { this.factHandle = factHandle; } @@ -207,10 +214,6 @@ public BitMask getModificationMask() { return modificationMask; } - public void setModificationMask( BitMask modificationMask ) { - this.modificationMask = modificationMask; - } - public PropagationContext adaptModificationMaskForObjectType(ObjectType type, ReteEvaluator reteEvaluator) { if (isAllSetPropertyReactiveMask(originalMask) || originalMask.isSet(PropertySpecificUtil.TRAITABLE_BIT) || !(type instanceof ClassObjectType)) { return this; diff --git a/drools-core/src/main/java/org/drools/core/common/PhreakPropagationContextFactory.java b/drools-core/src/main/java/org/drools/core/common/PhreakPropagationContextFactory.java index 685d1531b25..514bb19edf9 100644 --- a/drools-core/src/main/java/org/drools/core/common/PhreakPropagationContextFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/PhreakPropagationContextFactory.java @@ -1,28 +1,31 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.common; import java.io.Serializable; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.util.bitmask.BitMask; +import org.drools.base.rule.EntryPointId; +import org.drools.util.bitmask.BitMask; public class PhreakPropagationContextFactory implements PropagationContextFactory, Serializable { diff --git a/drools-core/src/main/java/org/drools/core/common/PriorityQueueAgendaGroupFactory.java b/drools-core/src/main/java/org/drools/core/common/PriorityQueueAgendaGroupFactory.java index 768295cd5a2..ba26dda301d 100644 --- a/drools-core/src/main/java/org/drools/core/common/PriorityQueueAgendaGroupFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/PriorityQueueAgendaGroupFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.Externalizable; @@ -21,7 +23,7 @@ import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; public class PriorityQueueAgendaGroupFactory implements AgendaGroupFactory, Externalizable { @@ -36,7 +38,7 @@ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundExcept public void writeExternal(ObjectOutput out) throws IOException { } - public InternalAgendaGroup createAgendaGroup(String name, RuleBase kBase) { + public InternalAgendaGroup createAgendaGroup(String name, InternalRuleBase kBase) { return new AgendaGroupQueueImpl( name, kBase ); } } diff --git a/drools-core/src/main/java/org/drools/core/common/PropagationContext.java b/drools-core/src/main/java/org/drools/core/common/PropagationContext.java index 49a4a31de62..fa5a672b472 100644 --- a/drools-core/src/main/java/org/drools/core/common/PropagationContext.java +++ b/drools-core/src/main/java/org/drools/core/common/PropagationContext.java @@ -1,29 +1,32 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; -import java.io.Externalizable; - -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ObjectType; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.EntryPointId; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.base.ObjectType; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; + +import java.io.Externalizable; public interface PropagationContext extends Externalizable { @@ -42,14 +45,13 @@ enum Type { /** * @return fact handle that was inserted, updated or retracted that created the PropagationContext */ - InternalFactHandle getFactHandle(); - void setFactHandle(InternalFactHandle factHandle); + FactHandle getFactHandle(); + void setFactHandle(FactHandle factHandle); EntryPointId getEntryPoint(); BitMask getModificationMask(); PropagationContext adaptModificationMaskForObjectType(ObjectType type, ReteEvaluator reteEvaluator); - void setModificationMask(BitMask mask); MarshallerReaderContext getReaderContext(); diff --git a/drools-core/src/main/java/org/drools/core/common/PropagationContextFactory.java b/drools-core/src/main/java/org/drools/core/common/PropagationContextFactory.java index 822c183153c..3338b93e206 100644 --- a/drools-core/src/main/java/org/drools/core/common/PropagationContextFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/PropagationContextFactory.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.common; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.util.bitmask.BitMask; +import org.drools.base.rule.EntryPointId; +import org.drools.util.bitmask.BitMask; public interface PropagationContextFactory { diff --git a/drools-core/src/main/java/org/drools/core/common/QuadroupleBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/QuadroupleBetaConstraints.java index cf6065739a1..e662d567682 100644 --- a/drools-core/src/main/java/org/drools/core/common/QuadroupleBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/QuadroupleBetaConstraints.java @@ -1,31 +1,36 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.List; +import java.util.Optional; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.conf.IndexPrecedenceOption; public class QuadroupleBetaConstraints extends MultipleBetaConstraint { @@ -87,7 +92,7 @@ public void updateFromTuple(final ContextEntry[] context, */ public void updateFromFactHandle(final ContextEntry[] context, final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + final FactHandle handle) { context[0].updateFromFactHandle(reteEvaluator, handle); context[1].updateFromFactHandle(reteEvaluator, @@ -116,7 +121,7 @@ public void resetFactHandle(final ContextEntry[] context) { * @see org.kie.common.BetaNodeConstraints#isAllowedCachedLeft(java.lang.Object) */ public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { return (indexed[0] || constraints[0].isAllowedCachedLeft(context[0], handle)) && (indexed[1] || constraints[1].isAllowedCachedLeft(context[1], handle)) && (indexed[2] || constraints[2].isAllowedCachedLeft( context[2], handle )) && @@ -181,11 +186,11 @@ public BetaConstraints getOriginalConstraint() { throw new UnsupportedOperationException(); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { - return constraints[0].getListenedPropertyMask(modifiedType, settableProperties) - .setAll(constraints[1].getListenedPropertyMask(modifiedType, settableProperties)) - .setAll(constraints[2].getListenedPropertyMask(modifiedType, settableProperties)) - .setAll(constraints[3].getListenedPropertyMask(modifiedType, settableProperties)); + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { + return constraints[0].getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties) + .setAll(constraints[1].getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)) + .setAll(constraints[2].getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)) + .setAll(constraints[3].getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)); } public void registerEvaluationContext(BuildContext buildContext) { diff --git a/drools-core/src/main/java/org/drools/core/common/QuadroupleNonIndexSkipBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/QuadroupleNonIndexSkipBetaConstraints.java index dc4a3ef7728..75c22f20a9f 100644 --- a/drools-core/src/main/java/org/drools/core/common/QuadroupleNonIndexSkipBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/QuadroupleNonIndexSkipBetaConstraints.java @@ -1,35 +1,40 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.List; +import java.util.Optional; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; import org.drools.core.reteoo.BetaMemory; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; public class QuadroupleNonIndexSkipBetaConstraints implements @@ -94,7 +99,7 @@ public void updateFromTuple(ContextEntry[] context, public void updateFromFactHandle(ContextEntry[] context, ReteEvaluator reteEvaluator, - InternalFactHandle handle) { + FactHandle handle) { constraints.updateFromFactHandle(context, reteEvaluator, handle); } @@ -141,7 +146,7 @@ public String toString() { } public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { return this.constraint0.isAllowedCachedLeft(context[0], handle) && this.constraint1.isAllowedCachedLeft(context[1], handle) && this.constraint2.isAllowedCachedLeft(context[2], handle) @@ -153,11 +158,11 @@ public boolean isAllowedCachedRight(ContextEntry[] context, return this.constraints.isAllowedCachedRight(context, tuple); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { - return constraint0.getListenedPropertyMask(modifiedType, settableProperties) - .setAll(constraint1.getListenedPropertyMask(modifiedType, settableProperties)) - .setAll(constraint2.getListenedPropertyMask(modifiedType, settableProperties)) - .setAll(constraint3.getListenedPropertyMask(modifiedType, settableProperties)); + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { + return constraint0.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties) + .setAll(constraint1.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)) + .setAll(constraint2.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)) + .setAll(constraint3.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)); } public boolean isLeftUpdateOptimizationAllowed() { diff --git a/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java b/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java index d6b72a241ce..7bbb6e16bc7 100644 --- a/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java +++ b/drools-core/src/main/java/org/drools/core/common/QueryElementFactHandle.java @@ -1,35 +1,37 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; -import java.util.Arrays; -import java.util.function.Consumer; -import java.util.function.Predicate; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; +import org.drools.base.factmodel.traits.TraitTypeEnum; +import org.drools.base.rule.EntryPointId; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.factmodel.traits.TraitTypeEnum; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.RightTuple; -import org.drools.core.rule.EntryPointId; import org.drools.core.reteoo.Tuple; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import java.util.Arrays; +import java.util.function.Consumer; +import java.util.function.Predicate; + @XmlAccessorType(XmlAccessType.NONE) public class QueryElementFactHandle implements @@ -151,9 +153,6 @@ public void setEqualityKey(EqualityKey key) { throw new UnsupportedOperationException( "QueryElementFactHandle does not support this method" ); } - public void setFirstLeftTuple(LeftTuple leftTuple) { - } - @Override public LinkedTuples getLinkedTuples() { return null; @@ -246,10 +245,6 @@ public void clearRightTuples() { throw new UnsupportedOperationException( "QueryElementFactHandle does not support this method" ); } - public void addFirstRightTuple( RightTuple rightTuple ) { - throw new UnsupportedOperationException( "QueryElementFactHandle does not support this method" ); - } - public void addLastRightTuple( RightTuple rightTuple ) { throw new UnsupportedOperationException( "QueryElementFactHandle does not support this method" ); } @@ -263,7 +258,7 @@ public void removeRightTuple( RightTuple rightTuple ) { } @Override - public K as( Class klass ) throws ClassCastException { + public K as(Class klass) throws ClassCastException { throw new UnsupportedOperationException( "QueryElementFactHandle does not yet support this method" ); } @@ -280,15 +275,10 @@ public boolean isPendingRemoveFromStore() { public void forEachRightTuple( Consumer rightTupleConsumer ) { } @Override - public void forEachLeftTuple( Consumer leftTupleConsumer ) { } - - @Override - public RightTuple findFirstRightTuple( Predicate rightTuplePredicate ) { - return null; - } + public void forEachLeftTuple( Consumer leftTupleConsumer) { } @Override - public LeftTuple findFirstLeftTuple( Predicate lefttTuplePredicate ) { + public LeftTuple findFirstLeftTuple(Predicate lefttTuplePredicate ) { return null; } } diff --git a/drools-core/src/main/java/org/drools/core/common/ReteEvaluator.java b/drools-core/src/main/java/org/drools/core/common/ReteEvaluator.java index 89ed1d5fc07..d7e9f5aec90 100644 --- a/drools-core/src/main/java/org/drools/core/common/ReteEvaluator.java +++ b/drools-core/src/main/java/org/drools/core/common/ReteEvaluator.java @@ -1,38 +1,36 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; -import java.util.Collection; -import java.util.Collections; -import java.util.function.Consumer; - +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.EntryPointId; import org.drools.core.RuleSessionConfiguration; import org.drools.core.SessionConfiguration; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.event.AgendaEventSupport; import org.drools.core.event.RuleEventListenerSupport; import org.drools.core.event.RuleRuntimeEventSupport; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.PropagationEntry; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.RuntimeComponentFactory; -import org.drools.core.rule.EntryPointId; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.rule.accessor.GlobalResolver; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.core.time.TimerService; import org.drools.core.time.impl.TimerJobInstance; @@ -43,7 +41,11 @@ import org.kie.api.runtime.rule.QueryResults; import org.kie.api.time.SessionClock; -public interface ReteEvaluator { +import java.util.Collection; +import java.util.Collections; +import java.util.function.Consumer; + +public interface ReteEvaluator extends ValueResolver { enum InternalOperationType{ FIRE, INSERT, UPDATE, DELETE, SET_GLOBAL } @@ -51,7 +53,7 @@ enum InternalOperationType{ FIRE, INSERT, UPDATE, DELETE, SET_GLOBAL } ActivationsManager getActivationsManager(); - RuleBase getKnowledgeBase(); + InternalRuleBase getKnowledgeBase(); Collection getEntryPoints(); @@ -67,10 +69,10 @@ default WorkingMemoryEntryPoint getDefaultEntryPoint() { NodeMemories getNodeMemories(); - GlobalResolver getGlobalResolver(); default Object getGlobal(String identifier) { return getGlobalResolver().resolveGlobal( identifier ); } + default void setGlobal(String identifier, Object value) { getGlobalResolver().setGlobal(identifier, value); } @@ -123,6 +125,9 @@ default boolean isSequential() { default void startOperation(InternalOperationType operationType) { } default void endOperation(InternalOperationType operationType) { } + boolean isTMSEnabled(); + void enableTMS(); + default KnowledgeHelper createKnowledgeHelper() { return RuntimeComponentFactory.get().createKnowledgeHelper(this); } diff --git a/drools-core/src/main/java/org/drools/core/common/RuleBasePartitionId.java b/drools-core/src/main/java/org/drools/core/common/RuleBasePartitionId.java deleted file mode 100644 index 162facbcd49..00000000000 --- a/drools-core/src/main/java/org/drools/core/common/RuleBasePartitionId.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.common; - -import org.kie.api.concurrent.KieExecutors; - -import java.io.Serializable; -import java.util.concurrent.atomic.AtomicInteger; - -/** - * A class to identify RuleBase partitions - */ -public final class RuleBasePartitionId implements Serializable { - - private static final long serialVersionUID = 510l; - - public static final int PARALLEL_PARTITIONS_NUMBER = KieExecutors.Pool.SIZE; - - public static final RuleBasePartitionId MAIN_PARTITION = new RuleBasePartitionId( 0 ); - - private static final AtomicInteger PARTITION_COUNTER = new AtomicInteger( 1 ); - - private final int id; - - private RuleBasePartitionId( int id ) { - this.id = id; - } - - public int getId() { - return id; - } - - public int getParallelEvaluationSlot() { - return id % PARALLEL_PARTITIONS_NUMBER; - } - - @Override - public int hashCode() { - return id; - } - - @Override - public boolean equals(Object obj) { - return this == obj || (obj instanceof RuleBasePartitionId && id == ((RuleBasePartitionId)obj).id); - } - - public String toString() { - return "Partition(" + (id == 0 ? "MAIN" : id) + ")"; - } - - public static RuleBasePartitionId createPartition() { - return new RuleBasePartitionId( PARTITION_COUNTER.getAndIncrement() ); - } -} diff --git a/drools-core/src/main/java/org/drools/core/common/RuleFlowGroup.java b/drools-core/src/main/java/org/drools/core/common/RuleFlowGroup.java index 1b764fc525c..7718880cf29 100644 --- a/drools-core/src/main/java/org/drools/core/common/RuleFlowGroup.java +++ b/drools-core/src/main/java/org/drools/core/common/RuleFlowGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; public interface RuleFlowGroup extends org.kie.api.runtime.rule.RuleFlowGroup { diff --git a/drools-core/src/main/java/org/drools/core/common/RuleFlowGroupListener.java b/drools-core/src/main/java/org/drools/core/common/RuleFlowGroupListener.java index 31f7868ed20..64352f37411 100644 --- a/drools-core/src/main/java/org/drools/core/common/RuleFlowGroupListener.java +++ b/drools-core/src/main/java/org/drools/core/common/RuleFlowGroupListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; public interface RuleFlowGroupListener { diff --git a/drools-core/src/main/java/org/drools/core/common/SingleBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/SingleBetaConstraints.java index 11443f54b76..46346e156f8 100644 --- a/drools-core/src/main/java/org/drools/core/common/SingleBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/SingleBetaConstraints.java @@ -1,37 +1,42 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.List; - +import java.util.Optional; + +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.util.index.IndexUtil; import org.drools.core.RuleBaseConfiguration; import org.drools.core.reteoo.BetaMemory; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; import org.drools.core.util.index.IndexFactory; -import org.drools.core.util.index.IndexUtil; +import org.kie.api.runtime.rule.FactHandle; public class SingleBetaConstraints implements @@ -122,7 +127,7 @@ public void updateFromTuple(final ContextEntry[] context, */ public void updateFromFactHandle(final ContextEntry[] context, final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + final FactHandle handle) { context[0].updateFromFactHandle(reteEvaluator, handle); } @@ -130,7 +135,7 @@ public void updateFromFactHandle(final ContextEntry[] context, * @see org.kie.common.BetaNodeConstraints#isAllowedCachedLeft(java.lang.Object) */ public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { return this.indexed || this.constraint.isAllowedCachedLeft(context[0], handle); } @@ -208,8 +213,8 @@ public BetaConstraints getOriginalConstraint() { throw new UnsupportedOperationException(); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { - return constraint.getListenedPropertyMask(modifiedType, settableProperties); + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { + return constraint.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties); } public boolean isLeftUpdateOptimizationAllowed() { diff --git a/drools-core/src/main/java/org/drools/core/common/SingleNonIndexSkipBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/SingleNonIndexSkipBetaConstraints.java index 546653f87e2..8a13e34194b 100644 --- a/drools-core/src/main/java/org/drools/core/common/SingleNonIndexSkipBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/SingleNonIndexSkipBetaConstraints.java @@ -1,35 +1,40 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.List; +import java.util.Optional; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; import org.drools.core.reteoo.BetaMemory; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; public class SingleNonIndexSkipBetaConstraints implements @@ -87,7 +92,7 @@ public void updateFromTuple(ContextEntry[] context, public void updateFromFactHandle(ContextEntry[] context, ReteEvaluator reteEvaluator, - InternalFactHandle handle) { + FactHandle handle) { constraints.updateFromFactHandle( context, reteEvaluator, handle ); } @@ -134,7 +139,7 @@ public String toString() { } public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { return this.constraint.isAllowedCachedLeft( context[0], handle ); } @@ -144,8 +149,8 @@ public boolean isAllowedCachedRight(ContextEntry[] context, return this.constraints.isAllowedCachedRight( context, tuple ); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { - return constraint.getListenedPropertyMask(modifiedType, settableProperties); + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { + return constraint.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties); } public boolean isLeftUpdateOptimizationAllowed() { diff --git a/drools-core/src/main/java/org/drools/core/common/Storage.java b/drools-core/src/main/java/org/drools/core/common/Storage.java index f2709c8875a..e534d2ade79 100644 --- a/drools-core/src/main/java/org/drools/core/common/Storage.java +++ b/drools-core/src/main/java/org/drools/core/common/Storage.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/common/TripleBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/TripleBetaConstraints.java index dac15218b15..179284acee6 100644 --- a/drools-core/src/main/java/org/drools/core/common/TripleBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/TripleBetaConstraints.java @@ -1,31 +1,36 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.util.List; +import java.util.Optional; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.conf.IndexPrecedenceOption; public class TripleBetaConstraints extends MultipleBetaConstraint { @@ -81,11 +86,11 @@ public void updateFromTuple(final ContextEntry[] context, } /* (non-Javadoc) - * @see org.kie.common.BetaNodeConstraints#updateFromFactHandle(org.kie.common.InternalFactHandle) + * @see org.kie.common.BetaNodeConstraints#updateFromFactHandle(org.kie.common.FactHandle) */ public void updateFromFactHandle(final ContextEntry[] context, final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + final FactHandle handle) { context[0].updateFromFactHandle(reteEvaluator, handle); context[1].updateFromFactHandle(reteEvaluator, @@ -110,7 +115,7 @@ public void resetFactHandle(final ContextEntry[] context) { * @see org.kie.common.BetaNodeConstraints#isAllowedCachedLeft(java.lang.Object) */ public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { return (indexed[0] || constraints[0].isAllowedCachedLeft(context[0], handle)) && (indexed[1] || constraints[1].isAllowedCachedLeft(context[1], handle)) && (indexed[2] || constraints[2].isAllowedCachedLeft( context[2], handle )); @@ -169,10 +174,10 @@ public BetaConstraints getOriginalConstraint() { throw new UnsupportedOperationException(); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { - return constraints[0].getListenedPropertyMask(modifiedType, settableProperties) - .setAll(constraints[1].getListenedPropertyMask(modifiedType, settableProperties)) - .setAll(constraints[2].getListenedPropertyMask(modifiedType, settableProperties)); + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { + return constraints[0].getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties) + .setAll(constraints[1].getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)) + .setAll(constraints[2].getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)); } public void registerEvaluationContext(BuildContext buildContext) { diff --git a/drools-core/src/main/java/org/drools/core/common/TripleNonIndexSkipBetaConstraints.java b/drools-core/src/main/java/org/drools/core/common/TripleNonIndexSkipBetaConstraints.java index e545bbd5a2f..cc84cab3e9d 100644 --- a/drools-core/src/main/java/org/drools/core/common/TripleNonIndexSkipBetaConstraints.java +++ b/drools-core/src/main/java/org/drools/core/common/TripleNonIndexSkipBetaConstraints.java @@ -1,35 +1,40 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.List; +import java.util.Optional; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; import org.drools.core.reteoo.BetaMemory; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; +import org.kie.api.runtime.rule.FactHandle; public class TripleNonIndexSkipBetaConstraints implements @@ -92,7 +97,7 @@ public void updateFromTuple(ContextEntry[] context, public void updateFromFactHandle(ContextEntry[] context, ReteEvaluator reteEvaluator, - InternalFactHandle handle) { + FactHandle handle) { constraints.updateFromFactHandle( context, reteEvaluator, handle ); } @@ -139,7 +144,7 @@ public String toString() { } public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { return this.constraint0.isAllowedCachedLeft( context[0], handle ) && this.constraint1.isAllowedCachedLeft( context[1], handle ) && this.constraint2.isAllowedCachedLeft( context[2], @@ -151,10 +156,10 @@ public boolean isAllowedCachedRight(ContextEntry[] context, return this.constraints.isAllowedCachedRight( context, tuple ); } - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { - return constraint0.getListenedPropertyMask(modifiedType, settableProperties) - .setAll(constraint1.getListenedPropertyMask(modifiedType, settableProperties)) - .setAll(constraint2.getListenedPropertyMask(modifiedType, settableProperties)); + public BitMask getListenedPropertyMask(Pattern pattern, ObjectType modifiedType, List settableProperties) { + return constraint0.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties) + .setAll(constraint1.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)) + .setAll(constraint2.getListenedPropertyMask(Optional.of(pattern), modifiedType, settableProperties)); } public boolean isLeftUpdateOptimizationAllowed() { diff --git a/drools-core/src/main/java/org/drools/core/common/TruthMaintenanceSystem.java b/drools-core/src/main/java/org/drools/core/common/TruthMaintenanceSystem.java index d7e595869ed..7a42609d38c 100644 --- a/drools-core/src/main/java/org/drools/core/common/TruthMaintenanceSystem.java +++ b/drools-core/src/main/java/org/drools/core/common/TruthMaintenanceSystem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/common/TruthMaintenanceSystemFactory.java b/drools-core/src/main/java/org/drools/core/common/TruthMaintenanceSystemFactory.java index 54eb9f99616..87890df027d 100644 --- a/drools-core/src/main/java/org/drools/core/common/TruthMaintenanceSystemFactory.java +++ b/drools-core/src/main/java/org/drools/core/common/TruthMaintenanceSystemFactory.java @@ -1,25 +1,28 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.lang.annotation.Annotation; import java.util.function.Predicate; -import org.drools.core.definitions.rule.impl.QueryImpl; +import org.drools.base.common.MissingDependencyException; +import org.drools.base.definitions.rule.impl.QueryImpl; import org.kie.api.internal.utils.KieService; public interface TruthMaintenanceSystemFactory extends KieService { diff --git a/drools-core/src/main/java/org/drools/core/common/TupleSets.java b/drools-core/src/main/java/org/drools/core/common/TupleSets.java index 7780ce85e5d..0ffec334d6d 100644 --- a/drools-core/src/main/java/org/drools/core/common/TupleSets.java +++ b/drools-core/src/main/java/org/drools/core/common/TupleSets.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.common; import org.drools.core.reteoo.Tuple; diff --git a/drools-core/src/main/java/org/drools/core/common/TupleSetsImpl.java b/drools-core/src/main/java/org/drools/core/common/TupleSetsImpl.java index bee7c1dc72d..7ad4ceb857d 100644 --- a/drools-core/src/main/java/org/drools/core/common/TupleSetsImpl.java +++ b/drools-core/src/main/java/org/drools/core/common/TupleSetsImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.common; import org.drools.core.reteoo.Tuple; diff --git a/drools-core/src/main/java/org/drools/core/common/TupleStartEqualsConstraint.java b/drools-core/src/main/java/org/drools/core/common/TupleStartEqualsConstraint.java index 4a77c7ec38b..7ed4fdf16eb 100755 --- a/drools-core/src/main/java/org/drools/core/common/TupleStartEqualsConstraint.java +++ b/drools-core/src/main/java/org/drools/core/common/TupleStartEqualsConstraint.java @@ -1,30 +1,35 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.common; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.reteoo.Tuple; +import org.kie.api.runtime.rule.FactHandle; /** * Checks if one tuple is the start subtuple of other tuple. @@ -88,14 +93,14 @@ public ContextEntry createContextEntry() { } public boolean isAllowedCachedLeft(final ContextEntry context, - final InternalFactHandle handle) { + final FactHandle handle) { // object MUST be a ReteTuple int size = ((TupleStartEqualsConstraintContextEntry) context).compareSize; final Tuple tuple = ((Tuple) handle.getObject()).getSubTuple( size ); return ((TupleStartEqualsConstraintContextEntry) context).leftTuple.getSubTuple(size).equals(tuple); } - public boolean isAllowedCachedRight(final Tuple tuple, + public boolean isAllowedCachedRight(final BaseTuple tuple, final ContextEntry context) { LeftTuple nonEmptyLeftTuple = (LeftTuple) tuple.skipEmptyHandles(); return nonEmptyLeftTuple.equals( ((TupleStartEqualsConstraintContextEntry) context).rightTuple.getSubTuple(nonEmptyLeftTuple.size())); @@ -159,14 +164,14 @@ public void setNext(final ContextEntry entry) { this.entry = entry; } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { - this.leftTuple = tuple.skipEmptyHandles(); + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { + this.leftTuple = (Tuple) tuple.skipEmptyHandles(); this.compareSize = leftTuple.size(); } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { // if it is not a rete tuple, then there is a bug in the engine... // it MUST be a rete tuple this.rightTuple = ((LeftTuple) handle.getObject()).skipEmptyHandles(); diff --git a/drools-core/src/main/java/org/drools/core/common/UpdateContext.java b/drools-core/src/main/java/org/drools/core/common/UpdateContext.java index ea61e2a6db8..60c1a26b183 100644 --- a/drools-core/src/main/java/org/drools/core/common/UpdateContext.java +++ b/drools-core/src/main/java/org/drools/core/common/UpdateContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.common; import java.util.ArrayDeque; diff --git a/drools-core/src/main/java/org/drools/core/common/WorkingMemoryAction.java b/drools-core/src/main/java/org/drools/core/common/WorkingMemoryAction.java index 6c37a64c94a..3f8acc5546d 100644 --- a/drools-core/src/main/java/org/drools/core/common/WorkingMemoryAction.java +++ b/drools-core/src/main/java/org/drools/core/common/WorkingMemoryAction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import org.drools.core.phreak.PropagationEntry; diff --git a/drools-core/src/main/java/org/drools/core/concurrent/AbstractGroupEvaluator.java b/drools-core/src/main/java/org/drools/core/concurrent/AbstractGroupEvaluator.java new file mode 100644 index 00000000000..41d0cff889d --- /dev/null +++ b/drools-core/src/main/java/org/drools/core/concurrent/AbstractGroupEvaluator.java @@ -0,0 +1,81 @@ +/** + * 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. + */ +package org.drools.core.concurrent; + +import org.drools.core.common.ActivationsManager; +import org.drools.core.common.InternalAgendaGroup; +import org.drools.core.phreak.RuleAgendaItem; +import org.drools.core.rule.consequence.KnowledgeHelper; +import org.kie.api.runtime.rule.AgendaFilter; + +public abstract class AbstractGroupEvaluator implements GroupEvaluator { + protected final ActivationsManager activationsManager; + + private final boolean sequential; + + private KnowledgeHelper knowledgeHelper; + + private boolean haltEvaluation; + + public AbstractGroupEvaluator(ActivationsManager activationsManager) { + this.activationsManager = activationsManager; + this.sequential = activationsManager.getReteEvaluator().getKnowledgeBase().getRuleBaseConfiguration().isSequential(); + this.knowledgeHelper = newKnowledgeHelper(); + } + + public final int evaluateAndFire( InternalAgendaGroup group, AgendaFilter filter, int fireCount, int fireLimit ) { + startEvaluation(group); + RuleAgendaItem item = nextActivation(group); + int loopFireCount = 0; + while (item != null && !haltEvaluation && (fireLimit < 0 || (fireCount + loopFireCount) < fireLimit)) { + activationsManager.evaluateQueriesForRule( item ); + loopFireCount += item.getRuleExecutor().evaluateNetworkAndFire(activationsManager, filter, fireCount, fireLimit); + activationsManager.flushPropagations(); + item = nextActivation(group); + } + return loopFireCount; + } + + private KnowledgeHelper newKnowledgeHelper() { + return activationsManager.getReteEvaluator().createKnowledgeHelper(); + } + + private RuleAgendaItem nextActivation(InternalAgendaGroup group) { + return sequential ? group.remove() : group.peek(); + } + + @Override + public KnowledgeHelper getKnowledgeHelper() { + return knowledgeHelper; + } + + @Override + public void resetKnowledgeHelper() { + knowledgeHelper = newKnowledgeHelper(); + } + + @Override + public void haltEvaluation() { + haltEvaluation = true; + } + + protected void startEvaluation(InternalAgendaGroup group) { + haltEvaluation = false; + } +} diff --git a/drools-core/src/main/java/org/drools/core/concurrent/AbstractRuleEvaluator.java b/drools-core/src/main/java/org/drools/core/concurrent/AbstractRuleEvaluator.java deleted file mode 100644 index c7ef91cf107..00000000000 --- a/drools-core/src/main/java/org/drools/core/concurrent/AbstractRuleEvaluator.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.concurrent; - -import org.drools.core.common.ActivationsManager; -import org.drools.core.phreak.RuleAgendaItem; -import org.drools.core.rule.consequence.KnowledgeHelper; -import org.kie.api.runtime.rule.AgendaFilter; - -public class AbstractRuleEvaluator { - private final ActivationsManager activationsManager; - - public AbstractRuleEvaluator(ActivationsManager activationsManager) { - this.activationsManager = activationsManager; - } - - protected int internalEvaluateAndFire( AgendaFilter filter, int fireCount, int fireLimit, RuleAgendaItem item ) { - activationsManager.evaluateQueriesForRule( item ); - return item.getRuleExecutor().evaluateNetworkAndFire(activationsManager, filter, fireCount, fireLimit); - } - - protected KnowledgeHelper newKnowledgeHelper() { - return activationsManager.getReteEvaluator().createKnowledgeHelper(); - } -} diff --git a/drools-core/src/main/java/org/drools/core/concurrent/ExecutorProviderImpl.java b/drools-core/src/main/java/org/drools/core/concurrent/ExecutorProviderImpl.java index 999f2da1de4..03767e866d3 100644 --- a/drools-core/src/main/java/org/drools/core/concurrent/ExecutorProviderImpl.java +++ b/drools-core/src/main/java/org/drools/core/concurrent/ExecutorProviderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.concurrent; import java.util.concurrent.CompletionService; diff --git a/drools-core/src/main/java/org/drools/core/concurrent/GroupEvaluator.java b/drools-core/src/main/java/org/drools/core/concurrent/GroupEvaluator.java new file mode 100644 index 00000000000..0f17766059a --- /dev/null +++ b/drools-core/src/main/java/org/drools/core/concurrent/GroupEvaluator.java @@ -0,0 +1,33 @@ +/** + * 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. + */ +package org.drools.core.concurrent; + +import org.drools.core.common.InternalAgendaGroup; +import org.drools.core.rule.consequence.KnowledgeHelper; +import org.kie.api.runtime.rule.AgendaFilter; + +public interface GroupEvaluator { + int evaluateAndFire( InternalAgendaGroup group, AgendaFilter filter, int fireCount, int fireLimit ); + + KnowledgeHelper getKnowledgeHelper(); + + void resetKnowledgeHelper(); + + void haltEvaluation(); +} diff --git a/drools-core/src/main/java/org/drools/core/concurrent/ParallelGroupEvaluator.java b/drools-core/src/main/java/org/drools/core/concurrent/ParallelGroupEvaluator.java new file mode 100644 index 00000000000..78e20bb8121 --- /dev/null +++ b/drools-core/src/main/java/org/drools/core/concurrent/ParallelGroupEvaluator.java @@ -0,0 +1,67 @@ +/** + * 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. + */ +package org.drools.core.concurrent; + +import org.drools.base.common.RuleBasePartitionId; +import org.drools.core.common.ActivationsManager; +import org.drools.core.common.InternalAgendaGroup; +import org.drools.core.phreak.RuleAgendaItem; + +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +import static org.drools.base.common.PartitionsManager.MIN_PARALLEL_THRESHOLD; +import static org.drools.base.common.PartitionsManager.doOnForkJoinPool; + +public class ParallelGroupEvaluator extends AbstractGroupEvaluator { + + public ParallelGroupEvaluator(ActivationsManager activationsManager ) { + super(activationsManager); + } + + protected void startEvaluation(InternalAgendaGroup group) { + super.startEvaluation(group); + parallelPreEvaluation(group); + } + + private void parallelPreEvaluation(InternalAgendaGroup group) { + Collection activations = group.getActivations(); + if (activations.size() < MIN_PARALLEL_THRESHOLD) { + // avoid parallel evaluation if there aren't enough activations ... + return; + } + + Map> partitionedActivations = activations.stream().collect(Collectors.groupingBy(RuleAgendaItem::getPartition)); + if (partitionedActivations.size() < MIN_PARALLEL_THRESHOLD) { + // ... or partitions + return; + } + + // This will evaluate all the RuleAgendaItem (grouped by partitions) in parallel, also resetting + // their dirty flag. After this AbstractGroupEvaluator#evaluateAndFire loop will attempt re-evaluating + // those items again, but finding them not dirty it won't have any performance impact allowing a direct firing. + doOnForkJoinPool(() -> + partitionedActivations.values().parallelStream() + .forEach( items -> items + .forEach( item -> item.getRuleExecutor().evaluateNetworkIfDirty(activationsManager) ) ) + ); + } +} diff --git a/drools-core/src/main/java/org/drools/core/concurrent/ParallelRuleEvaluator.java b/drools-core/src/main/java/org/drools/core/concurrent/ParallelRuleEvaluator.java deleted file mode 100644 index dcb882385ef..00000000000 --- a/drools-core/src/main/java/org/drools/core/concurrent/ParallelRuleEvaluator.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.concurrent; - -import java.util.concurrent.BlockingQueue; -import java.util.concurrent.Callable; -import java.util.concurrent.CompletionService; -import java.util.concurrent.Future; -import java.util.concurrent.LinkedBlockingQueue; - -import org.drools.core.common.ActivationsManager; -import org.drools.core.common.InternalAgendaGroup; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.phreak.RuleAgendaItem; -import org.drools.core.rule.consequence.KnowledgeHelper; -import org.kie.api.runtime.rule.AgendaFilter; -import org.kie.internal.concurrent.ExecutorProviderFactory; - -public class ParallelRuleEvaluator extends AbstractRuleEvaluator implements RuleEvaluator { - - private static final RuleAgendaItem POISON_PILL = new RuleAgendaItem(); - - private final int evaluatorsNr = RuleBasePartitionId.PARALLEL_PARTITIONS_NUMBER; - - private RuleEvaluatorCallable[] evaluators = new RuleEvaluatorCallable[evaluatorsNr]; - private Future[] results = new Future[evaluatorsNr]; - - private AgendaFilter filter; - private int fireCount; - private int fireLimit; - - public ParallelRuleEvaluator( ActivationsManager activationsManager ) { - super(activationsManager); - for (int i = 0; i < evaluatorsNr; i++) { - evaluators[i] = new RuleEvaluatorCallable(); - } - } - - private static class Completion { - private static final CompletionService service = ExecutorProviderFactory.getExecutorProvider().getCompletionService(); - } - - @Override - public int evaluateAndFire( AgendaFilter filter, - int fireCount, - int fireLimit, - InternalAgendaGroup group ) { - this.filter = filter; - this.fireCount = fireCount; - this.fireLimit = fireLimit; - - for ( RuleAgendaItem item : group.getActivations() ) { - int index = item.getPartition().getParallelEvaluationSlot(); - RuleEvaluatorCallable evaluator = evaluators[index]; - evaluator.enqueue( item ); - if ( !evaluator.running ) { - evaluator.running = true; - results[index] = Completion.service.submit( evaluator ); - } - } - - int localFireCount = 0; - for (int i = 0; i < evaluatorsNr; i++) { - if (results[i] != null) { - try { - evaluators[i].enqueue( POISON_PILL ); - localFireCount += results[i].get(); - } catch (Exception e) { - throw new RuntimeException( e ); - } finally { - results[i] = null; - } - } - } - - return localFireCount; - } - - @Override - public KnowledgeHelper getKnowledgeHelper() { - throw new UnsupportedOperationException(); - } - - public class RuleEvaluatorCallable implements Callable { - private final BlockingQueue queue = new LinkedBlockingQueue<>(); - - private final KnowledgeHelper knowledgeHelper = newKnowledgeHelper(); - - private boolean running = false; - - @Override - public Integer call() { - int count = 0; - while (true) { - try { - RuleAgendaItem item = queue.take(); - if (item == POISON_PILL) { - break; - } - count += internalEvaluateAndFire( filter, fireCount, fireLimit, item ); - } catch (InterruptedException e) { - throw new RuntimeException( e ); - } - } - running = false; - return count; - } - - private void enqueue(RuleAgendaItem item) { - if (!queue.offer( item )) { - throw new IllegalStateException("Cannot insert item into the queue! There is no space left in the queue."); - } - } - } -} diff --git a/drools-core/src/main/java/org/drools/core/concurrent/RuleEvaluator.java b/drools-core/src/main/java/org/drools/core/concurrent/RuleEvaluator.java deleted file mode 100644 index b943abae63e..00000000000 --- a/drools-core/src/main/java/org/drools/core/concurrent/RuleEvaluator.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.concurrent; - -import org.drools.core.common.InternalAgendaGroup; -import org.drools.core.rule.consequence.KnowledgeHelper; -import org.kie.api.runtime.rule.AgendaFilter; - -public interface RuleEvaluator { - int evaluateAndFire( AgendaFilter filter, - int fireCount, - int fireLimit, - InternalAgendaGroup group ); - - KnowledgeHelper getKnowledgeHelper(); -} diff --git a/drools-core/src/main/java/org/drools/core/concurrent/SequentialGroupEvaluator.java b/drools-core/src/main/java/org/drools/core/concurrent/SequentialGroupEvaluator.java new file mode 100644 index 00000000000..1bdfbaf9cc0 --- /dev/null +++ b/drools-core/src/main/java/org/drools/core/concurrent/SequentialGroupEvaluator.java @@ -0,0 +1,29 @@ +/** + * 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. + */ +package org.drools.core.concurrent; + +import org.drools.core.common.ActivationsManager; + +public class SequentialGroupEvaluator extends AbstractGroupEvaluator { + + public SequentialGroupEvaluator(ActivationsManager activationsManager) { + super(activationsManager); + } +} + diff --git a/drools-core/src/main/java/org/drools/core/concurrent/SequentialRuleEvaluator.java b/drools-core/src/main/java/org/drools/core/concurrent/SequentialRuleEvaluator.java deleted file mode 100644 index 5059db2597b..00000000000 --- a/drools-core/src/main/java/org/drools/core/concurrent/SequentialRuleEvaluator.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.concurrent; - -import org.drools.core.common.ActivationsManager; -import org.drools.core.common.InternalAgendaGroup; -import org.drools.core.phreak.RuleAgendaItem; -import org.drools.core.rule.consequence.KnowledgeHelper; -import org.kie.api.runtime.rule.AgendaFilter; - -public class SequentialRuleEvaluator extends AbstractRuleEvaluator implements RuleEvaluator { - - private final boolean sequential; - - private final KnowledgeHelper knowledgeHelper; - - public SequentialRuleEvaluator( ActivationsManager activationsManager ) { - super(activationsManager); - sequential = activationsManager.getReteEvaluator().getKnowledgeBase().getRuleBaseConfiguration().isSequential(); - knowledgeHelper = newKnowledgeHelper(); - } - - @Override - public int evaluateAndFire( AgendaFilter filter, - int fireCount, - int fireLimit, - InternalAgendaGroup group ) { - RuleAgendaItem item = sequential ? (RuleAgendaItem) group.remove() : (RuleAgendaItem) group.peek(); - return item != null ? internalEvaluateAndFire( filter, fireCount, fireLimit, item ) : 0; - } - - public KnowledgeHelper getKnowledgeHelper() { - return knowledgeHelper; - } -} diff --git a/drools-core/src/main/java/org/drools/core/conflict/MatchConflictResolver.java b/drools-core/src/main/java/org/drools/core/conflict/MatchConflictResolver.java index 74036c191ec..970844be4c8 100644 --- a/drools-core/src/main/java/org/drools/core/conflict/MatchConflictResolver.java +++ b/drools-core/src/main/java/org/drools/core/conflict/MatchConflictResolver.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.conflict; import java.io.Serializable; -import org.drools.core.rule.consequence.ConflictResolver; +import org.drools.base.rule.consequence.ConflictResolver; import org.drools.core.rule.consequence.InternalMatch; import org.kie.api.definition.rule.Rule; diff --git a/drools-core/src/main/java/org/drools/core/conflict/RuleAgendaConflictResolver.java b/drools-core/src/main/java/org/drools/core/conflict/RuleAgendaConflictResolver.java index d94e1e72fba..46120530241 100644 --- a/drools-core/src/main/java/org/drools/core/conflict/RuleAgendaConflictResolver.java +++ b/drools-core/src/main/java/org/drools/core/conflict/RuleAgendaConflictResolver.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.conflict; import java.io.Serializable; import org.drools.core.phreak.RuleAgendaItem; -import org.drools.core.rule.consequence.ConflictResolver; +import org.drools.base.rule.consequence.ConflictResolver; import org.kie.api.definition.rule.Rule; public class RuleAgendaConflictResolver implements ConflictResolver, Serializable { diff --git a/drools-core/src/main/java/org/drools/core/event/AbstractEventSupport.java b/drools-core/src/main/java/org/drools/core/event/AbstractEventSupport.java index 7e054003c78..ff8a7036c25 100644 --- a/drools-core/src/main/java/org/drools/core/event/AbstractEventSupport.java +++ b/drools-core/src/main/java/org/drools/core/event/AbstractEventSupport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.event; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/event/ActivationCancelledEvent.java b/drools-core/src/main/java/org/drools/core/event/ActivationCancelledEvent.java index 1775e30c5e4..721f2400a5f 100644 --- a/drools-core/src/main/java/org/drools/core/event/ActivationCancelledEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/ActivationCancelledEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.drools.core.rule.consequence.InternalMatch; diff --git a/drools-core/src/main/java/org/drools/core/event/ActivationCreatedEvent.java b/drools-core/src/main/java/org/drools/core/event/ActivationCreatedEvent.java index ff6a2317c73..e25202ba876 100644 --- a/drools-core/src/main/java/org/drools/core/event/ActivationCreatedEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/ActivationCreatedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.drools.core.rule.consequence.InternalMatch; diff --git a/drools-core/src/main/java/org/drools/core/event/ActivationEvent.java b/drools-core/src/main/java/org/drools/core/event/ActivationEvent.java index 58c8c859f17..33d81d32836 100644 --- a/drools-core/src/main/java/org/drools/core/event/ActivationEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/ActivationEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import java.util.EventObject; diff --git a/drools-core/src/main/java/org/drools/core/event/AfterActivationFiredEvent.java b/drools-core/src/main/java/org/drools/core/event/AfterActivationFiredEvent.java index 458f965c4a9..071e95419fd 100644 --- a/drools-core/src/main/java/org/drools/core/event/AfterActivationFiredEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/AfterActivationFiredEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.drools.core.rule.consequence.InternalMatch; diff --git a/drools-core/src/main/java/org/drools/core/event/AgendaEventSupport.java b/drools-core/src/main/java/org/drools/core/event/AgendaEventSupport.java index 0d91b5752e8..cfdaef56dc4 100644 --- a/drools-core/src/main/java/org/drools/core/event/AgendaEventSupport.java +++ b/drools-core/src/main/java/org/drools/core/event/AgendaEventSupport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.drools.core.common.InternalAgendaGroup; diff --git a/drools-core/src/main/java/org/drools/core/event/AgendaGroupEvent.java b/drools-core/src/main/java/org/drools/core/event/AgendaGroupEvent.java index 4078bf2cd77..a2b7cf40f90 100644 --- a/drools-core/src/main/java/org/drools/core/event/AgendaGroupEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/AgendaGroupEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import java.util.EventObject; diff --git a/drools-core/src/main/java/org/drools/core/event/AgendaGroupPoppedEvent.java b/drools-core/src/main/java/org/drools/core/event/AgendaGroupPoppedEvent.java index 2c947b06e3b..f715ffcc3be 100644 --- a/drools-core/src/main/java/org/drools/core/event/AgendaGroupPoppedEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/AgendaGroupPoppedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.drools.core.common.InternalAgendaGroup; diff --git a/drools-core/src/main/java/org/drools/core/event/AgendaGroupPushedEvent.java b/drools-core/src/main/java/org/drools/core/event/AgendaGroupPushedEvent.java index 04d8c765e86..abb18cb5c88 100644 --- a/drools-core/src/main/java/org/drools/core/event/AgendaGroupPushedEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/AgendaGroupPushedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.drools.core.common.InternalAgendaGroup; diff --git a/drools-core/src/main/java/org/drools/core/event/BeforeActivationFiredEvent.java b/drools-core/src/main/java/org/drools/core/event/BeforeActivationFiredEvent.java index 93b2953f487..28ea85f16d2 100644 --- a/drools-core/src/main/java/org/drools/core/event/BeforeActivationFiredEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/BeforeActivationFiredEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; diff --git a/drools-core/src/main/java/org/drools/core/event/DebugAgendaEventListener.java b/drools-core/src/main/java/org/drools/core/event/DebugAgendaEventListener.java index 44ec82465dc..64c9ddf4d84 100644 --- a/drools-core/src/main/java/org/drools/core/event/DebugAgendaEventListener.java +++ b/drools-core/src/main/java/org/drools/core/event/DebugAgendaEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.kie.api.event.rule.AfterMatchFiredEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/DebugProcessEventListener.java b/drools-core/src/main/java/org/drools/core/event/DebugProcessEventListener.java index beb19ad4959..5d2cc3ba6fb 100644 --- a/drools-core/src/main/java/org/drools/core/event/DebugProcessEventListener.java +++ b/drools-core/src/main/java/org/drools/core/event/DebugProcessEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.kie.api.event.process.ProcessCompletedEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/DebugRuleRuntimeEventListener.java b/drools-core/src/main/java/org/drools/core/event/DebugRuleRuntimeEventListener.java index be617c70e0b..45b42dad8db 100644 --- a/drools-core/src/main/java/org/drools/core/event/DebugRuleRuntimeEventListener.java +++ b/drools-core/src/main/java/org/drools/core/event/DebugRuleRuntimeEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.kie.api.event.rule.ObjectDeletedEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/DefaultAgendaEventListener.java b/drools-core/src/main/java/org/drools/core/event/DefaultAgendaEventListener.java index 5dcc2a53492..a2576762b70 100644 --- a/drools-core/src/main/java/org/drools/core/event/DefaultAgendaEventListener.java +++ b/drools-core/src/main/java/org/drools/core/event/DefaultAgendaEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.kie.api.event.rule.*; diff --git a/drools-core/src/main/java/org/drools/core/event/DefaultProcessEventListener.java b/drools-core/src/main/java/org/drools/core/event/DefaultProcessEventListener.java index 8b9df4c44e6..bf561a2dc0e 100644 --- a/drools-core/src/main/java/org/drools/core/event/DefaultProcessEventListener.java +++ b/drools-core/src/main/java/org/drools/core/event/DefaultProcessEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.kie.api.event.process.ProcessCompletedEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/DefaultRuleRuntimeEventListener.java b/drools-core/src/main/java/org/drools/core/event/DefaultRuleRuntimeEventListener.java index bc52f6c4626..020939cb1ff 100644 --- a/drools-core/src/main/java/org/drools/core/event/DefaultRuleRuntimeEventListener.java +++ b/drools-core/src/main/java/org/drools/core/event/DefaultRuleRuntimeEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.kie.api.event.rule.ObjectDeletedEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/KnowledgeBaseEvent.java b/drools-core/src/main/java/org/drools/core/event/KnowledgeBaseEvent.java index c9f85a722ea..5c19d3d2bf9 100644 --- a/drools-core/src/main/java/org/drools/core/event/KnowledgeBaseEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/KnowledgeBaseEvent.java @@ -1,36 +1,38 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import java.util.EventObject; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; public class KnowledgeBaseEvent extends EventObject { private static final long serialVersionUID = 510l; - private final RuleBase kBase; + private final InternalRuleBase kBase; private final InternalKnowledgePackage pkg; private final RuleImpl rule; private final String function; - public KnowledgeBaseEvent(final RuleBase kBase) { + public KnowledgeBaseEvent(final InternalRuleBase kBase) { super( kBase ); this.kBase = kBase; this.pkg = null; @@ -38,7 +40,7 @@ public KnowledgeBaseEvent(final RuleBase kBase) { this.function = null; } - public KnowledgeBaseEvent(final RuleBase kBase, + public KnowledgeBaseEvent(final InternalRuleBase kBase, final InternalKnowledgePackage pkg) { super( kBase ); this.kBase = kBase; @@ -47,7 +49,7 @@ public KnowledgeBaseEvent(final RuleBase kBase, this.function = null; } - public KnowledgeBaseEvent(final RuleBase kBase, + public KnowledgeBaseEvent(final InternalRuleBase kBase, final InternalKnowledgePackage pkg, final RuleImpl rule) { super( kBase ); @@ -57,7 +59,7 @@ public KnowledgeBaseEvent(final RuleBase kBase, this.function = null; } - public KnowledgeBaseEvent(final RuleBase kBase, + public KnowledgeBaseEvent(final InternalRuleBase kBase, final InternalKnowledgePackage pkg, final String function) { super( kBase ); @@ -67,7 +69,7 @@ public KnowledgeBaseEvent(final RuleBase kBase, this.function = function; } - public RuleBase getKnowledgeBase() { + public InternalRuleBase getKnowledgeBase() { return this.kBase; } diff --git a/drools-core/src/main/java/org/drools/core/event/RuleEventListenerSupport.java b/drools-core/src/main/java/org/drools/core/event/RuleEventListenerSupport.java index 2dd72e4d9cc..827f8667a1c 100644 --- a/drools-core/src/main/java/org/drools/core/event/RuleEventListenerSupport.java +++ b/drools-core/src/main/java/org/drools/core/event/RuleEventListenerSupport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.kie.api.runtime.rule.Match; diff --git a/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupActivatedEvent.java b/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupActivatedEvent.java index bb17fc57738..b7717c519d4 100644 --- a/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupActivatedEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupActivatedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.drools.core.common.RuleFlowGroup; diff --git a/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupDeactivatedEvent.java b/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupDeactivatedEvent.java index b089aecfd86..33390cd4ebd 100644 --- a/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupDeactivatedEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupDeactivatedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.drools.core.common.RuleFlowGroup; diff --git a/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupEvent.java b/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupEvent.java index fbe995795a2..7c16f8fb065 100644 --- a/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/RuleFlowGroupEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import java.util.EventObject; diff --git a/drools-core/src/main/java/org/drools/core/event/RuleRuntimeEventSupport.java b/drools-core/src/main/java/org/drools/core/event/RuleRuntimeEventSupport.java index c90ad6bd103..853521411fe 100644 --- a/drools-core/src/main/java/org/drools/core/event/RuleRuntimeEventSupport.java +++ b/drools-core/src/main/java/org/drools/core/event/RuleRuntimeEventSupport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import org.drools.core.common.InternalWorkingMemory; diff --git a/drools-core/src/main/java/org/drools/core/event/WorkingMemoryEvent.java b/drools-core/src/main/java/org/drools/core/event/WorkingMemoryEvent.java index 9148970165b..e04a1a6975d 100644 --- a/drools-core/src/main/java/org/drools/core/event/WorkingMemoryEvent.java +++ b/drools-core/src/main/java/org/drools/core/event/WorkingMemoryEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event; import java.util.EventObject; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterFunctionRemovedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterFunctionRemovedEventImpl.java index 51b9d5541ad..92d3d3ef4b0 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterFunctionRemovedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterFunctionRemovedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKiePackageAddedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKiePackageAddedEventImpl.java index 8487ad3e302..cd091cd49a8 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKiePackageAddedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKiePackageAddedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKiePackageRemovedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKiePackageRemovedEventImpl.java index 01f9592d46d..2ddd514a362 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKiePackageRemovedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKiePackageRemovedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKnowledgeBaseLockedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKnowledgeBaseLockedEventImpl.java index 23c5e8f9ac0..55a988379d2 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKnowledgeBaseLockedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKnowledgeBaseLockedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKnowledgeBaseUnlockedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKnowledgeBaseUnlockedEventImpl.java index 133c64d3c77..9181ff86399 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKnowledgeBaseUnlockedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterKnowledgeBaseUnlockedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterProcessAddedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterProcessAddedEventImpl.java index 25074aa8fac..d891bf4a3a6 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterProcessAddedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterProcessAddedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterProcessRemovedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterProcessRemovedEventImpl.java index 3d17d06237b..0c877a60233 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterProcessRemovedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterProcessRemovedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterRuleAddedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterRuleAddedEventImpl.java index 5dcc1e20d11..1b2e870f6a7 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterRuleAddedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterRuleAddedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterRuleRemovedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterRuleRemovedEventImpl.java index f0536c21bd3..392c129c2e8 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterRuleRemovedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/AfterRuleRemovedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeFunctionRemovedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeFunctionRemovedEventImpl.java index 8701e1a613b..82f1bf1ecc1 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeFunctionRemovedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeFunctionRemovedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKiePackageAddedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKiePackageAddedEventImpl.java index c3a953a4789..31aa34ed017 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKiePackageAddedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKiePackageAddedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKiePackageRemovedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKiePackageRemovedEventImpl.java index b6c1e39cc1e..42bb740ccf4 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKiePackageRemovedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKiePackageRemovedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKnowledgeBaseLockedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKnowledgeBaseLockedEventImpl.java index 746b614e0e7..2e28676ac90 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKnowledgeBaseLockedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKnowledgeBaseLockedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKnowledgeBaseUnlockedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKnowledgeBaseUnlockedEventImpl.java index 9e384917295..f71c544b6d6 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKnowledgeBaseUnlockedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeKnowledgeBaseUnlockedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeProcessAddedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeProcessAddedEventImpl.java index b185d18007b..08b215a746d 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeProcessAddedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeProcessAddedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeProcessRemovedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeProcessRemovedEventImpl.java index b09bae8180a..47bd75a38b6 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeProcessRemovedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeProcessRemovedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeRuleAddedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeRuleAddedEventImpl.java index 14831bf3858..040c51a357c 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeRuleAddedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeRuleAddedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeRuleRemovedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeRuleRemovedEventImpl.java index e9d51b8cd42..c33ba8d0266 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeRuleRemovedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/BeforeRuleRemovedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/KnowledgeBaseEventImpl.java b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/KnowledgeBaseEventImpl.java index 2986007bc7a..fd082aa012d 100644 --- a/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/KnowledgeBaseEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/knowlegebase/impl/KnowledgeBaseEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.knowlegebase.impl; import org.kie.api.KieBase; diff --git a/drools-core/src/main/java/org/drools/core/event/package-info.java b/drools-core/src/main/java/org/drools/core/event/package-info.java index a6f1ba9058b..92a0304dced 100644 --- a/drools-core/src/main/java/org/drools/core/event/package-info.java +++ b/drools-core/src/main/java/org/drools/core/event/package-info.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - /** * * Events provide all sorts of call backs to monitor the engine as it is running. diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationCancelledEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationCancelledEventImpl.java index 8f8bfc6c259..4bc9ee60a46 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationCancelledEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationCancelledEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import org.kie.api.event.rule.MatchCancelledCause; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationCreatedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationCreatedEventImpl.java index bc5c8520e9c..668d1e24060 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationCreatedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationCreatedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import org.kie.api.event.rule.MatchCreatedEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationEventImpl.java index 5a23a9ed5b6..90bd4b36d65 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/ActivationEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/AfterActivationFiredEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/AfterActivationFiredEventImpl.java index 1d2f93348a9..80335e8c87c 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/AfterActivationFiredEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/AfterActivationFiredEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import org.kie.api.event.rule.AfterMatchFiredEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupEventImpl.java index 716eb87780e..13c34ed874d 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupPoppedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupPoppedEventImpl.java index c2c8f36f7e0..79690433808 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupPoppedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupPoppedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import org.kie.api.event.rule.AgendaGroupPoppedEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupPushedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupPushedEventImpl.java index 8996aff15c3..4da2c8c0d6e 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupPushedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/AgendaGroupPushedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import org.kie.api.event.rule.AgendaGroupPushedEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/BeforeActivationFiredEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/BeforeActivationFiredEventImpl.java index 0afac0b5ec9..02d5a0a44fd 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/BeforeActivationFiredEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/BeforeActivationFiredEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import org.kie.api.event.rule.BeforeMatchFiredEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectDeletedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectDeletedEventImpl.java index df0b3c3a8c6..8b05740eb92 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectDeletedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectDeletedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectInsertedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectInsertedEventImpl.java index d8bfd268bf8..55e3999f0c7 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectInsertedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectInsertedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectUpdatedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectUpdatedEventImpl.java index b367265d9a8..88f65543cd0 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectUpdatedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/ObjectUpdatedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupActivatedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupActivatedEventImpl.java index 471cec1a9b6..f47f5b6ff33 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupActivatedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupActivatedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import org.kie.api.event.rule.RuleFlowGroupActivatedEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupDeactivatedEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupDeactivatedEventImpl.java index 6a0e1df9121..911ba97d4e0 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupDeactivatedEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupDeactivatedEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import org.kie.api.event.rule.RuleFlowGroupDeactivatedEvent; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupEventImpl.java index 0d4e8b8fe37..ac1e34a3cf2 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleFlowGroupEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleRuntimeEventImpl.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleRuntimeEventImpl.java index 8aed2cd2565..3af8971441b 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleRuntimeEventImpl.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/RuleRuntimeEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableActivation.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableActivation.java index e22d584c49d..001c4556134 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableActivation.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableActivation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.Externalizable; @@ -25,9 +27,9 @@ import java.util.List; import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.common.PropagationContext; import org.kie.api.definition.rule.Rule; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableAgendaGroup.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableAgendaGroup.java index 4c1a6ae500a..1f7f0614b58 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableAgendaGroup.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableAgendaGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableRuleFlowGroup.java b/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableRuleFlowGroup.java index df3057e762a..ed7643b1717 100644 --- a/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableRuleFlowGroup.java +++ b/drools-core/src/main/java/org/drools/core/event/rule/impl/SerializableRuleFlowGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.event.rule.impl; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/factmodel/AccessibleFact.java b/drools-core/src/main/java/org/drools/core/factmodel/AccessibleFact.java deleted file mode 100644 index da5d0074c18..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/AccessibleFact.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.core.factmodel; - -public interface AccessibleFact { - Object getValue(String fieldName); - void setValue(String fieldName, Object value); -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/GeneratedFact.java b/drools-core/src/main/java/org/drools/core/factmodel/GeneratedFact.java deleted file mode 100644 index 583031ad8ba..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/GeneratedFact.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.core.factmodel; - -/** - * This is a marker interface implemented by classes dinamically generated from declared types or facts - */ -public interface GeneratedFact { -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/Alias.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/Alias.java deleted file mode 100644 index 093cf69b4f7..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/Alias.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - - -package org.drools.core.factmodel.traits; - - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Retention( value = RetentionPolicy.RUNTIME ) -@Target( value = ElementType.FIELD ) -public @interface Alias { - - String value(); - -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/CoreWrapper.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/CoreWrapper.java deleted file mode 100644 index f0f631261c0..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/CoreWrapper.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.factmodel.traits; - -public interface CoreWrapper extends TraitableBean> { - - void init( K core ); - - K getCore(); - -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/Thing.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/Thing.java deleted file mode 100644 index bfa2ea83c6a..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/Thing.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.factmodel.traits; - -import java.util.Map; - -@Trait -public interface Thing { - - Map getFields(); - - K getCore(); - - boolean isTop(); - -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/Trait.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/Trait.java deleted file mode 100644 index e6d67ea8a5c..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/Trait.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.factmodel.traits; - - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Retention(value = RetentionPolicy.RUNTIME) -@Target( value = ElementType.TYPE) -public @interface Trait { - - Class impl() default NullMixin.class; - - class NullMixin { - private NullMixin() {} - } - - boolean logical() default false; - - MixinConflictResolutionStrategy mixinSolveConflicts() default MixinConflictResolutionStrategy.DECLARATION_ORDER; - - enum MixinConflictResolutionStrategy { - DECLARATION_ORDER, ERROR_ON_CONFLICT - } -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitFactory.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitFactory.java deleted file mode 100644 index e35fa5de9b9..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitFactory.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.factmodel.traits; - -public interface TraitFactory { - - boolean isRuntimeClass( String resourceName ); -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitField.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitField.java deleted file mode 100644 index 65002322cd2..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitField.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.factmodel.traits; - -import java.util.Set; - -public interface TraitField { - - Set> getRangeTypes(); -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitType.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitType.java deleted file mode 100644 index 3d68803d37a..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitType.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.factmodel.traits; - - -import java.util.BitSet; - -public interface TraitType { - - BitSet _getTypeCode(); - - boolean _isVirtual(); - - String traitNameField = "__$$trait_Name"; - - String _getTraitName(); - - boolean _hasTypeCode( BitSet typeCode ); -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitTypeEnum.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitTypeEnum.java deleted file mode 100644 index 0ee9def74b6..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitTypeEnum.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.core.factmodel.traits; - - -public enum TraitTypeEnum { - - TRAIT, // trait proxy - TRAITABLE, // native traitable bean - LEGACY_TRAITABLE, // legacy class marked as traitable, bean not yet traited (needs wrapping/injection to provide data structures - WRAPPED_TRAITABLE, // legacy class wrapped by a proxy to provide the core data structures. - NON_TRAIT // not marked as trait/traitable - -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitTypeMap.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitTypeMap.java deleted file mode 100644 index 727f19b1738..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitTypeMap.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.factmodel.traits; - -import java.util.BitSet; -import java.util.Collection; - -public interface TraitTypeMap, C> { - - K putSafe(String key, K value); - - Collection removeCascade(String traitName); - - Collection removeCascade(BitSet code); - - Collection getMostSpecificTraits(); - - BitSet getCurrentTypeCode(); - - void setBottomCode(BitSet code); -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitTypeMapConstants.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitTypeMapConstants.java deleted file mode 100644 index 5257f05fbbf..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitTypeMapConstants.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.factmodel.traits; - -public interface TraitTypeMapConstants { - - String TYPE_NAME = "org/drools/traits/core/factmodel/TraitTypeMapImpl"; -} diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/Traitable.java b/drools-core/src/main/java/org/drools/core/factmodel/traits/Traitable.java deleted file mode 100644 index 01a16938687..00000000000 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/Traitable.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - - -package org.drools.core.factmodel.traits; - - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Retention( value = RetentionPolicy.RUNTIME ) -@Target( value = ElementType.TYPE ) -public @interface Traitable { - - boolean logical() default false; - -} diff --git a/drools-core/src/main/java/org/drools/core/facttemplates/Event.java b/drools-core/src/main/java/org/drools/core/facttemplates/Event.java deleted file mode 100644 index a5d0233a81e..00000000000 --- a/drools-core/src/main/java/org/drools/core/facttemplates/Event.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.facttemplates; - -import java.util.concurrent.TimeUnit; - -public interface Event extends Fact { - - long getTimestamp(); - - long getExpiration(); - - Event withExpiration( long value, TimeUnit unit ); - - default boolean isEvent() { - return true; - } -} diff --git a/drools-core/src/main/java/org/drools/core/facttemplates/Fact.java b/drools-core/src/main/java/org/drools/core/facttemplates/Fact.java deleted file mode 100644 index e2392042bd3..00000000000 --- a/drools-core/src/main/java/org/drools/core/facttemplates/Fact.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.facttemplates; - -import java.util.Map; - -public interface Fact { - - Object get(String name); - - void set(String name, Object value); - - Map asMap(); - - FactTemplate getFactTemplate(); - - default boolean isEvent() { - return false; - } -} diff --git a/drools-core/src/main/java/org/drools/core/facttemplates/FactTemplate.java b/drools-core/src/main/java/org/drools/core/facttemplates/FactTemplate.java deleted file mode 100644 index 94f246dedad..00000000000 --- a/drools-core/src/main/java/org/drools/core/facttemplates/FactTemplate.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.facttemplates; - -import java.io.Externalizable; -import java.util.Collection; - -import org.drools.core.definitions.InternalKnowledgePackage; - - -public interface FactTemplate - extends - Externalizable { - - InternalKnowledgePackage getPackage(); - - /** - * The name of the template may be the fully qualified - * class name, or an alias. - * @return - */ - String getName(); - - /** - * templates may have 1 or more slots. A slot is a named - * pattern with a specific type of value. - * @return - */ - int getNumberOfFields(); - - Collection getFieldNames(); - - /** - * Return the slot with the String name - * @return - */ - FieldTemplate getFieldTemplate(String name); - - /** - * Get the pattern index with the given name - * @param name - * @return - */ - int getFieldTemplateIndex(String name); - - Fact createFact(); -} diff --git a/drools-core/src/main/java/org/drools/core/facttemplates/FieldTemplate.java b/drools-core/src/main/java/org/drools/core/facttemplates/FieldTemplate.java deleted file mode 100644 index b53f801c364..00000000000 --- a/drools-core/src/main/java/org/drools/core/facttemplates/FieldTemplate.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.facttemplates; - -import org.drools.core.base.ValueType; - -public interface FieldTemplate { - - String getName(); - - ValueType getValueType(); - -} diff --git a/drools-core/src/main/java/org/drools/core/impl/AbstractRuntime.java b/drools-core/src/main/java/org/drools/core/impl/AbstractRuntime.java index 7de72ba7675..28d704db46f 100644 --- a/drools-core/src/main/java/org/drools/core/impl/AbstractRuntime.java +++ b/drools-core/src/main/java/org/drools/core/impl/AbstractRuntime.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.impl; import org.kie.api.event.KieRuntimeEventManager; diff --git a/drools-core/src/main/java/org/drools/core/impl/ActivationsManagerImpl.java b/drools-core/src/main/java/org/drools/core/impl/ActivationsManagerImpl.java index 817af24bebd..328e0e5c4df 100644 --- a/drools-core/src/main/java/org/drools/core/impl/ActivationsManagerImpl.java +++ b/drools-core/src/main/java/org/drools/core/impl/ActivationsManagerImpl.java @@ -1,40 +1,38 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.impl; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.common.ActivationGroupImpl; import org.drools.core.common.ActivationGroupNode; import org.drools.core.common.ActivationsFilter; import org.drools.core.common.ActivationsManager; import org.drools.core.common.AgendaGroupsManager; +import org.drools.core.common.InternalActivationGroup; import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemoryEntryPoint; +import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.concurrent.RuleEvaluator; -import org.drools.core.concurrent.SequentialRuleEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.core.concurrent.GroupEvaluator; +import org.drools.core.concurrent.SequentialGroupEvaluator; import org.drools.core.event.AgendaEventSupport; import org.drools.core.phreak.ExecutableEntry; import org.drools.core.phreak.PropagationEntry; @@ -47,17 +45,20 @@ import org.drools.core.reteoo.PathMemory; import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.definitions.rule.impl.QueryImpl; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.common.InternalActivationGroup; import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.common.PropagationContext; -import org.drools.core.reteoo.Tuple; import org.drools.util.StringUtils; import org.kie.api.conf.EventProcessingOption; import org.kie.api.event.rule.MatchCancelledCause; import org.kie.api.runtime.rule.AgendaFilter; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + public class ActivationsManagerImpl implements ActivationsManager { private final ReteEvaluator reteEvaluator; @@ -71,7 +72,7 @@ public class ActivationsManagerImpl implements ActivationsManager { private final PropagationList propagationList; - private final RuleEvaluator ruleEvaluator; + private final GroupEvaluator groupEvaluator; private boolean firing = false; @@ -85,7 +86,7 @@ public ActivationsManagerImpl(ReteEvaluator reteEvaluator) { this.reteEvaluator = reteEvaluator; this.agendaGroupsManager = new AgendaGroupsManager.SimpleAgendaGroupsManager(reteEvaluator); this.propagationList = new SynchronizedPropagationList(reteEvaluator); - this.ruleEvaluator = new SequentialRuleEvaluator( this ); + this.groupEvaluator = new SequentialGroupEvaluator( this ); if (reteEvaluator.getKnowledgeBase().getRuleBaseConfiguration().getEventProcessingMode() == EventProcessingOption.STREAM) { expirationContexts = new ArrayList<>(); } @@ -189,7 +190,6 @@ public void cancelActivation(InternalMatch internalMatch) { if (internalMatch.getActivationGroupNode() != null ) { internalMatch.getActivationGroupNode().getActivationGroup().removeActivation(internalMatch); } - ((Tuple) internalMatch).decreaseActivationCountForEvents(); getAgendaEventSupport().fireActivationCancelled(internalMatch, reteEvaluator, MatchCancelledCause.WME_MODIFY); } @@ -259,7 +259,17 @@ public void evaluateQueriesForRule(RuleAgendaItem item) { @Override public KnowledgeHelper getKnowledgeHelper() { - return ruleEvaluator.getKnowledgeHelper(); + return groupEvaluator.getKnowledgeHelper(); + } + + @Override + public void resetKnowledgeHelper() { + groupEvaluator.resetKnowledgeHelper(); + } + + @Override + public void haltGroupEvaluation() { + groupEvaluator.haltEvaluation(); } @Override @@ -298,7 +308,7 @@ private int fireLoop(AgendaFilter agendaFilter, int fireLimit, RestHandler restH // only fire rules while the limit has not reached. // if halt is called, then isFiring will be false. // The while loop may continue to loop, to keep flushing the action propagation queue - returnedFireCount = ruleEvaluator.evaluateAndFire( agendaFilter, fireCount, fireLimit, group ); + returnedFireCount = groupEvaluator.evaluateAndFire( group, agendaFilter, fireCount, fireLimit ); fireCount += returnedFireCount; limitReached = ( fireLimit > 0 && fireCount >= fireLimit ); @@ -330,7 +340,7 @@ private boolean flushExpirations() { } private void doRetract( PropagationContext ectx ) { - InternalFactHandle factHandle = ectx.getFactHandle(); + InternalFactHandle factHandle = (InternalFactHandle) ectx.getFactHandle(); ObjectTypeNode.retractLeftTuples( factHandle, ectx, reteEvaluator ); ObjectTypeNode.retractRightTuples( factHandle, ectx, reteEvaluator ); if ( factHandle.isPendingRemoveFromStore() ) { diff --git a/drools-core/src/main/java/org/drools/core/impl/EnvironmentFactory.java b/drools-core/src/main/java/org/drools/core/impl/EnvironmentFactory.java index cd6a88f87ee..04a2a0960f7 100644 --- a/drools-core/src/main/java/org/drools/core/impl/EnvironmentFactory.java +++ b/drools-core/src/main/java/org/drools/core/impl/EnvironmentFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.impl; import org.drools.core.marshalling.ClassObjectMarshallingStrategyAcceptor; diff --git a/drools-core/src/main/java/org/drools/core/impl/EnvironmentImpl.java b/drools-core/src/main/java/org/drools/core/impl/EnvironmentImpl.java index aac41087e5a..23567f6a7ff 100644 --- a/drools-core/src/main/java/org/drools/core/impl/EnvironmentImpl.java +++ b/drools-core/src/main/java/org/drools/core/impl/EnvironmentImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.impl; import java.util.HashMap; diff --git a/drools-core/src/main/java/org/drools/core/impl/InternalKieContainer.java b/drools-core/src/main/java/org/drools/core/impl/InternalKieContainer.java index b1c9b4246f5..e99b6f8c169 100644 --- a/drools-core/src/main/java/org/drools/core/impl/InternalKieContainer.java +++ b/drools-core/src/main/java/org/drools/core/impl/InternalKieContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.impl; import java.io.InputStream; diff --git a/drools-core/src/main/java/org/drools/core/impl/RuleBase.java b/drools-core/src/main/java/org/drools/core/impl/InternalRuleBase.java similarity index 80% rename from drools-core/src/main/java/org/drools/core/impl/RuleBase.java rename to drools-core/src/main/java/org/drools/core/impl/InternalRuleBase.java index ad2c72e4eb4..92d2dca90ce 100644 --- a/drools-core/src/main/java/org/drools/core/impl/RuleBase.java +++ b/drools-core/src/main/java/org/drools/core/impl/InternalRuleBase.java @@ -1,37 +1,35 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.impl; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.concurrent.Future; - +import org.drools.base.RuleBase; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.InvalidPatternException; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.ruleunit.RuleUnitDescriptionRegistry; import org.drools.core.KieBaseConfigurationImpl; import org.drools.core.RuleBaseConfiguration; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.AsyncReceiveNode; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.LeftTupleNode; @@ -40,10 +38,7 @@ import org.drools.core.reteoo.ReteooBuilder; import org.drools.core.reteoo.SegmentMemory; import org.drools.core.reteoo.SegmentMemory.SegmentPrototype; -import org.drools.core.rule.InvalidPatternException; -import org.drools.core.rule.TypeDeclaration; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.ruleunit.RuleUnitDescriptionRegistry; import org.kie.api.KieBaseConfiguration; import org.kie.api.builder.ReleaseId; import org.kie.api.definition.KiePackage; @@ -54,7 +49,15 @@ import org.kie.api.io.Resource; import org.kie.api.runtime.KieSessionConfiguration; -public interface RuleBase { +import java.io.IOException; +import java.lang.reflect.Type; +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.Future; + +public interface InternalRuleBase extends RuleBase { Collection getKiePackages(); KiePackage getKiePackage( String packageName ); @@ -80,6 +83,8 @@ public interface RuleBase { String getId(); RuleBasePartitionId createNewPartitionId(); + boolean isPartitioned(); + int getParallelEvaluationSlotsCount(); RuleBaseConfiguration getRuleBaseConfiguration(); diff --git a/drools-core/src/main/java/org/drools/core/impl/KieBaseUpdate.java b/drools-core/src/main/java/org/drools/core/impl/KieBaseUpdate.java index e9f87aa838b..8c58ebb3bb2 100644 --- a/drools-core/src/main/java/org/drools/core/impl/KieBaseUpdate.java +++ b/drools-core/src/main/java/org/drools/core/impl/KieBaseUpdate.java @@ -1,24 +1,27 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.impl; import java.util.ArrayList; import java.util.List; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; public class KieBaseUpdate { private final List rulesToBeRemoved; diff --git a/drools-core/src/main/java/org/drools/core/impl/KnowledgeBaseImpl.java b/drools-core/src/main/java/org/drools/core/impl/KnowledgeBaseImpl.java index fdf209671e6..064ad42c7d0 100644 --- a/drools-core/src/main/java/org/drools/core/impl/KnowledgeBaseImpl.java +++ b/drools-core/src/main/java/org/drools/core/impl/KnowledgeBaseImpl.java @@ -1,50 +1,43 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.impl; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Queue; -import java.util.Set; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.Future; -import java.util.concurrent.locks.ReentrantReadWriteLock; - +import org.drools.base.base.ClassObjectType; +import org.drools.base.common.PartitionsManager; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.rule.DialectRuntimeRegistry; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.Function; +import org.drools.base.rule.ImportDeclaration; +import org.drools.base.rule.InvalidPatternException; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.WindowDeclaration; +import org.drools.base.ruleunit.RuleUnitDescriptionRegistry; import org.drools.core.KieBaseConfigurationImpl; import org.drools.core.RuleBaseConfiguration; import org.drools.core.SessionConfiguration; import org.drools.core.base.ClassFieldAccessorCache; -import org.drools.core.base.ClassObjectType; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.ClassDefinition; import org.drools.core.management.DroolsManagementAgent; import org.drools.core.phreak.BuildtimeSegmentUtilities; import org.drools.core.phreak.EagerPhreakBuilder.Add; @@ -65,16 +58,8 @@ import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.builder.BuildContext; import org.drools.core.reteoo.builder.NodeFactory; -import org.drools.core.rule.DialectRuntimeRegistry; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.Function; -import org.drools.core.rule.ImportDeclaration; -import org.drools.core.rule.InvalidPatternException; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.WindowDeclaration; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.ruleunit.RuleUnitDescriptionRegistry; import org.drools.wiring.api.classloader.ProjectClassLoader; import org.kie.api.KieBaseConfiguration; import org.kie.api.builder.ReleaseId; @@ -94,19 +79,35 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Queue; +import java.util.Set; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.Future; +import java.util.concurrent.locks.ReentrantReadWriteLock; + import static org.drools.core.phreak.PhreakBuilder.isEagerSegmentCreation; -import static org.drools.util.BitMaskUtil.isSet; +import static org.drools.util.bitmask.BitMaskUtil.isSet; import static org.drools.util.ClassUtils.convertClassToResourcePath; -public class KnowledgeBaseImpl implements RuleBase { +public class KnowledgeBaseImpl implements InternalRuleBase { - protected static final transient Logger logger = LoggerFactory.getLogger(KnowledgeBaseImpl.class); + protected static final Logger logger = LoggerFactory.getLogger(KnowledgeBaseImpl.class); private Set addedEntryNodeCache; private Set removedEntryNodeCache; - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ + private String id; private KieBaseConfiguration config; @@ -151,6 +152,10 @@ public class KnowledgeBaseImpl implements RuleBase { private boolean hasMultipleAgendaGroups = false; + private final PartitionsManager partitionsManager = new PartitionsManager(); + + private boolean partitioned; + public KnowledgeBaseImpl() { } public KnowledgeBaseImpl(final String id, @@ -449,8 +454,26 @@ public void kBaseInternal_addPackages(Collection clone ruleUnitDescriptionRegistry.add(newPkg.getRuleUnitDescriptionLoader()); } - if (ruleBaseConfig.isMultithreadEvaluation() && !hasMultiplePartitions()) { - disableMultithreadEvaluation("The rete network cannot be partitioned: disabling multithread evaluation"); + if (ruleBaseConfig.isParallelEvaluation()) { + setupParallelEvaluation(); + } + } + + private void setupParallelEvaluation() { + if (!partitionsManager.hasParallelEvaluation()) { + disableParallelEvaluation("The rete network cannot be partitioned: disabling multithread evaluation"); + return; + } + partitionsManager.init(); + this.partitioned = true; + + if (ruleBaseConfig.isParallelExecution()) { + for (EntryPointNode epn : rete.getEntryPointNodes().values()) { + epn.setupParallelExecution(this); + for (ObjectTypeNode otn : epn.getObjectTypeNodes().values()) { + otn.setupParallelExecution(this); + } + } } } @@ -478,41 +501,28 @@ public void processAllTypesDeclaration( Collection pkg } } - private void checkMultithreadedEvaluation( RuleImpl rule ) { - if (ruleBaseConfig.isMultithreadEvaluation()) { + private void checkParallelEvaluation(RuleImpl rule) { + if (ruleBaseConfig.isParallelEvaluation()) { if (!rule.isMainAgendaGroup()) { - disableMultithreadEvaluation( "Agenda-groups are not supported with multithread evaluation: disabling it" ); + disableParallelEvaluation( "Agenda-groups are not supported with parallel execution: disabling it" ); } else if (rule.getActivationGroup() != null) { - disableMultithreadEvaluation( "Activation-groups are not supported with multithread evaluation: disabling it" ); - } else if (!rule.getSalience().isDefault()) { - disableMultithreadEvaluation( "Salience is not supported with multithread evaluation: disabling it" ); + disableParallelEvaluation( "Activation-groups are not supported with parallel execution: disabling it" ); + } else if (!rule.getSalience().isDefault() && ruleBaseConfig.isParallelExecution()) { + disableParallelEvaluation( "Salience is not supported with parallel execution: disabling it" ); } else if (rule.isQuery()) { - disableMultithreadEvaluation( "Queries are not supported with multithread evaluation: disabling it" ); - } - } - } - - private boolean hasMultiplePartitions() { - for (EntryPointNode entryPointNode : rete.getEntryPointNodes().values()) { - for ( ObjectTypeNode otn : entryPointNode.getObjectTypeNodes().values() ) { - ObjectSinkPropagator sink = otn.getObjectSinkPropagator(); - if (sink instanceof CompositePartitionAwareObjectSinkAdapter && ( (CompositePartitionAwareObjectSinkAdapter) sink ).getUsedPartitionsCount() > 1) { - return true; - } + disableParallelEvaluation( "Queries are not supported with parallel execution: disabling it" ); } } - return false; } public boolean hasMultipleAgendaGroups() { return hasMultipleAgendaGroups; } - private void disableMultithreadEvaluation(String warningMessage) { + private void disableParallelEvaluation(String warningMessage) { ruleBaseConfig.enforceSingleThreadEvaluation(); logger.warn( warningMessage ); for (EntryPointNode entryPointNode : rete.getEntryPointNodes().values()) { - entryPointNode.setPartitionsEnabled( false ); for (ObjectTypeNode otn : entryPointNode.getObjectTypeNodes().values()) { ObjectSinkPropagator sink = otn.getObjectSinkPropagator(); if (sink instanceof CompositePartitionAwareObjectSinkAdapter) { @@ -842,7 +852,6 @@ protected void setupRete() { // always add the default entry point EntryPointNode epn = nodeFactory.buildEntryPointNode(this.reteooBuilder.getNodeIdsGenerator().getNextId(), RuleBasePartitionId.MAIN_PARTITION, - ruleBaseConfig.isMultithreadEvaluation(), this.rete, EntryPointId.DEFAULT); epn.attach(); @@ -850,7 +859,6 @@ protected void setupRete() { BuildContext context = new BuildContext(this, Collections.emptyList()); context.setCurrentEntryPoint(epn.getEntryPoint()); context.setTupleMemoryEnabled(true); - context.setObjectTypeNodeMemoryEnabled(true); context.setPartitionId(RuleBasePartitionId.MAIN_PARTITION); ObjectTypeNode otn = nodeFactory.buildObjectTypeNode(this.reteooBuilder.getNodeIdsGenerator().getNextId(), @@ -1030,7 +1038,7 @@ public void kBaseInternal_addRules(Collection rules, Collection< for (Rule r : rules) { RuleImpl rule = (RuleImpl) r; - checkMultithreadedEvaluation( rule ); + checkParallelEvaluation( rule ); this.hasMultipleAgendaGroups |= !rule.isMainAgendaGroup(); terminalNodes.addAll(this.reteooBuilder.addRule(rule, wms)); } @@ -1179,8 +1187,19 @@ private void addReloadDialectDatas( DialectRuntimeRegistry registry ) { this.reloadPackageCompilationData.offer( registry ); } + @Override public RuleBasePartitionId createNewPartitionId() { - return RuleBasePartitionId.createPartition(); + return partitionsManager.createNewPartitionId(); + } + + @Override + public boolean isPartitioned() { + return partitioned; + } + + @Override + public int getParallelEvaluationSlotsCount() { + return partitionsManager.getParallelEvaluationSlotsCount(); } public FactType getFactType(String packageName, String typeName) { diff --git a/drools-core/src/main/java/org/drools/core/impl/RuleBaseFactory.java b/drools-core/src/main/java/org/drools/core/impl/RuleBaseFactory.java index ea610c9aa53..85e7f73343e 100644 --- a/drools-core/src/main/java/org/drools/core/impl/RuleBaseFactory.java +++ b/drools-core/src/main/java/org/drools/core/impl/RuleBaseFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.impl; import java.util.Properties; @@ -54,7 +56,7 @@ * properties.setProperty( "org.kie.sequential", "true"); * * - * @see RuleBase + * @see InternalRuleBase */ public class RuleBaseFactory { @@ -63,7 +65,7 @@ public class RuleBaseFactory { * @return * The KnowledgeBase */ - public static RuleBase newRuleBase() { + public static InternalRuleBase newRuleBase() { return newRuleBase( UUID.randomUUID().toString() ); } @@ -79,7 +81,7 @@ public static RuleBase newRuleBase() { * @return * The KnowledgeBase */ - public static RuleBase newRuleBase(String kbaseId) { + public static InternalRuleBase newRuleBase(String kbaseId) { return newRuleBase( kbaseId, RuleBaseFactory.newKnowledgeBaseConfiguration() ); } @@ -88,7 +90,7 @@ public static RuleBase newRuleBase(String kbaseId) { * @return * The KnowledgeBase */ - public static RuleBase newRuleBase(KieBaseConfiguration conf) { + public static InternalRuleBase newRuleBase(KieBaseConfiguration conf) { return newRuleBase( UUID.randomUUID().toString(), conf ); } @@ -104,8 +106,8 @@ public static RuleBase newRuleBase(KieBaseConfiguration conf) { * @return * The KnowledgeBase */ - public static RuleBase newRuleBase(String kbaseId, KieBaseConfiguration conf) { - return new KnowledgeBaseImpl( kbaseId, (CompositeBaseConfiguration) conf); + public static InternalRuleBase newRuleBase(String kbaseId, KieBaseConfiguration conf) { + return new KnowledgeBaseImpl(kbaseId, (CompositeBaseConfiguration) conf); } /** diff --git a/drools-core/src/main/java/org/drools/core/impl/WorkingMemoryReteExpireAction.java b/drools-core/src/main/java/org/drools/core/impl/WorkingMemoryReteExpireAction.java index c8492e5aff4..29949977ac1 100644 --- a/drools-core/src/main/java/org/drools/core/impl/WorkingMemoryReteExpireAction.java +++ b/drools-core/src/main/java/org/drools/core/impl/WorkingMemoryReteExpireAction.java @@ -1,59 +1,64 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.impl; -import java.io.IOException; - +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalWorkingMemoryEntryPoint; +import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.WorkingMemoryAction; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.phreak.PropagationEntry; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.common.PropagationContext; + +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; import static org.drools.core.common.PhreakPropagationContextFactory.createPropagationContextForFact; public class WorkingMemoryReteExpireAction extends PropagationEntry.AbstractPropagationEntry - implements WorkingMemoryAction { + implements WorkingMemoryAction, Externalizable { - protected EventFactHandle factHandle; + protected DefaultEventHandle factHandle; protected ObjectTypeNode node; - protected WorkingMemoryReteExpireAction() { } + public WorkingMemoryReteExpireAction() { } - public WorkingMemoryReteExpireAction(final EventFactHandle factHandle) { + public WorkingMemoryReteExpireAction(final DefaultEventHandle factHandle) { this.factHandle = factHandle; } - public WorkingMemoryReteExpireAction(final EventFactHandle factHandle, + public WorkingMemoryReteExpireAction(final DefaultEventHandle factHandle, final ObjectTypeNode node) { this(factHandle); this.node = node; factHandle.increaseOtnCount(); } - public EventFactHandle getFactHandle() { + public DefaultEventHandle getFactHandle() { return factHandle; } - public void setFactHandle(EventFactHandle factHandle) { + public void setFactHandle(DefaultEventHandle factHandle) { this.factHandle = factHandle; } @@ -66,7 +71,7 @@ public void setNode(ObjectTypeNode node) { } public WorkingMemoryReteExpireAction(MarshallerReaderContext context) throws IOException { - this.factHandle = (EventFactHandle)context.getHandles().get(context.readLong()); + this.factHandle = (DefaultEventHandle)context.getHandles().get(context.readLong()); final int nodeId = context.readInt(); this.node = (ObjectTypeNode) context.getSinks().get(nodeId); } @@ -85,19 +90,14 @@ public void internalExecute(ReteEvaluator reteEvaluator) { ObjectTypeNode.expireRightTuple(rt); } ); - expireFactHandle( reteEvaluator, factHandle ); + expireFactHandle( factHandle ); } - private static void expireFactHandle( ReteEvaluator reteEvaluator, EventFactHandle factHandle ) { + private static void expireFactHandle( DefaultEventHandle factHandle) { factHandle.decreaseOtnCount(); - if (factHandle.getOtnCount() == 0) { + if (factHandle.getOtnCount() <= 0) { factHandle.setExpired( true ); - if (factHandle.getActivationsCount() == 0) { - String epId = factHandle.getEntryPointName(); - ( (InternalWorkingMemoryEntryPoint) reteEvaluator.getEntryPoint( epId ) ).removeFromObjectStore( factHandle ); - } else { - factHandle.setPendingRemoveFromStore( true ); - } + factHandle.setPendingRemoveFromStore( true ); } } @@ -116,11 +116,21 @@ public String toString() { return "Expiration of " + factHandle.getObject(); } + @Override + public void writeExternal(ObjectOutput out) throws IOException { + out.writeObject(new DefaultEventHandle(factHandle.getId(), factHandle.getEntryPointId())); // only for STORES_ONLY strategy. Just keep id and entryPointId to be rewired + } + + @Override + public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { + this.factHandle = (DefaultEventHandle) in.readObject(); + } + public static class PartitionAwareWorkingMemoryReteExpireAction extends PropagationEntry.AbstractPartitionedPropagationEntry { - private final EventFactHandle factHandle; + private final DefaultEventHandle factHandle; private final ObjectTypeNode node; - public PartitionAwareWorkingMemoryReteExpireAction(EventFactHandle factHandle, ObjectTypeNode node, int partition) { + public PartitionAwareWorkingMemoryReteExpireAction(DefaultEventHandle factHandle, ObjectTypeNode node, int partition) { super( partition ); this.factHandle = factHandle; this.node = node; @@ -143,7 +153,7 @@ public void internalExecute(ReteEvaluator reteEvaluator ) { }); if (isMainPartition()) { - expireFactHandle( reteEvaluator, factHandle ); + expireFactHandle( factHandle ); } } diff --git a/drools-core/src/main/java/org/drools/core/management/DroolsManagementAgent.java b/drools-core/src/main/java/org/drools/core/management/DroolsManagementAgent.java index eb4e1b3cab9..86314c34ae0 100644 --- a/drools-core/src/main/java/org/drools/core/management/DroolsManagementAgent.java +++ b/drools-core/src/main/java/org/drools/core/management/DroolsManagementAgent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.management; import java.lang.management.ManagementFactory; @@ -26,7 +28,7 @@ import javax.management.StandardMBean; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.RuntimeComponentFactory; import org.kie.api.builder.model.KieSessionModel; import org.kie.api.event.KieRuntimeEventManager; @@ -35,7 +37,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import static org.drools.core.util.Drools.isNativeImage; +import static org.drools.base.util.Drools.isNativeImage; /** * The main management agent for Drools. The purpose of this @@ -56,7 +58,7 @@ static DroolsManagementAgent getInstance() { return DroolsManagementAgentHolder.INSTANCE; } - static ObjectName createObjectNameFor(RuleBase kbase) { + static ObjectName createObjectNameFor(InternalRuleBase kbase) { return DroolsManagementAgent.createObjectName( DroolsManagementAgent.createObjectNameBy(kbase.getContainerId()) + ",kbaseId=" + ObjectName.quote(kbase.getId()) @@ -98,9 +100,9 @@ static String ksessionType(KieSessionModel.KieSessionType ksessionType) { long getNextKnowledgeSessionId(); - void registerKnowledgeBase(RuleBase kbase); + void registerKnowledgeBase(InternalRuleBase kbase); - void unregisterKnowledgeBase(RuleBase kbase); + void unregisterKnowledgeBase(InternalRuleBase kbase); void registerKnowledgeSessionUnderName(CBSKey cbsKey, KieRuntimeEventManager ksession); @@ -228,7 +230,7 @@ public synchronized long getNextKnowledgeSessionId() { } @Override - public void registerKnowledgeBase(RuleBase kbase) { + public void registerKnowledgeBase(InternalRuleBase kbase) { KnowledgeBaseMonitoring mbean = new KnowledgeBaseMonitoring( kbase ); registerMBean( kbase, mbean, @@ -236,7 +238,7 @@ public void registerKnowledgeBase(RuleBase kbase) { } @Override - public void unregisterKnowledgeBase(RuleBase kbase) { + public void unregisterKnowledgeBase(InternalRuleBase kbase) { unregisterMBeansFromOwner(kbase); } @@ -405,12 +407,12 @@ public long getNextKnowledgeSessionId() { } @Override - public void registerKnowledgeBase(RuleBase kbase) { + public void registerKnowledgeBase(InternalRuleBase kbase) { } @Override - public void unregisterKnowledgeBase(RuleBase kbase) { + public void unregisterKnowledgeBase(InternalRuleBase kbase) { } diff --git a/drools-core/src/main/java/org/drools/core/management/GenericKieSessionMonitoringImpl.java b/drools-core/src/main/java/org/drools/core/management/GenericKieSessionMonitoringImpl.java index 016320eb040..5346e90ad3c 100644 --- a/drools-core/src/main/java/org/drools/core/management/GenericKieSessionMonitoringImpl.java +++ b/drools-core/src/main/java/org/drools/core/management/GenericKieSessionMonitoringImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.management; import java.util.Collections; diff --git a/drools-core/src/main/java/org/drools/core/management/KieBaseConfigurationMonitor.java b/drools-core/src/main/java/org/drools/core/management/KieBaseConfigurationMonitor.java index 1a2777ae976..a12a65b93c6 100644 --- a/drools-core/src/main/java/org/drools/core/management/KieBaseConfigurationMonitor.java +++ b/drools-core/src/main/java/org/drools/core/management/KieBaseConfigurationMonitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.management; import org.drools.core.RuleBaseConfiguration; @@ -105,13 +107,6 @@ public boolean isMBeansEnabled() { return kieBaseConf.getOption(MBeansOption.KEY).isEnabled(); } - /* (non-Javadoc) - * @see org.kie.api.management.KBaseConfigurationMonitorMBean#isMultithreadEvaluation() - */ - public boolean isMultithreadEvaluation() { - return ruleBaseConf.isMultithreadEvaluation(); - } - /* (non-Javadoc) * @see org.kie.api.management.KBaseConfigurationMonitorMBean#isRemoveIdentities() */ diff --git a/drools-core/src/main/java/org/drools/core/management/KnowledgeBaseMonitoring.java b/drools-core/src/main/java/org/drools/core/management/KnowledgeBaseMonitoring.java index f1d7b8bd16f..1cf3657fb88 100644 --- a/drools-core/src/main/java/org/drools/core/management/KnowledgeBaseMonitoring.java +++ b/drools-core/src/main/java/org/drools/core/management/KnowledgeBaseMonitoring.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.management; import java.lang.reflect.Type; @@ -49,11 +51,9 @@ import javax.management.openmbean.TabularDataSupport; import javax.management.openmbean.TabularType; -import org.drools.core.base.ClassObjectType; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeNode; -import org.kie.api.KieBaseConfiguration; import org.kie.api.management.KieBaseConfigurationMonitorMBean; import org.kie.api.management.ObjectTypeNodeMonitorMBean; import org.slf4j.Logger; @@ -79,7 +79,7 @@ public class KnowledgeBaseMonitoring // ************************************************************************************************ // MBean attributes // - private RuleBase kbase; + private InternalRuleBase kbase; private ObjectName name; private OpenMBeanInfoSupport info; @@ -113,7 +113,7 @@ public class KnowledgeBaseMonitoring // ************************************************************************************************ // Constructor - public KnowledgeBaseMonitoring(RuleBase kbase) { + public KnowledgeBaseMonitoring(InternalRuleBase kbase) { this.kbase = kbase; this.name = DroolsManagementAgent.createObjectNameFor(kbase); diff --git a/drools-core/src/main/java/org/drools/core/management/ObjectTypeNodeMonitor.java b/drools-core/src/main/java/org/drools/core/management/ObjectTypeNodeMonitor.java index bc2615e6311..d842fd30318 100644 --- a/drools-core/src/main/java/org/drools/core/management/ObjectTypeNodeMonitor.java +++ b/drools-core/src/main/java/org/drools/core/management/ObjectTypeNodeMonitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.management; import org.drools.core.reteoo.ObjectTypeNode; diff --git a/drools-core/src/main/java/org/drools/core/marshalling/ClassObjectMarshallingStrategyAcceptor.java b/drools-core/src/main/java/org/drools/core/marshalling/ClassObjectMarshallingStrategyAcceptor.java index a43fd110f25..d4195e28de4 100644 --- a/drools-core/src/main/java/org/drools/core/marshalling/ClassObjectMarshallingStrategyAcceptor.java +++ b/drools-core/src/main/java/org/drools/core/marshalling/ClassObjectMarshallingStrategyAcceptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.marshalling; import java.util.HashMap; diff --git a/drools-core/src/main/java/org/drools/core/marshalling/MarshallerReaderContext.java b/drools-core/src/main/java/org/drools/core/marshalling/MarshallerReaderContext.java index eeb9d38bca5..edec31bbe66 100644 --- a/drools-core/src/main/java/org/drools/core/marshalling/MarshallerReaderContext.java +++ b/drools-core/src/main/java/org/drools/core/marshalling/MarshallerReaderContext.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.marshalling; import java.io.ObjectInput; @@ -23,11 +27,11 @@ import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.QueryElementFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.PhreakTimerNode.Scheduler; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.ObjectTypeConf; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.core.common.PropagationContext; import org.drools.core.reteoo.Tuple; import org.kie.api.marshalling.ObjectMarshallingStrategy; @@ -39,7 +43,7 @@ public interface MarshallerReaderContext extends ObjectInput { Scheduler removeTimerNodeScheduler( int nodeId, TupleKey key ); InternalWorkingMemory getWorkingMemory(); - RuleBase getKnowledgeBase(); + InternalRuleBase getKnowledgeBase(); Map getHandles(); Map getTerminalTupleMap(); ActivationsFilter getFilter(); diff --git a/drools-core/src/main/java/org/drools/core/marshalling/MarshallerWriteContext.java b/drools-core/src/main/java/org/drools/core/marshalling/MarshallerWriteContext.java index 00564dfe1b2..28c8b6d14bc 100644 --- a/drools-core/src/main/java/org/drools/core/marshalling/MarshallerWriteContext.java +++ b/drools-core/src/main/java/org/drools/core/marshalling/MarshallerWriteContext.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.marshalling; import java.io.ObjectOutput; @@ -19,14 +23,14 @@ import org.drools.core.common.BaseNode; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.kie.api.marshalling.ObjectMarshallingStrategy; import org.kie.api.marshalling.ObjectMarshallingStrategyStore; import org.kie.api.runtime.Environment; public interface MarshallerWriteContext extends ObjectOutput { - RuleBase getKnowledgeBase(); + InternalRuleBase getKnowledgeBase(); ObjectMarshallingStrategyStore getObjectMarshallingStrategyStore(); diff --git a/drools-core/src/main/java/org/drools/core/marshalling/SerializablePlaceholderResolverStrategy.java b/drools-core/src/main/java/org/drools/core/marshalling/SerializablePlaceholderResolverStrategy.java index 499ab77436b..a84339f4e59 100644 --- a/drools-core/src/main/java/org/drools/core/marshalling/SerializablePlaceholderResolverStrategy.java +++ b/drools-core/src/main/java/org/drools/core/marshalling/SerializablePlaceholderResolverStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.marshalling; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/marshalling/TupleKey.java b/drools-core/src/main/java/org/drools/core/marshalling/TupleKey.java index 8385b432bab..a46d6e8a030 100644 --- a/drools-core/src/main/java/org/drools/core/marshalling/TupleKey.java +++ b/drools-core/src/main/java/org/drools/core/marshalling/TupleKey.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.marshalling; import java.util.Arrays; diff --git a/drools-core/src/main/java/org/drools/core/package-info.java b/drools-core/src/main/java/org/drools/core/package-info.java index 71be29eec10..0e74e2d2171 100644 --- a/drools-core/src/main/java/org/drools/core/package-info.java +++ b/drools-core/src/main/java/org/drools/core/package-info.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - /** * * This is the engine that works off binary RuleBases, you will mostly use WorkingMemory, RuleBase and RuleBaseFactory diff --git a/drools-core/src/main/java/org/drools/core/phreak/AbstractReactiveObject.java b/drools-core/src/main/java/org/drools/core/phreak/AbstractReactiveObject.java index 78b0eef3426..04489697c9f 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/AbstractReactiveObject.java +++ b/drools-core/src/main/java/org/drools/core/phreak/AbstractReactiveObject.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.phreak; -import org.drools.core.reteoo.Tuple; +import org.drools.base.phreak.ReactiveObject; +import org.drools.base.reteoo.BaseTuple; import java.util.Collection; import java.util.Collections; @@ -24,17 +27,17 @@ public class AbstractReactiveObject implements ReactiveObject { - private Collection lts; + private Collection tuples; - public void addLeftTuple(Tuple leftTuple) { - if (lts == null) { - lts = new HashSet<>(); + public void addTuple(BaseTuple tuple) { + if (tuples == null) { + tuples = new HashSet<>(); } - lts.add(leftTuple); + tuples.add(tuple); } - public Collection getLeftTuples() { - return lts != null ? lts : Collections.emptyList(); + public Collection getTuples() { + return tuples != null ? tuples : Collections.emptyList(); } protected void notifyModification() { @@ -42,7 +45,7 @@ protected void notifyModification() { } @Override - public void removeLeftTuple(Tuple leftTuple) { - lts.remove(leftTuple); + public void removeTuple(BaseTuple tuple) { + tuples.remove(tuple); } } diff --git a/drools-core/src/main/java/org/drools/core/phreak/BuildtimeSegmentUtilities.java b/drools-core/src/main/java/org/drools/core/phreak/BuildtimeSegmentUtilities.java index 77347346194..ab794a071bc 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/BuildtimeSegmentUtilities.java +++ b/drools-core/src/main/java/org/drools/core/phreak/BuildtimeSegmentUtilities.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.ArrayList; import java.util.List; -import org.drools.core.common.NetworkNode; -import org.drools.core.impl.RuleBase; +import org.drools.base.common.NetworkNode; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.AsyncReceiveNode; import org.drools.core.reteoo.AsyncSendNode; import org.drools.core.reteoo.BetaNode; @@ -32,7 +35,7 @@ import org.drools.core.reteoo.LeftTupleSinkNode; import org.drools.core.reteoo.LeftTupleSinkPropagator; import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.PathEndNode.PathMemSpec; @@ -116,7 +119,7 @@ public static long getPathAllLinkedMaskTest(SegmentPrototype[] smems, PathEndNod return allLinkedMaskTest; } - public static SegmentPrototype[] createPathProtoMemories(TerminalNode tn, TerminalNode removingTn, RuleBase rbase) { + public static SegmentPrototype[] createPathProtoMemories(TerminalNode tn, TerminalNode removingTn, InternalRuleBase rbase) { // Will initialise all segments in a path SegmentPrototype[] smems = createLeftTupleNodeProtoMemories(tn, removingTn, rbase); @@ -128,7 +131,7 @@ public static SegmentPrototype[] createPathProtoMemories(TerminalNode tn, Termin return smems; } - public static SegmentPrototype[] createLeftTupleNodeProtoMemories(LeftTupleNode lts, TerminalNode removingTn, RuleBase rbase) { + public static SegmentPrototype[] createLeftTupleNodeProtoMemories(LeftTupleNode lts, TerminalNode removingTn, InternalRuleBase rbase) { LeftTupleNode segmentRoot = lts; LeftTupleNode segmentTip = lts; List smems = new ArrayList<>(); @@ -187,7 +190,7 @@ static LeftTupleNode getFirstConditionalBranchNode(LeftTupleNode tupleSource) { /** * Initialises the NodeSegment memory for all nodes in the segment. */ - public static SegmentPrototype createSegmentMemory(LeftTupleNode segmentRoot, LeftTupleNode segmentTip, int recordBefore, TerminalNode removingTn, RuleBase rbase) { + public static SegmentPrototype createSegmentMemory(LeftTupleNode segmentRoot, LeftTupleNode segmentTip, int recordBefore, TerminalNode removingTn, InternalRuleBase rbase) { LeftTupleNode node = segmentRoot; int nodeTypesInSegment = 0; @@ -351,7 +354,7 @@ private static long processLiaNode(LeftInputAdapterNode tupleSource, List memories, List nodes, - long nodePosMask, long allLinkedTestMask, boolean updateNodeBit, TerminalNode removingTn, RuleBase rbase) { + long nodePosMask, long allLinkedTestMask, boolean updateNodeBit, TerminalNode removingTn, InternalRuleBase rbase) { RightInputAdapterNode riaNode = null; if (betaNode.isRightInputIsRiaNode()) { // there is a subnetwork, so create all it's segment memory prototypes diff --git a/drools-core/src/main/java/org/drools/core/phreak/EagerPhreakBuilder.java b/drools-core/src/main/java/org/drools/core/phreak/EagerPhreakBuilder.java index ff1145fd724..c77f8674551 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/EagerPhreakBuilder.java +++ b/drools-core/src/main/java/org/drools/core/phreak/EagerPhreakBuilder.java @@ -1,41 +1,35 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.phreak; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import java.util.stream.Collectors; - +import org.drools.base.common.NetworkNode; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.WorkingMemory; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Memory; -import org.drools.core.common.NetworkNode; import org.drools.core.common.PropagationContext; import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.TupleSets; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.AccumulateNode.AccumulateContext; import org.drools.core.reteoo.AccumulateNode.AccumulateMemory; import org.drools.core.reteoo.AlphaTerminalNode; @@ -47,11 +41,9 @@ import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleNode; import org.drools.core.reteoo.LeftTupleSinkNode; -import org.drools.core.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectSink; import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.reteoo.ObjectTypeNode.ObjectTypeNodeMemory; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.PathEndNode.PathMemSpec; import org.drools.core.reteoo.PathMemory; @@ -71,6 +63,16 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Set; +import java.util.stream.Collectors; + import static org.drools.core.phreak.BuildtimeSegmentUtilities.isAssociatedWith; public class EagerPhreakBuilder implements PhreakBuilder { @@ -82,7 +84,7 @@ public class EagerPhreakBuilder implements PhreakBuilder { * For add tuples are processed after the segments and pmems have been adjusted */ @Override - public void addRule(TerminalNode tn, Collection wms, RuleBase kBase) { + public void addRule(TerminalNode tn, Collection wms, InternalRuleBase kBase) { if (log.isTraceEnabled()) { log.trace("Adding Rule {}", tn.getRule().getName()); } @@ -125,7 +127,7 @@ public void addRule(TerminalNode tn, Collection wms, Rule * Note the */ @Override - public void removeRule(TerminalNode tn, Collection wms, RuleBase kBase) { + public void removeRule(TerminalNode tn, Collection wms, InternalRuleBase kBase) { if (log.isTraceEnabled()) { log.trace("Removing Rule {}", tn.getRule().getName()); } @@ -268,7 +270,7 @@ public static void insertLiaFacts(LeftTupleNode startNode, InternalWorkingMemory } } - public static SegmentPrototype processSplit(LeftTupleNode splitNode, RuleBase kbase, Collection wms, Set smemsToNotify) { + public static SegmentPrototype processSplit(LeftTupleNode splitNode, InternalRuleBase kbase, Collection wms, Set smemsToNotify) { LeftTupleNode segmentRoot = BuildtimeSegmentUtilities.findSegmentRoot(splitNode); SegmentPrototype proto1 = kbase.getSegmentPrototype(segmentRoot); if ( proto1.getTipNode() != splitNode) { @@ -390,7 +392,7 @@ public static void splitSegment(InternalWorkingMemory wm, SegmentMemory sm1, Seg notifyImpactedSegments(sm2, wm, smemsToNotify); } - public static SegmentPrototype splitSegment(SegmentPrototype proto1, LeftTupleNode splitNode, RuleBase kbase, Collection wms, Set smemsToNotify) { + public static SegmentPrototype splitSegment(SegmentPrototype proto1, LeftTupleNode splitNode, InternalRuleBase kbase, Collection wms, Set smemsToNotify) { boolean proto1WasEager = proto1.requiresEager(); // Create the new segment proto @@ -529,7 +531,7 @@ private static void splitBitMasks(SegmentPrototype sm1, SegmentPrototype sm2) { private static void addNewPaths(List exclBranchRoots, TerminalNode tn, - Collection wms, RuleBase kBase, + Collection wms, InternalRuleBase kBase, Set smemsToNotify) { // create protos BuildtimeSegmentUtilities.createPathProtoMemories(tn, null, kBase); @@ -619,7 +621,7 @@ public static boolean isInsideSubnetwork(PathEndNode endNode, SegmentPrototype s } public static class Remove { - private static void removeExistingPaths(List exclBranchRoots, TerminalNode tn, Collection wms, RuleBase kbase) { + private static void removeExistingPaths(List exclBranchRoots, TerminalNode tn, Collection wms, InternalRuleBase kbase) { // update existing SegmentProtos (before removing path branch root) to remove EndNodes // for nodes after, just remove them from the cache for ( PathEndNode endNode : tn.getPathEndNodes() ) { @@ -717,7 +719,7 @@ private static void removeExistingPaths(List exclBranchRoots, TerminalNode } - private static void processMerges(LeftTupleNode splitNode, TerminalNode tn, RuleBase kBase, Collection wms, Set visited, Set smemsToNotify) { + private static void processMerges(LeftTupleNode splitNode, TerminalNode tn, InternalRuleBase kBase, Collection wms, Set visited, Set smemsToNotify) { // it's possible for a rule to have multiple exclBranches, pointing to the same parent. So need to ensure it's processed once. if ( !visited.add(splitNode.getId())) { return; @@ -753,7 +755,7 @@ private static void processMerges(LeftTupleNode splitNode, TerminalNode tn, Rule } } - public static void mergeSegments(SegmentPrototype proto1, SegmentPrototype proto2, RuleBase kbase, Collection wms) { + public static void mergeSegments(SegmentPrototype proto1, SegmentPrototype proto2, InternalRuleBase kbase, Collection wms) { boolean proto2WasEager = proto2.requiresEager(); LeftTupleNode[] origNodes = proto1.getNodesInSegment(); @@ -870,10 +872,10 @@ private static void mergeSegment(SegmentPrototype proto1, Memory m1, SegmentProt sm1.setNodeMemories(mems); - mergeSegment(sm1, sm2, proto1, origNodes, wm); + mergeSegment(sm1, sm2, proto1, origNodes); } - private static void mergeSegment(SegmentMemory sm1, SegmentMemory sm2, SegmentPrototype proto1, LeftTupleNode[] origNodes, InternalWorkingMemory wm) { + private static void mergeSegment(SegmentMemory sm1, SegmentMemory sm2, SegmentPrototype proto1, LeftTupleNode[] origNodes) { if (sm1.getTipNode().getType() == NodeTypeEnums.LeftInputAdapterNode && !sm2.getStagedLeftTuples().isEmpty()) { // If a rule has not been linked, lia can still have child segments with staged tuples that did not get flushed // these are safe to just move to the parent SegmentMemory @@ -983,7 +985,7 @@ private static void deleteFactsFromRightInput(BetaNode bn, InternalWorkingMemory if (source instanceof WindowNode) { WindowNode.WindowMemory memory = (WindowNode.WindowMemory) wm.getNodeMemories().peekNodeMemory(source); if (memory != null) { - for (EventFactHandle factHandle : memory.getFactHandles()) { + for (DefaultEventHandle factHandle : memory.getFactHandles()) { factHandle.forEachRightTuple(rt -> { if (source.equals(rt.getTupleSink())) { rt.unlinkFromRightParent(); @@ -1065,7 +1067,7 @@ private static void processLeftTuples(LeftTupleNode node, boolean insert, Termin Tuple lt = BetaNode.getFirstTuple(bm.getLeftTupleMemory(), it); for (; lt != null; lt = (LeftTuple) it.next(lt)) { AccumulateContext accctx = (AccumulateContext) lt.getContextObject(); - visitChild(accctx.getResultLeftTuple(), insert, wm, tn); + visitChild((LeftTuple) accctx.getResultLeftTuple(), insert, wm, tn); } } else if (NodeTypeEnums.ExistsNode == node.getType() && !((BetaNode) node).isRightInputIsRiaNode()) { // do not process exists with subnetworks @@ -1116,10 +1118,9 @@ private static void processLeftTuplesOnLian( InternalWorkingMemory wm, boolean i while (os.getType() != NodeTypeEnums.ObjectTypeNode) { os = os.getParentObjectSource(); } - ObjectTypeNode otn = (ObjectTypeNode) os; - final ObjectTypeNodeMemory omem = wm.getNodeMemory(otn); // For some reason cannot move this to peek, as TruthMaintenanceTEst.testLogicalInsertionsDynamicRule fails - Iterator it = omem.iterator(); + ObjectTypeNode otn = (ObjectTypeNode) os; + Iterator it = otn.getFactHandlesIterator(wm); while (it.hasNext()) { InternalFactHandle fh = it.next(); fh.forEachLeftTuple( lt -> { @@ -1153,7 +1154,7 @@ private static void visitChild(InternalWorkingMemory wm, boolean insert, Termina private static void visitChild(LeftTuple lt, boolean insert, InternalWorkingMemory wm, TerminalNode tn) { LeftTuple prevLt = null; - LeftTupleSinkNode sink = lt.getTupleSink(); + LeftTupleSinkNode sink = (LeftTupleSinkNode) lt.getTupleSink(); for ( ; sink != null; sink = sink.getNextLeftTupleSinkNode() ) { if ( lt != null ) { @@ -1192,10 +1193,10 @@ private static void visitChild(LeftTuple lt, boolean insert, InternalWorkingMemo } } - private static void insertPeerRightTuple( LeftTuple lt, InternalWorkingMemory wm, TerminalNode tn, boolean insert ) { + private static void insertPeerRightTuple(LeftTuple lt, InternalWorkingMemory wm, TerminalNode tn, boolean insert ) { // There's a shared RightInputAdapterNode, so check if one of its sinks is associated only to the new rule LeftTuple prevLt = null; - RightInputAdapterNode rian = lt.getTupleSink(); + RightInputAdapterNode rian = (RightInputAdapterNode) lt.getTupleSink(); for (ObjectSink sink : rian.getObjectSinkPropagator().getSinks()) { if (lt != null) { @@ -1259,7 +1260,7 @@ private static void iterateLeftTuple(LeftTuple lt, InternalWorkingMemory wm) { } } else { if (lt.getContextObject() instanceof AccumulateContext) { - LeftTuple resultLt = (( AccumulateContext ) lt.getContextObject()).getResultLeftTuple(); + LeftTuple resultLt = (LeftTuple) (( AccumulateContext ) lt.getContextObject()).getResultLeftTuple(); if (resultLt != null) { iterateLeftTuple( resultLt, wm ); } @@ -1296,7 +1297,7 @@ static void deleteLeftTuple(LeftTuple removingLt, LeftTuple removingLt2, LeftTup return; } - InternalFactHandle fh = removingLt.getFactHandle(); + InternalFactHandle fh = (InternalFactHandle) removingLt.getFactHandle(); // This is the first LT in a peer chain. Only this LT is hooked into the left and right parent LT and RT and // if it's the root (form the lian) it will be hooked itno the FH. @@ -1306,7 +1307,7 @@ static void deleteLeftTuple(LeftTuple removingLt, LeftTuple removingLt2, LeftTup LeftTuple rightPrevious = removingLt.getRightParentPrevious(); LeftTuple rightNext = removingLt.getRightParentNext(); - LeftTuple leftParent = removingLt.getLeftParent(); + LeftTuple leftParent = removingLt.getLeftParent(); RightTuple rightParent = removingLt.getRightParent(); // This tuple is the first peer and thus is linked into the left parent LT. diff --git a/drools-core/src/main/java/org/drools/core/phreak/ExecutableEntry.java b/drools-core/src/main/java/org/drools/core/phreak/ExecutableEntry.java index f8ed67b5ef6..2ba0bb63bcd 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/ExecutableEntry.java +++ b/drools-core/src/main/java/org/drools/core/phreak/ExecutableEntry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; public interface ExecutableEntry { diff --git a/drools-core/src/main/java/org/drools/core/phreak/LazyPhreakBuilder.java b/drools-core/src/main/java/org/drools/core/phreak/LazyPhreakBuilder.java index 4866eb62b68..418dbf4d7fb 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/LazyPhreakBuilder.java +++ b/drools-core/src/main/java/org/drools/core/phreak/LazyPhreakBuilder.java @@ -1,32 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.phreak; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.drools.core.common.EventFactHandle; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; @@ -36,8 +30,7 @@ import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TupleSets; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.AbstractTerminalNode; import org.drools.core.reteoo.AccumulateNode; import org.drools.core.reteoo.AccumulateNode.AccumulateContext; @@ -58,11 +51,9 @@ import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.LeftTupleSinkNode; import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectSink; import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.reteoo.ObjectTypeNode.ObjectTypeNodeMemory; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.PathMemory; import org.drools.core.reteoo.QueryElementNode; @@ -82,6 +73,16 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; + import static org.drools.core.phreak.BuildtimeSegmentUtilities.JOIN_NODE_BIT; import static org.drools.core.phreak.BuildtimeSegmentUtilities.NOT_NODE_BIT; import static org.drools.core.phreak.BuildtimeSegmentUtilities.REACTIVE_EXISTS_NODE_BIT; @@ -106,7 +107,7 @@ class LazyPhreakBuilder implements PhreakBuilder { * For add tuples are processed after the segments and pmems have been adjusted */ @Override - public void addRule(TerminalNode tn, Collection wms, RuleBase kBase) { + public void addRule(TerminalNode tn, Collection wms, InternalRuleBase kBase) { if (log.isTraceEnabled()) { log.trace("Adding Rule {}", tn.getRule().getName()); } @@ -166,7 +167,7 @@ public void addRule(TerminalNode tn, Collection wms, Rule * For remove tuples are processed before the segments and pmems have been adjusted */ @Override - public void removeRule( TerminalNode tn, Collection wms, RuleBase kBase) { + public void removeRule( TerminalNode tn, Collection wms, InternalRuleBase kBase) { if (log.isTraceEnabled()) { log.trace("Removing Rule {}", tn.getRule().getName()); } @@ -772,7 +773,7 @@ private static void deleteFactsFromRightInput(BetaNode bn, InternalWorkingMemory ObjectSource source = bn.getRightInput(); if (source instanceof WindowNode) { WindowNode.WindowMemory memory = wm.getNodeMemory(((WindowNode) source)); - for (EventFactHandle factHandle : memory.getFactHandles()) { + for (DefaultEventHandle factHandle : memory.getFactHandles()) { factHandle.forEachRightTuple( rt -> { if (source.equals(rt.getTupleSink())) { rt.unlinkFromRightParent(); @@ -827,26 +828,25 @@ private static void processLeftTuples(LeftTupleNode node, InternalWorkingMemory Tuple lt = BetaNode.getFirstTuple(bm.getLeftTupleMemory(), it); for (; lt != null; lt = (LeftTuple) it.next(lt)) { AccumulateContext accctx = (AccumulateContext) lt.getContextObject(); - visitChild(accctx.getResultLeftTuple(), insert, wm, rule); + visitChild( (LeftTuple) accctx.getResultLeftTuple(), insert, wm, rule); } - } else if (NodeTypeEnums.ExistsNode == node.getType() && - !((BetaNode)node).isRightInputIsRiaNode()) { // do not process exists with subnetworks + } else if (NodeTypeEnums.ExistsNode == node.getType() && !node.isRightInputIsRiaNode()) { // do not process exists with subnetworks // If there is a subnetwork, then there is no populated RTM, but the LTM is populated, - // so this would be procsssed in the "else". + // so this would be processed in the "else". bm = (BetaMemory) wm.getNodeMemory((MemoryFactory) node); FastIterator it = bm.getRightTupleMemory().fullFastIterator(); // done off the RightTupleMemory, as exists only have unblocked tuples on the left side - RightTuple rt = (RightTuple) BetaNode.getFirstTuple(bm.getRightTupleMemory(), it); - for (; rt != null; rt = (RightTuple) it.next(rt)) { + for (RightTuple rt = (RightTuple) BetaNode.getFirstTuple(bm.getRightTupleMemory(), it); rt != null; rt = (RightTuple) it.next(rt)) { for (LeftTuple lt = rt.getBlocked(); lt != null; lt = lt.getBlockedNext()) { - visitChild(wm, insert, rule, it, lt); + visitLeftTuple(wm, insert, rule, lt); } } } else { bm = (BetaMemory) wm.getNodeMemory((MemoryFactory) node); FastIterator it = bm.getLeftTupleMemory().fullFastIterator(); - Tuple lt = BetaNode.getFirstTuple(bm.getLeftTupleMemory(), it); - visitChild(wm, insert, rule, it, lt); + for (LeftTuple lt = (LeftTuple)BetaNode.getFirstTuple(bm.getLeftTupleMemory(), it); lt != null; lt = (LeftTuple) it.next(lt)) { + visitLeftTuple(wm, insert, rule, lt); + } } return; } else if (NodeTypeEnums.FromNode == node.getType()) { @@ -874,14 +874,9 @@ private static void processLeftTuplesOnLian( InternalWorkingMemory wm, boolean i while (os.getType() != NodeTypeEnums.ObjectTypeNode) { os = os.getParentObjectSource(); } - ObjectTypeNode otn = (ObjectTypeNode) os; - final ObjectTypeNodeMemory omem = wm.getNodeMemory(otn); - if (omem == null) { - // no OTN memory yet, i.e. no inserted matching objects, so no Tuples to process - return; - } - Iterator it = omem.iterator(); + ObjectTypeNode otn = (ObjectTypeNode) os; + Iterator it = otn.getFactHandlesIterator(wm); while (it.hasNext()) { InternalFactHandle fh = it.next(); fh.forEachLeftTuple( lt -> { @@ -891,31 +886,27 @@ private static void processLeftTuplesOnLian( InternalWorkingMemory wm, boolean i if (lt.getTupleSource().isAssociatedWith(rule)) { visitChild(lt, insert, wm, rule); - if (lt.getHandlePrevious() != null) { + if (lt.getHandlePrevious() != null && nextLt != null) { lt.getHandlePrevious().setHandleNext( nextLt ); - if (nextLt != null) { - nextLt.setHandlePrevious( lt.getHandlePrevious() ); - } + nextLt.setHandlePrevious( lt.getHandlePrevious() ); } } }); } } - private static void visitChild(InternalWorkingMemory wm, boolean insert, Rule rule, FastIterator it, Tuple lt) { - for (; lt != null; lt = (LeftTuple) it.next(lt)) { - LeftTuple childLt = lt.getFirstChild(); - while (childLt != null) { - LeftTuple nextLt = childLt.getHandleNext(); - visitChild(childLt, insert, wm, rule); - childLt = nextLt; - } + private static void visitLeftTuple(InternalWorkingMemory wm, boolean insert, Rule rule, LeftTuple lt) { + LeftTuple childLt = lt.getFirstChild(); + while (childLt != null) { + LeftTuple nextLt = childLt.getHandleNext(); + visitChild(childLt, insert, wm, rule); + childLt = nextLt; } } private static void visitChild(LeftTuple lt, boolean insert, InternalWorkingMemory wm, Rule rule) { LeftTuple prevLt = null; - LeftTupleSinkNode sink = lt.getTupleSink(); + LeftTupleSinkNode sink = (LeftTupleSinkNode) lt.getTupleSink(); for ( ; sink != null; sink = sink.getNextLeftTupleSinkNode() ) { @@ -958,7 +949,7 @@ private static void visitChild(LeftTuple lt, boolean insert, InternalWorkingMemo private static void insertPeerRightTuple( LeftTuple lt, InternalWorkingMemory wm, Rule rule, boolean insert ) { // There's a shared RightInputAdaterNode, so check if one of its sinks is associated only to the new rule LeftTuple prevLt = null; - RightInputAdapterNode rian = lt.getTupleSink(); + RightInputAdapterNode rian = (RightInputAdapterNode) lt.getTupleSink(); for (ObjectSink sink : rian.getObjectSinkPropagator().getSinks()) { if (lt != null) { @@ -1020,7 +1011,7 @@ private static void iterateLeftTuple(LeftTuple lt, InternalWorkingMemory wm) { } } else { if (lt.getContextObject() instanceof AccumulateContext) { - LeftTuple resultLt = (( AccumulateContext ) lt.getContextObject()).getResultLeftTuple(); + LeftTuple resultLt = (LeftTuple) (( AccumulateContext ) lt.getContextObject()).getResultLeftTuple(); if (resultLt != null) { iterateLeftTuple( resultLt, wm ); } @@ -1260,7 +1251,7 @@ private static class PathEndNodeMemories { List otherPmems = new ArrayList<>(); } - private static PathEndNodes getPathEndNodes(RuleBase kBase, + private static PathEndNodes getPathEndNodes(InternalRuleBase kBase, LeftTupleNode lt, TerminalNode tn, Rule processedRule, @@ -1283,7 +1274,7 @@ private static PathEndNodes getPathEndNodes(RuleBase kBase, return endNodes; } - private static void collectPathEndNodes(RuleBase kBase, + private static void collectPathEndNodes(InternalRuleBase kBase, LeftTupleNode lt, PathEndNodes endNodes, TerminalNode tn, @@ -1332,7 +1323,7 @@ private static void collectPathEndNodes(RuleBase kBase, } } - private static void invalidateRootNode( RuleBase kBase, LeftTupleNode lt ) { + private static void invalidateRootNode(InternalRuleBase kBase, LeftTupleNode lt) { while (!isRootNode( lt, null )) { lt = lt.getLeftTupleSource(); } @@ -1502,7 +1493,7 @@ private static SegmentMemory createSegmentMemory(LeftTupleSource segmentRoot, Re private static boolean processQueryNode(QueryElementNode queryNode, ReteEvaluator reteEvaluator, LeftTupleSource segmentRoot, SegmentMemory smem, List memories, long nodePosMask) { // Initialize the QueryElementNode and have it's memory reference the actual query SegmentMemory - SegmentMemory querySmem = getQuerySegmentMemory(reteEvaluator, segmentRoot, queryNode); + SegmentMemory querySmem = getQuerySegmentMemory(reteEvaluator, queryNode); QueryElementNode.QueryElementNodeMemory queryNodeMem = smem.createNodeMemory(queryNode, reteEvaluator); queryNodeMem.setNodePosMaskBit(nodePosMask); queryNodeMem.setQuerySegmentMemory(querySmem); @@ -1655,7 +1646,7 @@ private static int updateRiaAndTerminalMemory( LeftTupleSource lt, } } else if (NodeTypeEnums.isTerminalNode(sink)) { - pmem = (PathMemory) reteEvaluator.getNodeMemory((MemoryFactory) sink); + pmem = reteEvaluator.getNodeMemory((AbstractTerminalNode) sink); } if (pmem != null && smem.getPos() < pmem.getSegmentMemories().length) { diff --git a/drools-core/src/main/java/org/drools/core/phreak/LeftTupleEntry.java b/drools-core/src/main/java/org/drools/core/phreak/LeftTupleEntry.java index 98729699863..eecff317b6f 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/LeftTupleEntry.java +++ b/drools-core/src/main/java/org/drools/core/phreak/LeftTupleEntry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.Memory; @@ -22,7 +25,7 @@ import org.drools.core.common.PropagationContext; public class LeftTupleEntry implements TupleEntry { - private final LeftTuple lt; + private final LeftTuple lt; private final PropagationContext pctx; private final Memory nodeMemory; private final int propagationType; diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakAccumulateNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakAccumulateNode.java index 1edc85f1faf..e350f760052 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakAccumulateNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakAccumulateNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.BetaConstraints; @@ -22,21 +25,23 @@ import org.drools.core.common.TupleSetsImpl; import org.drools.core.reteoo.AccumulateNode; import org.drools.core.reteoo.AccumulateNode.AccumulateContext; -import org.drools.core.reteoo.AccumulateNode.AccumulateContextEntry; +import org.drools.base.reteoo.AccumulateContextEntry; import org.drools.core.reteoo.AccumulateNode.AccumulateMemory; import org.drools.core.reteoo.AccumulateNode.BaseAccumulation; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.RightTuple; +import org.drools.core.reteoo.RightTupleImpl; import org.drools.core.reteoo.TupleMemory; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.core.common.PropagationContext; import org.drools.core.reteoo.Tuple; import org.drools.core.util.AbstractHashTable; import org.drools.core.util.FastIterator; +import org.kie.api.runtime.rule.FactHandle; import static org.drools.core.phreak.RuleNetworkEvaluator.normalizeStagedTuples; @@ -169,8 +174,8 @@ private void doLeftInserts(AccumulateNode accNode, FastIterator rightIt = accNode.getRightIterator(rtm); - for (RightTuple rightTuple = accNode.getFirstRightTuple(leftTuple, rtm, rightIt); rightTuple != null; ) { - RightTuple nextRightTuple = (RightTuple) rightIt.next(rightTuple); + for (RightTupleImpl rightTuple = accNode.getFirstRightTuple(leftTuple, rtm, rightIt); rightTuple != null; ) { + RightTupleImpl nextRightTuple = (RightTupleImpl) rightIt.next(rightTuple); if (constraints.isAllowedCachedLeft(contextEntry, rightTuple.getFactHandleForEvaluation())) { @@ -573,8 +578,8 @@ private void doLeftDeletes(AccumulateNode accNode, protected void propagateDelete( TupleSets trgLeftTuples, TupleSets stagedLeftTuples, Object accPropCtx ) { AccumulateContextEntry entry = (AccumulateContextEntry) accPropCtx; if ( entry.isPropagated() ) { - normalizeStagedTuples( stagedLeftTuples, entry.getResultLeftTuple() ); - trgLeftTuples.addDelete( entry.getResultLeftTuple() ); + normalizeStagedTuples( stagedLeftTuples, (LeftTuple) entry.getResultLeftTuple() ); + trgLeftTuples.addDelete( (LeftTuple) entry.getResultLeftTuple() ); } } @@ -642,7 +647,7 @@ protected final void propagateResult(AccumulateNode accNode, LeftTupleSink sink, if ( !allowNullPropagation && result == null) { if ( accPropCtx.isPropagated()) { // retract - trgLeftTuples.addDelete( accPropCtx.getResultLeftTuple()); + trgLeftTuples.addDelete( (LeftTuple) accPropCtx.getResultLeftTuple()); accPropCtx.setPropagated( false ); } return; @@ -653,7 +658,7 @@ protected final void propagateResult(AccumulateNode accNode, LeftTupleSink sink, accPropCtx.setResultFactHandle(handle); accPropCtx.setResultLeftTuple( sink.createLeftTuple(handle, leftTuple, sink )); } else { - accPropCtx.getResultFactHandle().setObject( createResult(accNode, key, result) ); + ((InternalFactHandle)accPropCtx.getResultFactHandle()).setObject( createResult(accNode, key, result) ); } // First alpha node filters @@ -675,7 +680,7 @@ protected final void propagateResult(AccumulateNode accNode, LeftTupleSink sink, } - LeftTuple childLeftTuple = accPropCtx.getResultLeftTuple(); + LeftTuple childLeftTuple = (LeftTuple) accPropCtx.getResultLeftTuple(); childLeftTuple.setPropagationContext( propagationContext != null ? propagationContext : leftTuple.getPropagationContext() ); if ( accPropCtx.isPropagated()) { @@ -712,7 +717,7 @@ private void addMatch(final AccumulateNode accNode, final boolean useLeftMemory, final boolean leftPropagation) { LeftTuple tuple = leftTuple; - InternalFactHandle handle = rightTuple.getFactHandle(); + InternalFactHandle handle = (InternalFactHandle) rightTuple.getFactHandle(); if (accNode.isRightInputIsRiaNode()) { // if there is a subnetwork, handle must be unwrapped @@ -767,7 +772,7 @@ private boolean removeMatch(final AccumulateNode accNode, match.unlinkFromRightParent(); // if there is a subnetwork, we need to unwrap the object from inside the tuple - InternalFactHandle handle = rightTuple.getFactHandle(); + FactHandle handle = rightTuple.getFactHandle(); LeftTuple tuple = leftParent; if (accNode.isRightInputIsRiaNode()) { tuple = (LeftTuple) rightTuple; @@ -779,7 +784,6 @@ private boolean removeMatch(final AccumulateNode accNode, accctx, tuple, handle, - rightParent, match, reteEvaluator); if (!reversed) { @@ -813,7 +817,7 @@ protected void reaccumulateForLeftTuple(final AccumulateNode accNode, for (LeftTuple childMatch = leftParent.getFirstChild(); childMatch != null; childMatch = childMatch.getHandleNext()) { RightTuple rightTuple = childMatch.getRightParent(); - InternalFactHandle childHandle = rightTuple.getFactHandle(); + FactHandle childHandle = rightTuple.getFactHandle(); LeftTuple tuple = leftParent; if (accNode.isRightInputIsRiaNode()) { // if there is a subnetwork, handle must be unwrapped diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncReceiveNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncReceiveNode.java index c4afccb4938..1ad8fed76da 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncReceiveNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncReceiveNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.BetaConstraints; @@ -23,7 +26,7 @@ import org.drools.core.reteoo.AsyncReceiveNode.AsyncReceiveMemory; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleSink; -import org.drools.core.rule.ContextEntry; +import org.drools.base.rule.ContextEntry; import org.drools.core.util.index.TupleList; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -70,7 +73,7 @@ private static void doPropagateChildLeftTuples(AsyncReceiveNode node, ContextEntry[] context = betaConstraints.createContext(); TupleList leftTuples = memory.getInsertOrUpdateLeftTuples(); - for ( LeftTuple leftTuple = (LeftTuple) leftTuples.getFirst(); leftTuple != null; leftTuple = ( LeftTuple ) leftTuple.getNext() ) { + for ( LeftTuple leftTuple = (LeftTuple) leftTuples.getFirst(); leftTuple != null; leftTuple = (LeftTuple) leftTuple.getNext() ) { betaConstraints.updateFromTuple(context, reteEvaluator, leftTuple); @@ -78,7 +81,7 @@ private static void doPropagateChildLeftTuples(AsyncReceiveNode node, InternalFactHandle factHandle = reteEvaluator.getFactHandleFactory().newFactHandle( message, node.getObjectTypeConf( reteEvaluator ), reteEvaluator, null ); if ( isAllowed( factHandle, node.getAlphaConstraints(), reteEvaluator ) ) { if (betaConstraints.isAllowedCachedLeft(context, factHandle)) { - LeftTuple childLeftTuple = sink.createLeftTuple( factHandle, leftTuple, sink ); + LeftTuple childLeftTuple = sink.createLeftTuple(factHandle, leftTuple, sink ); childLeftTuple.setPropagationContext( leftTuple.getPropagationContext() ); trgLeftTuples.addInsert( childLeftTuple ); } diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncSendNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncSendNode.java index 7675e7f087d..5c79b3b5383 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncSendNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakAsyncSendNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.LinkedHashMap; @@ -28,9 +31,9 @@ import org.drools.core.reteoo.AsyncSendNode.AsyncSendMemory; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.accessor.DataProvider; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.accessor.DataProvider; import org.drools.core.common.PropagationContext; import org.kie.internal.concurrent.ExecutorProviderFactory; @@ -92,12 +95,11 @@ public void doLeftInserts(AsyncSendNode node, betaConstraints.resetTuple(context); } - private void fetchAndSendResults( AsyncSendNode node, AsyncSendMemory memory, ReteEvaluator reteEvaluator, - ContextEntry[] context, BetaConstraints betaConstraints, AlphaNodeFieldConstraint[] alphaConstraints, - DataProvider dataProvider, Class resultClass, LeftTuple leftTuple, PropagationContext propagationContext ) { + private void fetchAndSendResults(AsyncSendNode node, AsyncSendMemory memory, ReteEvaluator reteEvaluator, + ContextEntry[] context, BetaConstraints betaConstraints, AlphaNodeFieldConstraint[] alphaConstraints, + DataProvider dataProvider, Class resultClass, LeftTuple leftTuple, PropagationContext propagationContext ) { for (final java.util.Iterator it = dataProvider.getResults(leftTuple, reteEvaluator, - propagationContext, memory.providerContext); it.hasNext(); ) { final Object object = it.next(); if ( (object == null) || !resultClass.isAssignableFrom( object.getClass() ) ) { diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakBranchNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakBranchNode.java index 3e9508b1254..7d4eefe156b 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakBranchNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakBranchNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.ActivationsManager; @@ -112,7 +115,7 @@ public void doLeftUpdates(ConditionalBranchNode branchNode, RuleTerminalNode oldRtn = null; if (branchTuples.rtnLeftTuple != null) { - oldRtn = branchTuples.rtnLeftTuple.getTupleSink(); + oldRtn = (RuleTerminalNode) branchTuples.rtnLeftTuple.getTupleSink(); } ConditionalExecution conditionalExecution = branchEvaluator.evaluate(leftTuple, activationsManager.getReteEvaluator(), cbm.context); diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakBuilder.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakBuilder.java index a1e5ce39cfe..b2db030c71a 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakBuilder.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakBuilder.java @@ -1,24 +1,27 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.phreak; import java.util.Collection; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.TerminalNode; import static org.drools.util.Config.getConfig; @@ -33,8 +36,8 @@ static boolean isEagerSegmentCreation() { return Holder.EAGER_SEGMENT_CREATION; } - void addRule(TerminalNode tn, Collection wms, RuleBase kBase); - void removeRule(TerminalNode tn, Collection wms, RuleBase kBase); + void addRule(TerminalNode tn, Collection wms, InternalRuleBase kBase); + void removeRule(TerminalNode tn, Collection wms, InternalRuleBase kBase); class Holder { private static final boolean EAGER_SEGMENT_CREATION = Boolean.parseBoolean(getConfig("drools.useEagerSegmentCreation", "false")); diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakEvalNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakEvalNode.java index e32bffc23c8..f062cbf8072 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakEvalNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakEvalNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.ReteEvaluator; @@ -21,7 +24,7 @@ import org.drools.core.reteoo.EvalConditionNode.EvalMemory; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleSink; -import org.drools.core.rule.EvalCondition; +import org.drools.base.rule.EvalCondition; import static org.drools.core.phreak.RuleNetworkEvaluator.normalizeStagedTuples; diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakExistsNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakExistsNode.java index e17b22eff69..dbd0714b2d2 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakExistsNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakExistsNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.BetaConstraints; @@ -24,7 +27,7 @@ import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.TupleMemory; -import org.drools.core.rule.ContextEntry; +import org.drools.base.rule.ContextEntry; import org.drools.core.common.PropagationContext; import org.drools.core.util.FastIterator; @@ -158,9 +161,9 @@ public void doRightInserts(ExistsNode existsNode, reteEvaluator, rightTuple.getFactHandleForEvaluation() ); - for ( LeftTuple leftTuple = existsNode.getFirstLeftTuple( rightTuple, ltm, it ); leftTuple != null; ) { + for ( LeftTuple leftTuple = existsNode.getFirstLeftTuple(rightTuple, ltm, it ); leftTuple != null; ) { // preserve next now, in case we remove this leftTuple - LeftTuple temp = (LeftTuple) it.next( leftTuple ); + LeftTuple temp = (LeftTuple) it.next(leftTuple ); if ( leftTuple.getStagedType() == LeftTuple.UPDATE ) { // ignore, as it will get processed via left iteration. Children cannot be processed twice @@ -307,7 +310,7 @@ public void doRightUpdates(ExistsNode existsNode, if ( ltm != null && ltm.size() > 0 ) { FastIterator leftIt = existsNode.getLeftIterator( ltm ); - LeftTuple firstLeftTuple = existsNode.getFirstLeftTuple( rightTuple, ltm, leftIt ); + LeftTuple firstLeftTuple = existsNode.getFirstLeftTuple(rightTuple, ltm, leftIt ); constraints.updateFromFactHandle( contextEntry, reteEvaluator, @@ -317,7 +320,7 @@ public void doRightUpdates(ExistsNode existsNode, // first process non-blocked tuples, as we know only those ones are in the left memory. for ( LeftTuple leftTuple = firstLeftTuple; leftTuple != null; ) { // preserve next now, in case we remove this leftTuple - LeftTuple temp = (LeftTuple) leftIt.next( leftTuple ); + LeftTuple temp = (LeftTuple) leftIt.next(leftTuple ); if ( leftTuple.getStagedType() == LeftTuple.UPDATE ) { // ignore, as it will get processed via left iteration. Children cannot be processed twice @@ -504,7 +507,7 @@ public void doRightDeletes(ExistsNode existsNode, } } - private static void insertChildLeftTuple( LeftTupleSink sink, TupleSets trgLeftTuples, LeftTuple leftTuple, PropagationContext pctx, boolean useLeftMemory ) { + private static void insertChildLeftTuple(LeftTupleSink sink, TupleSets trgLeftTuples, LeftTuple leftTuple, PropagationContext pctx, boolean useLeftMemory ) { if (!leftTuple.isExpired()) { trgLeftTuples.addInsert( sink.createLeftTuple( leftTuple, sink, pctx, useLeftMemory ) ); } diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakFromNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakFromNode.java index 1d7d714db70..5445933b343 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakFromNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakFromNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.HashMap; @@ -20,23 +23,25 @@ import java.util.Map; import org.drools.core.common.BetaConstraints; -import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TupleSets; +import org.drools.core.reteoo.AbstractTuple; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.FromNode; import org.drools.core.reteoo.FromNode.FromMemory; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.RightTuple; +import org.drools.core.reteoo.RightTupleImpl; import org.drools.core.reteoo.TupleMemory; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.accessor.DataProvider; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.accessor.DataProvider; import org.drools.core.common.PropagationContext; import org.drools.core.reteoo.Tuple; import org.drools.core.util.FastIterator; import org.drools.core.util.LinkedList; +import org.kie.api.runtime.rule.FactHandle; import static org.drools.core.phreak.PhreakJoinNode.updateChildLeftTuple; @@ -95,7 +100,6 @@ public void doLeftInserts(FromNode fromNode, betaConstraints.updateFromTuple(context, reteEvaluator, leftTuple); for (final java.util.Iterator it = dataProvider.getResults(leftTuple, reteEvaluator, - propagationContext, fm.providerContext); it.hasNext(); ) { final Object object = it.next(); if ( (object == null) || !resultClass.isAssignableFrom( object.getClass() ) ) { @@ -139,20 +143,20 @@ public void doLeftUpdates(FromNode fromNode, PropagationContext propagationContext = leftTuple.getPropagationContext(); - final Map previousMatches = (Map) leftTuple.getContextObject(); - final Map newMatches = new HashMap<>(); + final Map previousMatches = (Map) leftTuple.getContextObject(); + final Map newMatches = new HashMap<>(); leftTuple.setContextObject( newMatches ); betaConstraints.updateFromTuple(context, reteEvaluator, leftTuple); - FastIterator rightIt = LinkedList.fastIterator; - for (final java.util.Iterator it = dataProvider.getResults(leftTuple, reteEvaluator, propagationContext, fm.providerContext); it.hasNext(); ) { + FastIterator rightIt = LinkedList.fastIterator; + for (final java.util.Iterator it = dataProvider.getResults(leftTuple, reteEvaluator, fm.providerContext); it.hasNext(); ) { final Object object = it.next(); if ( (object == null) || !resultClass.isAssignableFrom( object.getClass() ) ) { continue; // skip anything if it not assignable } - RightTuple rightTuple = previousMatches.remove(object); + RightTupleImpl rightTuple = previousMatches.remove(object); if (rightTuple == null) { // new match, propagate assert @@ -161,8 +165,7 @@ public void doLeftUpdates(FromNode fromNode, // previous match, so reevaluate and propagate modify if (rightIt.next(rightTuple) != null) { // handle the odd case where more than one object has the same hashcode/equals value - previousMatches.put(object, - (RightTuple) rightIt.next(rightTuple)); + previousMatches.put(object, (RightTupleImpl) rightIt.next(rightTuple)); rightTuple.setNext(null); } } @@ -175,8 +178,8 @@ public void doLeftUpdates(FromNode fromNode, } } - for (RightTuple rightTuple : previousMatches.values()) { - for (RightTuple current = rightTuple; current != null; current = (RightTuple) rightIt.next(current)) { + for (RightTupleImpl rightTuple : previousMatches.values()) { + for (RightTupleImpl current = rightTuple; current != null; current = (RightTupleImpl) rightIt.next(current)) { deleteChildLeftTuple(propagationContext, trgLeftTuples, stagedLeftTuples, current.getFirstChild()); } } @@ -215,7 +218,7 @@ public void doLeftDeletes(FromMemory fm, } } - public static boolean isAllowed( InternalFactHandle factHandle, + public static boolean isAllowed( FactHandle factHandle, AlphaNodeFieldConstraint[] alphaConstraints, ReteEvaluator reteEvaluator, FromMemory fm ) { diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakGroupByNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakGroupByNode.java index a2d7b5f423e..026a8db31e3 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakGroupByNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakGroupByNode.java @@ -1,32 +1,36 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.phreak; -import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TupleSets; import org.drools.core.reteoo.AccumulateNode; -import org.drools.core.reteoo.AccumulateNode.AccumulateContextEntry; +import org.drools.base.reteoo.AccumulateContextEntry; import org.drools.core.reteoo.AccumulateNode.AccumulateMemory; import org.drools.core.reteoo.AccumulateNode.GroupByContext; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.RightTuple; -import org.drools.core.rule.Accumulate; +import org.drools.base.rule.Accumulate; import org.drools.core.common.PropagationContext; import org.drools.core.util.index.TupleList; +import org.kie.api.runtime.rule.FactHandle; public class PhreakGroupByNode extends PhreakAccumulateNode { @@ -103,8 +107,8 @@ protected void reaccumulateForLeftTuple(final AccumulateNode accNode, for (LeftTuple childMatch = (LeftTuple) tupleList.getFirst(); childMatch != null; childMatch = (LeftTuple) childMatch.getNext()) { RightTuple rightTuple = childMatch.getRightParent(); - InternalFactHandle childHandle = rightTuple.getFactHandle(); - LeftTuple tuple = leftTuple; + FactHandle childHandle = rightTuple.getFactHandle(); + LeftTuple tuple = leftTuple; if (accNode.isRightInputIsRiaNode()) { // if there is a subnetwork, handle must be unwrapped tuple = (LeftTuple) rightTuple; @@ -133,7 +137,7 @@ protected void reaccumulateForLeftTuple(final AccumulateNode accNode, } @Override - protected void propagateDelete( TupleSets trgLeftTuples, TupleSets stagedLeftTuples, Object accctx ) { + protected void propagateDelete(TupleSets trgLeftTuples, TupleSets stagedLeftTuples, Object accctx ) { GroupByContext groupByContext = (GroupByContext)accctx; for ( TupleList tupleList : groupByContext.getGroups().values()) { super.propagateDelete(trgLeftTuples, stagedLeftTuples, tupleList.getContext()); diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakJoinNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakJoinNode.java index 010a282557b..b1cecc77005 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakJoinNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakJoinNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.BetaConstraints; @@ -24,7 +27,7 @@ import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.TupleMemory; -import org.drools.core.rule.ContextEntry; +import org.drools.base.rule.ContextEntry; import org.drools.core.util.AbstractHashTable; import org.drools.core.util.FastIterator; @@ -145,7 +148,7 @@ public void doRightInserts(JoinNode joinNode, reteEvaluator, rightTuple.getFactHandleForEvaluation() ); - for ( LeftTuple leftTuple = joinNode.getFirstLeftTuple( rightTuple, ltm, it ); leftTuple != null; leftTuple = (LeftTuple) it.next( leftTuple ) ) { + for ( LeftTuple leftTuple = joinNode.getFirstLeftTuple(rightTuple, ltm, it ); leftTuple != null; leftTuple = (LeftTuple) it.next(leftTuple ) ) { if ( leftTuple.getStagedType() == LeftTuple.UPDATE ) { // ignore, as it will get processed via left iteration. Children cannot be processed twice continue; @@ -288,7 +291,7 @@ public void doRightUpdates(JoinNode joinNode, if ( ltm != null && ltm.size() > 0 ) { FastIterator it = joinNode.getLeftIterator( ltm ); - LeftTuple leftTuple = joinNode.getFirstLeftTuple( rightTuple, ltm, it ); + LeftTuple leftTuple = joinNode.getFirstLeftTuple(rightTuple, ltm, it ); constraints.updateFromFactHandle( contextEntry, reteEvaluator, diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakNetworkNodeFactory.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakNetworkNodeFactory.java index 43e121425d6..062d441bf29 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakNetworkNodeFactory.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakNetworkNodeFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.phreak; import org.kie.api.internal.utils.KieService; diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakNetworkNodeFactoryImpl.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakNetworkNodeFactoryImpl.java index c2fac7cbb65..1c8d023b91f 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakNetworkNodeFactoryImpl.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakNetworkNodeFactoryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.phreak; public class PhreakNetworkNodeFactoryImpl implements PhreakNetworkNodeFactory { diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakNotNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakNotNode.java index 5e49a443c20..84d5e64dbbe 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakNotNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakNotNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.BetaConstraints; @@ -24,7 +27,7 @@ import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.TupleMemory; -import org.drools.core.rule.ContextEntry; +import org.drools.base.rule.ContextEntry; import org.drools.core.common.PropagationContext; import org.drools.core.util.FastIterator; @@ -163,9 +166,9 @@ public void doRightInserts(NotNode notNode, constraints.updateFromFactHandle( contextEntry, reteEvaluator, rightTuple.getFactHandleForEvaluation() ); - for ( LeftTuple leftTuple = notNode.getFirstLeftTuple( rightTuple, ltm, it ); leftTuple != null; ) { + for ( LeftTuple leftTuple = notNode.getFirstLeftTuple(rightTuple, ltm, it ); leftTuple != null; ) { // preserve next now, in case we remove this leftTuple - LeftTuple temp = (LeftTuple) it.next( leftTuple ); + LeftTuple temp = (LeftTuple) it.next(leftTuple ); if ( leftTuple.getStagedType() == LeftTuple.UPDATE ) { // ignore, as it will get processed via left iteration. Children cannot be processed twice @@ -327,13 +330,13 @@ public void doRightUpdates(NotNode notNode, rightTuple.getFactHandleForEvaluation() ); FastIterator leftIt = notNode.getLeftIterator( ltm ); - LeftTuple firstLeftTuple = notNode.getFirstLeftTuple( rightTuple, ltm, leftIt ); + LeftTuple firstLeftTuple = notNode.getFirstLeftTuple(rightTuple, ltm, leftIt ); // first process non-blocked tuples, as we know only those ones are in the left memory. for ( LeftTuple leftTuple = firstLeftTuple; leftTuple != null; ) { // preserve next now, in case we remove this leftTuple - LeftTuple temp = (LeftTuple) leftIt.next( leftTuple ); + LeftTuple temp = (LeftTuple) leftIt.next(leftTuple ); if ( leftTuple.getStagedType() == LeftTuple.UPDATE ) { // ignore, as it will get processed via left iteration. Children cannot be processed twice @@ -519,7 +522,7 @@ public void doRightDeletes(NotNode notNode, constraints.resetTuple(contextEntry); } - private static void insertChildLeftTuple( LeftTupleSink sink, TupleSets trgLeftTuples, TupleMemory ltm, LeftTuple leftTuple, PropagationContext pctx, boolean useLeftMemory ) { + private static void insertChildLeftTuple(LeftTupleSink sink, TupleSets trgLeftTuples, TupleMemory ltm, LeftTuple leftTuple, PropagationContext pctx, boolean useLeftMemory ) { if (!leftTuple.isExpired()) { if (useLeftMemory) { ltm.add(leftTuple); diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakQueryNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakQueryNode.java index 80c0d889d28..38e3173f63c 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakQueryNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakQueryNode.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; -import org.drools.core.base.DroolsQuery; +import org.drools.core.base.DroolsQueryImpl; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TupleSets; @@ -65,10 +68,10 @@ public void doLeftInserts(QueryElementNode queryNode, reteEvaluator, leftTuple); - DroolsQuery dquery = queryNode.createDroolsQuery(leftTuple, handle, stackEntry, - qmem.getSegmentMemory().getPathMemories(), - qmem, - stackEntry.getSink(), reteEvaluator); + DroolsQueryImpl dquery = queryNode.createDroolsQuery(leftTuple, handle, stackEntry, + qmem.getSegmentMemory().getPathMemories(), + qmem, + stackEntry.getSink(), reteEvaluator); LeftInputAdapterNode lian = (LeftInputAdapterNode) qmem.getQuerySegmentMemory().getRootNode(); LiaNodeMemory lm = (LiaNodeMemory) qmem.getQuerySegmentMemory().getNodeMemories()[0]; @@ -87,7 +90,7 @@ public void doLeftUpdates(QueryElementNode queryNode, LeftTuple next = leftTuple.getStagedNext(); InternalFactHandle fh = (InternalFactHandle) leftTuple.getContextObject(); - DroolsQuery dquery = (DroolsQuery) fh.getObject(); + DroolsQueryImpl dquery = (DroolsQueryImpl) fh.getObject(); dquery.setParameters( queryNode.getActualArguments( leftTuple, reteEvaluator ) ); SegmentMemory qsmem = qmem.getQuerySegmentMemory(); @@ -118,7 +121,7 @@ public void doLeftDeletes(QueryElementNodeMemory qmem, LeftTuple next = leftTuple.getStagedNext(); InternalFactHandle fh = (InternalFactHandle) leftTuple.getContextObject(); - DroolsQuery dquery = (DroolsQuery) fh.getObject(); + DroolsQueryImpl dquery = (DroolsQueryImpl) fh.getObject(); if (dquery.isOpen()) { LeftInputAdapterNode lian = (LeftInputAdapterNode) qmem.getQuerySegmentMemory().getRootNode(); LiaNodeMemory lm = (LiaNodeMemory) qmem.getQuerySegmentMemory().getNodeMemories()[0]; diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakQueryTerminalNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakQueryTerminalNode.java index 3af8b97b638..85b478ffad6 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakQueryTerminalNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakQueryTerminalNode.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.List; -import org.drools.core.base.DroolsQuery; +import org.drools.core.base.DroolsQueryImpl; import org.drools.core.common.ActivationsManager; import org.drools.core.common.TupleSets; import org.drools.core.reteoo.LeftTuple; @@ -67,7 +70,7 @@ public void doLeftInserts(QueryTerminalNode qtnNode, // find the DroolsQuery object Tuple rootEntry = leftTuple.getRootTuple(); - DroolsQuery dquery = (DroolsQuery) rootEntry.getFactHandle().getObject(); + DroolsQueryImpl dquery = (DroolsQueryImpl) rootEntry.getFactHandle().getObject(); dquery.setQuery(qtnNode.getQuery()); if (dquery.getStackEntry() != null) { checkAndTriggerQueryReevaluation(activationsManager, stack, rootEntry, dquery); @@ -95,7 +98,7 @@ public void doLeftUpdates(QueryTerminalNode qtnNode, // find the DroolsQuery object LeftTuple rootEntry = (LeftTuple) leftTuple.getRootTuple(); - DroolsQuery dquery = (DroolsQuery) rootEntry.getFactHandle().getObject(); + DroolsQueryImpl dquery = (DroolsQueryImpl) rootEntry.getFactHandle().getObject(); dquery.setQuery(qtnNode.getQuery()); if (dquery.getStackEntry() != null) { checkAndTriggerQueryReevaluation(activationsManager, stack, rootEntry, dquery); @@ -124,7 +127,7 @@ public void doLeftDeletes(QueryTerminalNode qtnNode, // find the DroolsQuery object LeftTuple rootEntry = (LeftTuple) leftTuple.getRootTuple(); - DroolsQuery dquery = (DroolsQuery) rootEntry.getFactHandle().getObject(); + DroolsQueryImpl dquery = (DroolsQueryImpl) rootEntry.getFactHandle().getObject(); dquery.setQuery(qtnNode.getQuery()); if (dquery.getStackEntry() != null) { @@ -142,7 +145,7 @@ public void doLeftDeletes(QueryTerminalNode qtnNode, } - public static void checkAndTriggerQueryReevaluation(ActivationsManager activationsManager, LinkedList stack, Tuple rootEntry, DroolsQuery dquery) { + public static void checkAndTriggerQueryReevaluation(ActivationsManager activationsManager, LinkedList stack, Tuple rootEntry, DroolsQueryImpl dquery) { StackEntry stackEntry = dquery.getStackEntry(); if (!isAdded(stack, stackEntry)) { // Ignore unless stackEntry is not added to stack diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakReactiveFromNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakReactiveFromNode.java index 09945e0d975..1e6e606bdb0 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakReactiveFromNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakReactiveFromNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakRuleTerminalNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakRuleTerminalNode.java index 9704f5eb27f..1e88d99f8ce 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakRuleTerminalNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakRuleTerminalNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.ActivationsManager; @@ -20,14 +23,14 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TupleSets; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.RuleTerminalNode; import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; import org.drools.core.reteoo.TerminalNode; import org.drools.core.common.PropagationContext; -import org.drools.core.rule.accessor.Salience; +import org.drools.base.rule.accessor.Salience; import org.drools.core.reteoo.Tuple; import org.drools.core.rule.consequence.InternalMatch; import org.kie.api.definition.rule.Rule; @@ -98,10 +101,14 @@ public static void doLeftTupleInsert(TerminalNode rtnNode, RuleExecutor executor return; } - PropagationContext pctx = leftTuple.findMostRecentPropagationContext(); - - if ( rtnNode.getRule().isNoLoop() && sameRules(rtnNode, pctx.getTerminalNodeOrigin()) ) { - return; + PropagationContext pctx; + if ( rtnNode.getRule().isNoLoop() ) { + pctx = leftTuple.findMostRecentPropagationContext(); + if ( sameRules(rtnNode, pctx.getTerminalNodeOrigin()) ) { + return; + } + } else { + pctx = leftTuple.getPropagationContext(); } int salienceInt = getSalienceValue(rtnNode, ruleAgendaItem, (InternalMatch) leftTuple, reteEvaluator); @@ -111,8 +118,8 @@ public static void doLeftTupleInsert(TerminalNode rtnNode, RuleExecutor executor activationsManager.getAgendaEventSupport().fireActivationCreated(rtnLeftTuple, activationsManager.getReteEvaluator()); - if ( rtnNode.getRule().isLockOnActive() && - leftTuple.getPropagationContext().getType() != PropagationContext.Type.RULE_ADDITION ) { + if ( rtnNode.getRule().isLockOnActive() && pctx.getType() != PropagationContext.Type.RULE_ADDITION ) { + pctx = leftTuple.findMostRecentPropagationContext(); InternalAgendaGroup agendaGroup = executor.getRuleAgendaItem().getAgendaGroup(); if (blockedByLockOnActive(rtnNode.getRule(), pctx, agendaGroup)) { activationsManager.getAgendaEventSupport().fireActivationCancelled(rtnLeftTuple, reteEvaluator, MatchCancelledCause.FILTER ); @@ -126,7 +133,6 @@ public static void doLeftTupleInsert(TerminalNode rtnNode, RuleExecutor executor } executor.addLeftTuple( leftTuple ); - leftTuple.increaseActivationCountForEvents(); // increased here, decreased in Agenda's cancelActivation and fireActivation activationsManager.addItemToActivationGroup( rtnLeftTuple ); if ( !rtnNode.isFireDirect() && executor.isDeclarativeAgendaEnabled() ) { @@ -180,15 +186,18 @@ public static void doLeftTupleUpdate(TerminalNode rtnNode, RuleExecutor executor return; } - PropagationContext pctx = leftTuple.findMostRecentPropagationContext(); + PropagationContext pctx = leftTuple.getPropagationContext(); boolean blocked = false; - if( executor.isDeclarativeAgendaEnabled() ) { + if ( executor.isDeclarativeAgendaEnabled() ) { if ( rtnLeftTuple.hasBlockers() ) { blocked = true; // declarativeAgenda still blocking LeftTuple, so don't add back ot list } } else { - blocked = rtnNode.getRule().isNoLoop() && rtnNode.equals(pctx.getTerminalNodeOrigin()); + if (rtnNode.getRule().isNoLoop()) { + pctx = leftTuple.findMostRecentPropagationContext(); + blocked = rtnNode.equals(pctx.getTerminalNodeOrigin()); + } } int salienceInt = getSalienceValue(rtnNode, executor.getRuleAgendaItem(), (InternalMatch) leftTuple, reteEvaluator); @@ -200,9 +209,8 @@ public static void doLeftTupleUpdate(TerminalNode rtnNode, RuleExecutor executor if ( !blocked ) { boolean addToExector = true; - if ( rtnNode.getRule().isLockOnActive() && - pctx.getType() != PropagationContext.Type.RULE_ADDITION ) { - + if ( rtnNode.getRule().isLockOnActive() && pctx.getType() != PropagationContext.Type.RULE_ADDITION ) { + pctx = leftTuple.findMostRecentPropagationContext(); InternalAgendaGroup agendaGroup = executor.getRuleAgendaItem().getAgendaGroup(); if (blockedByLockOnActive(rtnNode.getRule(), pctx, agendaGroup)) { addToExector = false; diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakSubnetworkNotExistsNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakSubnetworkNotExistsNode.java index 38058386e34..c7aa1a61596 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakSubnetworkNotExistsNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakSubnetworkNotExistsNode.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.TupleSets; @@ -5,7 +23,7 @@ import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleSink; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.SubnetworkTuple; import org.drools.core.reteoo.TupleMemory; diff --git a/drools-core/src/main/java/org/drools/core/phreak/PhreakTimerNode.java b/drools-core/src/main/java/org/drools/core/phreak/PhreakTimerNode.java index a32819b95b8..bdaf7ef9211 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PhreakTimerNode.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PhreakTimerNode.java @@ -1,25 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; -import java.util.Date; -import java.util.List; - +import org.drools.base.common.NetworkNode; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; +import org.drools.base.time.impl.Timer; import org.drools.core.common.ActivationsManager; -import org.drools.core.common.NetworkNode; +import org.drools.core.common.InternalFactHandle; import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TupleSets; @@ -35,11 +39,8 @@ import org.drools.core.reteoo.Tuple; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; import org.drools.core.time.TimerService; -import org.drools.core.time.Trigger; import org.drools.core.time.impl.DefaultJobHandle; -import org.drools.core.time.impl.Timer; import org.drools.core.util.LinkedList; import org.drools.core.util.index.TupleList; import org.kie.api.definition.rule.Rule; @@ -48,6 +49,9 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.Date; +import java.util.List; + import static org.drools.core.phreak.BuildtimeSegmentUtilities.nextNodePosMask; import static org.drools.core.phreak.RuleNetworkEvaluator.normalizeStagedTuples; @@ -174,7 +178,7 @@ public void doLeftDeletes(TimerNode timerNode, if ( leftTuple.getMemory() != null ) { leftTuples.remove( leftTuple ); // it gets removed either way. - if ( pctx.getFactHandle().isExpired() ) { + if ( ((InternalFactHandle)pctx.getFactHandle()).isExpired() ) { // a expire clashes with insert or update, allow it to propagate once, will handle the expire the second time around doPropagateChildLeftTuple( sink, trgLeftTuples, stagedLeftTuples, leftTuple ); tm.getDeleteLeftTuples().add( leftTuple ); @@ -279,7 +283,7 @@ private void scheduleTimer(TimerNode timerNode, log.trace( "Timer Fire Now {}", leftTuple ); } - LeftTuple childLeftTuple = doPropagateChildLeftTuple( sink, trgLeftTuples, stagedLeftTuples, leftTuple ); + LeftTuple childLeftTuple = doPropagateChildLeftTuple(sink, trgLeftTuples, stagedLeftTuples, leftTuple ); if (childLeftTuple.getStagedType() != LeftTuple.NONE) { // Flag the newly created childLeftTuple to avoid a reevaluation in case it gets // rescheduled before the end of this doNode loop @@ -422,7 +426,7 @@ public void execute( final ReteEvaluator reteEvaluator, boolean needEvaluation ) private void evaluateAndFireRule(PathMemory pmem, ActivationsManager activationsManager) { RuleExecutor ruleExecutor = pmem.getRuleAgendaItem().getRuleExecutor(); - ruleExecutor.reEvaluateNetwork( activationsManager ); + ruleExecutor.evaluateNetworkIfDirty( activationsManager ); ruleExecutor.fire( activationsManager ); } } diff --git a/drools-core/src/main/java/org/drools/core/phreak/PropagationEntry.java b/drools-core/src/main/java/org/drools/core/phreak/PropagationEntry.java index efc1a735da8..cbd689f1f7f 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PropagationEntry.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PropagationEntry.java @@ -1,29 +1,30 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; -import java.io.Serializable; -import java.util.concurrent.CountDownLatch; - -import org.drools.core.base.DroolsQuery; -import org.drools.core.common.EventFactHandle; +import org.drools.base.facttemplates.Event; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.core.base.DroolsQueryImpl; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.facttemplates.Event; import org.drools.core.impl.WorkingMemoryReteExpireAction; import org.drools.core.reteoo.ClassObjectTypeConf; import org.drools.core.reteoo.CompositePartitionAwareObjectSinkAdapter; @@ -31,18 +32,23 @@ import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.ModifyPreviousTuples; -import org.drools.core.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.PathMemory; import org.drools.core.reteoo.QueryTerminalNode; import org.drools.core.reteoo.TerminalNode; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; +import org.drools.core.time.impl.DefaultJobHandle; import org.drools.core.time.impl.PointInTimeTrigger; +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.util.concurrent.CountDownLatch; + +import static org.drools.base.rule.TypeDeclaration.NEVER_EXPIRES; import static org.drools.core.reteoo.EntryPointNode.removeRightTuplesMatchingOTN; -import static org.drools.core.rule.TypeDeclaration.NEVER_EXPIRES; public interface PropagationEntry { @@ -66,7 +72,7 @@ default void execute(ReteEvaluator reteEvaluator) { boolean defersExpiration(); abstract class AbstractPropagationEntry implements PropagationEntry { - private PropagationEntry next; + protected PropagationEntry next; public void setNext(PropagationEntry next) { this.next = next; @@ -142,12 +148,12 @@ public boolean requiresImmediateFlushing() { class ExecuteQuery extends PropagationEntry.PropagationEntryWithResult { private final String queryName; - private final DroolsQuery queryObject; + private final DroolsQueryImpl queryObject; private final InternalFactHandle handle; private final PropagationContext pCtx; private final boolean calledFromRHS; - public ExecuteQuery( String queryName, DroolsQuery queryObject, InternalFactHandle handle, PropagationContext pCtx, boolean calledFromRHS ) { + public ExecuteQuery(String queryName, DroolsQueryImpl queryObject, InternalFactHandle handle, PropagationContext pCtx, boolean calledFromRHS) { this.queryName = queryName; this.queryObject = queryObject; this.handle = handle; @@ -196,12 +202,14 @@ public boolean isCalledFromRHS() { } } - class Insert extends AbstractPropagationEntry implements Serializable { + class Insert extends AbstractPropagationEntry implements Externalizable { private static final ObjectTypeNode.ExpireJob job = new ObjectTypeNode.ExpireJob(); - private final InternalFactHandle handle; - private final PropagationContext context; - private final ObjectTypeConf objectTypeConf; + private InternalFactHandle handle; + private PropagationContext context; + private ObjectTypeConf objectTypeConf; + + public Insert() { } public Insert( InternalFactHandle handle, PropagationContext context, ReteEvaluator reteEvaluator, ObjectTypeConf objectTypeConf) { this.handle = handle; @@ -221,6 +229,10 @@ public static void execute( InternalFactHandle handle, PropagationContext contex } private static void propagate( InternalFactHandle handle, PropagationContext context, ReteEvaluator reteEvaluator, ObjectTypeConf objectTypeConf ) { + if (objectTypeConf == null) { + // it can be null after deserialization + objectTypeConf = handle.getEntryPoint(reteEvaluator).getObjectTypeConfigurationRegistry().getOrCreateObjectTypeConf(handle.getEntryPointId(), handle.getObject()); + } for ( ObjectTypeNode otn : objectTypeConf.getObjectTypeNodes() ) { otn.propagateAssert( handle, context, reteEvaluator ); } @@ -255,24 +267,22 @@ private static void scheduleExpiration( ReteEvaluator reteEvaluator, InternalFac } // DROOLS-455 the calculation of the effectiveEnd may overflow and become negative - EventFactHandle eventFactHandle = (EventFactHandle) handle; + DefaultEventHandle eventFactHandle = (DefaultEventHandle) handle; long nextTimestamp = getNextTimestamp( insertionTime, expirationOffset, eventFactHandle ); - WorkingMemoryReteExpireAction action = new WorkingMemoryReteExpireAction( (EventFactHandle) handle, otn ); + WorkingMemoryReteExpireAction action = new WorkingMemoryReteExpireAction((DefaultEventHandle) handle, otn ); if (nextTimestamp <= reteEvaluator.getTimerService().getCurrentTime()) { reteEvaluator.addPropagation( action ); } else { JobContext jobctx = new ObjectTypeNode.ExpireJobContext( action, reteEvaluator ); - JobHandle jobHandle = reteEvaluator.getTimerService() - .scheduleJob( job, - jobctx, - PointInTimeTrigger.createPointInTimeTrigger( nextTimestamp, null ) ); + DefaultJobHandle jobHandle = (DefaultJobHandle) reteEvaluator.getTimerService() + .scheduleJob( job, jobctx, PointInTimeTrigger.createPointInTimeTrigger( nextTimestamp, null ) ); jobctx.setJobHandle( jobHandle ); eventFactHandle.addJob( jobHandle ); } } - private static long getNextTimestamp( long insertionTime, long expirationOffset, EventFactHandle eventFactHandle ) { + private static long getNextTimestamp( long insertionTime, long expirationOffset, DefaultEventHandle eventFactHandle) { long effectiveEnd = eventFactHandle.getEndTimestamp() + expirationOffset; return Math.max( insertionTime, effectiveEnd >= 0 ? effectiveEnd : Long.MAX_VALUE ); } @@ -285,12 +295,28 @@ public String toString() { public InternalFactHandle getHandle() { return handle; } + + @Override + public void writeExternal(ObjectOutput out) throws IOException { + out.writeObject(next); + out.writeObject(handle); + out.writeObject(context); + } + + @Override + public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { + this.next = (PropagationEntry) in.readObject(); + this.handle = (InternalFactHandle) in.readObject(); + this.context = (PropagationContext) in.readObject(); + } } - class Update extends AbstractPropagationEntry { - private final InternalFactHandle handle; - private final PropagationContext context; - private final ObjectTypeConf objectTypeConf; + class Update extends AbstractPropagationEntry implements Externalizable { + private InternalFactHandle handle; + private PropagationContext context; + private ObjectTypeConf objectTypeConf; + + public Update(){} public Update(InternalFactHandle handle, PropagationContext context, ObjectTypeConf objectTypeConf) { this.handle = handle; @@ -303,6 +329,10 @@ public void internalExecute(ReteEvaluator reteEvaluator) { } public static void execute(InternalFactHandle handle, PropagationContext pctx, ObjectTypeConf objectTypeConf, ReteEvaluator reteEvaluator) { + if (objectTypeConf == null) { + // it can be null after deserialization + objectTypeConf = handle.getEntryPoint(reteEvaluator).getObjectTypeConfigurationRegistry().getOrCreateObjectTypeConf(handle.getEntryPointId(), handle.getObject()); + } // make a reference to the previous tuples, then null then on the handle ModifyPreviousTuples modifyPreviousTuples = new ModifyPreviousTuples( handle.detachLinkedTuples() ); ObjectTypeNode[] cachedNodes = objectTypeConf.getObjectTypeNodes(); @@ -329,6 +359,20 @@ public PropagationEntry getSplitForPartition( int partitionNr ) { public String toString() { return "Update of " + handle.getObject(); } + + @Override + public void writeExternal(ObjectOutput out) throws IOException { + out.writeObject(next); + out.writeObject(handle); + out.writeObject(context); + } + + @Override + public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { + this.next = (PropagationEntry) in.readObject(); + this.handle = (InternalFactHandle) in.readObject(); + this.context = (PropagationContext) in.readObject(); + } } class PartitionedUpdate extends AbstractPartitionedPropagationEntry { @@ -379,6 +423,10 @@ public Delete(EntryPointNode epn, InternalFactHandle handle, PropagationContext } public void internalExecute(ReteEvaluator reteEvaluator) { + execute(reteEvaluator, epn, handle, context, objectTypeConf); + } + + public static void execute(ReteEvaluator reteEvaluator, EntryPointNode epn, InternalFactHandle handle, PropagationContext context, ObjectTypeConf objectTypeConf) { epn.propagateRetract(handle, context, objectTypeConf, reteEvaluator); } @@ -423,7 +471,7 @@ public void internalExecute(ReteEvaluator reteEvaluator) { } if (handle.isEvent() && isMainPartition()) { - ((EventFactHandle) handle).unscheduleAllJobs(reteEvaluator); + ((DefaultEventHandle) handle).unscheduleAllJobs(reteEvaluator); } } diff --git a/drools-core/src/main/java/org/drools/core/phreak/PropagationList.java b/drools-core/src/main/java/org/drools/core/phreak/PropagationList.java index 00a3acb7138..73db997171b 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/PropagationList.java +++ b/drools-core/src/main/java/org/drools/core/phreak/PropagationList.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.Iterator; diff --git a/drools-core/src/main/java/org/drools/core/phreak/Reactive.java b/drools-core/src/main/java/org/drools/core/phreak/Reactive.java deleted file mode 100644 index 70d43f96d63..00000000000 --- a/drools-core/src/main/java/org/drools/core/phreak/Reactive.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - * - */ - -package org.drools.core.phreak; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -@Retention(value = RetentionPolicy.RUNTIME) -@Target(value = ElementType.TYPE) -public @interface Reactive { -} diff --git a/drools-core/src/main/java/org/drools/core/phreak/ReactiveCollection.java b/drools-core/src/main/java/org/drools/core/phreak/ReactiveCollection.java index a3f2c752ee1..8de145e2055 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/ReactiveCollection.java +++ b/drools-core/src/main/java/org/drools/core/phreak/ReactiveCollection.java @@ -1,25 +1,29 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.Collection; import java.util.Iterator; +import org.drools.base.phreak.ReactiveObject; import org.drools.core.phreak.ReactiveObjectUtil.ModificationType; -import org.drools.core.reteoo.Tuple; +import org.drools.base.reteoo.BaseTuple; public class ReactiveCollection> extends AbstractReactiveObject implements Collection { @@ -63,10 +67,10 @@ public boolean containsAll(Collection c) { public boolean add(T t) { boolean result = wrapped.add(t); if (result) { - ReactiveObjectUtil.notifyModification(t, getLeftTuples(), ModificationType.ADD); + ReactiveObjectUtil.notifyModification(t, getTuples(), ModificationType.ADD); if (t instanceof ReactiveObject) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) t).addLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) t).addTuple(lts); } } } @@ -114,11 +118,11 @@ public boolean remove(Object o) { boolean result = wrapped.remove(o); if (result) { if (o instanceof ReactiveObject) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) o).removeLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) o).removeTuple(lts); } } - ReactiveObjectUtil.notifyModification(o, getLeftTuples(), ModificationType.REMOVE); + ReactiveObjectUtil.notifyModification(o, getTuples(), ModificationType.REMOVE); } return result; } @@ -153,11 +157,11 @@ public void remove() { // the line above either throws UnsupportedOperationException or follows with: if (last != null) { if (last instanceof ReactiveObject) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) last).removeLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) last).removeTuple(lts); } } - ReactiveObjectUtil.notifyModification(last, getLeftTuples(), ModificationType.REMOVE); + ReactiveObjectUtil.notifyModification(last, getTuples(), ModificationType.REMOVE); last = null; } } diff --git a/drools-core/src/main/java/org/drools/core/phreak/ReactiveList.java b/drools-core/src/main/java/org/drools/core/phreak/ReactiveList.java index 2061150aa4d..5e85fa8ad92 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/ReactiveList.java +++ b/drools-core/src/main/java/org/drools/core/phreak/ReactiveList.java @@ -1,18 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.ArrayList; @@ -20,8 +23,9 @@ import java.util.List; import java.util.ListIterator; +import org.drools.base.phreak.ReactiveObject; import org.drools.core.phreak.ReactiveObjectUtil.ModificationType; -import org.drools.core.reteoo.Tuple; +import org.drools.base.reteoo.BaseTuple; public class ReactiveList extends ReactiveCollection> implements List{ @@ -38,10 +42,10 @@ public boolean addAll(int index, Collection c) { boolean result = wrapped.addAll(index, c); if (result) { for ( T element : c ) { - ReactiveObjectUtil.notifyModification(element, getLeftTuples(), ModificationType.ADD); - if ( element instanceof ReactiveObject ) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) element).addLeftTuple(lts); + ReactiveObjectUtil.notifyModification(element, getTuples(), ModificationType.ADD); + if ( element instanceof ReactiveObject) { + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) element).addTuple(lts); } } } @@ -58,19 +62,19 @@ public T get(int index) { public T set(int index, T element) { T previous = wrapped.set(index, element); if ( previous != element ) { // this is indeed intended != to check by reference - ReactiveObjectUtil.notifyModification(element, getLeftTuples(), ModificationType.ADD); + ReactiveObjectUtil.notifyModification(element, getTuples(), ModificationType.ADD); if ( element instanceof ReactiveObject ) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) element).addLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) element).addTuple(lts); } } if (previous instanceof ReactiveObject) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) previous).removeLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) previous).removeTuple(lts); } } - ReactiveObjectUtil.notifyModification(previous, getLeftTuples(), ModificationType.REMOVE); + ReactiveObjectUtil.notifyModification(previous, getTuples(), ModificationType.REMOVE); } return previous; } @@ -78,10 +82,10 @@ public T set(int index, T element) { @Override public void add(int index, T element) { wrapped.add(index, element); - ReactiveObjectUtil.notifyModification(element, getLeftTuples(), ModificationType.ADD); + ReactiveObjectUtil.notifyModification(element, getTuples(), ModificationType.ADD); if ( element instanceof ReactiveObject ) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) element).addLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) element).addTuple(lts); } } } @@ -90,11 +94,11 @@ public void add(int index, T element) { public T remove(int index) { T result = wrapped.remove(index); if (result instanceof ReactiveObject) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) result).removeLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) result).removeTuple(lts); } } - ReactiveObjectUtil.notifyModification(result, getLeftTuples(), ModificationType.REMOVE); + ReactiveObjectUtil.notifyModification(result, getTuples(), ModificationType.REMOVE); return result; } @@ -111,8 +115,8 @@ public int lastIndexOf(Object o) { @Override public List subList(int fromIndex, int toIndex) { ReactiveList result = new ReactiveList<>( wrapped.subList(fromIndex, toIndex) ); - for ( Tuple lts : getLeftTuples() ) { - result.addLeftTuple( lts ); + for ( BaseTuple lts : getTuples() ) { + result.addTuple(lts); } return result; } @@ -167,19 +171,19 @@ public void set(T e) { if ( last != null ) { wrapped.set(e); if ( last != e ) { // this is indeed intended != to check by reference - ReactiveObjectUtil.notifyModification(e, getLeftTuples(), ModificationType.ADD); + ReactiveObjectUtil.notifyModification(e, getTuples(), ModificationType.ADD); if ( e instanceof ReactiveObject ) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) e).addLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) e).addTuple(lts); } } if (last instanceof ReactiveObject) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) last).removeLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) last).removeTuple(lts); } } - ReactiveObjectUtil.notifyModification(last, getLeftTuples(), ModificationType.REMOVE); + ReactiveObjectUtil.notifyModification(last, getTuples(), ModificationType.REMOVE); } last = e; } @@ -189,10 +193,10 @@ public void set(T e) { public void add(T e) { wrapped.add(e); // the line above either throws UnsupportedOperationException or follows with: - ReactiveObjectUtil.notifyModification(e, getLeftTuples(), ModificationType.ADD); + ReactiveObjectUtil.notifyModification(e, getTuples(), ModificationType.ADD); if ( e instanceof ReactiveObject ) { - for (Tuple lts : getLeftTuples()) { - ((ReactiveObject) e).addLeftTuple(lts); + for (BaseTuple lts : getTuples()) { + ((ReactiveObject) e).addTuple(lts); } } last = null; diff --git a/drools-core/src/main/java/org/drools/core/phreak/ReactiveObject.java b/drools-core/src/main/java/org/drools/core/phreak/ReactiveObject.java deleted file mode 100644 index 590b083e754..00000000000 --- a/drools-core/src/main/java/org/drools/core/phreak/ReactiveObject.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.core.phreak; - -import org.drools.core.reteoo.Tuple; - -import java.util.Collection; - -public interface ReactiveObject { - void addLeftTuple(Tuple leftTuple); - void removeLeftTuple(Tuple leftTuple); - Collection getLeftTuples(); -} diff --git a/drools-core/src/main/java/org/drools/core/phreak/ReactiveObjectUtil.java b/drools-core/src/main/java/org/drools/core/phreak/ReactiveObjectUtil.java index 7c1b3419286..1501cceedec 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/ReactiveObjectUtil.java +++ b/drools-core/src/main/java/org/drools/core/phreak/ReactiveObjectUtil.java @@ -1,32 +1,36 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.phreak; import java.util.Collection; +import org.drools.base.phreak.ReactiveObject; import org.drools.core.common.BetaConstraints; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; +import org.drools.base.reteoo.BaseTuple; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleSinkNode; import org.drools.core.reteoo.ReactiveFromNode; import org.drools.core.reteoo.ReactiveFromNodeLeftTuple; import org.drools.core.reteoo.RightTupleImpl; -import org.drools.core.rule.ContextEntry; +import org.drools.base.rule.ContextEntry; import org.drools.core.common.PropagationContext; import org.drools.core.reteoo.Tuple; @@ -41,21 +45,22 @@ public enum ModificationType { } public static void notifyModification(ReactiveObject reactiveObject) { - notifyModification( reactiveObject, reactiveObject.getLeftTuples(), ModificationType.MODIFY); + notifyModification(reactiveObject, reactiveObject.getTuples(), ModificationType.MODIFY); } - public static void notifyModification( Object object, Collection leftTuples, ModificationType type ) { - for (Tuple leftTuple : leftTuples) { - if (!( (ReactiveFromNodeLeftTuple) leftTuple ).updateModificationState( object, type )) { + public static void notifyModification(Object object, Collection leftTuples, ModificationType type) { + for (BaseTuple baseTuple : leftTuples) { + Tuple tuple = (Tuple) baseTuple; + if (!( (ReactiveFromNodeLeftTuple) tuple ).updateModificationState( object, type )) { continue; } - PropagationContext propagationContext = leftTuple.getPropagationContext(); - ReactiveFromNode node = leftTuple.getTupleSink(); + PropagationContext propagationContext = tuple.getPropagationContext(); + ReactiveFromNode node = tuple.getTupleSink(); LeftTupleSinkNode sink = node.getSinkPropagator().getFirstLeftTupleSink(); - ReteEvaluator reteEvaluator = propagationContext.getFactHandle().getReteEvaluator(); + ReteEvaluator reteEvaluator =((InternalFactHandle) propagationContext.getFactHandle()).getReteEvaluator(); - reteEvaluator.addPropagation(new ReactivePropagation(object, (ReactiveFromNodeLeftTuple)leftTuple, propagationContext, node, sink, type)); + reteEvaluator.addPropagation(new ReactivePropagation(object, (ReactiveFromNodeLeftTuple)tuple, propagationContext, node, sink, type)); } } diff --git a/drools-core/src/main/java/org/drools/core/phreak/ReactiveSet.java b/drools-core/src/main/java/org/drools/core/phreak/ReactiveSet.java index 416b77ea27a..1b7536596f7 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/ReactiveSet.java +++ b/drools-core/src/main/java/org/drools/core/phreak/ReactiveSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.HashSet; diff --git a/drools-core/src/main/java/org/drools/core/phreak/RightTupleEntry.java b/drools-core/src/main/java/org/drools/core/phreak/RightTupleEntry.java index f8214ef3e28..3bf3f7e291b 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/RightTupleEntry.java +++ b/drools-core/src/main/java/org/drools/core/phreak/RightTupleEntry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.Memory; diff --git a/drools-core/src/main/java/org/drools/core/phreak/RuleAgendaItem.java b/drools-core/src/main/java/org/drools/core/phreak/RuleAgendaItem.java index c9a38edd357..ad943b9dded 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/RuleAgendaItem.java +++ b/drools-core/src/main/java/org/drools/core/phreak/RuleAgendaItem.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.phreak; import org.drools.core.common.InternalAgendaGroup; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.PathMemory; import org.drools.core.reteoo.TerminalNode; import org.drools.core.util.LinkedList; diff --git a/drools-core/src/main/java/org/drools/core/phreak/RuleExecutor.java b/drools-core/src/main/java/org/drools/core/phreak/RuleExecutor.java index 02828be4ff9..29a2121a669 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/RuleExecutor.java +++ b/drools-core/src/main/java/org/drools/core/phreak/RuleExecutor.java @@ -1,37 +1,39 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; -import org.drools.core.base.SalienceInteger; +import org.drools.base.base.SalienceInteger; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.consequence.Consequence; +import org.drools.base.rule.consequence.ConsequenceException; import org.drools.core.common.ActivationsManager; -import org.drools.core.common.EventFactHandle; import org.drools.core.common.EventSupport; import org.drools.core.common.InternalActivationGroup; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.conflict.MatchConflictResolver; import org.drools.core.conflict.RuleAgendaConflictResolver; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.event.RuleEventListenerSupport; import org.drools.core.reteoo.PathMemory; import org.drools.core.reteoo.RuleTerminalNode; import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.consequence.Consequence; -import org.drools.core.rule.consequence.ConsequenceException; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.core.util.Queue; @@ -45,15 +47,15 @@ public class RuleExecutor { - protected static final transient Logger log = LoggerFactory.getLogger(RuleExecutor.class); + protected static final Logger log = LoggerFactory.getLogger(RuleExecutor.class); - private final PathMemory pmem; - private final RuleAgendaItem ruleAgendaItem; - private final TupleList tupleList; - private Queue queue; - private volatile boolean dirty; - private final boolean declarativeAgendaEnabled; - private boolean fireExitedEarly; + private final PathMemory pmem; + private final RuleAgendaItem ruleAgendaItem; + private final TupleList tupleList; + private final Queue queue; + private volatile boolean dirty; + private final boolean declarativeAgendaEnabled; + private boolean fireExitedEarly; public RuleExecutor(final PathMemory pmem, RuleAgendaItem ruleAgendaItem, @@ -62,56 +64,52 @@ public RuleExecutor(final PathMemory pmem, this.ruleAgendaItem = ruleAgendaItem; this.tupleList = new TupleList(); this.declarativeAgendaEnabled = declarativeAgendaEnabled; - if (ruleAgendaItem.getRule().getSalience().isDynamic()) { - queue = QueueFactory.createQueue(MatchConflictResolver.INSTANCE); - } - } - - public void evaluateNetwork(ActivationsManager activationsManager) { - RuleNetworkEvaluator.INSTANCE.evaluateNetwork( pmem, this, activationsManager ); - setDirty( false ); + this.queue = ruleAgendaItem.getRule().getSalience().isDynamic() ? QueueFactory.createQueue(MatchConflictResolver.INSTANCE) : null; } public int evaluateNetworkAndFire( ReteEvaluator reteEvaluator, AgendaFilter filter, int fireCount, int fireLimit ) { - reEvaluateNetwork( reteEvaluator ); + evaluateNetworkIfDirty( reteEvaluator ); return fire(reteEvaluator, pmem.getActualActivationsManager( reteEvaluator ), filter, fireCount, fireLimit); } - public int evaluateNetworkAndFire( ActivationsManager activationsManager, - AgendaFilter filter, - int fireCount, - int fireLimit ) { - ReteEvaluator reteEvaluator = activationsManager.getReteEvaluator(); - - reEvaluateNetwork( activationsManager ); + public int evaluateNetworkAndFire( ActivationsManager activationsManager, AgendaFilter filter, int fireCount, int fireLimit ) { + evaluateNetworkIfDirty( activationsManager ); + ReteEvaluator reteEvaluator = activationsManager.getReteEvaluator(); if ( reteEvaluator.getRuleSessionConfiguration().isDirectFiring() ) { - RuleTerminalNode rtn = (RuleTerminalNode) pmem.getPathEndNode(); - RuleImpl rule = rtn.getRule(); - int directFirings = tupleList.size(); - - for (Tuple tuple = tupleList.getFirst(); tuple != null; tuple = tupleList.getFirst()) { - if (cancelAndContinue(reteEvaluator, rtn, rule, tuple, filter)) { - directFirings--; - } else { - fireActivationEvent(reteEvaluator, activationsManager, (InternalMatch) tuple, ((InternalMatch) tuple).getConsequence()); - } - removeLeftTuple( tuple ); - } - ruleAgendaItem.remove(); - return directFirings; + return doDirectFirings(activationsManager, filter, reteEvaluator); } return fire( reteEvaluator, activationsManager, filter, fireCount, fireLimit ); } + private int doDirectFirings(ActivationsManager activationsManager, AgendaFilter filter, ReteEvaluator reteEvaluator) { + RuleTerminalNode rtn = (RuleTerminalNode) pmem.getPathEndNode(); + int directFirings = tupleList.size(); + + for (Tuple tuple = tupleList.getFirst(); tuple != null; tuple = tupleList.getFirst()) { + if (cancelAndContinue(reteEvaluator, rtn, tuple, filter)) { + directFirings--; + } else { + fireActivationEvent(reteEvaluator, activationsManager, (InternalMatch) tuple, ((InternalMatch) tuple).getConsequence()); + } + removeLeftTuple( tuple ); + } + ruleAgendaItem.remove(); + return directFirings; + } + public void fire(ActivationsManager activationsManager) { fire(activationsManager.getReteEvaluator(), activationsManager, null, 0, Integer.MAX_VALUE); } + public int fire(ActivationsManager activationsManager, AgendaFilter filter, int fireCount, int fireLimit) { + return fire(activationsManager.getReteEvaluator(), activationsManager, filter, fireCount, fireLimit); + } + private int fire( ReteEvaluator reteEvaluator, ActivationsManager activationsManager, AgendaFilter filter, @@ -130,10 +128,9 @@ private int fire( ReteEvaluator reteEvaluator, } RuleTerminalNode rtn = (RuleTerminalNode) pmem.getPathEndNode(); - RuleImpl rule = rtn.getRule(); - boolean ruleIsAllMatches = rule.isAllMatches(); + boolean ruleIsAllMatches = rtn.getRule().isAllMatches(); Tuple tuple = getNextTuple(); - + if (ruleIsAllMatches) { fireConsequenceEvent(reteEvaluator, activationsManager, (InternalMatch) tuple, ActivationsManager.ON_BEFORE_ALL_FIRES_CONSEQUENCE_NAME); } @@ -143,7 +140,7 @@ private int fire( ReteEvaluator reteEvaluator, //check if the rule is not effective or // if the current Rule is no-loop and the origin rule is the same then return - if (cancelAndContinue(reteEvaluator, rtn, rule, tuple, filter)) { + if (cancelAndContinue(reteEvaluator, rtn, tuple, filter)) { continue; } @@ -174,7 +171,7 @@ private int fire( ReteEvaluator reteEvaluator, break; // another rule has high priority and is on the agenda, so evaluate it first } if (!reteEvaluator.isSequential()) { - reEvaluateNetwork( activationsManager ); + evaluateNetworkIfDirty( activationsManager ); } } } @@ -223,14 +220,18 @@ public void removeRuleAgendaItemWhenEmpty(ReteEvaluator reteEvaluator) { } } - public void reEvaluateNetwork(ReteEvaluator reteEvaluator) { - reEvaluateNetwork(pmem.getActualActivationsManager( reteEvaluator )); + public void evaluateNetwork(ActivationsManager activationsManager) { + RuleNetworkEvaluator.INSTANCE.evaluateNetwork( pmem, this, activationsManager ); + setDirty( false ); } - public void reEvaluateNetwork(ActivationsManager activationsManager) { + public void evaluateNetworkIfDirty(ReteEvaluator reteEvaluator) { + evaluateNetworkIfDirty(pmem.getActualActivationsManager( reteEvaluator )); + } + + public void evaluateNetworkIfDirty(ActivationsManager activationsManager) { if ( isDirty() ) { - setDirty(false); - RuleNetworkEvaluator.INSTANCE.evaluateNetwork(pmem, this, activationsManager); + evaluateNetwork(activationsManager); } } @@ -240,11 +241,11 @@ public RuleAgendaItem getRuleAgendaItem() { private boolean cancelAndContinue(ReteEvaluator reteEvaluator, RuleTerminalNode rtn, - RuleImpl rule, Tuple leftTuple, AgendaFilter filter) { // NB. stopped setting the LT.object to Boolean.TRUE, that Reteoo did. - if ( !rule.isEffective(leftTuple, rtn, reteEvaluator) ) { + RuleImpl rule = rtn.getRule(); + if ( !rule.isEffective(leftTuple, rtn.getEnabledDeclarations(), reteEvaluator) ) { return true; } @@ -272,7 +273,10 @@ private boolean haltRuleFiring(int fireCount, activationsManager.evaluateEagerList(); RuleAgendaItem nextRule = activationsManager.peekNextRule(); - return nextRule != null && (!ruleAgendaItem.getAgendaGroup().equals( nextRule.getAgendaGroup() ) || !isHigherSalience(nextRule)); + if (nextRule == ruleAgendaItem || nextRule == null) { + return false; + } + return !ruleAgendaItem.getAgendaGroup().equals( nextRule.getAgendaGroup() ) || !isHigherSalience(nextRule); } private boolean isHigherSalience(RuleAgendaItem nextRule) { @@ -362,27 +366,7 @@ public void fireActivation(ReteEvaluator reteEvaluator, ActivationsManager activ } internalMatch.setQueued(false); - try { - fireActivationEvent(reteEvaluator, activationsManager, internalMatch, internalMatch.getConsequence()); - } finally { - // if the tuple contains expired events - for (Tuple tuple = internalMatch.getTuple().skipEmptyHandles(); tuple != null; tuple = tuple.getParent() ) { - if ( tuple.getFactHandle().isEvent() ) { - // can be null for eval, not and exists that have no right input - - EventFactHandle handle = ( EventFactHandle ) tuple.getFactHandle(); - // decrease the activation count for the event - handle.decreaseActivationsCount(); - // handles "expire" only in stream mode. - if ( handle.expirePartition() && handle.isExpired() && - handle.getFirstRightTuple() == null && handle.getActivationsCount() <= 0 ) { - // and if no more activations, retract the handle - handle.getEntryPoint( reteEvaluator ).delete( handle ); - } - } - } - } - + fireActivationEvent(reteEvaluator, activationsManager, internalMatch, internalMatch.getConsequence()); activationsManager.getAgendaEventSupport().fireAfterActivationFired(internalMatch, reteEvaluator, beforeMatchFiredEvent); } diff --git a/drools-core/src/main/java/org/drools/core/phreak/RuleNetworkEvaluator.java b/drools-core/src/main/java/org/drools/core/phreak/RuleNetworkEvaluator.java index 6b02d709817..fcd39d5d8b9 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/RuleNetworkEvaluator.java +++ b/drools-core/src/main/java/org/drools/core/phreak/RuleNetworkEvaluator.java @@ -1,28 +1,34 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; -import org.drools.core.base.DroolsQuery; +import java.util.List; + +import org.drools.core.base.DroolsQueryImpl; import org.drools.core.common.ActivationsManager; import org.drools.core.common.BetaConstraints; import org.drools.core.common.Memory; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TupleSets; import org.drools.core.common.TupleSetsImpl; +import org.drools.core.reteoo.AbstractTerminalNode; import org.drools.core.reteoo.AccumulateNode; import org.drools.core.reteoo.AccumulateNode.AccumulateMemory; import org.drools.core.reteoo.AsyncReceiveNode; @@ -45,7 +51,7 @@ import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.LeftTupleSinkNode; import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.ObjectSink; import org.drools.core.reteoo.PathMemory; @@ -56,6 +62,7 @@ import org.drools.core.reteoo.RightInputAdapterNode; import org.drools.core.reteoo.RightInputAdapterNode.RiaPathMemory; import org.drools.core.reteoo.RightTuple; +import org.drools.core.reteoo.RightTupleImpl; import org.drools.core.reteoo.SegmentMemory; import org.drools.core.reteoo.SubnetworkTuple; import org.drools.core.reteoo.TerminalNode; @@ -63,14 +70,12 @@ import org.drools.core.reteoo.TimerNode.TimerNodeMemory; import org.drools.core.reteoo.Tuple; import org.drools.core.reteoo.TupleMemory; -import org.drools.core.rule.ContextEntry; +import org.drools.base.rule.ContextEntry; import org.drools.core.util.FastIterator; import org.drools.core.util.LinkedList; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.List; - import static org.drools.core.phreak.BuildtimeSegmentUtilities.nextNodePosMask; import static org.drools.core.phreak.PhreakNotNode.updateBlockersAndPropagate; import static org.drools.core.reteoo.BetaNode.getBetaMemory; @@ -327,7 +332,7 @@ public void innerEval(PathMemory pmem, boolean terminalNode = true; switch (node.getType()) { case NodeTypeEnums.RuleTerminalNode: - pRtNode.doNode(( TerminalNode ) node, activationsManager, srcTuples, executor); + pRtNode.doNode((AbstractTerminalNode) node, activationsManager, srcTuples, executor); break; case NodeTypeEnums.QueryTerminalNode: pQtNode.doNode((QueryTerminalNode) node, activationsManager, srcTuples, stack); @@ -379,10 +384,10 @@ public void innerEval(PathMemory pmem, } } - public TupleSets evalNode( PathMemory pmem, NetworkNode node, long bit, Memory nodeMem, - SegmentMemory[] smems, int smemIndex, ActivationsManager activationsManager, LinkedList stack, - boolean processRian, RuleExecutor executor, TupleSets srcTuples, SegmentMemory smem, - TupleSets stagedLeftTuples, LeftTupleSinkNode sink ) { + public TupleSets evalNode(PathMemory pmem, NetworkNode node, long bit, Memory nodeMem, + SegmentMemory[] smems, int smemIndex, ActivationsManager activationsManager, LinkedList stack, + boolean processRian, RuleExecutor executor, TupleSets srcTuples, SegmentMemory smem, + TupleSets stagedLeftTuples, LeftTupleSinkNode sink ) { TupleSets trgTuples = new TupleSetsImpl<>(); if ( NodeTypeEnums.isBetaNode( node )) { boolean exitInnerEval = evalBetaNode(pmem, node, nodeMem, smems, smemIndex, trgTuples, activationsManager, stack, processRian, executor, srcTuples, stagedLeftTuples, sink); @@ -757,8 +762,8 @@ private void doRiaNode2(ReteEvaluator reteEvaluator, } public static void findLeftTupleBlocker(BetaNode betaNode, TupleMemory rtm, - ContextEntry[] contextEntry, BetaConstraints constraints, - LeftTuple leftTuple, boolean useLeftMemory) { + ContextEntry[] contextEntry, BetaConstraints constraints, + LeftTuple leftTuple, boolean useLeftMemory) { // This method will also remove rightTuples that are from subnetwork where no leftmemory use used FastIterator it = betaNode.getRightIterator(rtm); for (RightTuple rightTuple = betaNode.getFirstRightTuple(leftTuple, rtm, it); rightTuple != null; ) { @@ -791,7 +796,7 @@ public static void unlinkAndDeleteChildLeftTuple( LeftTuple childLeftTuple, deleteChildLeftTuple( childLeftTuple, trgLeftTuples, stagedLeftTuples ); } - public static void deleteChildLeftTuple( LeftTuple childLeftTuple, TupleSets trgLeftTuples, TupleSets stagedLeftTuples ) { + public static void deleteChildLeftTuple(LeftTuple childLeftTuple, TupleSets trgLeftTuples, TupleSets stagedLeftTuples ) { if (childLeftTuple.isStagedOnRight()) { ( (SubnetworkTuple) childLeftTuple ).moveStagingFromRightToLeft(); } else { @@ -964,14 +969,14 @@ public static boolean useLeftMemory(LeftTupleSource tupleSource, Tuple tuple) { if (!tupleSource.isLeftTupleMemoryEnabled()) { // This is a hack, to not add closed DroolsQuery objects Object object = tuple.getRootTuple().getFactHandle().getObject(); - if (!(object instanceof DroolsQuery) || !((DroolsQuery) object).isOpen()) { + if (!(object instanceof DroolsQueryImpl) || !((DroolsQueryImpl) object).isOpen()) { useLeftMemory = false; } } return useLeftMemory; } - public static void normalizeStagedTuples( TupleSets stagedLeftTuples, LeftTuple childLeftTuple ) { + public static void normalizeStagedTuples(TupleSets stagedLeftTuples, LeftTuple childLeftTuple ) { if (!childLeftTuple.isStagedOnRight()) { switch ( childLeftTuple.getStagedType() ) { // handle clash with already staged entries diff --git a/drools-core/src/main/java/org/drools/core/phreak/RuntimeSegmentUtilities.java b/drools-core/src/main/java/org/drools/core/phreak/RuntimeSegmentUtilities.java index 63451180c75..5fdbc510809 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/RuntimeSegmentUtilities.java +++ b/drools-core/src/main/java/org/drools/core/phreak/RuntimeSegmentUtilities.java @@ -1,35 +1,37 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.constraint.QueryNameConstraint; import org.drools.core.common.Memory; import org.drools.core.common.MemoryFactory; import org.drools.core.common.ReteEvaluator; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaNode; -import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.LeftInputAdapterNode.LiaNodeMemory; import org.drools.core.reteoo.LeftTupleNode; import org.drools.core.reteoo.LeftTupleSinkNode; import org.drools.core.reteoo.LeftTupleSinkPropagator; import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectSink; -import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.PathMemory; @@ -37,7 +39,6 @@ import org.drools.core.reteoo.RightInputAdapterNode; import org.drools.core.reteoo.SegmentMemory; import org.drools.core.reteoo.SegmentMemory.SegmentPrototype; -import org.drools.core.rule.constraint.QueryNameConstraint; import static org.drools.core.phreak.EagerPhreakBuilder.isInsideSubnetwork; @@ -64,7 +65,7 @@ public static SegmentMemory getOrCreateSegmentMemory(Memory memory, LeftTupleNod smem = restoreSegmentFromPrototype(reteEvaluator, segmentRoot); if ( smem != null ) { - if (NodeTypeEnums.isBetaNode(segmentRoot) && ((BetaNode) segmentRoot).isRightInputIsRiaNode()) { + if (NodeTypeEnums.isBetaNode(segmentRoot) && segmentRoot.isRightInputIsRiaNode()) { createRiaSegmentMemory((BetaNode) segmentRoot, reteEvaluator); } return smem; @@ -103,8 +104,9 @@ private static SegmentMemory restoreSegmentFromPrototype(ReteEvaluator reteEvalu return smem; } - public static SegmentMemory getQuerySegmentMemory(ReteEvaluator reteEvaluator, LeftTupleSource segmentRoot, QueryElementNode queryNode) { - LeftInputAdapterNode liaNode = getQueryLiaNode(queryNode.getQueryElement().getQueryName(), getQueryOtn(segmentRoot)); + public static SegmentMemory getQuerySegmentMemory(ReteEvaluator reteEvaluator, QueryElementNode queryNode) { + ObjectTypeNode queryOtn = reteEvaluator.getDefaultEntryPoint().getEntryPointNode().getQueryNode(); + LeftInputAdapterNode liaNode = getQueryLiaNode(queryNode.getQueryElement().getQueryName(), queryOtn); LiaNodeMemory liam = reteEvaluator.getNodeMemory(liaNode); SegmentMemory querySmem = liam.getSegmentMemory(); if (querySmem == null) { @@ -206,20 +208,6 @@ public static void initializePathMemory(ReteEvaluator reteEvaluator, PathEndNode } } - private static ObjectTypeNode getQueryOtn(LeftTupleSource lts) { - while (!(lts instanceof LeftInputAdapterNode)) { - lts = lts.getLeftTupleSource(); - } - - LeftInputAdapterNode liaNode = (LeftInputAdapterNode) lts; - ObjectSource os = liaNode.getObjectSource(); - while (!(os instanceof EntryPointNode)) { - os = os.getParentObjectSource(); - } - - return ((EntryPointNode) os).getQueryNode(); - } - private static LeftInputAdapterNode getQueryLiaNode(String queryName, ObjectTypeNode queryOtn) { for (ObjectSink sink : queryOtn.getObjectSinkPropagator().getSinks()) { AlphaNode alphaNode = (AlphaNode) sink; diff --git a/drools-core/src/main/java/org/drools/core/phreak/SegmentPropagator.java b/drools-core/src/main/java/org/drools/core/phreak/SegmentPropagator.java index c2d397675a0..2b9ba365f14 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/SegmentPropagator.java +++ b/drools-core/src/main/java/org/drools/core/phreak/SegmentPropagator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.Iterator; @@ -27,7 +30,7 @@ import static org.drools.core.phreak.TupleEvaluationUtil.forceFlushLeftTuple; import static org.drools.core.phreak.TupleEvaluationUtil.forceFlushWhenRiaNode; -import static org.drools.core.reteoo.NodeTypeEnums.hasNodeMemory; +import static org.drools.base.reteoo.NodeTypeEnums.hasNodeMemory; public class SegmentPropagator { @@ -139,7 +142,7 @@ private static void updateChildLeftTupleDuringInsert(LeftTuple childLeftTuple, T } } - private static void processPeerDeletes( LeftTuple leftTuple, SegmentMemory firstSmem ) { + private static void processPeerDeletes(LeftTuple leftTuple, SegmentMemory firstSmem ) { for (; leftTuple != null; leftTuple = leftTuple.getStagedNext()) { SegmentMemory smem = firstSmem.getNext(); if ( smem != null ) { diff --git a/drools-core/src/main/java/org/drools/core/phreak/StackEntry.java b/drools-core/src/main/java/org/drools/core/phreak/StackEntry.java index 677fd4e8cfe..e6cb8265bff 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/StackEntry.java +++ b/drools-core/src/main/java/org/drools/core/phreak/StackEntry.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.Memory; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.TupleSets; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleSinkNode; diff --git a/drools-core/src/main/java/org/drools/core/phreak/SynchronizedBypassPropagationList.java b/drools-core/src/main/java/org/drools/core/phreak/SynchronizedBypassPropagationList.java index ffbaa91c483..cd94fc298f7 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/SynchronizedBypassPropagationList.java +++ b/drools-core/src/main/java/org/drools/core/phreak/SynchronizedBypassPropagationList.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/drools-core/src/main/java/org/drools/core/phreak/SynchronizedPropagationList.java b/drools-core/src/main/java/org/drools/core/phreak/SynchronizedPropagationList.java index 84ed5bee35a..ac7899931e4 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/SynchronizedPropagationList.java +++ b/drools-core/src/main/java/org/drools/core/phreak/SynchronizedPropagationList.java @@ -1,45 +1,50 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; -import java.util.Iterator; - import org.drools.core.common.ReteEvaluator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.Iterator; + public class SynchronizedPropagationList implements PropagationList { protected static final Logger log = LoggerFactory.getLogger( SynchronizedPropagationList.class ); - protected final ReteEvaluator reteEvaluator; + protected ReteEvaluator reteEvaluator; protected volatile PropagationEntry head; protected volatile PropagationEntry tail; - private volatile boolean disposed = false; + protected volatile boolean disposed = false; - private volatile boolean hasEntriesDeferringExpiration = false; + protected volatile boolean hasEntriesDeferringExpiration = false; - private volatile boolean firingUntilHalt = false; + protected volatile boolean firingUntilHalt = false; public SynchronizedPropagationList(ReteEvaluator reteEvaluator) { this.reteEvaluator = reteEvaluator; } + public SynchronizedPropagationList(){} + @Override public void addEntry(final PropagationEntry entry) { if (entry.requiresImmediateFlushing()) { diff --git a/drools-core/src/main/java/org/drools/core/phreak/ThreadUnsafePropagationList.java b/drools-core/src/main/java/org/drools/core/phreak/ThreadUnsafePropagationList.java index b8d27ca4238..c169b9fddb8 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/ThreadUnsafePropagationList.java +++ b/drools-core/src/main/java/org/drools/core/phreak/ThreadUnsafePropagationList.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.phreak; import java.util.Collections; diff --git a/drools-core/src/main/java/org/drools/core/phreak/TupleEntry.java b/drools-core/src/main/java/org/drools/core/phreak/TupleEntry.java index dcb3e981fc5..c3dee474621 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/TupleEntry.java +++ b/drools-core/src/main/java/org/drools/core/phreak/TupleEntry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.phreak; import org.drools.core.common.Memory; diff --git a/drools-core/src/main/java/org/drools/core/phreak/TupleEvaluationUtil.java b/drools-core/src/main/java/org/drools/core/phreak/TupleEvaluationUtil.java index 6149fd1cc89..c6799544d18 100644 --- a/drools-core/src/main/java/org/drools/core/phreak/TupleEvaluationUtil.java +++ b/drools-core/src/main/java/org/drools/core/phreak/TupleEvaluationUtil.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.phreak; import java.util.ArrayList; @@ -27,7 +30,7 @@ import org.drools.core.reteoo.AbstractTerminalNode; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleNode; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.PathMemory; import org.drools.core.reteoo.SegmentMemory; diff --git a/drools-core/src/main/java/org/drools/core/process/AbstractProcessContext.java b/drools-core/src/main/java/org/drools/core/process/AbstractProcessContext.java index 9ff6556cf7a..2823b2edeec 100644 --- a/drools-core/src/main/java/org/drools/core/process/AbstractProcessContext.java +++ b/drools-core/src/main/java/org/drools/core/process/AbstractProcessContext.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.process; import org.kie.api.runtime.KieRuntime; diff --git a/drools-core/src/main/java/org/drools/core/process/ProcessContext.java b/drools-core/src/main/java/org/drools/core/process/ProcessContext.java index ad1a4a0b04a..f31dd9538d8 100644 --- a/drools-core/src/main/java/org/drools/core/process/ProcessContext.java +++ b/drools-core/src/main/java/org/drools/core/process/ProcessContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.process; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/process/WorkItem.java b/drools-core/src/main/java/org/drools/core/process/WorkItem.java index 64fa60192be..9fdef51c6d6 100644 --- a/drools-core/src/main/java/org/drools/core/process/WorkItem.java +++ b/drools-core/src/main/java/org/drools/core/process/WorkItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.process; import java.util.Map; diff --git a/drools-core/src/main/java/org/drools/core/process/WorkItemHandler.java b/drools-core/src/main/java/org/drools/core/process/WorkItemHandler.java index 3399ac4447d..4e1873684f3 100644 --- a/drools-core/src/main/java/org/drools/core/process/WorkItemHandler.java +++ b/drools-core/src/main/java/org/drools/core/process/WorkItemHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.process; public interface WorkItemHandler extends org.kie.api.runtime.process.WorkItemHandler { diff --git a/drools-core/src/main/java/org/drools/core/process/WorkItemListener.java b/drools-core/src/main/java/org/drools/core/process/WorkItemListener.java index 8e9950ae71d..135f10a6b6f 100644 --- a/drools-core/src/main/java/org/drools/core/process/WorkItemListener.java +++ b/drools-core/src/main/java/org/drools/core/process/WorkItemListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.process; import org.kie.api.runtime.process.WorkItem; diff --git a/drools-core/src/main/java/org/drools/core/process/WorkItemManager.java b/drools-core/src/main/java/org/drools/core/process/WorkItemManager.java index 191122d9129..f67ec006e41 100644 --- a/drools-core/src/main/java/org/drools/core/process/WorkItemManager.java +++ b/drools-core/src/main/java/org/drools/core/process/WorkItemManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.process; import java.util.Map; diff --git a/drools-core/src/main/java/org/drools/core/process/WorkItemManagerFactory.java b/drools-core/src/main/java/org/drools/core/process/WorkItemManagerFactory.java index ba115273123..de1aabbdae5 100644 --- a/drools-core/src/main/java/org/drools/core/process/WorkItemManagerFactory.java +++ b/drools-core/src/main/java/org/drools/core/process/WorkItemManagerFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.process; import org.drools.core.common.InternalKnowledgeRuntime; diff --git a/drools-core/src/main/java/org/drools/core/process/impl/DefaultWorkItemManager.java b/drools-core/src/main/java/org/drools/core/process/impl/DefaultWorkItemManager.java index 92e804ed22a..8df599745a9 100644 --- a/drools-core/src/main/java/org/drools/core/process/impl/DefaultWorkItemManager.java +++ b/drools-core/src/main/java/org/drools/core/process/impl/DefaultWorkItemManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.process.impl; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/process/impl/DefaultWorkItemManagerFactory.java b/drools-core/src/main/java/org/drools/core/process/impl/DefaultWorkItemManagerFactory.java index 6137def8285..f31d34e26be 100644 --- a/drools-core/src/main/java/org/drools/core/process/impl/DefaultWorkItemManagerFactory.java +++ b/drools-core/src/main/java/org/drools/core/process/impl/DefaultWorkItemManagerFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.process.impl; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/process/impl/WorkItemImpl.java b/drools-core/src/main/java/org/drools/core/process/impl/WorkItemImpl.java index aea1ac5d50c..1a080ceeaa4 100644 --- a/drools-core/src/main/java/org/drools/core/process/impl/WorkItemImpl.java +++ b/drools-core/src/main/java/org/drools/core/process/impl/WorkItemImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.process.impl; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AbstractLeftTupleSinkAdapter.java b/drools-core/src/main/java/org/drools/core/reteoo/AbstractLeftTupleSinkAdapter.java index 4956a9b69cb..113890a1415 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AbstractLeftTupleSinkAdapter.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AbstractLeftTupleSinkAdapter.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; /** * An abstract super class for the LeftTupleSinkAdapters diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AbstractTerminalNode.java b/drools-core/src/main/java/org/drools/core/reteoo/AbstractTerminalNode.java index e89b6cd4280..5faba436799 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AbstractTerminalNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AbstractTerminalNode.java @@ -1,42 +1,45 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.function.Consumer; - +import org.drools.base.base.ObjectType; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.Pattern; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ObjectType; import org.drools.core.common.BaseNode; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; import org.drools.core.common.UpdateContext; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.SegmentMemory.SegmentPrototype; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.Pattern; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.util.bitmask.EmptyBitMask; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.BitMask; +import org.drools.util.bitmask.EmptyBitMask; -import static org.drools.core.reteoo.PropertySpecificUtil.isPropertyReactive; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.function.Consumer; + +import static org.drools.base.reteoo.PropertySpecificUtil.isPropertyReactive; public abstract class AbstractTerminalNode extends BaseNode implements TerminalNode { /** The rule to invoke upon match. */ @@ -77,10 +80,10 @@ public abstract class AbstractTerminalNode extends BaseNode implements TerminalN public AbstractTerminalNode() { } - public AbstractTerminalNode(int id, RuleBasePartitionId partitionId, boolean partitionsEnabled, LeftTupleSource source, + public AbstractTerminalNode(int id, RuleBasePartitionId partitionId, LeftTupleSource source, BuildContext context, RuleImpl rule, GroupElement subrule, int subruleIndex) { - super(id, partitionId, partitionsEnabled); + super(id, partitionId); this.tupleSource = source; this.rule = rule; this.subrule = subrule; @@ -214,7 +217,7 @@ protected void initDeclaredMask(BuildContext context) { Pattern pattern = context.getLastBuiltPatterns()[0]; ObjectType objectType = pattern.getObjectType(); - if ( isPropertyReactive(context, objectType) ) { + if ( isPropertyReactive(context.getRuleBase(), objectType) ) { List accessibleProperties = pattern.getAccessibleProperties( context.getRuleBase() ); setDeclaredMask( pattern.getPositiveWatchMask(accessibleProperties) ); setNegativeMask( pattern.getNegativeWatchMask(accessibleProperties) ); @@ -255,8 +258,8 @@ public static PathMemory initPathMemory( PathEndNode pathEndNode, PathMemory pme } public LeftTuple createPeer(LeftTuple original) { - RuleTerminalNodeLeftTuple peer = (RuleTerminalNodeLeftTuple) AgendaComponentFactory.get().createTerminalTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + LeftTuple peer = AgendaComponentFactory.get().createTerminalTuple(); + peer.initPeer(original, this); original.setPeer( peer ); return peer; } @@ -336,15 +339,6 @@ public final boolean hasPathNode(LeftTupleNode node) { return false; } - public final boolean isTerminalNodeOf(LeftTupleNode node) { - for (PathEndNode pathEndNode : getPathEndNodes()) { - if (pathEndNode.hasPathNode( node )) { - return true; - } - } - return false; - } - public LeftTupleSinkPropagator getSinkPropagator() { return EmptyLeftTupleSinkAdapter.getInstance(); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/BaseTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/AbstractTuple.java similarity index 65% rename from drools-core/src/main/java/org/drools/core/reteoo/BaseTuple.java rename to drools-core/src/main/java/org/drools/core/reteoo/AbstractTuple.java index 65b739942a3..fe770fb8193 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/BaseTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AbstractTuple.java @@ -1,27 +1,30 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.reteoo; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.drools.core.common.PropagationContext; +import org.kie.api.runtime.rule.FactHandle; -public abstract class BaseTuple implements Tuple { +public abstract class AbstractTuple implements Tuple { private short stagedType; private Object contextObject; @@ -34,9 +37,9 @@ public abstract class BaseTuple implements Tuple { protected Tuple stagedPrevious; private Tuple previous; - private Tuple next; + private AbstractTuple next; - protected Sink sink; + private Sink sink; protected Tuple handlePrevious; protected Tuple handleNext; @@ -79,12 +82,12 @@ public InternalFactHandle getFactHandle() { * cloned and linked by a WindowNode */ public InternalFactHandle getOriginalFactHandle() { - InternalFactHandle linkedFH = handle.isEvent() ? ((EventFactHandle)handle).getLinkedFactHandle() : null; + InternalFactHandle linkedFH = handle.isEvent() ? ((DefaultEventHandle)handle).getLinkedFactHandle() : null; return linkedFH != null ? linkedFH : handle; } - public void setFactHandle( InternalFactHandle handle ) { - this.handle = handle; + public void setFactHandle( FactHandle handle ) { + this.handle = (InternalFactHandle) handle; } public PropagationContext getPropagationContext() { @@ -111,11 +114,11 @@ public void setPrevious(Tuple previous) { this.previous = previous; } - public Tuple getNext() { + public AbstractTuple getNext() { return next; } - public void setNext(Tuple next) { + public void setNext(AbstractTuple next) { this.next = next; } @@ -126,30 +129,10 @@ public void clear() { } @Override - public InternalFactHandle get( Declaration declaration ) { + public FactHandle get(Declaration declaration) { return get(declaration.getTupleIndex()); } - @Override - public void increaseActivationCountForEvents() { - for ( Tuple entry = skipEmptyHandles(); entry != null; entry = entry.getParent() ) { - if(entry.getFactHandle().isEvent()) { - // can be null for eval, not and exists that have no right input - ((EventFactHandle)entry.getFactHandle()).increaseActivationsCount(); - } - } - } - - @Override - public void decreaseActivationCountForEvents() { - for ( Tuple entry = skipEmptyHandles(); entry != null; entry = entry.getParent() ) { - if(entry.getFactHandle().isEvent()) { - // can be null for eval, not and exists that have no right input - ((EventFactHandle)entry.getFactHandle()).decreaseActivationsCount(); - } - } - } - @Override public Tuple getTuple(int index) { Tuple entry = this; @@ -199,4 +182,12 @@ public boolean isExpired() { public void setExpired() { this.expired = true; } + + protected Sink getSink() { + return sink; + } + + protected void setSink(Sink sink) { + this.sink = sink; + } } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AccumulateNode.java b/drools-core/src/main/java/org/drools/core/reteoo/AccumulateNode.java index 707e763f3c6..4e95d6b71a5 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AccumulateNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AccumulateNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.Arrays; @@ -21,26 +23,28 @@ import java.util.List; import java.util.Map; +import org.drools.base.reteoo.AccumulateContextEntry; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.BetaConstraints; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.Memory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.PhreakAccumulateNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.base.ObjectType; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.base.ObjectType; import org.drools.core.common.PropagationContext; import org.drools.core.util.AbstractBaseLinkedListNode; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.core.util.index.TupleList; /** @@ -92,7 +96,7 @@ public AccumulateNode(final int id, } - private void addAccFunctionDeclarationsToLeftMask(RuleBase ruleBase, LeftTupleSource leftInput, Accumulate accumulate ) { + private void addAccFunctionDeclarationsToLeftMask(InternalRuleBase ruleBase, LeftTupleSource leftInput, Accumulate accumulate) { BitMask leftMask = getLeftInferredMask(); ObjectType leftObjectType = leftInput.getObjectType(); if (leftObjectType instanceof ClassObjectType ) { @@ -281,72 +285,6 @@ public interface BaseAccumulation { } - public static class AccumulateContextEntry { - private Object key; - private InternalFactHandle resultFactHandle; - private LeftTuple resultLeftTuple; - private boolean propagated; - private Object functionContext; - private boolean toPropagate; - private boolean empty = true; - - public AccumulateContextEntry(Object key) { - this.key = key; - } - - public InternalFactHandle getResultFactHandle() { - return resultFactHandle; - } - - public void setResultFactHandle(InternalFactHandle resultFactHandle) { - this.resultFactHandle = resultFactHandle; - } - - public LeftTuple getResultLeftTuple() { - return resultLeftTuple; - } - - public void setResultLeftTuple(LeftTuple resultLeftTuple) { - this.resultLeftTuple = resultLeftTuple; - } - - public boolean isPropagated() { - return propagated; - } - - public void setPropagated( boolean propagated ) { - this.propagated = propagated; - } - - public boolean isToPropagate() { - return toPropagate; - } - - public void setToPropagate(boolean toPropagate) { - this.toPropagate = toPropagate; - } - - public Object getFunctionContext() { - return functionContext; - } - - public void setFunctionContext(Object context) { - this.functionContext = context; - } - - public Object getKey() { - return this.key; - } - - public boolean isEmpty() { - return empty; - } - - public void setEmpty( boolean empty ) { - this.empty = empty; - } - } - public static class AccumulateContext extends AccumulateContextEntry implements BaseAccumulation { private PropagationContext propagationContext; @@ -468,7 +406,7 @@ public LeftTuple createLeftTuple(LeftTuple leftTuple, public LeftTuple createPeer(LeftTuple original) { JoinNodeLeftTuple peer = new JoinNodeLeftTuple(); - peer.initPeer((BaseLeftTuple) original, this); + peer.initPeer(original, this); original.setPeer(peer); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AgendaComponentFactory.java b/drools-core/src/main/java/org/drools/core/reteoo/AgendaComponentFactory.java index 15a419f6362..30279742fa7 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AgendaComponentFactory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AgendaComponentFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.InternalAgendaGroup; @@ -46,7 +48,7 @@ static AgendaComponentFactory get() { return AgendaComponentFactory.Holder.INSTANCE; } - public class AgendaComponentFactoryImpl implements AgendaComponentFactory { + class AgendaComponentFactoryImpl implements AgendaComponentFactory { public AgendaComponentFactoryImpl() { } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AlphaNode.java b/drools-core/src/main/java/org/drools/core/reteoo/AlphaNode.java index d1b14439ec5..8555aa78176 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AlphaNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AlphaNode.java @@ -1,35 +1,39 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.List; - -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.common.NetworkNode; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.reteoo.BaseTerminalNode; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.NetworkNode; import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.kie.api.definition.rule.Rule; +import java.util.List; + /** * AlphaNodes are nodes in the Rete network used * to apply FieldConstraint<.code>s on asserted fact @@ -71,11 +75,10 @@ public AlphaNode(final int id, final ObjectSource objectSource, final BuildContext context) { super(id, - context.getPartitionId(), - context.getRuleBase().getRuleBaseConfiguration().isMultithreadEvaluation(), - objectSource, - context.getRuleBase().getRuleBaseConfiguration().getAlphaNodeHashingThreshold(), - context.getRuleBase().getRuleBaseConfiguration().getAlphaNodeRangeIndexThreshold()); + context.getPartitionId(), + objectSource, + context.getRuleBase().getRuleBaseConfiguration().getAlphaNodeHashingThreshold(), + context.getRuleBase().getRuleBaseConfiguration().getAlphaNodeRangeIndexThreshold()); this.constraint = constraint.cloneIfInUse(); this.constraint.registerEvaluationContext(context); @@ -279,12 +282,12 @@ public boolean isAssociatedWith(Rule rule) { } @Override - public void addAssociatedTerminal(TerminalNode terminalNode) { + public void addAssociatedTerminal(BaseTerminalNode terminalNode) { sink.addAssociatedTerminal(terminalNode); } @Override - public void removeAssociatedTerminal(TerminalNode terminalNode) { + public void removeAssociatedTerminal(BaseTerminalNode terminalNode) { sink.removeAssociatedTerminal(terminalNode); } @@ -294,7 +297,7 @@ public int getAssociatedTerminalsSize() { } @Override - public boolean hasAssociatedTerminal(NetworkNode terminalNode) { + public boolean hasAssociatedTerminal(BaseTerminalNode terminalNode) { return sink.hasAssociatedTerminal(terminalNode); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AlphaTerminalNode.java b/drools-core/src/main/java/org/drools/core/reteoo/AlphaTerminalNode.java index 269a7c2c213..c2b9ff969cf 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AlphaTerminalNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AlphaTerminalNode.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.ActivationsManager; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.ReteEvaluator; import org.drools.core.phreak.PhreakRuleTerminalNode; import org.drools.core.phreak.RuleAgendaItem; @@ -42,7 +46,7 @@ public void assertObject( InternalFactHandle factHandle, PropagationContext prop for (int i = 0; i < sinks.length; i++) { TerminalNode rtn = ( TerminalNode ) sinks[i]; RuleAgendaItem agendaItem = getRuleAgendaItem( reteEvaluator, activationsManager, rtn, true ); - LeftTuple leftTuple = rtn.createLeftTuple( factHandle, true ); + LeftTuple leftTuple = rtn.createLeftTuple(factHandle, true ); leftTuple.setPropagationContext( propagationContext ); if ( rtn.getRule().getAutoFocus() && !agendaItem.getAgendaGroup().isActive() ) { @@ -90,7 +94,7 @@ public void modifyObject(InternalFactHandle factHandle, ModifyPreviousTuples mod public void retractLeftTuple(LeftTuple leftTuple, PropagationContext context, ReteEvaluator reteEvaluator) { ActivationsManager activationsManager = reteEvaluator.getActivationsManager(); leftTuple.setPropagationContext( context ); - TerminalNode rtn = leftTuple.getTupleSink(); + TerminalNode rtn = (TerminalNode) leftTuple.getTupleSink(); PhreakRuleTerminalNode.doLeftDelete( activationsManager, getRuleAgendaItem( reteEvaluator, activationsManager, rtn, false ).getRuleExecutor(), leftTuple ); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AsyncMessage.java b/drools-core/src/main/java/org/drools/core/reteoo/AsyncMessage.java index 82e0ba65549..00ea5c5fea7 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AsyncMessage.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AsyncMessage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.ReteEvaluator; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AsyncMessagesCoordinator.java b/drools-core/src/main/java/org/drools/core/reteoo/AsyncMessagesCoordinator.java index a0f66bff340..00344dfbde9 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AsyncMessagesCoordinator.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AsyncMessagesCoordinator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.ArrayList; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AsyncReceiveNode.java b/drools-core/src/main/java/org/drools/core/reteoo/AsyncReceiveNode.java index e1d0e83bee1..dc691de8d95 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AsyncReceiveNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AsyncReceiveNode.java @@ -1,25 +1,28 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.BetaConstraints; import org.drools.core.common.EmptyBetaConstraints; @@ -30,9 +33,9 @@ import org.drools.core.common.UpdateContext; import org.drools.core.phreak.PropagationEntry; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.AsyncReceive; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.AsyncReceive; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.core.common.PropagationContext; import org.drools.core.util.AbstractBaseLinkedListNode; import org.drools.core.util.index.TupleList; @@ -170,9 +173,9 @@ public AsyncReceiveMemory createMemory( final RuleBaseConfiguration config, Rete } @Override - public LeftTuple createPeer( LeftTuple original ) { + public LeftTuple createPeer(LeftTuple original ) { EvalNodeLeftTuple peer = new EvalNodeLeftTuple(); - peer.initPeer( ( BaseLeftTuple ) original, this ); + peer.initPeer(original, this); original.setPeer( peer ); return peer; } @@ -230,34 +233,34 @@ public short getType() { return NodeTypeEnums.AsyncReceiveNode; } - public LeftTuple createLeftTuple( InternalFactHandle factHandle, - boolean leftTupleMemoryEnabled ) { + public LeftTuple createLeftTuple(InternalFactHandle factHandle, + boolean leftTupleMemoryEnabled ) { return new EvalNodeLeftTuple( factHandle, this, leftTupleMemoryEnabled ); } - public LeftTuple createLeftTuple( final InternalFactHandle factHandle, - final LeftTuple leftTuple, - final Sink sink ) { + public LeftTuple createLeftTuple(final InternalFactHandle factHandle, + final LeftTuple leftTuple, + final Sink sink ) { return new EvalNodeLeftTuple( factHandle, leftTuple, sink ); } @Override - public LeftTuple createLeftTuple( LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled ) { + public LeftTuple createLeftTuple(LeftTuple leftTuple, Sink sink, PropagationContext pctx, boolean leftTupleMemoryEnabled ) { return new EvalNodeLeftTuple(leftTuple, sink, pctx, leftTupleMemoryEnabled); } - public LeftTuple createLeftTuple( LeftTuple leftTuple, - RightTuple rightTuple, - Sink sink ) { + public LeftTuple createLeftTuple(LeftTuple leftTuple, + RightTuple rightTuple, + Sink sink ) { return new EvalNodeLeftTuple( leftTuple, rightTuple, sink ); } - public LeftTuple createLeftTuple( LeftTuple leftTuple, - RightTuple rightTuple, - LeftTuple currentLeftChild, - LeftTuple currentRightChild, - Sink sink, - boolean leftTupleMemoryEnabled ) { + public LeftTuple createLeftTuple(LeftTuple leftTuple, + RightTuple rightTuple, + LeftTuple currentLeftChild, + LeftTuple currentRightChild, + Sink sink, + boolean leftTupleMemoryEnabled ) { return new EvalNodeLeftTuple( leftTuple, rightTuple, currentLeftChild, currentRightChild, sink, leftTupleMemoryEnabled ); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/AsyncSendNode.java b/drools-core/src/main/java/org/drools/core/reteoo/AsyncSendNode.java index b2595aad3d5..148eb323373 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/AsyncSendNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/AsyncSendNode.java @@ -1,25 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.Serializable; import java.util.Arrays; import java.util.Objects; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.BetaConstraints; import org.drools.core.common.EmptyBetaConstraints; @@ -29,9 +32,9 @@ import org.drools.core.common.ReteEvaluator; import org.drools.core.common.UpdateContext; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.AsyncSend; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.accessor.DataProvider; +import org.drools.base.rule.AsyncSend; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.accessor.DataProvider; import org.drools.core.common.PropagationContext; import org.drools.core.util.AbstractBaseLinkedListNode; import org.drools.core.util.index.TupleList; @@ -176,7 +179,7 @@ public T createMemory(final RuleBaseConfiguration config, ReteEvaluator reteEval @Override public LeftTuple createPeer(LeftTuple original) { JoinNodeLeftTuple peer = new JoinNodeLeftTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + peer.initPeer(original, this); original.setPeer( peer ); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/BaseLeftTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/BaseLeftTuple.java deleted file mode 100644 index 5508595332e..00000000000 --- a/drools-core/src/main/java/org/drools/core/reteoo/BaseLeftTuple.java +++ /dev/null @@ -1,687 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.reteoo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; - -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.PropagationContext; -import org.drools.core.util.index.TupleList; - -/** - * A parent class for all specific LeftTuple specializations - * - */ -public class BaseLeftTuple extends BaseTuple implements LeftTuple { - private static final long serialVersionUID = 540l; - - private int index; - - private LeftTuple parent; - - // left and right tuples in parent - private LeftTuple leftParent; - - private RightTuple rightParent; - private LeftTuple rightParentPrevious; - private LeftTuple rightParentNext; - - // children - private LeftTuple firstChild; - private LeftTuple lastChild; - - // node memory - protected TupleList memory; - - private LeftTuple peer; - - private short stagedTypeForQueries; - - public BaseLeftTuple() { - // constructor needed for serialisation - } - - // ------------------------------------------------------------ - // Constructors - // ------------------------------------------------------------ - public BaseLeftTuple(InternalFactHandle factHandle, - Sink sink, - boolean leftTupleMemoryEnabled) { - setFactHandle( factHandle ); - this.sink = sink; - if ( leftTupleMemoryEnabled ) { - factHandle.addTupleInPosition( this ); - } - } - - public BaseLeftTuple(InternalFactHandle factHandle, - LeftTuple leftTuple, - Sink sink) { - setFactHandle( factHandle ); - this.index = leftTuple.getIndex() + 1; - this.parent = leftTuple.getNextParentWithHandle(); - this.leftParent = leftTuple; - this.sink = sink; - } - - public BaseLeftTuple(LeftTuple leftTuple, - Sink sink, - PropagationContext pctx, - boolean leftTupleMemoryEnabled) { - this.index = leftTuple.getIndex() + 1; - this.parent = leftTuple.getNextParentWithHandle(); - this.leftParent = leftTuple; - setPropagationContext( pctx ); - - if ( leftTupleMemoryEnabled ) { - if ( leftTuple.getLastChild() != null ) { - this.handlePrevious = leftTuple.getLastChild(); - this.handlePrevious.setHandleNext( this ); - } else { - leftTuple.setFirstChild( this ); - } - leftTuple.setLastChild( this ); - } - - this.sink = sink; - } - - public BaseLeftTuple(LeftTuple leftTuple, - RightTuple rightTuple, - Sink sink) { - this.index = leftTuple.getIndex() + 1; - this.parent = leftTuple.getNextParentWithHandle(); - this.leftParent = leftTuple; - this.rightParent = rightTuple; - - setFactHandle( rightTuple.getFactHandle() ); - setPropagationContext( rightTuple.getPropagationContext() ); - - // insert at the end f the list - if ( leftTuple.getLastChild() != null ) { - this.handlePrevious = leftTuple.getLastChild(); - this.handlePrevious.setHandleNext( this ); - } else { - leftTuple.setFirstChild( this ); - } - leftTuple.setLastChild( this ); - - // insert at the end of the list - if ( rightTuple.getLastChild() != null ) { - this.rightParentPrevious = rightTuple.getLastChild(); - this.rightParentPrevious.setRightParentNext( this ); - } else { - rightTuple.setFirstChild( this ); - } - rightTuple.setLastChild( this ); - this.sink = sink; - } - - public BaseLeftTuple(LeftTuple leftTuple, - RightTuple rightTuple, - Sink sink, - boolean leftTupleMemoryEnabled) { - this( leftTuple, - rightTuple, - null, - null, - sink, - leftTupleMemoryEnabled ); - } - - public BaseLeftTuple(LeftTuple leftTuple, - RightTuple rightTuple, - LeftTuple currentLeftChild, - LeftTuple currentRightChild, - Sink sink, - boolean leftTupleMemoryEnabled) { - setFactHandle( rightTuple.getFactHandle() ); - this.index = leftTuple.getIndex() + 1; - this.parent = leftTuple.getNextParentWithHandle(); - this.leftParent = leftTuple; - this.rightParent = rightTuple; - setPropagationContext( rightTuple.getPropagationContext() ); - - if ( leftTupleMemoryEnabled ) { - if( currentLeftChild == null ) { - // insert at the end of the list - if ( leftTuple.getLastChild() != null ) { - this.handlePrevious = leftTuple.getLastChild(); - this.handlePrevious.setHandleNext( this ); - } else { - leftTuple.setFirstChild( this ); - } - leftTuple.setLastChild( this ); - } else { - // insert before current child - this.handleNext = currentLeftChild; - this.handlePrevious = currentLeftChild.getHandlePrevious(); - currentLeftChild.setHandlePrevious( this ); - if( this.handlePrevious == null ) { - this.leftParent.setFirstChild( this ); - } else { - this.handlePrevious.setHandleNext( this ); - } - } - - if( currentRightChild == null ) { - // insert at the end of the list - if ( rightTuple.getLastChild() != null ) { - this.rightParentPrevious = rightTuple.getLastChild(); - this.rightParentPrevious.setRightParentNext( this ); - } else { - rightTuple.setFirstChild( this ); - } - rightTuple.setLastChild( this ); - } else { - // insert before current child - this.rightParentNext = currentRightChild; - this.rightParentPrevious = currentRightChild.getRightParentPrevious(); - currentRightChild.setRightParentPrevious( this ); - if( this.rightParentPrevious == null ) { - this.rightParent.setFirstChild( this ); - } else { - this.rightParentPrevious.setRightParentNext( this ); - } - } - } - - this.sink = sink; - } - - @Override - public LeftTuple getNextParentWithHandle() { - // if parent is null, then we are LIAN - return (handle!=null) ? this : parent != null ? parent.getNextParentWithHandle() : this; - } - - @Override - public void reAdd() { - getFactHandle().addLastLeftTuple( this ); - } - - @Override - public void reAddLeft() { - // The parent can never be the FactHandle (root LeftTuple) as that is handled by reAdd() - // make sure we aren't already at the end - if ( this.handleNext != null ) { - if ( this.handlePrevious != null ) { - // remove the current LeftTuple from the middle of the chain - this.handlePrevious.setHandleNext( this.handleNext ); - this.handleNext.setHandlePrevious( this.handlePrevious ); - } else { - if( this.leftParent.getFirstChild() == this ) { - // remove the current LeftTuple from start start of the chain - this.leftParent.setFirstChild( getHandleNext() ); - } - this.handleNext.setHandlePrevious( null ); - } - // re-add to end - this.handlePrevious = this.leftParent.getLastChild(); - this.handlePrevious.setHandleNext( this ); - this.leftParent.setLastChild( this ); - this.handleNext = null; - } - } - - @Override - public void reAddRight() { - // make sure we aren't already at the end - if ( this.rightParentNext != null ) { - if ( this.rightParentPrevious != null ) { - // remove the current LeftTuple from the middle of the chain - this.rightParentPrevious.setRightParentNext( this.rightParentNext ); - this.rightParentNext.setRightParentPrevious( this.rightParentPrevious ); - } else { - if( this.rightParent.getFirstChild() == this ) { - // remove the current LeftTuple from the start of the chain - this.rightParent.setFirstChild( this.rightParentNext ); - } - this.rightParentNext.setRightParentPrevious( null ); - } - // re-add to end - this.rightParentPrevious = this.rightParent.getLastChild(); - this.rightParentPrevious.setRightParentNext( this ); - this.rightParent.setLastChild( this ); - this.rightParentNext = null; - } - } - - @Override - public void unlinkFromLeftParent() { - LeftTuple previousParent = getHandlePrevious(); - LeftTuple nextParent = getHandleNext(); - - if ( previousParent != null && nextParent != null ) { - //remove from middle - this.handlePrevious.setHandleNext( nextParent ); - this.handleNext.setHandlePrevious( previousParent ); - } else if ( nextParent != null ) { - //remove from first - if ( this.leftParent != null ) { - this.leftParent.setFirstChild( nextParent ); - } else { - // This is relevant to the root node and only happens at rule removal time - getFactHandle().removeLeftTuple( this ); - } - nextParent.setHandlePrevious( null ); - } else if ( previousParent != null ) { - //remove from end - if ( this.leftParent != null ) { - this.leftParent.setLastChild( previousParent ); - } else { - // relevant to the root node, as here the parent is the FactHandle, only happens at rule removal time - getFactHandle().removeLeftTuple( this ); - } - previousParent.setHandleNext( null ); - } else { - // single remaining item, no previous or next - if( leftParent != null ) { - this.leftParent.setFirstChild( null ); - this.leftParent.setLastChild( null ); - } else { - // it is a root tuple - only happens during rule removal - getFactHandle().removeLeftTuple( this ); - } - } - - this.handlePrevious = null; - this.handleNext = null; - } - - @Override - public void unlinkFromRightParent() { - if ( this.rightParent == null ) { - // no right parent; - return; - } - - LeftTuple previousParent = this.rightParentPrevious; - LeftTuple nextParent = this.rightParentNext; - - if ( previousParent != null && nextParent != null ) { - // remove from middle - this.rightParentPrevious.setRightParentNext( this.rightParentNext ); - this.rightParentNext.setRightParentPrevious( this.rightParentPrevious ); - } else if ( nextParent != null ) { - // remove from the start - this.rightParent.setFirstChild( nextParent ); - nextParent.setRightParentPrevious( null ); - } else if ( previousParent != null ) { - // remove from end - this.rightParent.setLastChild( previousParent ); - previousParent.setRightParentNext( null ); - } else { - // single remaining item, no previous or next - this.rightParent.setFirstChild( null ); - this.rightParent.setLastChild( null ); - } - - this.rightParentPrevious = null; - this.rightParentNext = null; - } - - @Override - public int getIndex() { - return this.index; - } - - @Override - public LeftTupleSink getTupleSink() { - return (LeftTupleSink)sink; - } - - /* Had to add the set method because sink adapters must override - * the tuple sink set when the tuple was created. - */ - @Override - public void setLeftTupleSink( LeftTupleSink sink ) { - this.sink = sink; - } - - @Override - public LeftTuple getLeftParent() { - return leftParent; - } - - @Override - public void setLeftParent(LeftTuple leftParent) { - this.leftParent = leftParent; - } - - @Override - public LeftTuple getHandlePrevious() { - return (LeftTuple) handlePrevious; - } - - @Override - public LeftTuple getHandleNext() { - return (LeftTuple) handleNext; - } - - @Override - public RightTuple getRightParent() { - return rightParent; - } - - @Override - public void setRightParent(RightTuple rightParent) { - this.rightParent = rightParent; - } - - @Override - public LeftTuple getRightParentPrevious() { - return rightParentPrevious; - } - - @Override - public void setRightParentPrevious(LeftTuple rightParentLeft) { - this.rightParentPrevious = rightParentLeft; - } - - @Override - public LeftTuple getRightParentNext() { - return rightParentNext; - } - - @Override - public void setRightParentNext(LeftTuple rightParentRight) { - this.rightParentNext = rightParentRight; - } - - @Override - public InternalFactHandle get(int index) { - LeftTuple entry = this; - while ( entry.getIndex() != index) { - entry = entry.getParent(); - } - return entry.getFactHandle(); - } - - public InternalFactHandle[] toFactHandles() { - // always use the count of the node that created join (not the sink target) - InternalFactHandle[] handles = new InternalFactHandle[((LeftTupleSinkNode)sink).getLeftTupleSource().getObjectCount()]; - LeftTuple entry = (LeftTuple) skipEmptyHandles(); - for(int i = handles.length-1; i >= 0; i--) { - handles[i] = entry.getFactHandle(); - entry = entry.getParent(); - } - return handles; - } - - public Object[] toObjects(boolean reverse) { - // always use the count of the node that created join (not the sink target) - Object[] objs = new Object[((LeftTupleSinkNode)sink).getLeftTupleSource().getObjectCount()]; - LeftTuple entry = (LeftTuple) skipEmptyHandles(); - - if (!reverse) { - for (int i = objs.length - 1; i >= 0; i--) { - objs[i] = entry.getFactHandle().getObject(); - entry = entry.getParent(); - } - } else { - for (int i = 0; i < objs.length; i++) { - objs[i] = entry.getFactHandle().getObject(); - entry = entry.getParent(); - } - } - - return objs; - } - - public void clearBlocker() { - throw new UnsupportedOperationException(); - } - - @Override - public void setBlocker(RightTuple blocker) { - throw new UnsupportedOperationException(); - } - - @Override - public RightTuple getBlocker() { - throw new UnsupportedOperationException(); - } - - @Override - public LeftTuple getBlockedPrevious() { - throw new UnsupportedOperationException(); - } - - @Override - public void setBlockedPrevious(LeftTuple blockerPrevious) { - throw new UnsupportedOperationException(); - } - - @Override - public LeftTuple getBlockedNext() { - throw new UnsupportedOperationException(); - } - - @Override - public void setBlockedNext(LeftTuple blockerNext) { - throw new UnsupportedOperationException(); - } - - @Override - public String toString() { - final StringBuilder buffer = new StringBuilder(); - - Tuple entry = skipEmptyHandles();; - while ( entry != null ) { - //buffer.append( entry.handle ); - buffer.append(entry.getFactHandle()); - if ( entry.getParent() != null ) { - buffer.append("\n"); - } - entry = entry.getParent(); - } - return buffer.toString(); - } - - @Override - public int hashCode() { - return getFactHandle() == null ? 0 : getFactHandle().hashCode(); - } - - @Override - public boolean equals(Object object) { - if (object == this) { - return true; - } - - if (!(object instanceof LeftTuple)) { - return false; - } - - LeftTuple other = ( (LeftTuple) object ); - - // A LeftTuple is only the same if it has the same hashCode, factId and parent - if ( this.hashCode() != other.hashCode() || getFactHandle() != other.getFactHandle() ) { - return false; - } - - if ( this.parent == null ) { - return (other.getParent() == null); - } else { - return this.parent.equals( other.getParent() ); - } - } - - @Override - public int size() { - return this.index + 1; - } - - @Override - public LeftTuple getFirstChild() { - return firstChild; - } - - @Override - public void setFirstChild(LeftTuple firstChild) { - this.firstChild = firstChild; - } - - @Override - public LeftTuple getLastChild() { - return lastChild; - } - - @Override - public void setLastChild(LeftTuple lastChild) { - this.lastChild = lastChild; - } - - @Override - public TupleList getMemory() { - return this.memory; - } - - @Override - public void setMemory(TupleList memory) { - this.memory = memory; - } - - @Override - public LeftTuple getStagedNext() { - return (LeftTuple) stagedNext; - } - - @Override - public LeftTuple getStagedPrevious() { - return (LeftTuple) stagedPrevious; - } - - @Override - public void clearStaged() { - super.clearStaged(); - if (getContextObject() == Boolean.TRUE) { - setContextObject( null ); - } - } - - @Override - public LeftTuple getPeer() { - return peer; - } - - @Override - public void setPeer(LeftTuple peer) { - this.peer = peer; - } - - @Override - public LeftTuple getSubTuple(final int elements) { - LeftTuple entry = this; - if ( elements <= this.size() ) { - final int lastindex = elements - 1; - - while ( entry.getIndex() != lastindex ) { - // This uses getLeftParent, instead of getParent, as the subnetwork tuple - // parent could be any node - entry = entry.getParent(); - } - } - return entry; - } - - @Override - public LeftTuple getParent() { - return parent; - } - - protected String toExternalString() { - StringBuilder builder = new StringBuilder(); - builder.append( String.format( "%08X", System.identityHashCode( this ) ) ).append( ":" ); - long[] ids = new long[this.index+1]; - Tuple entry = skipEmptyHandles();; - while( entry != null ) { - ids[entry.getIndex()] = entry.getFactHandle().getId(); - entry = entry.getParent(); - } - builder.append( Arrays.toString( ids ) ) - .append( " sink=" ) - .append( this.sink.getClass().getSimpleName() ) - .append( "(" ).append( sink.getId() ).append( ")" ); - return builder.toString(); - } - - @Override - public void clear() { - super.clear(); - this.memory = null; - } - - public void initPeer(BaseLeftTuple original, LeftTupleSink sink) { - this.index = original.index; - this.parent = original.parent; - this.leftParent = original.leftParent; - - setFactHandle( original.getFactHandle() ); - setPropagationContext( original.getPropagationContext() ); - this.sink = sink; - } - - @Override - public Object getObject(int index) { - return get(index).getObject(); - } - - @Override - public ObjectTypeNode.Id getInputOtnId() { - return sink != null ? getTupleSink().getLeftInputOtnId() : null; - } - - @Override - public LeftTupleSource getTupleSource() { - return sink != null ? getTupleSink().getLeftTupleSource() : null; - } - - public short getStagedTypeForQueries() { - return stagedTypeForQueries; - } - - public void setStagedTypeForQueries( short stagedTypeForQueries ) { - this.stagedTypeForQueries = stagedTypeForQueries; - } - - public boolean isStagedOnRight() { - return false; - } - - @Override - public Collection getAccumulatedObjects() { - if (getFirstChild() == null) { - return Collections.emptyList(); - } - Collection result = new ArrayList<>(); - if ( getContextObject() instanceof AccumulateNode.AccumulateContext ) { - for (LeftTuple child = getFirstChild(); child != null; child = child.getHandleNext()) { - result.add(child.getContextObject()); - } - } - if ( getFirstChild().getRightParent() instanceof SubnetworkTuple ) { - LeftTuple leftParent = (( SubnetworkTuple ) getFirstChild().getRightParent()).getLeftParent(); - result.addAll( leftParent.getAccumulatedObjects() ); - } - return result; - } -} diff --git a/drools-core/src/main/java/org/drools/core/reteoo/BetaMemory.java b/drools-core/src/main/java/org/drools/core/reteoo/BetaMemory.java index eda532d6a45..a77dae57cfb 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/BetaMemory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/BetaMemory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.Memory; @@ -21,7 +23,7 @@ import org.drools.core.common.TupleSets; import org.drools.core.common.TupleSetsImpl; import org.drools.core.reteoo.RightInputAdapterNode.RiaPathMemory; -import org.drools.core.rule.ContextEntry; +import org.drools.base.rule.ContextEntry; import org.drools.core.util.AbstractBaseLinkedListNode; public class BetaMemory extends AbstractBaseLinkedListNode diff --git a/drools-core/src/main/java/org/drools/core/reteoo/BetaNode.java b/drools-core/src/main/java/org/drools/core/reteoo/BetaNode.java index 785dc2c7d52..a7bb30f9ea8 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/BetaNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/BetaNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.ArrayList; @@ -21,8 +23,9 @@ import java.util.List; import java.util.Objects; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.core.common.BetaConstraints; import org.drools.core.common.DoubleBetaConstraints; import org.drools.core.common.DoubleNonIndexSkipBetaConstraints; @@ -33,7 +36,7 @@ import org.drools.core.common.QuadroupleBetaConstraints; import org.drools.core.common.QuadroupleNonIndexSkipBetaConstraints; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.common.SingleBetaConstraints; import org.drools.core.common.SingleNonIndexSkipBetaConstraints; import org.drools.core.common.TripleBetaConstraints; @@ -42,20 +45,20 @@ import org.drools.core.common.UpdateContext; import org.drools.core.reteoo.AccumulateNode.AccumulateMemory; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.util.FastIterator; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.util.bitmask.EmptyBitMask; -import org.drools.core.util.index.IndexUtil; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.BitMask; +import org.drools.util.bitmask.EmptyBitMask; +import org.drools.base.util.index.IndexUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static org.drools.core.phreak.RuleNetworkEvaluator.doUpdatesReorderChildLeftTuple; import static org.drools.core.phreak.TupleEvaluationUtil.flushLeftTupleIfNecessary; -import static org.drools.core.reteoo.PropertySpecificUtil.isPropertyReactive; +import static org.drools.base.reteoo.PropertySpecificUtil.isPropertyReactive; public abstract class BetaNode extends LeftTupleSource implements @@ -165,11 +168,11 @@ protected void initDeclaredMask(BuildContext context, if (!isRightInputIsRiaNode()) { ObjectType objectType = pattern.getObjectType(); - if (isPropertyReactive(context, objectType)) { + if (isPropertyReactive(context.getRuleBase(), objectType)) { rightListenedProperties = pattern.getListenedProperties(); List accessibleProperties = pattern.getAccessibleProperties( context.getRuleBase() ); rightDeclaredMask = pattern.getPositiveWatchMask(accessibleProperties); - rightDeclaredMask = rightDeclaredMask.setAll(constraints.getListenedPropertyMask(objectType, accessibleProperties)); + rightDeclaredMask = rightDeclaredMask.setAll(constraints.getListenedPropertyMask(pattern, objectType, accessibleProperties)); rightNegativeMask = pattern.getNegativeWatchMask(accessibleProperties); } else { // if property reactive is not on, then accept all modification propagations @@ -367,7 +370,7 @@ public void setRightInput( ObjectSource rightInput ) { rightInputIsRiaNode = NodeTypeEnums.RightInputAdapterNode == rightInput.getType(); } - public FastIterator getRightIterator( TupleMemory memory ) { + public FastIterator getRightIterator( TupleMemory memory ) { if ( this.indexedUnificationJoin ) { return memory.fullFastIterator(); } else { @@ -375,17 +378,17 @@ public FastIterator getRightIterator( TupleMemory memory ) { } } - public RightTuple getFirstRightTuple(final Tuple leftTuple, + public RightTupleImpl getFirstRightTuple(final Tuple leftTuple, final TupleMemory memory, final FastIterator it) { if ( this.indexedUnificationJoin ) { - return (RightTuple) it.next( null ); + return (RightTupleImpl) it.next( null ); } else { - return (RightTuple) memory.getFirst(leftTuple); + return (RightTupleImpl) memory.getFirst(leftTuple); } } - public FastIterator getLeftIterator(TupleMemory memory) { + public FastIterator getLeftIterator(TupleMemory memory) { if (rightInputIsRiaNode) { return FastIterator.NullFastIterator.INSTANCE; } else { @@ -404,7 +407,7 @@ public LeftTuple getFirstLeftTuple(final RightTuple rightTuple, return getStartTuple((SubnetworkTuple)rightTuple); } else { if ( this.indexedUnificationJoin ) { - return (LeftTuple) it.next( null ); + return (LeftTuple) it.next(null ); } else { return (LeftTuple) memory.getFirst(rightTuple); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ClassObjectTypeConf.java b/drools-core/src/main/java/org/drools/core/reteoo/ClassObjectTypeConf.java index 307074d9c70..810e8a01b73 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ClassObjectTypeConf.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ClassObjectTypeConf.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.beans.PropertyChangeListener; @@ -27,20 +29,19 @@ import java.util.List; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.DroolsQuery; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.impl.RuleBase; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.TypeDeclaration; +import org.drools.core.impl.InternalRuleBase; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.TypeDeclaration; import org.drools.core.rule.accessor.FactHandleFactory; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.TimeIntervalParser; +import org.drools.base.util.TimeIntervalParser; import org.kie.api.definition.type.Expires; import org.kie.api.definition.type.Role; import org.kie.api.definition.type.Role.Type; +import org.drools.base.base.ObjectType; public class ClassObjectTypeConf implements @@ -74,7 +75,7 @@ public ClassObjectTypeConf() { public ClassObjectTypeConf(final EntryPointId entryPoint, final Class< ? > clazz, - final RuleBase ruleBase) { + final InternalRuleBase ruleBase) { this.cls = (InternalMatch.class.isAssignableFrom(clazz) ) ? ClassObjectType.Match_ObjectType.getClassType() : clazz; this.entryPoint = entryPoint; @@ -91,7 +92,7 @@ public ClassObjectTypeConf(final EntryPointId entryPoint, if (isEvent) { Expires expires = clazz.getAnnotation(Expires.class); if (expires != null) { - expirationOffset = TimeIntervalParser.parseSingle( expires.value() ); + expirationOffset = TimeIntervalParser.parseSingle(expires.value()); } } } @@ -194,12 +195,7 @@ private ObjectTypeNode[] getMatchingObjectTypes(final Class clazz) { final List cache = new ArrayList<>(); for ( ObjectTypeNode node : rete.getObjectTypeNodes( this.entryPoint ).values() ) { - if ( clazz == DroolsQuery.class ) { - // for query objects only add direct matches - if ( ((ClassObjectType)node.getObjectType()).getClassType() == clazz ) { - cache.add( node ); - } - } else if ( node.isAssignableFrom( new ClassObjectType( clazz ) ) ) { + if ( node.isAssignableFrom( new ClassObjectType( clazz ) ) ) { cache.add( node ); } } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/CompositeLeftTupleSinkAdapter.java b/drools-core/src/main/java/org/drools/core/reteoo/CompositeLeftTupleSinkAdapter.java index a639e1c215c..aa90d48adc4 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/CompositeLeftTupleSinkAdapter.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/CompositeLeftTupleSinkAdapter.java @@ -1,23 +1,25 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.BaseNode; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import java.io.IOException; import java.io.ObjectInput; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/CompositeObjectSinkAdapter.java b/drools-core/src/main/java/org/drools/core/reteoo/CompositeObjectSinkAdapter.java index d732815442c..0dfe1e5226c 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/CompositeObjectSinkAdapter.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/CompositeObjectSinkAdapter.java @@ -1,21 +1,37 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; +import org.drools.base.base.ValueType; +import org.drools.base.common.NetworkNode; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.drools.core.common.BaseNode; +import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.PropagationContext; +import org.drools.core.common.ReteEvaluator; +import org.drools.core.util.index.AlphaRangeIndex; + import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; @@ -28,20 +44,7 @@ import java.util.Map; import java.util.Objects; -import org.drools.core.base.ValueType; -import org.drools.core.common.BaseNode; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.NetworkNode; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.common.PropagationContext; -import org.drools.core.util.index.AlphaRangeIndex; -import org.drools.core.util.index.IndexUtil.ConstraintType; - -import static org.drools.core.util.index.IndexUtil.isBigDecimalEqualityConstraint; +import static org.drools.base.util.index.IndexUtil.isBigDecimalEqualityConstraint; public class CompositeObjectSinkAdapter implements ObjectSinkPropagator { @@ -206,10 +209,10 @@ static ReadAccessor getHashableAccessor(AlphaNode alphaNode) { } private static boolean isHashable( IndexableConstraint indexableConstraint ) { - return indexableConstraint.getConstraintType() == ConstraintType.EQUAL && indexableConstraint.getField() != null && + return indexableConstraint.getConstraintType() == ConstraintTypeOperator.EQUAL && indexableConstraint.getField() != null && indexableConstraint.getFieldExtractor().getValueType() != ValueType.OBJECT_TYPE && - !isBigDecimalEqualityConstraint(indexableConstraint) && - // our current implementation does not support hashing of deeply nested properties + !isBigDecimalEqualityConstraint(indexableConstraint) && + // our current implementation does not support hashing of deeply nested properties indexableConstraint.getFieldExtractor().getIndex() >= 0; } @@ -472,7 +475,7 @@ private boolean isRangeIndexable(AlphaNode alphaNode) { AlphaNodeFieldConstraint fieldConstraint = alphaNode.getConstraint(); if (fieldConstraint instanceof IndexableConstraint) { IndexableConstraint indexableConstraint = (IndexableConstraint) fieldConstraint; - ConstraintType constraintType = indexableConstraint.getConstraintType(); + ConstraintTypeOperator constraintType = indexableConstraint.getConstraintType(); return (constraintType.isAscending() || constraintType.isDescending()) && indexableConstraint.getField() != null && !indexableConstraint.getField().isNull() && indexableConstraint.getFieldExtractor().getValueType() != ValueType.OBJECT_TYPE && @@ -900,7 +903,7 @@ public static class HashKey implements Externalizable { private int index; private Object value; - private boolean isNull; + private boolean isNull = false; private int hashCode; public HashKey() { } @@ -938,12 +941,17 @@ public void setValue(final int index, final Object value, final ReadAccessor extractor) { this.index = index; - isNull = extractor.isNullValue( null, value ); + Object extractedValue = extractor.getValue( null, value ); - if ( !isNull ) { - this.value = extractor.getValue( null, value ); - this.setHashCode( this.value != null ? this.value.hashCode() : 0 ); + if ( extractedValue != null ) { + try { + this.setHashCode(extractedValue.hashCode()); + } catch (UnsupportedOperationException e) { + this.setHashCode( 0 ); + } + this.value = extractedValue; } else { + this.isNull = true; this.setHashCode( 0 ); } } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/CompositePartitionAwareObjectSinkAdapter.java b/drools-core/src/main/java/org/drools/core/reteoo/CompositePartitionAwareObjectSinkAdapter.java index 73ef72aed48..3e6da453c65 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/CompositePartitionAwareObjectSinkAdapter.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/CompositePartitionAwareObjectSinkAdapter.java @@ -1,21 +1,35 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.core.common.ActivationsManager; +import org.drools.core.common.BaseNode; +import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.PropagationContext; +import org.drools.core.common.ReteEvaluator; +import org.drools.core.phreak.PropagationEntry; +import org.drools.core.reteoo.CompositeObjectSinkAdapter.FieldIndex; + import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; @@ -24,27 +38,17 @@ import java.util.Map; import java.util.stream.Stream; -import org.drools.core.common.ActivationsManager; -import org.drools.core.common.BaseNode; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.phreak.PropagationEntry; -import org.drools.core.reteoo.CompositeObjectSinkAdapter.FieldIndex; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.common.PropagationContext; - public class CompositePartitionAwareObjectSinkAdapter implements ObjectSinkPropagator { - private final ObjectSinkPropagator[] partitionedPropagators = new ObjectSinkPropagator[RuleBasePartitionId.PARALLEL_PARTITIONS_NUMBER]; + private final ObjectSinkPropagator[] partitionedPropagators; private boolean hashed = true; private CompositeObjectSinkAdapter.FieldIndex fieldIndex; private Map hashedSinkMap; - public CompositePartitionAwareObjectSinkAdapter() { + public CompositePartitionAwareObjectSinkAdapter(int parallelEvaluationSlotsCount) { + this.partitionedPropagators = new ObjectSinkPropagator[parallelEvaluationSlotsCount]; Arrays.fill(partitionedPropagators, EmptyObjectSinkAdapter.getInstance()); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ConditionalBranchEvaluator.java b/drools-core/src/main/java/org/drools/core/reteoo/ConditionalBranchEvaluator.java index 7e55edb64e4..3cbcca39019 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ConditionalBranchEvaluator.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ConditionalBranchEvaluator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; import java.io.Externalizable; @@ -21,8 +24,8 @@ import java.io.ObjectOutput; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.rule.EvalCondition; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.rule.EvalCondition; public class ConditionalBranchEvaluator implements Externalizable { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ConditionalBranchNode.java b/drools-core/src/main/java/org/drools/core/reteoo/ConditionalBranchNode.java index 10285521bf8..150a0771cfe 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ConditionalBranchNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ConditionalBranchNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; import java.io.Externalizable; @@ -20,6 +23,7 @@ import java.io.ObjectInput; import java.io.ObjectOutput; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.Memory; @@ -108,7 +112,7 @@ public ConditionalBranchMemory createMemory(final RuleBaseConfiguration config, @Override public LeftTuple createPeer(LeftTuple original) { EvalNodeLeftTuple peer = new EvalNodeLeftTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + peer.initPeer(original, this); original.setPeer( peer ); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/CoreComponentFactory.java b/drools-core/src/main/java/org/drools/core/reteoo/CoreComponentFactory.java index 6c1dafc72b8..1fadf22084a 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/CoreComponentFactory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/CoreComponentFactory.java @@ -1,22 +1,25 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.reteoo; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.impl.KnowledgePackageImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.impl.KnowledgePackageImpl; import org.drools.core.reteoo.builder.NodeFactory; import org.drools.core.reteoo.builder.PhreakNodeFactory; import org.kie.api.internal.utils.KieService; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/EmptyLeftTupleSinkAdapter.java b/drools-core/src/main/java/org/drools/core/reteoo/EmptyLeftTupleSinkAdapter.java index 5fb4b8d7df5..22319622907 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/EmptyLeftTupleSinkAdapter.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/EmptyLeftTupleSinkAdapter.java @@ -1,23 +1,25 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.BaseNode; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import java.io.IOException; import java.io.ObjectInput; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/EmptyObjectSinkAdapter.java b/drools-core/src/main/java/org/drools/core/reteoo/EmptyObjectSinkAdapter.java index 61a718068c9..9bb2b1b27ea 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/EmptyObjectSinkAdapter.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/EmptyObjectSinkAdapter.java @@ -1,29 +1,31 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; - import org.drools.core.common.BaseNode; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; import org.drools.core.common.PropagationContext; +import org.drools.core.common.ReteEvaluator; + +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; public class EmptyObjectSinkAdapter implements ObjectSinkPropagator { @@ -58,12 +60,6 @@ public void propagateAssertObject(final InternalFactHandle factHandle, } - public void propagateRetractObject(final InternalFactHandle handle, - final PropagationContext context, - final ReteEvaluator reteEvaluator, - final boolean useHash) { - } - public void propagateModifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, diff --git a/drools-core/src/main/java/org/drools/core/reteoo/EntryPointNode.java b/drools-core/src/main/java/org/drools/core/reteoo/EntryPointNode.java index 1aa70cf61f6..16551ad8276 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/EntryPointNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/EntryPointNode.java @@ -1,44 +1,48 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.EntryPointId; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.base.ClassObjectType; import org.drools.core.common.BaseNode; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ObjectTypeConfigurationRegistry; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.core.common.PropagationContext; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.PropagationEntry; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.EntryPointId; -import org.drools.core.base.ObjectType; -import org.drools.core.common.PropagationContext; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + /** * A node that is an entry point into the Rete network. * @@ -51,9 +55,7 @@ * @see ObjectTypeNode */ public class EntryPointNode extends ObjectSource implements ObjectSink { - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ + private static final long serialVersionUID = 510l; @@ -75,6 +77,8 @@ public class EntryPointNode extends ObjectSource implements ObjectSink { private ObjectTypeConfigurationRegistry typeConfReg; + private boolean parallelExecution = false; + // ------------------------------------------------------------ // Constructors // ------------------------------------------------------------ @@ -87,19 +91,16 @@ public EntryPointNode(final int id, final BuildContext context) { this( id, context.getPartitionId(), - context.getRuleBase().getRuleBaseConfiguration().isMultithreadEvaluation(), objectSource, context.getCurrentEntryPoint() ); // irrelevant for this node, since it overrides sink management } public EntryPointNode(final int id, final RuleBasePartitionId partitionId, - final boolean partitionsEnabled, final ObjectSource objectSource, final EntryPointId entryPoint) { super( id, partitionId, - partitionsEnabled, objectSource, 999, 999); // irrelevant for this node, since it overrides sink management @@ -114,6 +115,10 @@ public EntryPointNode(final int id, // Instance methods // ------------------------------------------------------------ + public void setupParallelExecution(InternalRuleBase kbase) { + parallelExecution = true; + } + public ObjectTypeConfigurationRegistry getTypeConfReg() { return typeConfReg; } @@ -128,9 +133,6 @@ public short getType() { public EntryPointId getEntryPoint() { return entryPoint; } - void setEntryPoint(EntryPointId entryPoint) { - this.entryPoint = entryPoint; - } public ObjectTypeNode getQueryNode() { if ( queryNode == null ) { @@ -190,9 +192,9 @@ public void assertObject(final InternalFactHandle handle, log.trace("Insert {}", handle.toString()); } - if ( partitionsEnabled || !reteEvaluator.isThreadSafe() ) { - // In case of multithreaded evaluation the CompositePartitionAwareObjectSinkAdapter - // used by the OTNs will take care of enqueueing this inseretion on the propagation queues + if ( parallelExecution || !reteEvaluator.isThreadSafe() ) { + // In case of parallel execution the CompositePartitionAwareObjectSinkAdapter + // used by the OTNs will take care of enqueueing this insertion on the propagation queues // of the different agendas PropagationEntry.Insert.execute( handle, context, reteEvaluator, objectTypeConf ); } else { @@ -288,10 +290,8 @@ public void assertObject(final InternalFactHandle factHandle, * @param reteEvaluator * The working memory session. */ - public void retractObject(final InternalFactHandle handle, - final PropagationContext context, - final ObjectTypeConf objectTypeConf, - final ReteEvaluator reteEvaluator) { + public void retractObject(InternalFactHandle handle, PropagationContext context, + ObjectTypeConf objectTypeConf, ReteEvaluator reteEvaluator) { if ( log.isTraceEnabled() ) { log.trace( "Delete {}", handle.toString() ); } @@ -299,6 +299,15 @@ public void retractObject(final InternalFactHandle handle, reteEvaluator.addPropagation(new PropagationEntry.Delete(this, handle, context, objectTypeConf)); } + public void immediateDeleteObject(InternalFactHandle handle, PropagationContext context, + ObjectTypeConf objectTypeConf, ReteEvaluator reteEvaluator) { + if ( log.isTraceEnabled() ) { + log.trace( "Delete {}", handle.toString() ); + } + + PropagationEntry.Delete.execute(reteEvaluator, this, handle, context, objectTypeConf); + } + public void propagateRetract(InternalFactHandle handle, PropagationContext context, ObjectTypeConf objectTypeConf, ReteEvaluator reteEvaluator) { ObjectTypeNode[] cachedNodes = objectTypeConf.getObjectTypeNodes(); @@ -314,7 +323,7 @@ public void propagateRetract(InternalFactHandle handle, PropagationContext conte } if (handle.isEvent()) { - ((EventFactHandle) handle).unscheduleAllJobs(reteEvaluator); + ((DefaultEventHandle) handle).unscheduleAllJobs(reteEvaluator); } } @@ -379,20 +388,16 @@ public boolean equals(final Object object) { this.entryPoint.equals( ( (EntryPointNode) object ).entryPoint ) ); } - public void updateSink(final ObjectSink sink, - final PropagationContext context, - final InternalWorkingMemory workingMemory) { + public void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory) { final ObjectTypeNode node = (ObjectTypeNode) sink; - final ObjectType newObjectType = node.getObjectType(); - WorkingMemoryEntryPoint wmEntryPoint = workingMemory.getEntryPoint( this.entryPoint.getEntryPointId() ); for ( ObjectTypeConf objectTypeConf : wmEntryPoint.getObjectTypeConfigurationRegistry().values() ) { if ( objectTypeConf.getConcreteObjectTypeNode() != null && newObjectType.isAssignableFrom( objectTypeConf.getConcreteObjectTypeNode().getObjectType() ) ) { objectTypeConf.resetCache(); ObjectTypeNode sourceNode = objectTypeConf.getConcreteObjectTypeNode(); - Iterator it = workingMemory.getNodeMemory( sourceNode ).iterator(); + Iterator it = sourceNode.getFactHandlesIterator(workingMemory); while ( it.hasNext() ) { sink.assertObject( it.next(), context, workingMemory ); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/EvalConditionNode.java b/drools-core/src/main/java/org/drools/core/reteoo/EvalConditionNode.java index b6a03453507..3a1f0acceb6 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/EvalConditionNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/EvalConditionNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.Externalizable; @@ -23,6 +25,7 @@ import java.util.HashMap; import java.util.Map; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.Memory; @@ -30,9 +33,9 @@ import org.drools.core.common.ReteEvaluator; import org.drools.core.common.UpdateContext; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.EvalCondition; +import org.drools.base.rule.EvalCondition; import org.drools.core.common.PropagationContext; -import org.drools.core.rule.RuleComponent; +import org.drools.base.rule.RuleComponent; import org.drools.core.util.AbstractBaseLinkedListNode; import org.kie.api.definition.rule.Rule; @@ -139,7 +142,7 @@ public EvalMemory createMemory(final RuleBaseConfiguration config, ReteEvaluator @Override public LeftTuple createPeer(LeftTuple original) { EvalNodeLeftTuple peer = new EvalNodeLeftTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + peer.initPeer(original, this); original.setPeer( peer ); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/EvalNodeLeftTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/EvalNodeLeftTuple.java index 63fabc0c24f..5de80c9576a 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/EvalNodeLeftTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/EvalNodeLeftTuple.java @@ -1,27 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.PropagationContext; -import java.util.Arrays; - -public class EvalNodeLeftTuple extends BaseLeftTuple { +public class EvalNodeLeftTuple extends LeftTuple { private static final long serialVersionUID = 540l; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ExistsNode.java b/drools-core/src/main/java/org/drools/core/reteoo/ExistsNode.java index 735fde0d6be..65a2add3d04 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ExistsNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ExistsNode.java @@ -1,21 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.BetaConstraints; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; @@ -101,7 +104,7 @@ public LeftTuple createLeftTuple(LeftTuple leftTuple, public LeftTuple createPeer(LeftTuple original) { NotNodeLeftTuple peer = new NotNodeLeftTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + peer.initPeer(original, this); original.setPeer( peer ); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/FactTemplateTypeConf.java b/drools-core/src/main/java/org/drools/core/reteoo/FactTemplateTypeConf.java index 878d7520cbb..60566ec838d 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/FactTemplateTypeConf.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/FactTemplateTypeConf.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.Externalizable; @@ -22,16 +24,16 @@ import java.io.ObjectOutput; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.facttemplates.Event; -import org.drools.core.facttemplates.Fact; -import org.drools.core.facttemplates.FactTemplate; -import org.drools.core.facttemplates.FactTemplateObjectType; -import org.drools.core.impl.RuleBase; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.facttemplates.Event; +import org.drools.base.facttemplates.Fact; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.facttemplates.FactTemplateObjectType; +import org.drools.core.impl.InternalRuleBase; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.TypeDeclaration; import org.drools.core.rule.accessor.FactHandleFactory; public class FactTemplateTypeConf @@ -41,7 +43,7 @@ public class FactTemplateTypeConf private static final long serialVersionUID = 510l; - private transient RuleBase ruleBase; + private transient InternalRuleBase ruleBase; private ObjectType objectType; private FactTemplate factTemplate; @@ -58,7 +60,7 @@ public FactTemplateTypeConf() { public FactTemplateTypeConf(final EntryPointId entryPoint, final FactTemplate factTemplate, - final RuleBase ruleBase) { + final InternalRuleBase ruleBase) { this.ruleBase = ruleBase; this.factTemplate = factTemplate; this.entryPoint = entryPoint; @@ -68,7 +70,7 @@ public FactTemplateTypeConf(final EntryPointId entryPoint, public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { - ruleBase = (RuleBase) in.readObject(); + ruleBase = (InternalRuleBase) in.readObject(); factTemplate = (FactTemplate) in.readObject(); concreteObjectTypeNode = (ObjectTypeNode) in.readObject(); cache = (ObjectTypeNode[]) in.readObject(); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/FromNode.java b/drools-core/src/main/java/org/drools/core/reteoo/FromNode.java index 9de2ee4d94d..95d46da03f7 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/FromNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/FromNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.Serializable; @@ -23,6 +25,7 @@ import java.util.Map; import java.util.Objects; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.BetaConstraints; import org.drools.core.common.EmptyBetaConstraints; @@ -32,21 +35,21 @@ import org.drools.core.common.ReteEvaluator; import org.drools.core.common.UpdateContext; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.From; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.accessor.DataProvider; -import org.drools.core.base.ObjectType; +import org.drools.base.rule.From; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.accessor.DataProvider; +import org.drools.base.base.ObjectType; import org.drools.core.common.PropagationContext; import org.drools.core.util.AbstractBaseLinkedListNode; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.BitMask; import org.drools.core.util.index.TupleList; -import static org.drools.core.reteoo.PropertySpecificUtil.calculateNegativeMask; -import static org.drools.core.reteoo.PropertySpecificUtil.calculatePositiveMask; -import static org.drools.core.reteoo.PropertySpecificUtil.getAccessibleProperties; -import static org.drools.core.reteoo.PropertySpecificUtil.isPropertyReactive; +import static org.drools.base.reteoo.PropertySpecificUtil.calculateNegativeMask; +import static org.drools.base.reteoo.PropertySpecificUtil.calculatePositiveMask; +import static org.drools.base.reteoo.PropertySpecificUtil.getAccessibleProperties; +import static org.drools.base.reteoo.PropertySpecificUtil.isPropertyReactive; public class FromNode extends LeftTupleSource implements @@ -162,7 +165,7 @@ protected void initDeclaredMask(BuildContext context, ObjectType objectType = pattern.getObjectType(); // if pattern is null (e.g. for eval or query nodes) we cannot calculate the mask, so we set it all - if ( isPropertyReactive( context, objectType ) ) { + if ( isPropertyReactive( context.getRuleBase(), objectType ) ) { Collection leftListenedProperties = pattern.getListenedProperties(); List accessibleProperties = getAccessibleProperties( context.getRuleBase(), objectType ); leftDeclaredMask = leftDeclaredMask.setAll( calculatePositiveMask( objectType, leftListenedProperties, accessibleProperties ) ); @@ -192,7 +195,7 @@ public void networkUpdated(UpdateContext updateContext) { } @SuppressWarnings("unchecked") - public RightTuple createRightTuple( final LeftTuple leftTuple, + public RightTupleImpl createRightTuple( final LeftTuple leftTuple, final PropagationContext context, final ReteEvaluator reteEvaluator, final Object object ) { @@ -224,7 +227,7 @@ public void addToCreatedHandlesMap(final Map matches, // this is for the obscene case where two or more objects returned by "from" // have the same hash code and evaluate equals() to true, so we need to preserve // all of them to avoid leaks - rightTuple.setNext( existingMatch ); + rightTuple.setNext((AbstractTuple) existingMatch); } matches.put( object, rightTuple ); @@ -245,7 +248,7 @@ public T createMemory(final RuleBaseConfiguration config, ReteEvaluator reteEval @Override public LeftTuple createPeer(LeftTuple original) { JoinNodeLeftTuple peer = new JoinNodeLeftTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + peer.initPeer(original, this); original.setPeer( peer ); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/JoinNode.java b/drools-core/src/main/java/org/drools/core/reteoo/JoinNode.java index ddb3885336e..6be61759cbb 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/JoinNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/JoinNode.java @@ -1,21 +1,24 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.BetaConstraints; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; @@ -54,7 +57,7 @@ public String toString() { public LeftTuple createPeer(LeftTuple original) { JoinNodeLeftTuple peer = new JoinNodeLeftTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + peer.initPeer(original, this); original.setPeer( peer ); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/JoinNodeLeftTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/JoinNodeLeftTuple.java index b8d010d474e..b74616af206 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/JoinNodeLeftTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/JoinNodeLeftTuple.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.PropagationContext; -public class JoinNodeLeftTuple extends BaseLeftTuple { +public class JoinNodeLeftTuple extends LeftTuple { private static final long serialVersionUID = 540l; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/LeftInputAdapterNode.java b/drools-core/src/main/java/org/drools/core/reteoo/LeftInputAdapterNode.java index 6d6b98073cd..1b181d1a56a 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/LeftInputAdapterNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/LeftInputAdapterNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.Collections; @@ -21,26 +23,28 @@ import java.util.List; import java.util.Set; +import org.drools.base.reteoo.BaseTerminalNode; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.Memory; import org.drools.core.common.MemoryFactory; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.common.TupleSets; import org.drools.core.common.UpdateContext; import org.drools.core.phreak.RuntimeSegmentUtilities; import org.drools.core.reteoo.ObjectTypeNode.Id; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Pattern; +import org.drools.base.rule.Pattern; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.util.AbstractBaseLinkedListNode; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.BitMask; import org.kie.api.definition.rule.Rule; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -51,7 +55,7 @@ import static org.drools.core.phreak.TupleEvaluationUtil.flushLeftTupleIfNecessary; import static org.drools.core.phreak.TupleEvaluationUtil.forceFlushLeftTuple; import static org.drools.core.phreak.TupleEvaluationUtil.forceFlushPath; -import static org.drools.core.reteoo.PropertySpecificUtil.isPropertyReactive; +import static org.drools.base.reteoo.PropertySpecificUtil.isPropertyReactive; /** * All asserting Facts must propagated into the right ObjectSink side of a BetaNode, if this is the first Pattern @@ -118,7 +122,7 @@ private BitMask calculateSinkMask(BuildContext context) { return AllSetBitMask.get(); } - return isPropertyReactive( context, objectType ) ? + return isPropertyReactive( context.getRuleBase(), objectType ) ? pattern.getPositiveWatchMask( pattern.getAccessibleProperties( context.getRuleBase() ) ) : AllSetBitMask.get(); } @@ -192,7 +196,7 @@ public static void doInsertObject(final InternalFactHandle factHandle, } LeftTupleSink sink = liaNode.getSinkPropagator().getFirstLeftTupleSink(); - LeftTuple leftTuple = sink.createLeftTuple( factHandle, useLeftMemory ); + LeftTuple leftTuple = sink.createLeftTuple(factHandle, useLeftMemory ); leftTuple.setPropagationContext( context ); if ( sm.getRootNode() == liaNode ) { @@ -341,8 +345,8 @@ public static void doUpdateObject(LeftTuple leftTuple, } } - private static void doUpdateSegmentMemory( LeftTuple leftTuple, PropagationContext pctx, ReteEvaluator reteEvaluator, boolean linkOrNotify, - final LiaNodeMemory lm, SegmentMemory sm, boolean streamMode ) { + private static void doUpdateSegmentMemory(LeftTuple leftTuple, PropagationContext pctx, ReteEvaluator reteEvaluator, boolean linkOrNotify, + final LiaNodeMemory lm, SegmentMemory sm, boolean streamMode ) { leftTuple.setPropagationContext( pctx ); TupleSets leftTuples = sm.getStagedLeftTuples(); @@ -395,7 +399,7 @@ public void modifyObject(InternalFactHandle factHandle, modifyPreviousTuples.removeLeftTuple(partitionId); leftTuple.reAdd(); if ( context.getModificationMask().intersects( mask) ) { - doUpdateObject(leftTuple, context, reteEvaluator, leftTuple.getTupleSource(), true, lm, lm.getOrCreateSegmentMemory(this, reteEvaluator ) ); + doUpdateObject(leftTuple, context, reteEvaluator, (LeftInputAdapterNode) leftTuple.getTupleSource(), true, lm, lm.getOrCreateSegmentMemory(this, reteEvaluator ) ); if (leftTuple instanceof InternalMatch) { ((InternalMatch)leftTuple).setActive(true); } @@ -652,12 +656,12 @@ public NetworkNode[] getSinks() { } @Override - public void addAssociatedTerminal(TerminalNode terminalNode) { + public void addAssociatedTerminal(BaseTerminalNode terminalNode) { sink.addAssociatedTerminal(terminalNode); } @Override - public void removeAssociatedTerminal(TerminalNode terminalNode) { + public void removeAssociatedTerminal(BaseTerminalNode terminalNode) { sink.removeAssociatedTerminal(terminalNode); } @@ -667,7 +671,7 @@ public int getAssociatedTerminalsSize() { } @Override - public boolean hasAssociatedTerminal(NetworkNode terminalNode) { + public boolean hasAssociatedTerminal(BaseTerminalNode terminalNode) { return sink.hasAssociatedTerminal(terminalNode); } } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/LeftTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/LeftTuple.java index f44082d5b3c..49a7dc8b093 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/LeftTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/LeftTuple.java @@ -1,70 +1,682 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; +import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.PropagationContext; +import org.drools.core.util.index.TupleList; +import org.kie.api.runtime.rule.FactHandle; + +import java.util.ArrayList; +import java.util.Arrays; import java.util.Collection; import java.util.Collections; -public interface LeftTuple extends Tuple { +/** + * A parent class for all specific LeftTuple specializations + * + */ +public class LeftTuple + extends AbstractTuple { + private static final long serialVersionUID = 540l; + + private int index; + + private LeftTuple parent; + + // left and right tuples in parent + private LeftTuple leftParent; + + private RightTuple rightParent; + private LeftTuple rightParentPrevious; + private LeftTuple rightParentNext; + + // children + private LeftTuple firstChild; + private LeftTuple lastChild; + + // node memory + protected TupleList memory; + + private LeftTuple peer; + + private short stagedTypeForQueries; + + public LeftTuple() { + // constructor needed for serialisation + } + + // ------------------------------------------------------------ + // Constructors + // ------------------------------------------------------------ + public LeftTuple(InternalFactHandle factHandle, + Sink sink, + boolean leftTupleMemoryEnabled) { + setFactHandle( factHandle ); + setSink(sink); + if ( leftTupleMemoryEnabled ) { + factHandle.addTupleInPosition( this ); + } + } + + public LeftTuple(InternalFactHandle factHandle, + LeftTuple leftTuple, + Sink sink) { + setFactHandle( factHandle ); + this.index = leftTuple.getIndex() + 1; + this.parent = leftTuple.getNextParentWithHandle(); + this.leftParent = leftTuple; + setSink(sink); + } + + public LeftTuple(LeftTuple leftTuple, + Sink sink, + PropagationContext pctx, + boolean leftTupleMemoryEnabled) { + this.index = leftTuple.getIndex() + 1; + this.parent = leftTuple.getNextParentWithHandle(); + this.leftParent = leftTuple; + setPropagationContext( pctx ); - void reAddLeft(); - void reAddRight(); + if ( leftTupleMemoryEnabled ) { + if ( leftTuple.getLastChild() != null ) { + this.handlePrevious = leftTuple.getLastChild(); + this.handlePrevious.setHandleNext( this ); + } else { + leftTuple.setFirstChild( this ); + } + leftTuple.setLastChild( this ); + } + + setSink(sink); + } + + public LeftTuple(LeftTuple leftTuple, + RightTuple rightTuple, + Sink sink) { + this.index = leftTuple.getIndex() + 1; + this.parent = leftTuple.getNextParentWithHandle(); + this.leftParent = leftTuple; + this.rightParent = rightTuple; + + setFactHandle( rightTuple.getFactHandle() ); + setPropagationContext( rightTuple.getPropagationContext() ); + + // insert at the end f the list + if ( leftTuple.getLastChild() != null ) { + this.handlePrevious = leftTuple.getLastChild(); + this.handlePrevious.setHandleNext( this ); + } else { + leftTuple.setFirstChild( this ); + } + leftTuple.setLastChild( this ); + + // insert at the end of the list + if ( rightTuple.getLastChild() != null ) { + this.rightParentPrevious = rightTuple.getLastChild(); + this.rightParentPrevious.setRightParentNext( this ); + } else { + rightTuple.setFirstChild( this ); + } + rightTuple.setLastChild( this ); + setSink(sink); + } + + public LeftTuple(LeftTuple leftTuple, + RightTuple rightTuple, + Sink sink, + boolean leftTupleMemoryEnabled) { + this( leftTuple, + rightTuple, + null, + null, + sink, + leftTupleMemoryEnabled ); + } + + public LeftTuple(LeftTuple leftTuple, + RightTuple rightTuple, + LeftTuple currentLeftChild, + LeftTuple currentRightChild, + Sink sink, + boolean leftTupleMemoryEnabled) { + setFactHandle( rightTuple.getFactHandle() ); + this.index = leftTuple.getIndex() + 1; + this.parent = leftTuple.getNextParentWithHandle(); + this.leftParent = leftTuple; + this.rightParent = rightTuple; + setPropagationContext( rightTuple.getPropagationContext() ); + + if ( leftTupleMemoryEnabled ) { + if( currentLeftChild == null ) { + // insert at the end of the list + if ( leftTuple.getLastChild() != null ) { + this.handlePrevious = leftTuple.getLastChild(); + this.handlePrevious.setHandleNext( this ); + } else { + leftTuple.setFirstChild( this ); + } + leftTuple.setLastChild( this ); + } else { + // insert before current child + this.handleNext = currentLeftChild; + this.handlePrevious = currentLeftChild.getHandlePrevious(); + currentLeftChild.setHandlePrevious( this ); + if( this.handlePrevious == null ) { + this.leftParent.setFirstChild( this ); + } else { + this.handlePrevious.setHandleNext( this ); + } + } + + if( currentRightChild == null ) { + // insert at the end of the list + if ( rightTuple.getLastChild() != null ) { + this.rightParentPrevious = rightTuple.getLastChild(); + this.rightParentPrevious.setRightParentNext( this ); + } else { + rightTuple.setFirstChild( this ); + } + rightTuple.setLastChild( this ); + } else { + // insert before current child + this.rightParentNext = currentRightChild; + this.rightParentPrevious = currentRightChild.getRightParentPrevious(); + currentRightChild.setRightParentPrevious( this ); + if( this.rightParentPrevious == null ) { + this.rightParent.setFirstChild( this ); + } else { + this.rightParentPrevious.setRightParentNext( this ); + } + } + } + + setSink(sink); + } + + public LeftTuple getNextParentWithHandle() { + // if parent is null, then we are LIAN + return (handle!=null) ? this : parent != null ? parent.getNextParentWithHandle() : this; + } + + @Override + public void reAdd() { + getFactHandle().addLastLeftTuple( this ); + } + + public void reAddLeft() { + // The parent can never be the FactHandle (root LeftTuple) as that is handled by reAdd() + // make sure we aren't already at the end + if ( this.handleNext != null ) { + if ( this.handlePrevious != null ) { + // remove the current LeftTuple from the middle of the chain + this.handlePrevious.setHandleNext( this.handleNext ); + this.handleNext.setHandlePrevious( this.handlePrevious ); + } else { + if( this.leftParent.getFirstChild() == this ) { + // remove the current LeftTuple from start start of the chain + this.leftParent.setFirstChild( getHandleNext() ); + } + this.handleNext.setHandlePrevious( null ); + } + // re-add to end + this.handlePrevious = this.leftParent.getLastChild(); + this.handlePrevious.setHandleNext( this ); + this.leftParent.setLastChild( this ); + this.handleNext = null; + } + } + + public void reAddRight() { + // make sure we aren't already at the end + if ( this.rightParentNext != null ) { + if ( this.rightParentPrevious != null ) { + // remove the current LeftTuple from the middle of the chain + this.rightParentPrevious.setRightParentNext( this.rightParentNext ); + this.rightParentNext.setRightParentPrevious( this.rightParentPrevious ); + } else { + if( this.rightParent.getFirstChild() == this ) { + // remove the current LeftTuple from the start of the chain + this.rightParent.setFirstChild( this.rightParentNext ); + } + this.rightParentNext.setRightParentPrevious( null ); + } + // re-add to end + this.rightParentPrevious = this.rightParent.getLastChild(); + this.rightParentPrevious.setRightParentNext( this ); + this.rightParent.setLastChild( this ); + this.rightParentNext = null; + } + } + + @Override + public void unlinkFromLeftParent() { + LeftTuple previousParent = getHandlePrevious(); + LeftTuple nextParent = getHandleNext(); + + if ( previousParent != null && nextParent != null ) { + //remove from middle + this.handlePrevious.setHandleNext( nextParent ); + this.handleNext.setHandlePrevious( previousParent ); + } else if ( nextParent != null ) { + //remove from first + if ( this.leftParent != null ) { + this.leftParent.setFirstChild( nextParent ); + } else { + // This is relevant to the root node and only happens at rule removal time + getFactHandle().removeLeftTuple( this ); + } + nextParent.setHandlePrevious( null ); + } else if ( previousParent != null ) { + //remove from end + if ( this.leftParent != null ) { + this.leftParent.setLastChild( previousParent ); + } else { + // relevant to the root node, as here the parent is the FactHandle, only happens at rule removal time + getFactHandle().removeLeftTuple( this ); + } + previousParent.setHandleNext( null ); + } else { + // single remaining item, no previous or next + if( leftParent != null ) { + this.leftParent.setFirstChild( null ); + this.leftParent.setLastChild( null ); + } else { + // it is a root tuple - only happens during rule removal + getFactHandle().removeLeftTuple( this ); + } + } + + this.handlePrevious = null; + this.handleNext = null; + } + + @Override + public void unlinkFromRightParent() { + if ( this.rightParent == null ) { + // no right parent; + return; + } + + LeftTuple previousParent = this.rightParentPrevious; + LeftTuple nextParent = this.rightParentNext; + + if ( previousParent != null && nextParent != null ) { + // remove from middle + this.rightParentPrevious.setRightParentNext( this.rightParentNext ); + this.rightParentNext.setRightParentPrevious( this.rightParentPrevious ); + } else if ( nextParent != null ) { + // remove from the start + this.rightParent.setFirstChild( nextParent ); + nextParent.setRightParentPrevious( null ); + } else if ( previousParent != null ) { + // remove from end + this.rightParent.setLastChild( previousParent ); + previousParent.setRightParentNext( null ); + } else { + // single remaining item, no previous or next + this.rightParent.setFirstChild( null ); + this.rightParent.setLastChild( null ); + } + + this.rightParentPrevious = null; + this.rightParentNext = null; + } + + @Override + public int getIndex() { + return this.index; + } + + @Override + // It's better to always cast to a concrete or abstract class to avoid + // secondary super cache problem. See https://issues.redhat.com/browse/DROOLS-7521 + public LeftTupleSink getTupleSink() { + Object sink = getSink(); + if (sink instanceof AccumulateNode) { + return (AccumulateNode) sink; + } else if (sink instanceof RuleTerminalNode) { + return (RuleTerminalNode) sink; + } else if (sink instanceof RightInputAdapterNode) { + return (RightInputAdapterNode) sink; + } else if (sink instanceof ExistsNode) { + return (ExistsNode) sink; + } + return (LeftTupleSink)sink; + } /* Had to add the set method because sink adapters must override * the tuple sink set when the tuple was created. */ - void setLeftTupleSink(LeftTupleSink sink); + public void setLeftTupleSink( LeftTupleSink sink ) { + setSink(sink); + } + + public LeftTuple getLeftParent() { + return leftParent; + } + + public void setLeftParent(LeftTuple leftParent) { + this.leftParent = leftParent; + } + + @Override + public LeftTuple getHandlePrevious() { + return (LeftTuple) handlePrevious; + } + + @Override + public LeftTuple getHandleNext() { + return (LeftTuple) handleNext; + } + + public RightTuple getRightParent() { + return rightParent; + } + + public void setRightParent(RightTuple rightParent) { + this.rightParent = rightParent; + } + + public LeftTuple getRightParentPrevious() { + return rightParentPrevious; + } + + public void setRightParentPrevious(LeftTuple rightParentLeft) { + this.rightParentPrevious = rightParentLeft; + } + + public LeftTuple getRightParentNext() { + return rightParentNext; + } + + public void setRightParentNext(LeftTuple rightParentRight) { + this.rightParentNext = rightParentRight; + } + + @Override + public FactHandle get(int index) { + LeftTuple entry = this; + while ( entry.getIndex() != index) { + entry = entry.getParent(); + } + return entry.getFactHandle(); + } + + public FactHandle[] toFactHandles() { + // always use the count of the node that created join (not the sink target) + FactHandle[] handles = new FactHandle[((LeftTupleSinkNode)getSink()).getLeftTupleSource().getObjectCount()]; + LeftTuple entry = (LeftTuple) skipEmptyHandles(); + for(int i = handles.length-1; i >= 0; i--) { + handles[i] = entry.getFactHandle(); + entry = entry.getParent(); + } + return handles; + } + + public Object[] toObjects(boolean reverse) { + // always use the count of the node that created join (not the sink target) + Object[] objs = new Object[((LeftTupleSinkNode)getSink()).getLeftTupleSource().getObjectCount()]; + LeftTuple entry = (LeftTuple) skipEmptyHandles(); + + if (!reverse) { + for (int i = objs.length - 1; i >= 0; i--) { + objs[i] = entry.getFactHandle().getObject(); + entry = entry.getParent(); + } + } else { + for (int i = 0; i < objs.length; i++) { + objs[i] = entry.getFactHandle().getObject(); + entry = entry.getParent(); + } + } + + return objs; + } + + public void clearBlocker() { + throw new UnsupportedOperationException(); + } + + public void setBlocker(RightTuple blocker) { + throw new UnsupportedOperationException(); + } + + public RightTuple getBlocker() { + throw new UnsupportedOperationException(); + } + + public LeftTuple getBlockedPrevious() { + throw new UnsupportedOperationException(); + } + + public void setBlockedPrevious(LeftTuple blockerPrevious) { + throw new UnsupportedOperationException(); + } + + public LeftTuple getBlockedNext() { + throw new UnsupportedOperationException(); + } + + public void setBlockedNext(LeftTuple blockerNext) { + throw new UnsupportedOperationException(); + } + + @Override + public String toString() { + final StringBuilder buffer = new StringBuilder(); + + Tuple entry = skipEmptyHandles();; + while ( entry != null ) { + //buffer.append( entry.handle ); + buffer.append(entry.getFactHandle()); + if ( entry.getParent() != null ) { + buffer.append("\n"); + } + entry = entry.getParent(); + } + return buffer.toString(); + } - LeftTuple getLeftParent(); - void setLeftParent(LeftTuple leftParent); + @Override + public int hashCode() { + return getFactHandle() == null ? 0 : getFactHandle().hashCode(); + } - RightTuple getRightParent(); - void setRightParent(RightTuple rightParent); + @Override + public boolean equals(Object object) { + if (object == this) { + return true; + } - LeftTuple getRightParentPrevious(); - void setRightParentPrevious(LeftTuple rightParentLeft); + if (!(object instanceof LeftTuple)) { + return false; + } - LeftTuple getRightParentNext(); - void setRightParentNext(LeftTuple rightParentRight); + LeftTuple other = ( (LeftTuple) object ); - void clearBlocker(); - void setBlocker(RightTuple blocker); - RightTuple getBlocker(); + // A LeftTuple is only the same if it has the same hashCode, factId and parent + if ( this.hashCode() != other.hashCode() || getFactHandle() != other.getFactHandle() ) { + return false; + } - LeftTuple getBlockedPrevious(); - void setBlockedPrevious(LeftTuple blockerPrevious); + if ( this.parent == null ) { + return (other.getParent() == null); + } else { + return this.parent.equals( other.getParent() ); + } + } - LeftTuple getBlockedNext(); - void setBlockedNext(LeftTuple blockerNext); + @Override + public int size() { + return this.index + 1; + } - LeftTuple getParent(); + @Override + public LeftTuple getFirstChild() { + return firstChild; + } - LeftTuple getNextParentWithHandle(); + @Override + public void setFirstChild(LeftTuple firstChild) { + this.firstChild = firstChild; + } - void setPeer(LeftTuple peer); - LeftTuple getPeer(); + @Override + public LeftTuple getLastChild() { + return lastChild; + } - short getStagedTypeForQueries(); - void setStagedTypeForQueries( short stagedTypeForQueries ); + @Override + public void setLastChild(LeftTuple lastChild) { + this.lastChild = lastChild; + } - boolean isStagedOnRight(); + @Override + public TupleList getMemory() { + return this.memory; + } - default Collection getAccumulatedObjects() { - return Collections.emptyList(); + @Override + public void setMemory(TupleList memory) { + this.memory = memory; } - void setExpired(); + @Override + public LeftTuple getStagedNext() { + return (LeftTuple) stagedNext; + } + + @Override + public LeftTuple getStagedPrevious() { + return (LeftTuple) stagedPrevious; + } + + @Override + public void clearStaged() { + super.clearStaged(); + if (getContextObject() == Boolean.TRUE) { + setContextObject( null ); + } + } + + public LeftTuple getPeer() { + return peer; + } + + public void setPeer(LeftTuple peer) { + this.peer = peer; + } + + @Override + public LeftTuple getSubTuple(final int elements) { + LeftTuple entry = this; + if ( elements <= this.size() ) { + final int lastindex = elements - 1; + + while ( entry.getIndex() != lastindex ) { + // This uses getLeftParent, instead of getParent, as the subnetwork tuple + // parent could be any node + entry = entry.getParent(); + } + } + return entry; + } + + @Override + public LeftTuple getParent() { + return parent; + } + + protected String toExternalString() { + StringBuilder builder = new StringBuilder(); + builder.append( String.format( "%08X", System.identityHashCode( this ) ) ).append( ":" ); + long[] ids = new long[this.index+1]; + Tuple entry = skipEmptyHandles();; + while( entry != null ) { + ids[entry.getIndex()] = entry.getFactHandle().getId(); + entry = entry.getParent(); + } + builder.append( Arrays.toString( ids ) ) + .append( " sink=" ) + .append( this.getSink().getClass().getSimpleName() ) + .append( "(" ).append( getSink().getId() ).append( ")" ); + return builder.toString(); + } + + @Override + public void clear() { + super.clear(); + this.memory = null; + } + + public void initPeer(LeftTuple original, LeftTupleSink sink) { + this.index = original.index; + this.parent = original.parent; + this.leftParent = original.leftParent; + + setFactHandle( original.getFactHandle() ); + setPropagationContext( original.getPropagationContext() ); + setSink(sink); + } + + @Override + public Object getObject(int index) { + return get(index).getObject(); + } + + @Override + public ObjectTypeNode.Id getInputOtnId() { + return getSink() != null ? getTupleSink().getLeftInputOtnId() : null; + } + + @Override + public LeftTupleSource getTupleSource() { + return getSink() != null ? getTupleSink().getLeftTupleSource() : null; + } + + public short getStagedTypeForQueries() { + return stagedTypeForQueries; + } + + public void setStagedTypeForQueries( short stagedTypeForQueries ) { + this.stagedTypeForQueries = stagedTypeForQueries; + } + + public boolean isStagedOnRight() { + return false; + } + + public Collection getAccumulatedObjects() { + if (getFirstChild() == null) { + return Collections.emptyList(); + } + Collection result = new ArrayList<>(); + if ( getContextObject() instanceof AccumulateNode.AccumulateContext ) { + for (LeftTuple child = getFirstChild(); child != null; child = child.getHandleNext()) { + result.add(child.getContextObject()); + } + } + if ( getFirstChild().getRightParent() instanceof SubnetworkTuple ) { + LeftTuple leftParent = (( SubnetworkTuple ) getFirstChild().getRightParent()).getLeftParent(); + result.addAll( leftParent.getAccumulatedObjects() ); + } + return result; + } } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleNode.java b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleNode.java index c46e22d3335..4b23cacfba9 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleNode.java @@ -1,22 +1,24 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; public interface LeftTupleNode extends NetworkNode { int getPathIndex(); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSink.java b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSink.java index 2591a9e7d64..00b2afd198f 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSink.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSink.java @@ -1,25 +1,27 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.common.PropagationContext; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; /** * Receiver of propagated ReteTuples from a diff --git a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkNode.java b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkNode.java index fc456676aaf..6ccfb939940 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; /** diff --git a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkNodeList.java b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkNodeList.java index 5743ea5dbf3..1454e9a45f9 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkNodeList.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkNodeList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkPropagator.java b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkPropagator.java index 6febe6a6acd..57618db5829 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkPropagator.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSinkPropagator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.BaseNode; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSource.java b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSource.java index 8072e69dfb3..7bb6ac43f93 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSource.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/LeftTupleSource.java @@ -1,39 +1,42 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.Collection; -import java.util.List; - -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.Pattern; import org.drools.core.common.BaseNode; -import org.drools.core.common.RuleBasePartitionId; import org.drools.core.phreak.BuildtimeSegmentUtilities; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Pattern; -import org.drools.core.base.ObjectType; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.util.bitmask.EmptyBitMask; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.BitMask; +import org.drools.util.bitmask.EmptyBitMask; -import static org.drools.core.reteoo.PropertySpecificUtil.calculateNegativeMask; -import static org.drools.core.reteoo.PropertySpecificUtil.calculatePositiveMask; -import static org.drools.core.reteoo.PropertySpecificUtil.getAccessibleProperties; -import static org.drools.core.reteoo.PropertySpecificUtil.isPropertyReactive; +import java.util.Collection; +import java.util.List; + +import static org.drools.base.reteoo.PropertySpecificUtil.calculateNegativeMask; +import static org.drools.base.reteoo.PropertySpecificUtil.calculatePositiveMask; +import static org.drools.base.reteoo.PropertySpecificUtil.getAccessibleProperties; +import static org.drools.base.reteoo.PropertySpecificUtil.isPropertyReactive; /** * A source of ReteTuple s for a TupleSink. @@ -55,9 +58,7 @@ public abstract class LeftTupleSource extends BaseNode implements LeftTupleNode /** The left input TupleSource. */ protected LeftTupleSource leftInput; - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ + /** The destination for Tuples. */ protected LeftTupleSinkPropagator sink; @@ -81,9 +82,7 @@ public LeftTupleSource() { * @param id */ protected LeftTupleSource(int id, BuildContext context) { - super(id, - context != null ? context.getPartitionId() : RuleBasePartitionId.MAIN_PARTITION, - context != null && context.getRuleBase().getRuleBaseConfiguration().isMultithreadEvaluation()); + super(id, context != null ? context.getPartitionId() : RuleBasePartitionId.MAIN_PARTITION); this.sink = EmptyLeftTupleSinkAdapter.getInstance(); initMemoryId( context ); } @@ -249,7 +248,7 @@ protected void initDeclaredMask(BuildContext context, return; } - if ( pattern != null && isPropertyReactive(context, objectType) ) { + if ( pattern != null && isPropertyReactive(context.getRuleBase(), objectType) ) { Collection leftListenedProperties = pattern.getListenedProperties(); List accessibleProperties = getAccessibleProperties( context.getRuleBase(), objectType ); leftDeclaredMask = calculatePositiveMask( objectType, leftListenedProperties, accessibleProperties ); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ModifyPreviousTuples.java b/drools-core/src/main/java/org/drools/core/reteoo/ModifyPreviousTuples.java index e6b53dab2e3..e40e9f87a63 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ModifyPreviousTuples.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ModifyPreviousTuples.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.ActivationsManager; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.phreak.PhreakRuleTerminalNode; import org.drools.core.common.PropagationContext; @@ -70,14 +72,14 @@ public void retractTuples(PropagationContext pctx, } public void doDeleteObject(PropagationContext pctx, ReteEvaluator reteEvaluator, LeftTuple leftTuple) { - LeftInputAdapterNode liaNode = leftTuple.getTupleSource(); + LeftInputAdapterNode liaNode = (LeftInputAdapterNode) leftTuple.getTupleSource(); LeftInputAdapterNode.LiaNodeMemory lm = reteEvaluator.getNodeMemory( liaNode ); SegmentMemory sm = lm.getSegmentMemory(); if (sm != null) { LeftInputAdapterNode.doDeleteObject( leftTuple, pctx, sm, reteEvaluator, liaNode, true, lm ); } else { ActivationsManager activationsManager = reteEvaluator.getActivationsManager(); - TerminalNode rtn = leftTuple.getTupleSink(); + TerminalNode rtn = (TerminalNode) leftTuple.getTupleSink(); PathMemory pathMemory = reteEvaluator.getNodeMemory( rtn ); PhreakRuleTerminalNode.doLeftDelete(activationsManager, pathMemory.getRuleAgendaItem().getRuleExecutor(), leftTuple); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/NodeSet.java b/drools-core/src/main/java/org/drools/core/reteoo/NodeSet.java index d92c7ce70e9..beb29d25787 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/NodeSet.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/NodeSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; import org.drools.core.common.BaseNode; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/NotNode.java b/drools-core/src/main/java/org/drools/core/reteoo/NotNode.java index daa1fb5f08e..38f371c4b06 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/NotNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/NotNode.java @@ -1,21 +1,24 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.BetaConstraints; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.PropagationContext; @@ -76,7 +79,7 @@ public short getType() { public LeftTuple createPeer(LeftTuple original) { NotNodeLeftTuple peer = new NotNodeLeftTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + peer.initPeer((LeftTuple) original, this); original.setPeer( peer ); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/NotNodeLeftTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/NotNodeLeftTuple.java index 74299756295..eee5b4ecdf2 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/NotNodeLeftTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/NotNodeLeftTuple.java @@ -1,39 +1,42 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.BetaConstraints; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.MemoryFactory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ContextEntry; +import org.drools.base.rule.ContextEntry; import org.drools.core.common.PropagationContext; import org.drools.core.util.FastIterator; -public class NotNodeLeftTuple extends BaseLeftTuple { +public class NotNodeLeftTuple extends LeftTuple { private static final long serialVersionUID = 540l; private RightTuple blocker; - private LeftTuple blockedPrevious; - private LeftTuple blockedNext; + private LeftTuple blockedPrevious; + private LeftTuple blockedNext; public NotNodeLeftTuple() { // constructor needed for serialisation diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ObjectSink.java b/drools-core/src/main/java/org/drools/core/reteoo/ObjectSink.java index da1d59fcb2e..6fc9fb37f71 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ObjectSink.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ObjectSink.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.InternalFactHandle; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ObjectSinkNode.java b/drools-core/src/main/java/org/drools/core/reteoo/ObjectSinkNode.java index 228c4a6dfbf..4b626501d88 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ObjectSinkNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ObjectSinkNode.java @@ -1,22 +1,24 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; /** * Items placed in a LinkedList must implement this interface . diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ObjectSinkPropagator.java b/drools-core/src/main/java/org/drools/core/reteoo/ObjectSinkPropagator.java index 1867ad90034..a6a93343d14 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ObjectSinkPropagator.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ObjectSinkPropagator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.Externalizable; @@ -21,7 +23,7 @@ import org.drools.core.common.BaseNode; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.common.PropagationContext; public interface ObjectSinkPropagator diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ObjectSource.java b/drools-core/src/main/java/org/drools/core/reteoo/ObjectSource.java index 4ddd002c501..0fea32bc7df 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ObjectSource.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ObjectSource.java @@ -1,39 +1,42 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.List; - +import org.drools.base.base.ObjectType; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.Pattern; import org.drools.core.common.BaseNode; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.core.common.PropagationContext; import org.drools.core.common.UpdateContext; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Pattern; -import org.drools.core.base.ObjectType; -import org.drools.core.common.PropagationContext; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.util.bitmask.EmptyBitMask; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.BitMask; +import org.drools.util.bitmask.EmptyBitMask; -import static org.drools.core.reteoo.PropertySpecificUtil.getAccessibleProperties; -import static org.drools.core.reteoo.PropertySpecificUtil.isPropertyReactive; +import java.util.List; + +import static org.drools.base.reteoo.PropertySpecificUtil.getAccessibleProperties; +import static org.drools.base.reteoo.PropertySpecificUtil.isPropertyReactive; /** * A source of FactHandles for an ObjectSink. @@ -47,9 +50,7 @@ */ public abstract class ObjectSource extends BaseNode { - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ + /** The destination for FactHandleImpl. */ protected ObjectSinkPropagator sink; @@ -73,15 +74,8 @@ public ObjectSource() { /** * Single parameter constructor that specifies the unique id of the node. */ - protected ObjectSource(final int id, - final RuleBasePartitionId partitionId, - final boolean partitionsEnabled) { - this( id, - partitionId, - partitionsEnabled, - null, - 3, - 3); + protected ObjectSource(int id, RuleBasePartitionId partitionId) { + this( id, partitionId, null, 3, 3); } /** @@ -89,11 +83,10 @@ protected ObjectSource(final int id, */ ObjectSource(final int id, final RuleBasePartitionId partitionId, - final boolean partitionsEnabled, final ObjectSource objectSource, final int alphaNodeHashingThreshold, final int alphaNodeRangeIndexThreshold) { - super(id, partitionId, partitionsEnabled); + super(id, partitionId); this.source = objectSource; this.alphaNodeHashingThreshold = alphaNodeHashingThreshold; this.alphaNodeRangeIndexThreshold = alphaNodeRangeIndexThreshold; @@ -112,7 +105,7 @@ public void setParentObjectSource(ObjectSource source) { this.source = source; } - public RuleBase getRuleBase() { + public InternalRuleBase getRuleBase() { return source.getRuleBase(); } @@ -126,7 +119,7 @@ public void initDeclaredMask(BuildContext context) { Pattern pattern = context.getLastBuiltPatterns()[0]; ObjectType objectType = pattern.getObjectType(); - if ( isPropertyReactive(context, objectType) ) { + if ( isPropertyReactive(context.getRuleBase(), objectType) ) { List settableProperties = getAccessibleProperties( context.getRuleBase(), objectType ); declaredMask = calculateDeclaredMask(objectType, settableProperties); } else { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ObjectTypeConf.java b/drools-core/src/main/java/org/drools/core/reteoo/ObjectTypeConf.java index 6f3dd4c9421..e03dc119dfe 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ObjectTypeConf.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ObjectTypeConf.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.TypeDeclaration; import org.drools.core.rule.accessor.FactHandleFactory; public interface ObjectTypeConf { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ObjectTypeNode.java b/drools-core/src/main/java/org/drools/core/reteoo/ObjectTypeNode.java index 4004e695cf2..e6e5a4ed407 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ObjectTypeNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ObjectTypeNode.java @@ -1,54 +1,55 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; - -import org.drools.core.InitialFact; -import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ValueType; +import org.drools.base.InitialFact; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.EntryPointId; +import org.drools.base.time.JobHandle; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.common.FactHandleClassStore; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.Memory; -import org.drools.core.common.MemoryFactory; +import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; import org.drools.core.common.UpdateContext; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.impl.WorkingMemoryReteExpireAction; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.EntryPointId; -import org.drools.core.base.ObjectType; -import org.drools.core.common.PropagationContext; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.util.bitmask.EmptyBitMask; +import org.drools.core.time.impl.DefaultJobHandle; +import org.drools.util.bitmask.BitMask; +import org.drools.util.bitmask.EmptyBitMask; -import static org.drools.core.rule.TypeDeclaration.NEVER_EXPIRES; +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.io.Serializable; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; + +import static org.drools.base.rule.TypeDeclaration.NEVER_EXPIRES; /** * ObjectTypeNodes are responsible for filtering and propagating the matching @@ -64,10 +65,8 @@ * * @see Rete */ -public class ObjectTypeNode extends ObjectSource implements ObjectSink, MemoryFactory { - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ +public class ObjectTypeNode extends ObjectSource implements ObjectSink { + private static final long serialVersionUID = 510l; @@ -76,9 +75,7 @@ public class ObjectTypeNode extends ObjectSource implements ObjectSink, MemoryFa */ protected ObjectType objectType; - private boolean objectMemoryEnabled; - - private long expirationOffset = -1; + private long expirationOffset = -1; /* always dirty after serialisation */ private transient volatile boolean dirty; @@ -107,24 +104,25 @@ public ObjectTypeNode(final int id, final BuildContext context) { super(id, RuleBasePartitionId.MAIN_PARTITION, - context.getRuleBase().getRuleBaseConfiguration().isMultithreadEvaluation(), source, context.getRuleBase().getRuleBaseConfiguration().getAlphaNodeHashingThreshold(), context.getRuleBase().getRuleBaseConfiguration().getAlphaNodeRangeIndexThreshold()); this.objectType = objectType; - idGenerator = new IdGenerator(id); - - setObjectMemoryEnabled(context.isObjectTypeNodeMemoryEnabled()); - + this.idGenerator = new IdGenerator(id); this.dirty = true; + this.hashcode = calculateHashCode(); + initMemoryId( context ); + } - hashcode = calculateHashCode(); - - if (objectType != ClassObjectType.InitialFact_ObjectType && context.getRuleBase().getRuleBaseConfiguration().isMultithreadEvaluation()) { - this.sink = new CompositePartitionAwareObjectSinkAdapter(); + public void setupParallelExecution(InternalRuleBase kbase) { + if (objectType == ClassObjectType.InitialFact_ObjectType) { + return; } - - initMemoryId( context ); + CompositePartitionAwareObjectSinkAdapter partitionedSink = new CompositePartitionAwareObjectSinkAdapter(kbase.getParallelEvaluationSlotsCount()); + for ( ObjectSink objectSink : this.sink.getSinks()) { + partitionedSink.addObjectSink(objectSink, alphaNodeHashingThreshold, alphaNodeRangeIndexThreshold); + } + this.sink = partitionedSink; } private static class IdGenerator { @@ -218,11 +216,6 @@ public boolean isAssignableFrom(final ObjectType objectType) { public void assertInitialFact(final InternalFactHandle factHandle, final PropagationContext context, final ReteEvaluator reteEvaluator) { - if (objectMemoryEnabled) { - InitialFactObjectTypeNodeMemory memory = (InitialFactObjectTypeNodeMemory) reteEvaluator.getNodeMemory(this); - memory.add(factHandle); - } - checkDirty(); propagateAssert(factHandle, context, reteEvaluator); } @@ -343,12 +336,8 @@ protected void resetIdGenerator() { } @Override - public void modifyObject(InternalFactHandle factHandle, - ModifyPreviousTuples modifyPreviousTuples, - PropagationContext context, - ReteEvaluator reteEvaluator) { + public void modifyObject(InternalFactHandle factHandle, ModifyPreviousTuples modifyPreviousTuples, PropagationContext context, ReteEvaluator reteEvaluator) { checkDirty(); - this.sink.propagateModifyObject(factHandle, modifyPreviousTuples, context.adaptModificationMaskForObjectType(objectType, reteEvaluator), @@ -356,20 +345,26 @@ public void modifyObject(InternalFactHandle factHandle, } @Override - public void updateSink(final ObjectSink sink, - final PropagationContext context, - final InternalWorkingMemory workingMemory) { + public void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory) { checkDirty(); - - // Regular updateSink - final ObjectTypeNodeMemory memory = workingMemory.getNodeMemory(this); - Iterator it = memory.iterator(); - - while (it.hasNext()) { - sink.assertObject(it.next(), context, workingMemory); + Class classType = ((ClassObjectType) getObjectType()).getClassType(); + if (InitialFact.class.isAssignableFrom(classType)) { + sink.assertObject(workingMemory.getInitialFactHandle(), context, workingMemory); + } else { + Iterator it = workingMemory.getStoreForClass(classType).iterator(); + while (it.hasNext()) { + sink.assertObject(it.next(), context, workingMemory); + } } } + public Iterator getFactHandlesIterator(InternalWorkingMemory workingMemory) { + Class classType = ((ClassObjectType) getObjectType()).getClassType(); + return InitialFact.class.isAssignableFrom(classType) ? + Collections.singleton(workingMemory.getInitialFactHandle()).iterator() : + workingMemory.getStoreForClass(classType).iterator(); + } + /** * Rete needs to know that this ObjectTypeNode has been added */ @@ -435,31 +430,6 @@ protected boolean doRemove(final RuleRemovalContext context, return false; } - /** - * Creates memory for the node using PrimitiveLongMap as its optimised for storage and reteivals of Longs. - * However PrimitiveLongMap is not ideal for spase data. So it should be monitored incase its more optimal - * to switch back to a standard HashMap. - */ - @Override - public ObjectTypeNodeMemory createMemory(final RuleBaseConfiguration config, ReteEvaluator reteEvaluator) { - if (objectType.isTemplate()) { - throw new UnsupportedOperationException("this method is used only for the initial fact and during incremental compilation which is not supported yet for fact templates"); - } - Class classType = ((ClassObjectType) objectType).getClassType(); - if (InitialFact.class.isAssignableFrom(classType)) { - return new InitialFactObjectTypeNodeMemory(classType); - } - return new ObjectTypeNodeMemory(classType, reteEvaluator); - } - - public boolean isObjectMemoryEnabled() { - return this.objectMemoryEnabled; - } - - public void setObjectMemoryEnabled(boolean objectMemoryEnabled) { - this.objectMemoryEnabled = objectMemoryEnabled; - } - @Override public String toString() { return "[ObjectTypeNode(" + this.id + ")::" + ((EntryPointNode) this.source).getEntryPoint() + " objectType=" + this.objectType + " expiration=" + this.getExpirationOffset() + "ms ]"; @@ -496,15 +466,6 @@ public long getExpirationOffset() { public void setExpirationOffset(long expirationOffset) { this.expirationOffset = expirationOffset; - if (!this.objectType.getValueType().equals(ValueType.QUERY_TYPE)) { - if (expirationOffset > 0) { - // override memory enabled settings - this.setObjectMemoryEnabled(true); - } else if (expirationOffset == 0) { - // disable memory - this.setObjectMemoryEnabled(false); - } - } } public void mergeExpirationOffset(ObjectTypeNode other) { @@ -515,13 +476,14 @@ public void mergeExpirationOffset(ObjectTypeNode other) { public static class ExpireJob implements - Job { + Job, Serializable { @Override public void execute(JobContext ctx) { ExpireJobContext context = (ExpireJobContext) ctx; + context.reteEvaluator.addPropagation(context.expireAction); - context.getExpireAction().getFactHandle().removeJob( context.getJobHandle()); + context.getExpireAction().getFactHandle().removeJob( (DefaultJobHandle) context.getJobHandle()); } } @@ -529,10 +491,13 @@ public static class ExpireJobContext implements JobContext, Externalizable { - public final WorkingMemoryReteExpireAction expireAction; - public final ReteEvaluator reteEvaluator; + public WorkingMemoryReteExpireAction expireAction; + public transient ReteEvaluator reteEvaluator; public JobHandle handle; + public ExpireJobContext() { + } + public ExpireJobContext(WorkingMemoryReteExpireAction expireAction, ReteEvaluator reteEvaluator) { super(); @@ -558,6 +523,10 @@ public ReteEvaluator getReteEvaluator() { return reteEvaluator; } + public void setReteEvaluator(ReteEvaluator reteEvaluator) { + this.reteEvaluator = reteEvaluator; + } + public JobHandle getHandle() { return handle; } @@ -569,13 +538,14 @@ public void setHandle(JobHandle handle) { @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { - //this.behavior = (O) + this.expireAction = (WorkingMemoryReteExpireAction) in.readObject(); + this.handle = (JobHandle) in.readObject(); } @Override public void writeExternal(ObjectOutput out) throws IOException { - // TODO Auto-generated method stub - + out.writeObject(expireAction); + out.writeObject(handle); } } @@ -586,93 +556,4 @@ public void byPassModifyToBetaNode(InternalFactHandle factHandle, ReteEvaluator reteEvaluator) { throw new UnsupportedOperationException("This should never get called, as the PropertyReactive first happens at the AlphaNode"); } - - - public static class ObjectTypeNodeMemory implements Memory { - private FactHandleClassStore store; - private Class classType; - - ObjectTypeNodeMemory(Class classType) { - this.classType = classType; - } - - ObjectTypeNodeMemory(Class classType, ReteEvaluator reteEvaluator) { - this(classType); - store = reteEvaluator.getStoreForClass(classType); - } - - @Override - public short getNodeType() { - return NodeTypeEnums.ObjectTypeNode; - } - - public Iterator iterator() { - return store.iterator(); - } - - @Override - public SegmentMemory getSegmentMemory() { - return null; - } - - @Override - public void setSegmentMemory(SegmentMemory segmentMemory) { - throw new UnsupportedOperationException(); - } - - @Override - public Memory getPrevious() { - throw new UnsupportedOperationException(); - } - - @Override - public void setPrevious(Memory previous) { - throw new UnsupportedOperationException(); - } - - @Override - public void nullPrevNext() { - throw new UnsupportedOperationException(); - } - - @Override - public void setNext(Memory next) { - throw new UnsupportedOperationException(); - } - - @Override - public Memory getNext() { - throw new UnsupportedOperationException(); - } - - @Override - public void reset() { } - - @Override - public String toString() { - return "ObjectTypeMemory for " + classType; - } - } - - public static class InitialFactObjectTypeNodeMemory extends ObjectTypeNodeMemory { - private List list = Collections.emptyList(); - - InitialFactObjectTypeNodeMemory(Class classType) { - super(classType); - } - - public void add(InternalFactHandle factHandle) { - list = Collections.singletonList( factHandle ); - } - - @Override - public Iterator iterator() { - return list.iterator(); - } - - @Override - public void reset() { - list = Collections.emptyList(); - } - } } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/PathEndNode.java b/drools-core/src/main/java/org/drools/core/reteoo/PathEndNode.java index 8cccbda399e..265493c48da 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/PathEndNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/PathEndNode.java @@ -1,23 +1,26 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.Serializable; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.MemoryFactory; import org.drools.core.phreak.BuildtimeSegmentUtilities; import org.drools.core.reteoo.SegmentMemory.SegmentPrototype; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/PathMemory.java b/drools-core/src/main/java/org/drools/core/reteoo/PathMemory.java index d7b92d13a8f..efd8a8c2af2 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/PathMemory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/PathMemory.java @@ -1,33 +1,37 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; -import java.io.Serializable; - +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.ActivationsFilter; import org.drools.core.common.ActivationsManager; import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.Memory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.RuleAgendaItem; import org.drools.core.util.AbstractBaseLinkedListNode; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.Serializable; + public class PathMemory extends AbstractBaseLinkedListNode implements Serializable, Memory { @@ -112,7 +116,7 @@ public RuleAgendaItem getOrCreateRuleAgendaItem(ActivationsManager activationsMa } private TerminalNode ensureAgendaItemCreated(ActivationsManager activationsManager) { - TerminalNode rtn = (TerminalNode) getPathEndNode(); + AbstractTerminalNode rtn = (AbstractTerminalNode) getPathEndNode(); if (agendaItem == null) { int salience = rtn.getRule().getSalience().isDynamic() ? 0 : rtn.getRule().getSalience().getValue(); agendaItem = activationsManager.createRuleAgendaItem(salience, this, rtn); @@ -157,8 +161,8 @@ public void queueRuleAgendaItem(ActivationsManager activationsManager) { agendaItem.getRuleExecutor().setDirty(true); ActivationsFilter activationFilter = activationsManager.getActivationsFilter(); - if ( activationFilter != null && !activationFilter.accept( agendaItem ) ) { - return; + if ( activationFilter != null ) { + activationFilter.accept( agendaItem ); } if ( !agendaItem.isQueued() ) { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/QueryElementNode.java b/drools-core/src/main/java/org/drools/core/reteoo/QueryElementNode.java index 39297743981..afd662c2ec4 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/QueryElementNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/QueryElementNode.java @@ -1,45 +1,49 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.List; - +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.QueryArgument; +import org.drools.base.rule.QueryElement; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.DroolsQuery; +import org.drools.core.base.DroolsQueryImpl; import org.drools.core.base.InternalViewChangedEventListener; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.Memory; import org.drools.core.common.MemoryFactory; +import org.drools.core.common.PropagationContext; import org.drools.core.common.QueryElementFactHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TupleSets; import org.drools.core.common.TupleSetsImpl; import org.drools.core.common.UpdateContext; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.BuildtimeSegmentUtilities; import org.drools.core.phreak.StackEntry; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.QueryArgument; -import org.drools.core.rule.QueryElement; -import org.drools.core.definitions.rule.impl.QueryImpl; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.common.PropagationContext; import org.drools.core.util.AbstractBaseLinkedListNode; +import org.kie.api.runtime.rule.FactHandle; + +import java.util.List; public class QueryElementNode extends LeftTupleSource implements LeftTupleSinkNode, MemoryFactory { @@ -127,40 +131,40 @@ public InternalFactHandle createFactHandle(final PropagationContext context, return handle; } - public DroolsQuery createDroolsQuery(LeftTuple leftTuple, - InternalFactHandle handle, - StackEntry stackEntry, - final List pmems, - QueryElementNodeMemory qmem, - LeftTupleSink sink, - ReteEvaluator reteEvaluator) { + public DroolsQueryImpl createDroolsQuery(LeftTuple leftTuple, + InternalFactHandle handle, + StackEntry stackEntry, + final List pmems, + QueryElementNodeMemory qmem, + LeftTupleSink sink, + ReteEvaluator reteEvaluator) { UnificationNodeViewChangedEventListener collector = createCollector( leftTuple, queryElement.getVariableIndexes(), this.tupleMemoryEnabled ); boolean executeAsOpenQuery = openQuery; if ( executeAsOpenQuery ) { // There is no point in doing an open query if the caller is a non-open query. Object object = leftTuple.get( 0 ).getObject(); - if ( object instanceof DroolsQuery && !((DroolsQuery) object).isOpen() ) { + if (object instanceof DroolsQueryImpl && !((DroolsQueryImpl) object).isOpen() ) { executeAsOpenQuery = false; } } - DroolsQuery queryObject = new DroolsQuery( this.queryElement.getQueryName(), - getActualArguments( leftTuple, reteEvaluator ), - collector, - executeAsOpenQuery, - stackEntry, - pmems, + DroolsQueryImpl queryObject = new DroolsQueryImpl(this.queryElement.getQueryName(), + getActualArguments( leftTuple, reteEvaluator ), + collector, + executeAsOpenQuery, + stackEntry, + pmems, qmem != null ? qmem.getResultLeftTuples() : null, - qmem, - sink); + qmem, + sink); collector.setFactHandle( handle ); handle.setObject( queryObject ); leftTuple.setContextObject( handle ); // so it can be retracted later and destroyed return queryObject; } - public Object[] getActualArguments( LeftTuple leftTuple, ReteEvaluator reteEvaluator ) { + public Object[] getActualArguments(LeftTuple leftTuple, ReteEvaluator reteEvaluator ) { Object[] args = new Object[argsTemplate.length]; // the actual args, to be created from the template for (int i = 0; i < argsTemplate.length; i++) { args[i] = argsTemplate[i].getValue( reteEvaluator, leftTuple ); @@ -168,7 +172,7 @@ public Object[] getActualArguments( LeftTuple leftTuple, ReteEvaluator reteEvalu return args; } - protected UnificationNodeViewChangedEventListener createCollector( LeftTuple leftTuple, int[] varIndexes, boolean tupleMemoryEnabled ) { + protected UnificationNodeViewChangedEventListener createCollector(LeftTuple leftTuple, int[] varIndexes, boolean tupleMemoryEnabled ) { return new UnificationNodeViewChangedEventListener( leftTuple, varIndexes, this, @@ -219,7 +223,7 @@ public static class UnificationNodeViewChangedEventListener implements InternalViewChangedEventListener { - protected LeftTuple leftTuple; + protected LeftTuple leftTuple; protected QueryElementNode node; @@ -254,10 +258,10 @@ public void setVariables(int[] variables) { @Override public void rowAdded(RuleImpl rule, LeftTuple resultLeftTuple, ReteEvaluator reteEvaluator) { - QueryTerminalNode queryTerminalNode = resultLeftTuple.getTupleSink(); + QueryTerminalNode queryTerminalNode = (QueryTerminalNode) resultLeftTuple.getTupleSink(); QueryImpl query = queryTerminalNode.getQuery(); Declaration[] decls = queryTerminalNode.getRequiredDeclarations(); - DroolsQuery dquery = (DroolsQuery) this.factHandle.getObject(); + DroolsQueryImpl dquery = (DroolsQueryImpl) this.factHandle.getObject(); Object[] objects = new Object[ determineResultSize( query, dquery ) ]; Declaration decl; @@ -266,7 +270,7 @@ public void rowAdded(RuleImpl rule, LeftTuple resultLeftTuple, ReteEvaluator ret objects[variable] = decl.getValue(reteEvaluator, resultLeftTuple); } - QueryElementFactHandle resultHandle = createQueryResultHandle(leftTuple.findMostRecentPropagationContext(), + QueryElementFactHandle resultHandle = createQueryResultHandle(leftTuple.getPropagationContext(), reteEvaluator, objects); @@ -274,7 +278,7 @@ public void rowAdded(RuleImpl rule, LeftTuple resultLeftTuple, ReteEvaluator ret if ( query.processAbduction((InternalMatch) resultLeftTuple, dquery, objects, reteEvaluator) ) { LeftTupleSink sink = dquery.getLeftTupleSink(); - LeftTuple childLeftTuple = sink.createLeftTuple( this.leftTuple, rightTuple, sink ); + LeftTuple childLeftTuple = sink.createLeftTuple(this.leftTuple, rightTuple, sink ); boolean stagedInsertWasEmpty = dquery.getResultLeftTupleSets().addInsert(childLeftTuple); if ( stagedInsertWasEmpty ) { dquery.getQueryNodeMemory().setNodeDirtyWithoutNotify(); @@ -282,7 +286,7 @@ public void rowAdded(RuleImpl rule, LeftTuple resultLeftTuple, ReteEvaluator ret } } - private int determineResultSize( QueryImpl query, DroolsQuery dquery ) { + private int determineResultSize( QueryImpl query, DroolsQueryImpl dquery) { int size = dquery.getElements().length; if (query.isReturnBound()) { size++; @@ -290,7 +294,7 @@ private int determineResultSize( QueryImpl query, DroolsQuery dquery ) { return size; } - protected RightTuple createResultRightTuple( QueryElementFactHandle resultHandle, LeftTuple resultLeftTuple, boolean open ) { + protected RightTuple createResultRightTuple(QueryElementFactHandle resultHandle, LeftTuple resultLeftTuple, boolean open ) { RightTuple rightTuple = new RightTupleImpl( resultHandle ); if ( open ) { rightTuple.setBlocked( resultLeftTuple ); @@ -325,7 +329,7 @@ public void rowRemoved(final RuleImpl rule, rightTuple.setBlocked( null ); resultLeftTuple.setContextObject( null ); - DroolsQuery query = (DroolsQuery) this.factHandle.getObject(); + DroolsQueryImpl query = (DroolsQueryImpl) this.factHandle.getObject(); TupleSets leftTuples = query.getResultLeftTupleSets(); LeftTuple childLeftTuple = rightTuple.getFirstChild(); @@ -358,10 +362,10 @@ public void rowUpdated(final RuleImpl rule, resultLeftTuple.setContextObject( null ); // We need to recopy everything back again, as we don't know what has or hasn't changed - QueryTerminalNode queryTerminalNode = resultLeftTuple.getTupleSink(); + QueryTerminalNode queryTerminalNode = (QueryTerminalNode) resultLeftTuple.getTupleSink(); Declaration[] decls = queryTerminalNode.getRequiredDeclarations(); - InternalFactHandle rootHandle = resultLeftTuple.get( 0 ); - DroolsQuery dquery = (DroolsQuery) rootHandle.getObject(); + FactHandle rootHandle = resultLeftTuple.get(0); + DroolsQueryImpl dquery = (DroolsQueryImpl) rootHandle.getObject(); Object[] objects = new Object[dquery.getElements().length]; @@ -580,27 +584,27 @@ public void reset() { public static class QueryTupleSets extends TupleSetsImpl { @Override - protected LeftTuple getPreviousTuple( LeftTuple tuple ) { + protected LeftTuple getPreviousTuple(LeftTuple tuple ) { return tuple.getRightParentPrevious(); } @Override - protected void setPreviousTuple( LeftTuple tuple, LeftTuple stagedPrevious ) { + protected void setPreviousTuple(LeftTuple tuple, LeftTuple stagedPrevious ) { tuple.setRightParentPrevious( stagedPrevious ); } @Override - protected LeftTuple getNextTuple( LeftTuple tuple ) { + protected LeftTuple getNextTuple(LeftTuple tuple ) { return tuple.getRightParentNext(); } @Override - protected void setNextTuple( LeftTuple tuple, LeftTuple stagedNext ) { + protected void setNextTuple(LeftTuple tuple, LeftTuple stagedNext ) { tuple.setRightParentNext( stagedNext ); } @Override - protected void setStagedType( LeftTuple tuple, short type ) { + protected void setStagedType(LeftTuple tuple, short type ) { tuple.setStagedTypeForQueries( type ); } @@ -619,7 +623,7 @@ public void addTo(TupleSets tupleSets) { private void addAllInsertsTo( TupleSets tupleSets ) { LeftTuple leftTuple = getInsertFirst(); while (leftTuple != null) { - LeftTuple next = getNextTuple( leftTuple ); + LeftTuple next = getNextTuple(leftTuple ); clear( leftTuple ); tupleSets.addInsert( leftTuple ); leftTuple = next; @@ -630,7 +634,7 @@ private void addAllInsertsTo( TupleSets tupleSets ) { private void addAllUpdatesTo( TupleSets tupleSets ) { LeftTuple leftTuple = getUpdateFirst(); while (leftTuple != null) { - LeftTuple next = getNextTuple( leftTuple ); + LeftTuple next = getNextTuple(leftTuple ); clear( leftTuple ); tupleSets.addUpdate( leftTuple ); leftTuple = next; @@ -641,7 +645,7 @@ private void addAllUpdatesTo( TupleSets tupleSets ) { private void addAllDeletesTo( TupleSets tupleSets ) { LeftTuple leftTuple = getDeleteFirst(); while (leftTuple != null) { - LeftTuple next = getNextTuple( leftTuple ); + LeftTuple next = getNextTuple(leftTuple ); clear( leftTuple ); tupleSets.addDelete( leftTuple ); leftTuple = next; @@ -665,7 +669,7 @@ public ObjectTypeNode getObjectTypeNode() { @Override public LeftTuple createPeer(LeftTuple original) { JoinNodeLeftTuple peer = new JoinNodeLeftTuple(); - peer.initPeer((BaseLeftTuple) original, this); + peer.initPeer((LeftTuple) original, this); original.setPeer(peer); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/QueryTerminalNode.java b/drools-core/src/main/java/org/drools/core/reteoo/QueryTerminalNode.java index 6d9cb6fbb8d..1f1b99e56a9 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/QueryTerminalNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/QueryTerminalNode.java @@ -1,30 +1,33 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.Map; - +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.definitions.rule.impl.QueryImpl; import org.drools.core.common.PropagationContext; +import org.drools.core.reteoo.builder.BuildContext; + +import java.util.Map; /** * Leaf Rete-OO node responsible for enacting Action s on a @@ -34,9 +37,7 @@ */ public class QueryTerminalNode extends AbstractTerminalNode implements LeftTupleSinkNode { - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ + private static final long serialVersionUID = 510l; @@ -67,7 +68,6 @@ public QueryTerminalNode(final int id, final BuildContext context) { super( id, context.getPartitionId(), - context.getRuleBase().getRuleBaseConfiguration().isMultithreadEvaluation(), source, context, rule, subrule, subruleIndex); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ReactiveFromNode.java b/drools-core/src/main/java/org/drools/core/reteoo/ReactiveFromNode.java index 28e39ebe685..c8d972f6e5d 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ReactiveFromNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ReactiveFromNode.java @@ -1,21 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.BetaConstraints; import org.drools.core.common.InternalFactHandle; @@ -23,9 +26,9 @@ import org.drools.core.common.TupleSets; import org.drools.core.common.TupleSetsImpl; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.From; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.accessor.DataProvider; +import org.drools.base.rule.From; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.accessor.DataProvider; import org.drools.core.common.PropagationContext; import org.drools.core.util.index.TupleList; @@ -88,9 +91,9 @@ public LeftTuple createLeftTuple(final InternalFactHandle factHandle, return new ReactiveFromNodeLeftTuple(factHandle, leftTuple, sink ); } - public LeftTuple createLeftTuple( LeftTuple leftTuple, - Sink sink, - PropagationContext pctx, boolean leftTupleMemoryEnabled ) { + public LeftTuple createLeftTuple(LeftTuple leftTuple, + Sink sink, + PropagationContext pctx, boolean leftTupleMemoryEnabled ) { throw new UnsupportedOperationException(); } @@ -118,7 +121,7 @@ public String toString() { @Override public LeftTuple createPeer(LeftTuple original) { ReactiveFromNodeLeftTuple peer = new ReactiveFromNodeLeftTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + peer.initPeer((LeftTuple) original, this); original.setPeer( peer ); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ReactiveFromNodeLeftTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/ReactiveFromNodeLeftTuple.java index 213b5dfcae4..97b9adbbd42 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ReactiveFromNodeLeftTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ReactiveFromNodeLeftTuple.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.Arrays; @@ -22,6 +24,7 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.phreak.ReactiveObjectUtil.ModificationType; +import org.kie.api.runtime.rule.FactHandle; import static org.drools.core.phreak.ReactiveObjectUtil.ModificationType.REMOVE; @@ -48,18 +51,18 @@ public ReactiveFromNodeLeftTuple(final LeftTuple leftTuple, } - public ReactiveFromNodeLeftTuple( InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink ) { + public ReactiveFromNodeLeftTuple(InternalFactHandle factHandle, LeftTuple leftTuple, Sink sink ) { super(factHandle, leftTuple, sink); storeTupleObjects(leftTuple, factHandle); } - public ReactiveFromNodeLeftTuple( InternalFactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled ) { - super( factHandle, sink, leftTupleMemoryEnabled ); + public ReactiveFromNodeLeftTuple(FactHandle factHandle, Sink sink, boolean leftTupleMemoryEnabled) { + super( (InternalFactHandle) factHandle, sink, leftTupleMemoryEnabled ); objects = new Object[] { factHandle.getObject() }; hash = Arrays.hashCode( objects ); } - private void storeTupleObjects(LeftTuple leftTuple, InternalFactHandle factHandle) { + private void storeTupleObjects(LeftTuple leftTuple, FactHandle factHandle) { Object[] leftObjects = leftTuple.toObjects(); // left tuple size + 1 for the right object objects = new Object[leftObjects.length + 1]; @@ -69,7 +72,7 @@ private void storeTupleObjects(LeftTuple leftTuple, InternalFactHandle factHandl } @Override - public void initPeer( BaseLeftTuple original, LeftTupleSink sink ) { + public void initPeer(LeftTuple original, LeftTupleSink sink) { super.initPeer( original, sink ); if ( original instanceof ReactiveFromNodeLeftTuple ) { ReactiveFromNodeLeftTuple reactiveTuple = ( (ReactiveFromNodeLeftTuple) original ); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/Rete.java b/drools-core/src/main/java/org/drools/core/reteoo/Rete.java index ba853a1487d..f140c39b19f 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/Rete.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/Rete.java @@ -1,38 +1,41 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - +import org.drools.base.base.ObjectType; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.EntryPointId; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; +import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; import org.drools.core.common.UpdateContext; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.EntryPointId; -import org.drools.core.base.ObjectType; -import org.drools.core.common.PropagationContext; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; /** * The Rete-OO network. @@ -52,15 +55,13 @@ */ public class Rete extends ObjectSource implements ObjectSink { - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ + private static final long serialVersionUID = 510l; private Map entryPoints; - private transient RuleBase kBase; + private transient InternalRuleBase kBase; public Rete() { this( null ); @@ -70,9 +71,9 @@ public Rete() { // Constructors // ------------------------------------------------------------ - public Rete(RuleBase kBase) { - super( 0, RuleBasePartitionId.MAIN_PARTITION, kBase != null && kBase.getRuleBaseConfiguration().isMultithreadEvaluation() ); - this.entryPoints = Collections.synchronizedMap( new HashMap() ); + public Rete(InternalRuleBase kBase) { + super( 0, RuleBasePartitionId.MAIN_PARTITION ); + this.entryPoints = Collections.synchronizedMap( new HashMap<>() ); this.kBase = kBase; hashcode = calculateHashCode(); @@ -182,7 +183,7 @@ public Map getObjectTypeNodes(EntryPointId entryPoin } @Override - public RuleBase getRuleBase() { + public InternalRuleBase getRuleBase() { return this.kBase; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ReteDumper.java b/drools-core/src/main/java/org/drools/core/reteoo/ReteDumper.java index e1a1c928837..9a0f61ddcd9 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ReteDumper.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ReteDumper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; import java.io.PrintWriter; @@ -27,8 +30,8 @@ import java.util.stream.Stream; import org.drools.core.common.BaseNode; -import org.drools.core.common.NetworkNode; -import org.drools.core.impl.RuleBase; +import org.drools.base.common.NetworkNode; +import org.drools.core.impl.InternalRuleBase; import org.kie.api.KieBase; import org.kie.api.definition.rule.Rule; import org.kie.api.runtime.KieRuntime; @@ -88,18 +91,18 @@ public void setNodeInfoOnly(boolean nodeInfoOnly) { } public static void dumpRete(KieBase kbase ) { - new ReteDumper().dump((RuleBase) kbase); + new ReteDumper().dump((InternalRuleBase) kbase); } public static void dumpRete(KieRuntime session ) { - new ReteDumper().dump((RuleBase)session.getKieBase()); + new ReteDumper().dump((InternalRuleBase)session.getKieBase()); } public static void dumpRete(KieSession session) { - new ReteDumper().dump((RuleBase)session.getKieBase()); + new ReteDumper().dump((InternalRuleBase)session.getKieBase()); } - public static void dumpRete(RuleBase kBase) { + public static void dumpRete(InternalRuleBase kBase) { new ReteDumper().dump(kBase.getRete()); } @@ -108,18 +111,18 @@ public static void dumpRete(Rete rete) { } public void dump(KieBase kbase ) { - dump((RuleBase) kbase); + dump((InternalRuleBase) kbase); } public void dump(KieRuntime session ) { - dump((RuleBase)session.getKieBase()); + dump((InternalRuleBase)session.getKieBase()); } public void dump(KieSession session) { - dump((RuleBase)session.getKieBase()); + dump((InternalRuleBase)session.getKieBase()); } - public void dump(RuleBase kBase) { + public void dump(InternalRuleBase kBase) { dump(kBase.getRete()); } @@ -140,18 +143,18 @@ private void printResults() { } public static Set collectRete(KieBase kbase ) { - return new ReteDumper().collect((RuleBase) kbase); + return new ReteDumper().collect((InternalRuleBase) kbase); } public static Set collectRete(KieRuntime session ) { - return new ReteDumper().collect((RuleBase)session.getKieBase()); + return new ReteDumper().collect((InternalRuleBase)session.getKieBase()); } public static Set collectRete(KieSession session) { - return new ReteDumper().collect((RuleBase)session.getKieBase()); + return new ReteDumper().collect((InternalRuleBase)session.getKieBase()); } - public static Set collectRete(RuleBase kBase) { + public static Set collectRete(InternalRuleBase kBase) { return new ReteDumper().collect(kBase.getRete()); } @@ -160,18 +163,18 @@ public static Set collectRete(Rete rete) { } public Set collect(KieBase kbase ) { - return collect((RuleBase) kbase); + return collect((InternalRuleBase) kbase); } public Set collect(KieRuntime session ) { - return collect((RuleBase)session.getKieBase()); + return collect((InternalRuleBase)session.getKieBase()); } public Set collect(KieSession session) { - return collect((RuleBase)session.getKieBase()); + return collect((InternalRuleBase)session.getKieBase()); } - public Set collect(RuleBase kBase) { + public Set collect(InternalRuleBase kBase) { return collect(kBase.getRete()); } @@ -272,7 +275,7 @@ public String formatNode(BaseNode node) { } public static void dumpAssociatedRulesRete(KieBase kieBase) { - new ReteDumper().dumpAssociatedRules(((RuleBase) kieBase).getRete()); + new ReteDumper().dumpAssociatedRules(((InternalRuleBase) kieBase).getRete()); } /** @@ -280,7 +283,7 @@ public static void dumpAssociatedRulesRete(KieBase kieBase) { * @param kieBase */ public void dumpAssociatedRules(KieBase kieBase) { - dumpAssociatedRules(((RuleBase) kieBase).getRete()); + dumpAssociatedRules(((InternalRuleBase) kieBase).getRete()); } public void dumpAssociatedRules(Rete rete) { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ReteObjectTypeNode.java b/drools-core/src/main/java/org/drools/core/reteoo/ReteObjectTypeNode.java index 8803b201080..0993942bd2f 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ReteObjectTypeNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ReteObjectTypeNode.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.PropagationContextFactory; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.core.common.PropagationContext; public class ReteObjectTypeNode extends ObjectTypeNode { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ReteooBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/ReteooBuilder.java index 0bd44358708..0211f540a92 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ReteooBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ReteooBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.ByteArrayInputStream; @@ -31,18 +33,19 @@ import java.util.Queue; import java.util.Set; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.BaseNode; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.MemoryFactory; -import org.drools.core.common.NetworkNode; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.common.NetworkNode; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.PhreakBuilder; import org.drools.core.reteoo.builder.ReteooRuleBuilder; -import org.drools.core.rule.InvalidPatternException; -import org.drools.core.rule.WindowDeclaration; +import org.drools.base.rule.InvalidPatternException; +import org.drools.base.rule.WindowDeclaration; import org.kie.api.definition.rule.Rule; /** @@ -52,14 +55,12 @@ public class ReteooBuilder implements Externalizable { - // ------------------------------------------------------------ - // Instance members - // ------------------------------------------------------------ + private static final long serialVersionUID = 510l; /** The RuleBase */ - private transient RuleBase kBase; + private transient InternalRuleBase kBase; private Map rules; private Map queries; @@ -83,7 +84,7 @@ public ReteooBuilder() { * Construct a Builder against an existing Rete * network. */ - public ReteooBuilder( final RuleBase kBase ) { + public ReteooBuilder( final InternalRuleBase kBase) { this.kBase = kBase; this.rules = new HashMap<>(); this.queries = new HashMap<>(); @@ -461,7 +462,7 @@ public void readExternal(ObjectInput in) throws IOException, } } - public void setRuleBase( RuleBase kBase ) { + public void setRuleBase( InternalRuleBase kBase) { this.kBase = kBase; this.ruleBuilder = new ReteooRuleBuilder(); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/ReteooFactHandleFactory.java b/drools-core/src/main/java/org/drools/core/reteoo/ReteooFactHandleFactory.java index 845ea5334d7..503e9c38afe 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/ReteooFactHandleFactory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/ReteooFactHandleFactory.java @@ -1,23 +1,26 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.Serializable; +import org.drools.base.reteoo.InitialFactImpl; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.AbstractFactHandleFactory; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/RightInputAdapterNode.java b/drools-core/src/main/java/org/drools/core/reteoo/RightInputAdapterNode.java index 31455899c35..a276bc9536c 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/RightInputAdapterNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/RightInputAdapterNode.java @@ -1,42 +1,45 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.ArrayList; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - +import org.drools.base.base.ObjectType; +import org.drools.base.common.NetworkNode; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ObjectType; import org.drools.core.common.ActivationsManager; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Memory; -import org.drools.core.common.NetworkNode; import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.UpdateContext; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.SegmentMemory.SegmentPrototype; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.kie.api.definition.rule.Rule; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + /** * When joining a subnetwork into the main network again, RightInputAdapterNode adapts the * subnetwork's tuple into a fact in order right join it with the tuple being propagated in @@ -89,9 +92,7 @@ public RightInputAdapterNode(final int id, final LeftTupleSource source, final LeftTupleSource startTupleSource, final BuildContext context) { - super( id, - context.getPartitionId(), - context.getRuleBase().getRuleBaseConfiguration().isMultithreadEvaluation() ); + super( id, context.getPartitionId() ); this.tupleSource = source; this.tupleMemoryEnabled = context.isTupleMemoryEnabled(); this.startTupleSource = startTupleSource; @@ -191,7 +192,7 @@ public RiaPathMemory createMemory(final RuleBaseConfiguration config, ReteEvalua public SubnetworkTuple createPeer(LeftTuple original) { SubnetworkTuple peer = new SubnetworkTuple(); - peer.initPeer( (BaseLeftTuple) original, this ); + peer.initPeer((LeftTuple) original, this); original.setPeer( peer ); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/RightTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/RightTuple.java index c0adc9e2793..219f3d81e8c 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/RightTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/RightTuple.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.InternalFactHandle; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/RightTupleImpl.java b/drools-core/src/main/java/org/drools/core/reteoo/RightTupleImpl.java index 767b106d861..b1d3e888772 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/RightTupleImpl.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/RightTupleImpl.java @@ -1,27 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.PropagationContext; import org.drools.core.util.index.TupleList; -public class RightTupleImpl extends BaseTuple implements RightTuple { +public class RightTupleImpl extends AbstractTuple implements RightTuple { private TupleList memory; @@ -45,14 +48,21 @@ public RightTupleImpl(InternalFactHandle handle) { public RightTupleImpl(InternalFactHandle handle, RightTupleSink sink) { this( handle ); - this.sink = sink; + setSink(sink); // add to end of RightTuples on handle handle.addLastRightTuple( this ); } + // It's better to always cast to a concrete or abstract class to avoid + // secondary super cache problem. See https://issues.redhat.com/browse/DROOLS-7521 public RightTupleSink getTupleSink() { - return (RightTupleSink) sink; + Object sink = getSink(); + if(sink instanceof BetaNode) { + return (BetaNode)sink; + } else { + return (RightTupleSink) sink; + } } public void reAdd() { @@ -70,7 +80,7 @@ public void unlinkFromRightParent() { this.memory = null; this.firstChild = null; this.lastChild = null; - this.sink = null; + setSink(null); } public void unlinkFromLeftParent() { @@ -121,12 +131,12 @@ public void setMemory(TupleList memory) { this.memory = memory; } - public RightTuple getHandlePrevious() { - return (RightTuple) handlePrevious; + public RightTupleImpl getHandlePrevious() { + return (RightTupleImpl) handlePrevious; } - public RightTuple getHandleNext() { - return (RightTuple) handleNext; + public RightTupleImpl getHandleNext() { + return (RightTupleImpl) handleNext; } public LeftTuple getFirstChild() { @@ -145,12 +155,12 @@ public void setLastChild(LeftTuple lastChild) { this.lastChild = lastChild; } - public RightTuple getStagedNext() { - return (RightTuple) stagedNext; + public RightTupleImpl getStagedNext() { + return (RightTupleImpl) stagedNext; } - public RightTuple getStagedPrevious() { - return (RightTuple) stagedPrevious; + public RightTupleImpl getStagedPrevious() { + return (RightTupleImpl) stagedPrevious; } public LeftTuple getTempBlocked() { @@ -248,7 +258,7 @@ public Tuple getSubTuple( int elements ) { @Override public ObjectTypeNode.Id getInputOtnId() { - return sink != null ? getTupleSink().getRightInputOtnId() : null; + return getSink() != null ? getTupleSink().getRightInputOtnId() : null; } @Override diff --git a/drools-core/src/main/java/org/drools/core/reteoo/RightTupleSink.java b/drools-core/src/main/java/org/drools/core/reteoo/RightTupleSink.java index e28fb90d238..ab3d2305b29 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/RightTupleSink.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/RightTupleSink.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.ReteEvaluator; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/RuleBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/RuleBuilder.java index cc77498ba5a..6e08b53ae75 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/RuleBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/RuleBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; @@ -20,15 +23,15 @@ import java.util.List; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; -import org.drools.core.rule.WindowDeclaration; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; +import org.drools.base.rule.WindowDeclaration; public interface RuleBuilder { - List addRule( RuleImpl rule, RuleBase kBase, Collection workingMemories ); + List addRule(RuleImpl rule, InternalRuleBase kBase, Collection workingMemories); - void addEntryPoint( String id, RuleBase kBase, Collection workingMemories ); + void addEntryPoint(String id, InternalRuleBase kBase, Collection workingMemories); - WindowNode addWindowNode( WindowDeclaration window, RuleBase kBase, Collection workingMemories ); + WindowNode addWindowNode(WindowDeclaration window, InternalRuleBase kBase, Collection workingMemories); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/RuleRemovalContext.java b/drools-core/src/main/java/org/drools/core/reteoo/RuleRemovalContext.java index b3cb86ecc50..fb1af7e7d82 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/RuleRemovalContext.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/RuleRemovalContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.Externalizable; @@ -21,8 +23,8 @@ import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; /** * This context class is used during rule removal to ensure @@ -33,7 +35,7 @@ public class RuleRemovalContext implements Externalizable { // the rule being removed private RuleImpl rule; - private RuleBase ruleBase; + private InternalRuleBase ruleBase; private int subRuleIndex; @@ -44,7 +46,7 @@ public RuleRemovalContext(RuleImpl rule) { this.rule = rule; } - public RuleRemovalContext(RuleImpl rule, RuleBase ruleBase) { + public RuleRemovalContext(RuleImpl rule, InternalRuleBase ruleBase) { this.rule = rule; this.ruleBase = ruleBase; } @@ -65,11 +67,11 @@ public RuleImpl getRule() { return rule; } - public RuleBase getRuleBase() { + public InternalRuleBase getRuleBase() { return ruleBase; } - public void setRuleBase(RuleBase ruleBase) { + public void setRuleBase(InternalRuleBase ruleBase) { this.ruleBase = ruleBase; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/RuleTerminalNode.java b/drools-core/src/main/java/org/drools/core/reteoo/RuleTerminalNode.java index 2147522bfaf..1aa45f3085a 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/RuleTerminalNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/RuleTerminalNode.java @@ -1,37 +1,39 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.Comparator; -import java.util.Map; -import java.util.Objects; - -import org.drools.core.base.SalienceInteger; +import org.drools.base.base.SalienceInteger; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.PhreakRuleTerminalNode; import org.drools.core.phreak.RuleExecutor; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.common.PropagationContext; import org.drools.core.rule.consequence.InternalMatch; +import java.util.Map; +import java.util.Objects; + /** * Leaf Rete-OO node responsible for enacting Action s on a * matched Rule. @@ -64,7 +66,6 @@ public RuleTerminalNode(final int id, final BuildContext context) { super( id, context.getPartitionId(), - context.getRuleBase().getRuleBaseConfiguration().isMultithreadEvaluation(), source, context, rule, subrule, subruleIndex); @@ -147,17 +148,6 @@ public void cancelMatch(InternalMatch match, ReteEvaluator reteEvaluator) { } } - public static class SortDeclarations - implements - Comparator { - public final static SortDeclarations instance = new SortDeclarations(); - - public int compare(Declaration d1, - Declaration d2) { - return (d1.getIdentifier().compareTo( d2.getIdentifier() )); - } - } - protected int calculateHashCode() { return (31 * super.calculateHashCode()) + (consequenceName == null ? 0 : consequenceName.hashCode()); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/RuleTerminalNodeLeftTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/RuleTerminalNodeLeftTuple.java index dda6d578610..826da2cea61 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/RuleTerminalNodeLeftTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/RuleTerminalNodeLeftTuple.java @@ -1,40 +1,42 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Objects; - +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.common.ActivationGroupNode; import org.drools.core.common.ActivationNode; import org.drools.core.common.ActivationsManager; import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.PropagationContext; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.RuleAgendaItem; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.consequence.Consequence; import org.drools.core.rule.consequence.InternalMatch; import org.kie.api.runtime.rule.FactHandle; -public class RuleTerminalNodeLeftTuple extends BaseLeftTuple implements InternalMatch { +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; + +public class RuleTerminalNodeLeftTuple extends LeftTuple implements InternalMatch { private static final long serialVersionUID = 540l; /** * The salience @@ -59,6 +61,9 @@ public class RuleTerminalNodeLeftTuple extends BaseLeftTuple implements Internal private Runnable callback; + private RuleImpl rule; + private Consequence consequence; + public RuleTerminalNodeLeftTuple() { // constructor needed for serialisation } @@ -133,18 +138,28 @@ public void update(final int salience, this.matched = true; } + @Override + protected void setSink(Sink sink) { + super.setSink(sink); + TerminalNode terminalNode = (TerminalNode) sink; + this.rule = terminalNode.getRule(); + if (this.rule != null && terminalNode instanceof RuleTerminalNode) { + String consequenceName = ((RuleTerminalNode)terminalNode).getConsequenceName(); + this.consequence = consequenceName.equals(RuleImpl.DEFAULT_CONSEQUENCE_NAME) ? rule.getConsequence() : rule.getNamedConsequence(consequenceName); + } + } + /** * Retrieve the rule. * * @return The rule. */ public RuleImpl getRule() { - return getTerminalNode().getRule(); + return this.rule; } public Consequence getConsequence() { - String consequenceName = ((RuleTerminalNode) getTerminalNode()).getConsequenceName(); - return consequenceName.equals(RuleImpl.DEFAULT_CONSEQUENCE_NAME) ? getTerminalNode().getRule().getConsequence() : getTerminalNode().getRule().getNamedConsequence(consequenceName); + return consequence; } /** @@ -160,6 +175,10 @@ public int getSalience() { return this.salience; } + public void setSalience(int salience) { + this.salience = salience; + } + public InternalFactHandle getActivationFactHandle() { return activationFactHandle; } @@ -230,7 +249,7 @@ public void setActivationNode(final ActivationNode activationNode) { } public TerminalNode getTerminalNode() { - return (TerminalNode) getTupleSink(); + return (AbstractTerminalNode) getTupleSink(); } public List getFactHandles() { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/RuntimeComponentFactory.java b/drools-core/src/main/java/org/drools/core/reteoo/RuntimeComponentFactory.java index b83ab638659..8fe7e31c094 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/RuntimeComponentFactory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/RuntimeComponentFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.SessionConfiguration; @@ -22,15 +25,15 @@ import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.factmodel.traits.TraitFactory; -import org.drools.core.impl.RuleBase; +import org.drools.base.factmodel.traits.TraitFactory; import org.drools.core.management.DroolsManagementAgent; import org.drools.core.management.GenericKieSessionMonitoringImpl; import org.drools.core.marshalling.SerializablePlaceholderResolverStrategy; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.rule.accessor.GlobalResolver; +import org.drools.base.rule.accessor.GlobalResolver; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.core.time.TimerService; +import org.drools.base.RuleBase; import org.kie.api.internal.utils.KieService; import org.kie.api.marshalling.ObjectMarshallingStrategy; import org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/SegmentMemory.java b/drools-core/src/main/java/org/drools/core/reteoo/SegmentMemory.java index 68c11177e7f..150a7d6a86b 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/SegmentMemory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/SegmentMemory.java @@ -1,26 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; - +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.Memory; import org.drools.core.common.MemoryFactory; import org.drools.core.common.ReteEvaluator; @@ -37,6 +35,12 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.Iterator; +import java.util.List; + import static org.drools.core.phreak.RuntimeSegmentUtilities.getQuerySegmentMemory; public class SegmentMemory extends LinkedList @@ -290,14 +294,14 @@ private boolean isAssociatedWith( PathMemory pmem ) { if (NodeTypeEnums.RightInputAdapterNode == pmem.getNodeType()) { for (PathEndNode endNode : pmem.getPathEndNode().getPathEndNodes() ) { if (NodeTypeEnums.isTerminalNode(endNode)) { - if ( proto.getRootNode().hasAssociatedTerminal(endNode)) { + if ( proto.getRootNode().hasAssociatedTerminal((AbstractTerminalNode)endNode)) { return true; } } } return false; } - return proto.getRootNode().hasAssociatedTerminal( pmem.getPathEndNode() ); + return proto.getRootNode().hasAssociatedTerminal((AbstractTerminalNode)pmem.getPathEndNode() ); } public void removePathMemory(PathMemory pathMemory) { @@ -594,7 +598,7 @@ public String toString() { sbuilder.append("nodeTypesInSegment " + nodeTypesInSegment + " "); sbuilder.append("nodes "); if (nodesInSegment != null) { - Arrays.stream(nodesInSegment).forEach(n -> sbuilder.append(n)); + Arrays.stream(nodesInSegment).forEach(sbuilder::append); } sbuilder.append("]"); return sbuilder.toString(); @@ -746,7 +750,7 @@ public QueryMemoryPrototype(long nodePosMaskBit, QueryElementNode queryNode) { @Override public void populateMemory(ReteEvaluator reteEvaluator, Memory mem) { QueryElementNodeMemory qmem = (QueryElementNodeMemory) mem; - SegmentMemory querySmem = getQuerySegmentMemory(reteEvaluator, (LeftTupleSource)qmem.getSegmentMemory().getRootNode(), queryNode); + SegmentMemory querySmem = getQuerySegmentMemory(reteEvaluator, queryNode); qmem.setQuerySegmentMemory(querySmem); qmem.setNodePosMaskBit(nodePosMaskBit); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/SegmentNodeMemory.java b/drools-core/src/main/java/org/drools/core/reteoo/SegmentNodeMemory.java index 6cdf5182509..49a6ae92cfd 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/SegmentNodeMemory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/SegmentNodeMemory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.Memory; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/SingleLeftTupleSinkAdapter.java b/drools-core/src/main/java/org/drools/core/reteoo/SingleLeftTupleSinkAdapter.java index d62b7576d20..b5365d28c37 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/SingleLeftTupleSinkAdapter.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/SingleLeftTupleSinkAdapter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.IOException; @@ -21,7 +23,7 @@ import java.io.ObjectOutput; import org.drools.core.common.BaseNode; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; public class SingleLeftTupleSinkAdapter extends AbstractLeftTupleSinkAdapter { protected LeftTupleSink sink; @@ -50,9 +52,19 @@ public BaseNode getMatchingNode(BaseNode candidate) { public LeftTupleSink[] getSinks() { return sinkArray; } - + + // See LeftTuple.getTupleSink() or https://issues.redhat.com/browse/DROOLS-7521 public LeftTupleSinkNode getFirstLeftTupleSink() { - return ( LeftTupleSinkNode ) sink; + if (sink instanceof AccumulateNode) { + return (AccumulateNode) sink; + } else if (sink instanceof RuleTerminalNode) { + return (RuleTerminalNode) sink; + } else if (sink instanceof RightInputAdapterNode) { + return (RightInputAdapterNode) sink; + } else if (sink instanceof ExistsNode) { + return (ExistsNode) sink; + } + return (LeftTupleSinkNode) sink; } public LeftTupleSinkNode getLastLeftTupleSink() { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/SingleObjectSinkAdapter.java b/drools-core/src/main/java/org/drools/core/reteoo/SingleObjectSinkAdapter.java index 417b03ffa13..a905aca7879 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/SingleObjectSinkAdapter.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/SingleObjectSinkAdapter.java @@ -1,25 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.BaseNode; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/Sink.java b/drools-core/src/main/java/org/drools/core/reteoo/Sink.java index dfb0bcbfffe..c51ba28c799 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/Sink.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/Sink.java @@ -1,22 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; /** * A simple markup interfaces for Sink types diff --git a/drools-core/src/main/java/org/drools/core/reteoo/SubnetworkTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/SubnetworkTuple.java index 2d8262fc711..82b7c8e5c81 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/SubnetworkTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/SubnetworkTuple.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.DefaultFactHandle; @@ -23,7 +25,7 @@ import java.util.concurrent.atomic.AtomicInteger; -public class SubnetworkTuple extends BaseLeftTuple implements RightTuple { +public class SubnetworkTuple extends LeftTuple implements RightTuple { private LeftTuple blocked; private LeftTuple tempBlocked; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/TerminalNode.java b/drools-core/src/main/java/org/drools/core/reteoo/TerminalNode.java index c3f55f83385..542d039527f 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/TerminalNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/TerminalNode.java @@ -1,66 +1,39 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.function.Consumer; -import org.drools.core.common.MemoryFactory; -import org.drools.core.common.NetworkNode; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.util.bitmask.BitMask; +import org.drools.base.common.NetworkNode; +import org.drools.base.reteoo.BaseTerminalNode; /** * A markup interface for terminal nodes */ public interface TerminalNode extends - NetworkNode, Sink, PathEndNode { + BaseTerminalNode, NetworkNode, Sink, PathEndNode { LeftTupleSource getLeftTupleSource(); LeftTupleSource unwrapTupleSource(); - - void initInferredMask(); - - BitMask getDeclaredMask(); - void setDeclaredMask(BitMask mask); - - BitMask getInferredMask(); - void setInferredMask(BitMask mask); - - BitMask getNegativeMask(); - void setNegativeMask(BitMask mask); - - RuleImpl getRule(); - - GroupElement getSubRule(); - - boolean isFireDirect(); - - Declaration[] getAllDeclarations(); - Declaration[] getRequiredDeclarations(); - - Declaration[] getSalienceDeclarations(); - - boolean isTerminalNodeOf(LeftTupleNode node); void visitLeftTupleNodes(Consumer func); - int getSubruleIndex(); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/TimerNode.java b/drools-core/src/main/java/org/drools/core/reteoo/TimerNode.java index e040510d82e..5f8c18815e9 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/TimerNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/TimerNode.java @@ -1,23 +1,26 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.Arrays; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.Memory; @@ -25,10 +28,10 @@ import org.drools.core.common.ReteEvaluator; import org.drools.core.common.UpdateContext; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; import org.drools.core.common.PropagationContext; -import org.drools.core.time.impl.Timer; +import org.drools.base.time.impl.Timer; import org.drools.core.util.AbstractBaseLinkedListNode; import org.drools.core.util.index.TupleList; @@ -154,7 +157,7 @@ public TimerNodeMemory createMemory(final RuleBaseConfiguration config, ReteEval @Override public LeftTuple createPeer(LeftTuple original) { EvalNodeLeftTuple peer = new EvalNodeLeftTuple(); - peer.initPeer((BaseLeftTuple) original, this); + peer.initPeer((LeftTuple) original, this); original.setPeer(peer); return peer; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/Tuple.java b/drools-core/src/main/java/org/drools/core/reteoo/Tuple.java index daa48ac0736..3e4d72046c8 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/Tuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/Tuple.java @@ -1,36 +1,39 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.io.Serializable; - +import org.drools.base.reteoo.BaseTuple; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.PropagationContext; -import org.drools.core.rule.Declaration; import org.drools.core.util.Entry; import org.drools.core.util.index.TupleList; +import org.kie.api.runtime.rule.FactHandle; + +import java.io.Serializable; /** * Partial matches are propagated through the Rete network as Tuples. Each Tuple * Is able to return the FactHandleImpl members of the partial match for the requested pattern. * The pattern refers to the index position of the FactHandleImpl in the underlying implementation. */ -public interface Tuple extends Serializable, Entry { +public interface Tuple extends BaseTuple, Serializable, Entry { short NONE = 0; short INSERT = 1; @@ -38,62 +41,12 @@ public interface Tuple extends Serializable, Entry { short DELETE = 3; short NORMALIZED_DELETE = 4; - Object getObject(int pattern); - - Object getObject(Declaration declaration); - + @Override default Object[] toObjects() { return toObjects(false); } - Object[] toObjects(boolean reverse); - - /** - * Returns the FactHandle for the given pattern index. If the pattern is empty - * It returns null. - * - * @param pattern - * The index of the pattern from which the FactHandleImpl is to be returned - * @return - * The FactHandle - */ - InternalFactHandle get(int pattern); - - /** - * Returns the tuple at the given index - * @param index - * @return - */ - Tuple getTuple(int index); - - /** - * Returns the FactHandle for the given Declaration, which in turn - * specifcy the Pattern that they depend on. - * - * @param declaration - * The Declaration which specifies the Pattern - * @return - * The FactHandle - */ - InternalFactHandle get(Declaration declaration); - - /** - * Returns the fact handles in reverse order - */ - InternalFactHandle[] toFactHandles(); - - /** - * Returns the size of this tuple in number of elements (patterns) - */ - int size(); - - int getIndex(); - - Tuple getParent(); - - InternalFactHandle getFactHandle(); - - void setFactHandle( InternalFactHandle handle ); + void setFactHandle( FactHandle handle); InternalFactHandle getOriginalFactHandle(); @@ -152,10 +105,6 @@ default boolean isDeleted() { void setMemory( TupleList memory ); - void increaseActivationCountForEvents(); - - void decreaseActivationCountForEvents(); - Tuple getRootTuple(); Tuple skipEmptyHandles(); @@ -170,6 +119,8 @@ default boolean isDeleted() { T getHandlePrevious(); + Tuple getParent(); + void setHandlePrevious( Tuple leftParentLeft ); T getHandleNext(); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/TupleIterator.java b/drools-core/src/main/java/org/drools/core/reteoo/TupleIterator.java index 4f82dc0ec2f..b190095fbef 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/TupleIterator.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/TupleIterator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; public class TupleIterator { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/TupleMemory.java b/drools-core/src/main/java/org/drools/core/reteoo/TupleMemory.java index 52d2cf535b7..1abcff3a882 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/TupleMemory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/TupleMemory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.util.AbstractHashTable.Index; @@ -54,20 +56,20 @@ public boolean isComparison() { Iterator iterator(); - FastIterator fastIterator(); - + FastIterator fastIterator(); + /** * Iterates the entire data structure, regardless of whether TupleMemory is hashed or not. * @return */ - FastIterator fullFastIterator(); - + FastIterator fullFastIterator(); + /** * Iterator that resumes from the current RightTuple, regardless of whether the TupleMemory is hashed or not * @param tuple * @return */ - FastIterator fullFastIterator( Tuple tuple ); + FastIterator fullFastIterator( AbstractTuple tuple ); Tuple[] toArray(); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/WindowNode.java b/drools-core/src/main/java/org/drools/core/reteoo/WindowNode.java index dd8132d1ab8..1e07590f659 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/WindowNode.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/WindowNode.java @@ -1,44 +1,47 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; - +import org.drools.base.base.ObjectType; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Memory; import org.drools.core.common.MemoryFactory; +import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.ObjectTypeNode.ObjectTypeNodeMemory; import org.drools.core.reteoo.WindowNode.WindowMemory; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Behavior; +import org.drools.core.rule.BehaviorContext; import org.drools.core.rule.BehaviorManager; -import org.drools.core.rule.EntryPointId; +import org.drools.core.rule.BehaviorRuntime; import org.drools.core.rule.SlidingTimeWindow; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.base.ObjectType; -import org.drools.core.common.PropagationContext; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; /** * WindowNodes are nodes in the Rete network used @@ -77,12 +80,11 @@ public WindowNode() { */ public WindowNode(final int id, final List constraints, - final List behaviors, + final List behaviors, final ObjectSource objectSource, final BuildContext context) { super(id, context.getPartitionId(), - context.getRuleBase().getRuleBaseConfiguration().isMultithreadEvaluation(), objectSource, context.getRuleBase().getRuleBaseConfiguration().getAlphaNodeHashingThreshold(), context.getRuleBase().getRuleBaseConfiguration().getAlphaNodeRangeIndexThreshold()); @@ -90,7 +92,7 @@ public WindowNode(final int id, this.constraints = new ArrayList<>(constraints); this.behavior = new BehaviorManager(behaviors); this.entryPoint = context.getCurrentEntryPoint(); - for ( Behavior b : behaviors ) { + for ( BehaviorRuntime b : behaviors ) { if ( b instanceof SlidingTimeWindow ) { ((SlidingTimeWindow)b).setWindowNode( this ); } @@ -115,7 +117,7 @@ public List getConstraints() { /** * Returns the list of behaviors for this window node */ - public Behavior[] getBehaviors() { + public BehaviorRuntime[] getBehaviors() { return behavior.getBehaviors(); } @@ -126,7 +128,7 @@ public void doAttach(BuildContext context) { public void assertObject(final InternalFactHandle factHandle, final PropagationContext pctx, final ReteEvaluator reteEvaluator) { - EventFactHandle evFh = ( EventFactHandle ) factHandle; + DefaultEventHandle evFh = (DefaultEventHandle) factHandle; for (AlphaNodeFieldConstraint constraint : constraints) { if (!constraint.isAllowed(evFh, reteEvaluator)) { return; @@ -163,8 +165,8 @@ public void retractRightTuple(RightTuple rightTuple, PropagationContext pctx, Re @Override public void modifyRightTuple(RightTuple rightTuple, PropagationContext context, ReteEvaluator reteEvaluator) { - EventFactHandle originalFactHandle = ( EventFactHandle ) rightTuple.getFactHandle(); - EventFactHandle cloneFactHandle = ( EventFactHandle ) rightTuple.getContextObject(); + DefaultEventHandle originalFactHandle = (DefaultEventHandle) rightTuple.getFactHandle(); + DefaultEventHandle cloneFactHandle = (DefaultEventHandle) rightTuple.getContextObject(); originalFactHandle.quickCloneUpdate( cloneFactHandle ); // make sure all fields are updated // behavior modify @@ -219,12 +221,8 @@ public void byPassModifyToBetaNode(InternalFactHandle factHandle, sink.byPassModifyToBetaNode(factHandle, modifyPreviousTuples, context, reteEvaluator); } - public void updateSink(final ObjectSink sink, - final PropagationContext context, - final InternalWorkingMemory workingMemory) { - final ObjectTypeNodeMemory omem = workingMemory.getNodeMemory( getObjectTypeNode()); - Iterator it = omem.iterator(); - + public void updateSink(ObjectSink sink, PropagationContext context, InternalWorkingMemory workingMemory) { + Iterator it = getObjectTypeNode().getFactHandlesIterator(workingMemory); while (it.hasNext()) { assertObject( it.next(), context, workingMemory ); } @@ -314,7 +312,7 @@ public void setRightInputOtnId(ObjectTypeNode.Id rightInputOtnId) { } public static class WindowMemory implements Memory { - public Behavior.Context[] behaviorContext; + public BehaviorContext[] behaviorContext; public short getNodeType() { return NodeTypeEnums.WindowNode; @@ -351,10 +349,10 @@ public void nullPrevNext() { public void reset() { } - public Collection getFactHandles() { - List eventFactHandles = new ArrayList<>( ); - for (Behavior.Context ctx : behaviorContext) { - for (EventFactHandle efh : ctx.getFactHandles()) { + public Collection getFactHandles() { + List eventFactHandles = new ArrayList<>( ); + for (BehaviorContext ctx : behaviorContext) { + for (DefaultEventHandle efh : ctx.getFactHandles()) { eventFactHandles.add(efh.getLinkedFactHandle()); } } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/WindowTuple.java b/drools-core/src/main/java/org/drools/core/reteoo/WindowTuple.java index cd00c964a9b..55ab4d6dc53 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/WindowTuple.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/WindowTuple.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.InternalFactHandle; diff --git a/drools-core/src/main/java/org/drools/core/reteoo/WindowTupleList.java b/drools-core/src/main/java/org/drools/core/reteoo/WindowTupleList.java index b3bfdd96877..1d871c2f737 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/WindowTupleList.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/WindowTupleList.java @@ -1,22 +1,24 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; /** * A class to hold a list of the right tuples that belong to a @@ -24,7 +26,7 @@ * */ public class WindowTupleList { - protected EventFactHandle handle; + protected DefaultEventHandle handle; private WindowTupleList listPrevious; private WindowTupleList listNext; @@ -37,7 +39,7 @@ public class WindowTupleList { public WindowTupleList() { } - public WindowTupleList( EventFactHandle handle, + public WindowTupleList( DefaultEventHandle handle, WindowNode node) { this.handle = handle; this.node = node; @@ -56,7 +58,7 @@ public void unlinkFromHandle() { this.listNext = null; } - public EventFactHandle getHandle() { + public DefaultEventHandle getHandle() { return this.handle; } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/AccumulateBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/AccumulateBuilder.java index 1a640c49c56..b61388cd86c 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/AccumulateBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/AccumulateBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import java.util.ArrayList; @@ -24,11 +26,11 @@ import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.RightInputAdapterNode; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; public class AccumulateBuilder implements diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/AsyncReceiveBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/AsyncReceiveBuilder.java index 3c097806ac8..3a7063ab51d 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/AsyncReceiveBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/AsyncReceiveBuilder.java @@ -1,26 +1,28 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.common.BetaConstraints; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.AsyncReceive; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.AsyncReceive; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; public class AsyncReceiveBuilder implements ReteooComponentBuilder { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/AsyncSendBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/AsyncSendBuilder.java index a278382d8da..6906d5fee81 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/AsyncSendBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/AsyncSendBuilder.java @@ -1,27 +1,29 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.common.BetaConstraints; import org.drools.core.reteoo.AsyncSendNode; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.AsyncSend; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.AsyncSend; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; public class AsyncSendBuilder implements ReteooComponentBuilder { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactory.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactory.java index 500fc03d2ae..49bce73cc36 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.RuleBaseConfiguration; @@ -22,7 +24,7 @@ import org.drools.core.common.QuadroupleBetaConstraints; import org.drools.core.common.SingleBetaConstraints; import org.drools.core.common.TripleBetaConstraints; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.kie.api.internal.utils.KieService; public interface BetaNodeConstraintFactory extends KieService { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactoryImpl.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactoryImpl.java index d442f436702..201604bf6a2 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactoryImpl.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/BetaNodeConstraintFactoryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.RuleBaseConfiguration; @@ -22,7 +24,7 @@ import org.drools.core.common.QuadroupleBetaConstraints; import org.drools.core.common.SingleBetaConstraints; import org.drools.core.common.TripleBetaConstraints; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; public class BetaNodeConstraintFactoryImpl implements BetaNodeConstraintFactory { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildContext.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildContext.java index 20b49886459..0f218da3a7b 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildContext.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildContext.java @@ -1,57 +1,60 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo.builder; -import java.util.ArrayDeque; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Deque; -import java.util.List; - +import org.drools.base.RuleBuildContext; +import org.drools.base.common.NetworkNode; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleComponent; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.XpathConstraint; import org.drools.core.common.BaseNode; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.NetworkNode; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.constraint.XpathConstraint; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.rule.RuleComponent; import org.drools.core.time.TemporalDependencyMatrix; -import static org.drools.core.rule.TypeDeclaration.NEVER_EXPIRES; +import java.util.ArrayDeque; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Deque; +import java.util.List; + +import static org.drools.base.rule.TypeDeclaration.NEVER_EXPIRES; /** * A build context for Reteoo Builder */ -public class BuildContext { +public class BuildContext implements RuleBuildContext { - private List terminals = new ArrayList<>(); + private final List terminals = new ArrayList<>(); // tuple source to attach next node to private LeftTupleSource tupleSource; @@ -61,7 +64,7 @@ public class BuildContext { private List patterns; // rule base to add rules to - private final RuleBase ruleBase; + private final InternalRuleBase ruleBase; // rule being added at this moment private RuleImpl rule; private GroupElement subRule; @@ -79,7 +82,6 @@ public class BuildContext { // the current entry point private EntryPointId currentEntryPoint; private boolean tupleMemoryEnabled; - private boolean objectTypeNodeMemoryEnabled; private boolean query; private int subRuleIndex; @@ -111,11 +113,10 @@ public class BuildContext { private final Collection workingMemories; - public BuildContext(RuleBase ruleBase, Collection workingMemories) { + public BuildContext(InternalRuleBase ruleBase, Collection workingMemories) { this.ruleBase = ruleBase; this.workingMemories = workingMemories; this.tupleMemoryEnabled = true; - this.objectTypeNodeMemoryEnabled = true; this.currentEntryPoint = EntryPointId.DEFAULT; this.attachPQN = true; this.emptyForAllBetaConstraints = false; @@ -186,7 +187,7 @@ public void setTupleSource(final LeftTupleSource tupleSource) { /** * Returns context rulebase */ - public RuleBase getRuleBase() { + public InternalRuleBase getRuleBase() { return this.ruleBase; } @@ -284,14 +285,6 @@ public void setTupleMemoryEnabled(boolean hasLeftMemory) { this.tupleMemoryEnabled = hasLeftMemory; } - public boolean isObjectTypeNodeMemoryEnabled() { - return objectTypeNodeMemoryEnabled; - } - - public void setObjectTypeNodeMemoryEnabled(boolean hasObjectTypeMemory) { - this.objectTypeNodeMemoryEnabled = hasObjectTypeMemory; - } - public boolean isQuery() { return query; } @@ -437,8 +430,8 @@ boolean isTerminated() { return terminated; } - void setTerminated(boolean terminated) { - this.terminated = terminated; + void terminate() { + this.terminated = true; } public String getConsequenceName() { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildUtils.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildUtils.java index 6bd3abbc66e..ec2336b1ea1 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildUtils.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/BuildUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo.builder; import java.util.ArrayList; @@ -24,24 +26,24 @@ import org.drools.core.common.BaseNode; import org.drools.core.common.BetaConstraints; import org.drools.core.common.EmptyBetaConstraints; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.IntervalProviderConstraint; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; -import org.drools.core.time.Interval; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.IntervalProviderConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.base.ObjectType; +import org.drools.base.time.Interval; import org.drools.core.time.TemporalDependencyMatrix; -import org.drools.core.time.TimeUtils; +import org.drools.base.time.TimeUtils; import org.kie.api.definition.rule.Rule; /** diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/CollectBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/CollectBuilder.java index dc0e27254cf..e613321e8aa 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/CollectBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/CollectBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import java.util.ArrayList; @@ -26,13 +28,13 @@ import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.RightInputAdapterNode; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.Collect; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.SingleAccumulate; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Collect; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.SingleAccumulate; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; public class CollectBuilder implements diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/ConditionalBranchBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/ConditionalBranchBuilder.java index 3753236ccbb..e834646babf 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/ConditionalBranchBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/ConditionalBranchBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo.builder; import org.drools.core.common.UpdateContext; @@ -20,9 +23,9 @@ import org.drools.core.reteoo.ConditionalBranchNode; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.ConditionalBranch; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.ConditionalBranch; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.RuleConditionElement; public class ConditionalBranchBuilder implements ReteooComponentBuilder { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/EntryPointBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/EntryPointBuilder.java index 033be41ce5f..6fd1fe976a1 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/EntryPointBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/EntryPointBuilder.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.RuleConditionElement; /** * This is a builder for the entry point pattern diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/EvalBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/EvalBuilder.java index ccce47dd747..f13ba32f381 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/EvalBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/EvalBuilder.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.RuleConditionElement; public class EvalBuilder implements diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/ForallBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/ForallBuilder.java index 79adf63a264..98ecb10c8e0 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/ForallBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/ForallBuilder.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo.builder; -import org.drools.core.rule.Forall; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElementFactory; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.Forall; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElementFactory; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; /** * The Reteoo component builder for forall CE diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/FromBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/FromBuilder.java index 25ec52a4854..9c6dd4397e6 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/FromBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/FromBuilder.java @@ -1,27 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.common.BetaConstraints; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.FromNode; -import org.drools.core.rule.From; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.From; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; public class FromBuilder implements diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/GroupElementBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/GroupElementBuilder.java index a30cc70ba4a..956d5628e92 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/GroupElementBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/GroupElementBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import java.util.ArrayList; @@ -21,7 +23,7 @@ import java.util.List; import java.util.Map; -import org.drools.core.InitialFact; +import org.drools.base.InitialFact; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.BetaConstraints; import org.drools.core.common.TupleStartEqualsConstraint; @@ -29,16 +31,16 @@ import org.drools.core.reteoo.ExistsNode; import org.drools.core.reteoo.JoinNode; import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.RightInputAdapterNode; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElement.Type; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElement.Type; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.kie.api.definition.rule.Propagation; public class GroupElementBuilder @@ -131,7 +133,7 @@ private boolean isTerminalAlpha( BuildContext context, RuleConditionElement chil boolean lockOnActive = context.getRule().isLockOnActive(); boolean eager = context.getRule().getMetaData(Propagation.class.getName()) != null || context.getRule().getMetaData(Propagation.class.getSimpleName()) != null; return !isInitialFact && !hasTimer && !lockOnActive && !eager && - !conf.isMultithreadEvaluation() && !conf.isSequential() && !conf.isDeclarativeAgenda(); + !conf.isParallelEvaluation() && !conf.isSequential() && !conf.isDeclarativeAgenda(); } public static void buildTupleSource(BuildContext context, BuildUtils utils, boolean terminal) { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/InstanceNotEqualsConstraint.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/InstanceNotEqualsConstraint.java index f103c6ba4eb..476c920dc82 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/InstanceNotEqualsConstraint.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/InstanceNotEqualsConstraint.java @@ -1,32 +1,34 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.kie.api.runtime.rule.FactHandle; public class InstanceNotEqualsConstraint implements @@ -83,11 +85,11 @@ public boolean isAllowed(final ContextEntry entry) { } public boolean isAllowedCachedLeft(final ContextEntry context, - final InternalFactHandle handle) { + final FactHandle handle) { return ((InstanceNotEqualsConstraintContextEntry) context).left != handle.getObject(); } - public boolean isAllowedCachedRight(final Tuple tuple, + public boolean isAllowedCachedRight(final BaseTuple tuple, final ContextEntry context) { return tuple.getObject( this.otherPattern.getTupleIndex()) != ((InstanceNotEqualsConstraintContextEntry) context).right; } @@ -161,13 +163,13 @@ public void setNext(final ContextEntry entry) { this.entry = entry; } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { this.left = tuple.getObject( this.pattern.getTupleIndex()); } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { this.right = handle.getObject(); } diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/NamedConsequenceBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/NamedConsequenceBuilder.java index 1c71ef4f131..5c5a27f409a 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/NamedConsequenceBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/NamedConsequenceBuilder.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo.builder; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.NamedConsequence; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.time.impl.Timer; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.NamedConsequence; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.time.impl.Timer; public class NamedConsequenceBuilder implements ReteooComponentBuilder { @@ -29,7 +32,7 @@ public void build(BuildContext context, BuildUtils utils, RuleConditionElement r ReteooRuleBuilder.buildTerminalNodeForConsequence(context, (GroupElement) context.peek(), context.getSubRuleIndex(), namedConsequence, timer, utils); - context.setTerminated(true); // assumes named consequences, not in a conditional branch are always terminal. + context.terminate(); // assumes named consequences, not in a conditional branch are always terminal. } public boolean requiresLeftActivation(BuildUtils utils, RuleConditionElement rce) { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/NodeFactory.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/NodeFactory.java index 7a9dc046611..a1194e0c844 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/NodeFactory.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/NodeFactory.java @@ -1,28 +1,40 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - - package org.drools.core.reteoo.builder; -import java.util.List; - +import org.drools.base.base.ObjectType; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.AsyncReceive; +import org.drools.base.rule.AsyncSend; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.From; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.QueryElement; +import org.drools.base.rule.accessor.DataProvider; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.time.impl.Timer; import org.drools.core.common.BetaConstraints; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.AccumulateNode; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.AsyncReceiveNode; @@ -45,20 +57,9 @@ import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.TimerNode; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.AsyncReceive; -import org.drools.core.rule.AsyncSend; -import org.drools.core.rule.Behavior; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.From; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.QueryElement; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.accessor.DataProvider; -import org.drools.core.base.ObjectType; -import org.drools.core.time.impl.Timer; +import org.drools.core.rule.BehaviorRuntime; + +import java.util.List; public interface NodeFactory { @@ -68,7 +69,6 @@ EntryPointNode buildEntryPointNode( int id, EntryPointNode buildEntryPointNode( int id, RuleBasePartitionId partitionId, - boolean partitionsEnabled, ObjectSource objectSource, EntryPointId entryPoint); @@ -179,7 +179,7 @@ ConditionalBranchNode buildConditionalBranchNode(int id, WindowNode buildWindowNode(int id, List constraints, - List behaviors, + List behaviors, ObjectSource objectSource, BuildContext context); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/PatternBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/PatternBuilder.java index d3b3c222cf3..4405e66ce61 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/PatternBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/PatternBuilder.java @@ -1,57 +1,60 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo.builder; -import java.util.ArrayList; -import java.util.List; - -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.DroolsQuery; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Behavior; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.IntervalProviderConstraint; +import org.drools.base.rule.InvalidPatternException; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.PatternSource; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.WindowReference; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.rule.constraint.XpathConstraint; +import org.drools.base.time.impl.Timer; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.Behavior; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.IntervalProviderConstraint; -import org.drools.core.rule.InvalidPatternException; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.PatternSource; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.WindowReference; -import org.drools.core.rule.constraint.XpathConstraint; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.rule.constraint.Constraint; -import org.drools.core.base.ObjectType; +import org.drools.core.rule.BehaviorRuntime; import org.drools.core.time.impl.CompositeMaxDurationTimer; import org.drools.core.time.impl.DurationTimer; -import org.drools.core.time.impl.Timer; import org.kie.api.conf.EventProcessingOption; import org.kie.api.definition.type.Expires.Policy; +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; + +import static org.drools.base.rule.TypeDeclaration.NEVER_EXPIRES; import static org.drools.core.reteoo.builder.GroupElementBuilder.AndBuilder.buildJoinNode; import static org.drools.core.reteoo.builder.GroupElementBuilder.AndBuilder.buildTupleSource; -import static org.drools.core.rule.TypeDeclaration.NEVER_EXPIRES; - /** * A builder for patterns */ @@ -124,14 +127,15 @@ private void attachPattern(final BuildContext context, } private void buildBehaviors(BuildContext context, BuildUtils utils, Pattern pattern, Constraints constraints) { - final List behaviors = pattern.getBehaviors(); if ( pattern.getSource() == null || - ( !( pattern.getSource() instanceof WindowReference) && - ( context.getCurrentEntryPoint() != EntryPointId.DEFAULT || ! behaviors.isEmpty() ) ) ){ + ( !( pattern.getSource() instanceof WindowReference) && + ( context.getCurrentEntryPoint() != EntryPointId.DEFAULT || !pattern.getBehaviors().isEmpty() ) ) ){ attachObjectTypeNode( context, utils, pattern ); } - if( ! behaviors.isEmpty() ) { + if( !pattern.getBehaviors().isEmpty() ) { + final List behaviors = pattern.getBehaviors().stream().map(BehaviorRuntime.class::cast).collect(Collectors.toList()); + // build the window node: WindowNode wn = CoreComponentFactory.get().getNodeFactoryService().buildWindowNode( context.getNextNodeId(), constraints.alphaConstraints, @@ -329,14 +333,12 @@ private void buildAlphaNodeChain( BuildContext context, BuildUtils utils, List constraints, - List behaviors, + List behaviors, ObjectSource objectSource, BuildContext context) { return new WindowNode( id, constraints, behaviors, objectSource, context ); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/QueryElementBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/QueryElementBuilder.java index fe6a48b9944..3a862a59e0a 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/QueryElementBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/QueryElementBuilder.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.QueryElement; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.QueryElement; +import org.drools.base.rule.RuleConditionElement; public class QueryElementBuilder diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/ReactiveFromBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/ReactiveFromBuilder.java index 7eefab7f7db..113ba740e76 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/ReactiveFromBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/ReactiveFromBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo.builder; import java.util.List; @@ -20,10 +23,10 @@ import org.drools.core.common.BetaConstraints; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.ReactiveFromNode; -import org.drools.core.rule.From; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.constraint.XpathConstraint; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.From; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.constraint.XpathConstraint; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; public class ReactiveFromBuilder implements ReteooComponentBuilder { diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/ReteooComponentBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/ReteooComponentBuilder.java index 730632c0eff..a50123ff9a8 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/ReteooComponentBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/ReteooComponentBuilder.java @@ -1,22 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo.builder; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.RuleConditionElement; /** * An interface for Reteoo Component builders diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/ReteooRuleBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/ReteooRuleBuilder.java index 4896c68caa5..b19df29d347 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/ReteooRuleBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/ReteooRuleBuilder.java @@ -1,60 +1,62 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.AsyncReceive; +import org.drools.base.rule.AsyncSend; +import org.drools.base.rule.Collect; +import org.drools.base.rule.ConditionalBranch; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.Forall; +import org.drools.base.rule.From; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.InvalidPatternException; +import org.drools.base.rule.LogicTransformer; +import org.drools.base.rule.NamedConsequence; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.QueryElement; +import org.drools.base.rule.WindowDeclaration; +import org.drools.base.rule.WindowReference; +import org.drools.base.rule.constraint.XpathConstraint; +import org.drools.base.time.impl.Timer; import org.drools.core.ActivationListenerFactory; -import org.drools.core.base.ClassObjectType; import org.drools.core.common.BaseNode; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.UpdateContext; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.PhreakBuilder; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.RightInputAdapterNode; import org.drools.core.reteoo.RuleBuilder; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.AsyncReceive; -import org.drools.core.rule.AsyncSend; -import org.drools.core.rule.Collect; -import org.drools.core.rule.ConditionalBranch; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.Forall; -import org.drools.core.rule.From; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.InvalidPatternException; -import org.drools.core.rule.LogicTransformer; -import org.drools.core.rule.NamedConsequence; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.QueryElement; -import org.drools.core.rule.WindowDeclaration; -import org.drools.core.rule.WindowReference; -import org.drools.core.rule.constraint.XpathConstraint; import org.drools.core.time.TemporalDependencyMatrix; -import org.drools.core.time.impl.Timer; import org.kie.api.conf.EventProcessingOption; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + public class ReteooRuleBuilder implements RuleBuilder { protected BuildUtils utils; @@ -108,7 +110,7 @@ public ReteooRuleBuilder() { * @return a List of terminal nodes for the rule * @throws InvalidPatternException */ - public List addRule( RuleImpl rule, RuleBase kBase, Collection workingMemories ) throws InvalidPatternException { + public List addRule(RuleImpl rule, InternalRuleBase kBase, Collection workingMemories) throws InvalidPatternException { // the list of terminal nodes final List termNodes = new ArrayList<>(); @@ -130,10 +132,8 @@ public List addRule( RuleImpl rule, RuleBase kBase, Collection workingMemories ) { + public void addEntryPoint(final String id, final InternalRuleBase kBase, Collection workingMemories) { // creates a clean build context for each subrule final BuildContext context = new BuildContext( kBase, workingMemories ); EntryPointId ep = new EntryPointId( id ); @@ -264,12 +264,11 @@ public void addEntryPoint( final String id, final RuleBase kBase, Collection workingMemories ) { + public WindowNode addWindowNode(WindowDeclaration window, InternalRuleBase kBase, Collection workingMemories) { // creates a clean build context for each subrule BuildContext context = new BuildContext( kBase, workingMemories ); context.setTupleMemoryEnabled( !kBase.getRuleBaseConfiguration().isSequential() ); - context.setObjectTypeNodeMemoryEnabled( !kBase.getRuleBaseConfiguration().isSequential() ); // builds and attach WindowBuilder.INSTANCE.build( context, this.utils, window ); diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/TimerBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/TimerBuilder.java index 56a969a42ae..78233f57c02 100755 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/TimerBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/TimerBuilder.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.RuleConditionElement; import org.drools.core.time.impl.BaseTimer; -import org.drools.core.time.impl.Timer; +import org.drools.base.time.impl.Timer; public class TimerBuilder implements diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/WindowBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/WindowBuilder.java index b6cc3a46e72..755dfbe68a5 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/WindowBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/WindowBuilder.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo.builder; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.WindowDeclaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.WindowDeclaration; /** * A builder for patterns diff --git a/drools-core/src/main/java/org/drools/core/reteoo/builder/WindowReferenceBuilder.java b/drools-core/src/main/java/org/drools/core/reteoo/builder/WindowReferenceBuilder.java index 6c7b3a8450d..c1a342395b3 100644 --- a/drools-core/src/main/java/org/drools/core/reteoo/builder/WindowReferenceBuilder.java +++ b/drools-core/src/main/java/org/drools/core/reteoo/builder/WindowReferenceBuilder.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo.builder; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.WindowReference; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.WindowReference; /** * This is a builder for named window references diff --git a/drools-core/src/main/java/org/drools/core/rule/Annotated.java b/drools-core/src/main/java/org/drools/core/rule/Annotated.java deleted file mode 100644 index 16520c5cf0f..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/Annotated.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -import java.lang.annotation.Annotation; - -public interface Annotated { - boolean hasAnnotation( Class annotationClass ); - A getTypedAnnotation( Class annotationClass ); - - class ClassAdapter implements Annotated { - - private final Class cls; - - public ClassAdapter( Class cls ) { - this.cls = cls; - } - - @Override - public boolean hasAnnotation( Class annotationClass ) { - return cls.isAnnotationPresent(annotationClass); - } - - @Override - public A getTypedAnnotation( Class annotationClass ) { - return cls.getAnnotation(annotationClass); - } - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/Behavior.java b/drools-core/src/main/java/org/drools/core/rule/Behavior.java deleted file mode 100644 index 0900f1b1211..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/Behavior.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -import java.util.Collection; - -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.PropagationContext; -import org.drools.core.time.JobHandle; - -/** - * An interface for all behavior implementations - */ -public interface Behavior extends RuleComponent, Cloneable { - - interface Context { - Collection getFactHandles(); - - default JobHandle getJobHandle() { - return null; - } - - default void setJobHandle(JobHandle jobHandle) { - throw new UnsupportedOperationException(); - } - } - - enum BehaviorType { - TIME_WINDOW( "time" ), - LENGTH_WINDOW( "length" ); - - private final String id; - - BehaviorType( String id ) { - this.id = id; - } - - public boolean matches( String id ) { - return this.id.equalsIgnoreCase( id ); - } - } - - /** - * Returns the type of the behavior - */ - BehaviorType getType(); - - /** - * Creates the context object associated with this behavior. - * The object is given as a parameter in all behavior call backs. - */ - Context createContext(); - - /** - * Makes the behavior aware of the new fact entering behavior's scope - * - * @param context The behavior context object - * @param fact The new fact entering behavior's scope - * @param reteEvaluator The working memory session reference - * - * @return true if the propagation should continue, false otherwise. I.e., - * the behaviour has veto power over the fact propagation, and prevents - * the propagation to continue if returns false on this method. - */ - boolean assertFact(Object context, - InternalFactHandle fact, - PropagationContext pctx, - ReteEvaluator reteEvaluator); - - /** - * Removes a right tuple from the behavior's scope - * - * @param context The behavior context object - * @param fact The fact leaving the behavior's scope - * @param reteEvaluator The working memory session reference - */ - void retractFact(Object context, - InternalFactHandle fact, - PropagationContext pctx, - ReteEvaluator reteEvaluator); - - /** - * A callback method that allows behaviors to expire facts - */ - void expireFacts(Object context, - PropagationContext pctx, - ReteEvaluator reteEvaluator); - - /** - * Some behaviors might change the expiration offset for the - * associated fact type. Example: time sliding windows. - * - * For these behaviors, this method must return the expiration - * offset associated to them. - * - * @return the expiration offset for this behavior or -1 if - * they don't have a time based expiration offset. - */ - long getExpirationOffset(); - -} diff --git a/drools-core/src/main/java/org/drools/core/rule/BehaviorContext.java b/drools-core/src/main/java/org/drools/core/rule/BehaviorContext.java new file mode 100644 index 00000000000..10817aa726b --- /dev/null +++ b/drools-core/src/main/java/org/drools/core/rule/BehaviorContext.java @@ -0,0 +1,36 @@ +/** + * 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. + */ +package org.drools.core.rule; + +import org.drools.core.common.DefaultEventHandle; +import org.drools.base.time.JobHandle; + +import java.util.Collection; + +public interface BehaviorContext { + Collection getFactHandles(); + + default JobHandle getJobHandle() { + return null; + } + + default void setJobHandle(JobHandle jobHandle) { + throw new UnsupportedOperationException(); + } +} diff --git a/drools-core/src/main/java/org/drools/core/rule/BehaviorManager.java b/drools-core/src/main/java/org/drools/core/rule/BehaviorManager.java index 85b65d241fd..caa73ab8cc1 100644 --- a/drools-core/src/main/java/org/drools/core/rule/BehaviorManager.java +++ b/drools-core/src/main/java/org/drools/core/rule/BehaviorManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.rule; import java.io.Externalizable; @@ -25,6 +27,7 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.PropagationContext; +import org.kie.api.runtime.rule.FactHandle; /** * A class to encapsulate behavior management for a given beta node @@ -33,27 +36,27 @@ public class BehaviorManager implements Externalizable { - public static final Behavior[] NO_BEHAVIORS = new Behavior[0]; + public static final BehaviorRuntime[] NO_BEHAVIORS = new BehaviorRuntime[0]; - private Behavior[] behaviors; + private BehaviorRuntime[] behaviors; public BehaviorManager() { this( NO_BEHAVIORS ); } - public BehaviorManager(List behaviors) { + public BehaviorManager(List behaviors) { super(); - this.behaviors = behaviors.toArray( new Behavior[behaviors.size()] ); + this.behaviors = behaviors.toArray( new BehaviorRuntime[behaviors.size()]); } - public BehaviorManager(Behavior[] behaviors) { + public BehaviorManager(BehaviorRuntime[] behaviors) { super(); this.behaviors = behaviors; } public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { - behaviors = (Behavior[]) in.readObject(); + behaviors = (BehaviorRuntime[]) in.readObject(); } public void writeExternal(ObjectOutput out) throws IOException { @@ -63,8 +66,8 @@ public void writeExternal(ObjectOutput out) throws IOException { /** * Creates the behaviors' context */ - public Behavior.Context[] createBehaviorContext() { - Behavior.Context[] behaviorCtx = new Behavior.Context[behaviors.length]; + public BehaviorContext[] createBehaviorContext() { + BehaviorContext[] behaviorCtx = new BehaviorContext[behaviors.length]; for ( int i = 0; i < behaviors.length; i++ ) { behaviorCtx[i] = behaviors[i].createContext(); } @@ -92,7 +95,7 @@ public boolean assertFact(final Object behaviorContext, * Removes a newly asserted fact handle from the behaviors' context */ public void retractFact(final Object behaviorContext, - final InternalFactHandle factHandle, + final FactHandle factHandle, final PropagationContext pctx, final ReteEvaluator reteEvaluator) { for ( int i = 0; i < behaviors.length; i++ ) { @@ -106,7 +109,7 @@ public void retractFact(final Object behaviorContext, /** * @return the behaviors */ - public Behavior[] getBehaviors() { + public BehaviorRuntime[] getBehaviors() { return behaviors; } diff --git a/drools-core/src/main/java/org/drools/core/rule/BehaviorRuntime.java b/drools-core/src/main/java/org/drools/core/rule/BehaviorRuntime.java new file mode 100644 index 00000000000..5c00171cf9a --- /dev/null +++ b/drools-core/src/main/java/org/drools/core/rule/BehaviorRuntime.java @@ -0,0 +1,90 @@ +/** + * 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. + */ +package org.drools.core.rule; + +import org.drools.base.rule.Behavior; +import org.drools.base.rule.RuleComponent; +import org.drools.core.common.PropagationContext; +import org.drools.core.common.ReteEvaluator; +import org.kie.api.runtime.rule.FactHandle; + +/** + * An interface for all behavior implementations + */ +public interface BehaviorRuntime extends Behavior, RuleComponent, Cloneable { + + /** + * Returns the type of the behavior + */ + BehaviorType getType(); + + /** + * Creates the context object associated with this behavior. + * The object is given as a parameter in all behavior call backs. + */ + BehaviorContext createContext(); + + /** + * Makes the behavior aware of the new fact entering behavior's scope + * + * @param context The behavior context object + * @param fact The new fact entering behavior's scope + * @param valueResolver The working memory session reference + * + * @return true if the propagation should continue, false otherwise. I.e., + * the behaviour has veto power over the fact propagation, and prevents + * the propagation to continue if returns false on this method. + */ + boolean assertFact(Object context, + FactHandle fact, + PropagationContext pctx, + ReteEvaluator reteEvaluator); + + /** + * Removes a right tuple from the behavior's scope + * + * @param context The behavior context object + * @param fact The fact leaving the behavior's scope + * @param valueResolver The working memory session reference + */ + void retractFact(Object context, + FactHandle fact, + PropagationContext pctx, + ReteEvaluator reteEvaluator); + + /** + * A callback method that allows behaviors to expire facts + */ + void expireFacts(Object context, + PropagationContext pctx, + ReteEvaluator reteEvaluator); + + /** + * Some behaviors might change the expiration offset for the + * associated fact type. Example: time sliding windows. + * + * For these behaviors, this method must return the expiration + * offset associated to them. + * + * @return the expiration offset for this behavior or -1 if + * they don't have a time based expiration offset. + */ + long getExpirationOffset(); + +} diff --git a/drools-core/src/main/java/org/drools/core/rule/ConditionalElement.java b/drools-core/src/main/java/org/drools/core/rule/ConditionalElement.java deleted file mode 100644 index 9cc1c006026..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/ConditionalElement.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -public abstract class ConditionalElement - implements - RuleConditionElement { - - public abstract ConditionalElement clone(); - -} diff --git a/drools-core/src/main/java/org/drools/core/rule/ContextEntry.java b/drools-core/src/main/java/org/drools/core/rule/ContextEntry.java deleted file mode 100644 index 5dab4487fac..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/ContextEntry.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -import java.io.Externalizable; - -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; - -public interface ContextEntry - extends - Externalizable { - - ContextEntry getNext(); - - void setNext(ContextEntry entry); - - void updateFromTuple(ReteEvaluator reteEvaluator, Tuple tuple); - - void updateFromFactHandle(ReteEvaluator reteEvaluator, InternalFactHandle handle); - - void resetTuple(); - - void resetFactHandle(); - -} diff --git a/drools-core/src/main/java/org/drools/core/rule/DialectRuntimeData.java b/drools-core/src/main/java/org/drools/core/rule/DialectRuntimeData.java deleted file mode 100644 index 494a82285dd..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/DialectRuntimeData.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.accessor.ReadAccessor; - -public interface DialectRuntimeData extends Cloneable { - void removeRule( KnowledgePackageImpl pkg, RuleImpl rule ); - - void removeFunction( KnowledgePackageImpl pkg, Function function ); - - void merge( DialectRuntimeRegistry registry, DialectRuntimeData newData ); - - void merge( DialectRuntimeRegistry registry, DialectRuntimeData newData, boolean excludeDeclaredClasses ); - - boolean isDirty(); - - void setDirty( boolean dirty ); - - void reload(); - - DialectRuntimeData clone( DialectRuntimeRegistry registry, ClassLoader rootClassLoader); - - DialectRuntimeData clone( DialectRuntimeRegistry registry, ClassLoader rootClassLoader, boolean excludeDeclaredClasses ); - - void onAdd( DialectRuntimeRegistry dialectRuntimeRegistry, ClassLoader rootClassLoader ); - - void onRemove(); - - void onBeforeExecute(); - - default void resetParserConfiguration() { } - - default void compile(ReadAccessor reader) { - throw new UnsupportedOperationException(); - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/Dialectable.java b/drools-core/src/main/java/org/drools/core/rule/Dialectable.java deleted file mode 100644 index 5f0a4215d16..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/Dialectable.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -public interface Dialectable { - public String getDialect(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/EvalConditionFactory.java b/drools-core/src/main/java/org/drools/core/rule/EvalConditionFactory.java deleted file mode 100644 index 7141998d671..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/EvalConditionFactory.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -import org.kie.api.internal.utils.KieService; - -public interface EvalConditionFactory extends KieService { - - EvalCondition createEvalCondition(final Declaration[] requiredDeclarations); - - class Factory { - - private static class LazyHolder { - - private static final EvalConditionFactory INSTANCE = createInstance(); - - private static EvalConditionFactory createInstance() { - EvalConditionFactory factory = KieService.load(EvalConditionFactory.class); - return factory != null ? factory : new EvalConditionFactoryImpl(); - } - } - - public static EvalConditionFactory get() { - return LazyHolder.INSTANCE; - } - - private Factory() {} - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/EvalConditionFactoryImpl.java b/drools-core/src/main/java/org/drools/core/rule/EvalConditionFactoryImpl.java deleted file mode 100644 index 61321732c03..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/EvalConditionFactoryImpl.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -public class EvalConditionFactoryImpl implements EvalConditionFactory { - - @Override - public EvalCondition createEvalCondition(final Declaration[] requiredDeclarations) { - return new EvalCondition(requiredDeclarations); - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/GroupElementFactory.java b/drools-core/src/main/java/org/drools/core/rule/GroupElementFactory.java deleted file mode 100755 index 4c3298aabd0..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/GroupElementFactory.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -/** - * A simple factory for GroupElements - */ -public class GroupElementFactory { - - private GroupElementFactory() { - } - - public static GroupElement newAndInstance() { - return new GroupElement( GroupElement.AND ); - } - - public static GroupElement newOrInstance() { - return new GroupElement( GroupElement.OR ); - } - - public static GroupElement newNotInstance() { - return new GroupElement( GroupElement.NOT ); - } - - public static GroupElement newExistsInstance() { - return new GroupElement( GroupElement.EXISTS ); - } - -} diff --git a/drools-core/src/main/java/org/drools/core/rule/IndexableConstraint.java b/drools-core/src/main/java/org/drools/core/rule/IndexableConstraint.java deleted file mode 100644 index f9911947a4b..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/IndexableConstraint.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.core.rule; - -import org.drools.core.RuleBaseConfiguration; -import org.drools.core.rule.constraint.Constraint; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.TupleValueExtractor; -import org.drools.core.util.AbstractHashTable.FieldIndex; -import org.drools.core.util.index.IndexUtil; -import org.kie.api.KieBaseConfiguration; - -public interface IndexableConstraint extends Constraint { - - boolean isUnification(); - - boolean isIndexable(short nodeType, KieBaseConfiguration config); - - IndexUtil.ConstraintType getConstraintType(); - - FieldValue getField(); - - FieldIndex getFieldIndex(); - - ReadAccessor getFieldExtractor(); - - default void unsetUnification() { } - - TupleValueExtractor getIndexExtractor(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/IntervalProviderConstraint.java b/drools-core/src/main/java/org/drools/core/rule/IntervalProviderConstraint.java deleted file mode 100644 index 32c6b64a2f5..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/IntervalProviderConstraint.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.core.rule; - -import org.drools.core.rule.constraint.Constraint; -import org.drools.core.time.Interval; - -public interface IntervalProviderConstraint extends Constraint { - Interval getInterval(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/InvalidRulePackage.java b/drools-core/src/main/java/org/drools/core/rule/InvalidRulePackage.java deleted file mode 100644 index 26e8d3307d2..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/InvalidRulePackage.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -/** - * This exception is thrown when an invalid package (ie one that has errors) - * it attempted to be added to a RuleBase. - * The package and builder should be interrogated to show the specific errors. - */ -public class InvalidRulePackage extends RuntimeException { - - private static final long serialVersionUID = 510l; - - public InvalidRulePackage(final String summary) { - super( summary ); - } - -} diff --git a/drools-core/src/main/java/org/drools/core/rule/JavaDialectRuntimeData.java b/drools-core/src/main/java/org/drools/core/rule/JavaDialectRuntimeData.java index 5e451ea94bd..0597748a0ef 100644 --- a/drools-core/src/main/java/org/drools/core/rule/JavaDialectRuntimeData.java +++ b/drools-core/src/main/java/org/drools/core/rule/JavaDialectRuntimeData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.rule; import java.io.ByteArrayInputStream; @@ -38,11 +40,19 @@ import java.util.concurrent.CompletionService; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.constraint.Constraint; -import org.drools.core.rule.accessor.Wireable; +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.ConditionalElement; +import org.drools.base.rule.DialectRuntimeData; +import org.drools.base.rule.DialectRuntimeRegistry; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.Function; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.PredicateConstraint; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.rule.accessor.Wireable; import org.drools.core.util.KeyStoreHelper; import org.drools.util.StringUtils; import org.drools.wiring.api.ComponentsFactory; diff --git a/drools-core/src/main/java/org/drools/core/rule/NamedConsequenceInvoker.java b/drools-core/src/main/java/org/drools/core/rule/NamedConsequenceInvoker.java deleted file mode 100644 index fca3e1618fc..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/NamedConsequenceInvoker.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.core.rule; - -public interface NamedConsequenceInvoker { - - boolean invokesConsequence(String consequenceName); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/NoConsequenceException.java b/drools-core/src/main/java/org/drools/core/rule/NoConsequenceException.java deleted file mode 100644 index 56fa4f635ba..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/NoConsequenceException.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -import org.drools.core.definitions.rule.impl.RuleImpl; - -/** - * Validity exception indicating that a Rule does not contain a - * Consequences. - */ -public class NoConsequenceException extends InvalidRuleException { - // ------------------------------------------------------------ - // Constructors - // ------------------------------------------------------------ - - private static final long serialVersionUID = 510l; - - /** - * Construct. - * - * @param rule - * The invalid Rule. - */ - public NoConsequenceException(final RuleImpl rule) { - super( rule ); - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/PatternSource.java b/drools-core/src/main/java/org/drools/core/rule/PatternSource.java deleted file mode 100644 index 13a1eb3f6c1..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/PatternSource.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - -/** - * A markup interface for pattern source elements - */ -public interface PatternSource extends RuleConditionElement { - boolean requiresLeftActivation(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/RuleComponent.java b/drools-core/src/main/java/org/drools/core/rule/RuleComponent.java deleted file mode 100644 index 7958b06c0c3..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/RuleComponent.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule; - - -/** - * Semantic component marker. - * - * - * @version $Id$ - */ -public interface RuleComponent { - -} diff --git a/drools-core/src/main/java/org/drools/core/rule/SlidingLengthWindow.java b/drools-core/src/main/java/org/drools/core/rule/SlidingLengthWindow.java index 1752e88c4b2..820ba78042d 100644 --- a/drools-core/src/main/java/org/drools/core/rule/SlidingLengthWindow.java +++ b/drools-core/src/main/java/org/drools/core/rule/SlidingLengthWindow.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.rule; import java.io.Externalizable; @@ -23,21 +25,20 @@ import java.util.Collection; import java.util.Collections; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.DefaultEventHandle; +import org.drools.core.common.PhreakPropagationContextFactory; +import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.common.PropagationContext; - -import static org.drools.core.common.PhreakPropagationContextFactory.createPropagationContextForFact; +import org.kie.api.runtime.rule.FactHandle; /** * A length window behavior implementation */ public class SlidingLengthWindow - implements - Externalizable, - Behavior { + implements + Externalizable, + BehaviorRuntime { protected int size; @@ -56,17 +57,17 @@ public SlidingLengthWindow(final int size) { /** * @inheritDoc * - * @see java.io.Externalizable#readExternal(java.io.ObjectInput) + * @see Externalizable#readExternal(ObjectInput) */ public void readExternal(final ObjectInput in) throws IOException, - ClassNotFoundException { + ClassNotFoundException { this.size = in.readInt(); } /** * @inheritDoc * - * @see java.io.Externalizable#writeExternal(java.io.ObjectOutput) + * @see Externalizable#writeExternal(ObjectOutput) */ public void writeExternal(final ObjectOutput out) throws IOException { out.writeInt( this.size ); @@ -91,7 +92,7 @@ public void setSize(final int size) { this.size = size; } - public Behavior.Context createContext() { + public BehaviorContext createContext() { return new SlidingLengthWindowContext( this.size ); } @@ -99,23 +100,23 @@ public Behavior.Context createContext() { * @inheritDoc */ public boolean assertFact(final Object context, - final InternalFactHandle handle, + final FactHandle handle, final PropagationContext pctx, final ReteEvaluator reteEvaluator) { SlidingLengthWindowContext window = (SlidingLengthWindowContext) context; window.pos = (window.pos + 1) % window.handles.length; if ( window.handles[window.pos] != null ) { - final EventFactHandle previous = window.handles[window.pos]; + final DefaultEventHandle previous = window.handles[window.pos]; // retract previous - final PropagationContext expiresPctx = createPropagationContextForFact( reteEvaluator, previous, PropagationContext.Type.EXPIRATION ); + final PropagationContext expiresPctx = PhreakPropagationContextFactory.createPropagationContextForFact(reteEvaluator, previous, PropagationContext.Type.EXPIRATION); ObjectTypeNode.doRetractObject( previous, expiresPctx, reteEvaluator); } - window.handles[window.pos] = (EventFactHandle) handle; + window.handles[window.pos] = (DefaultEventHandle) handle; return true; } public void retractFact(final Object context, - final InternalFactHandle handle, + final FactHandle handle, final PropagationContext pctx, final ReteEvaluator reteEvaluator) { SlidingLengthWindowContext window = (SlidingLengthWindowContext) context; @@ -153,15 +154,15 @@ public String toString() { * A Context object for length windows */ public static class SlidingLengthWindowContext - implements - Behavior.Context, - Externalizable { + implements + BehaviorContext, + Externalizable { - public EventFactHandle[] handles; + public DefaultEventHandle[] handles; public int pos = 0; public SlidingLengthWindowContext(final int size) { - this.handles = new EventFactHandle[size]; + this.handles = new DefaultEventHandle[size]; } /** @@ -171,9 +172,9 @@ public SlidingLengthWindowContext() { } public void readExternal(ObjectInput in) throws IOException, - ClassNotFoundException { + ClassNotFoundException { this.pos = in.readInt(); - this.handles = (EventFactHandle[]) in.readObject(); + this.handles = (DefaultEventHandle[]) in.readObject(); } @@ -182,7 +183,7 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeObject( this.handles ); } - public Collection getFactHandles() { + public Collection getFactHandles() { return Collections.emptyList(); } } diff --git a/drools-core/src/main/java/org/drools/core/rule/SlidingTimeWindow.java b/drools-core/src/main/java/org/drools/core/rule/SlidingTimeWindow.java index d766228d48d..1dac5907e3d 100644 --- a/drools-core/src/main/java/org/drools/core/rule/SlidingTimeWindow.java +++ b/drools-core/src/main/java/org/drools/core/rule/SlidingTimeWindow.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.rule; import java.io.Externalizable; @@ -23,8 +25,9 @@ import java.util.Collection; import java.util.PriorityQueue; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.PhreakPropagationContextFactory; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.WorkingMemoryAction; import org.drools.core.marshalling.MarshallerReaderContext; @@ -35,16 +38,15 @@ import org.drools.core.common.PropagationContext; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; +import org.drools.base.time.JobHandle; import org.drools.core.time.TimerService; import org.drools.core.time.impl.PointInTimeTrigger; - -import static org.drools.core.common.PhreakPropagationContextFactory.createPropagationContextForFact; +import org.kie.api.runtime.rule.FactHandle; public class SlidingTimeWindow implements Externalizable, - Behavior { + BehaviorRuntime { protected long size; // stateless job @@ -108,17 +110,17 @@ public void setSize(final long size) { } @Override - public Behavior.Context createContext() { + public BehaviorContext createContext() { return new SlidingTimeWindowContext(); } @Override public boolean assertFact(final Object context, - final InternalFactHandle fact, + final FactHandle fact, final PropagationContext pctx, final ReteEvaluator reteEvaluator) { final SlidingTimeWindowContext queue = (SlidingTimeWindowContext) context; - final EventFactHandle handle = (EventFactHandle) fact; + final DefaultEventHandle handle = (DefaultEventHandle) fact; long currentTime = reteEvaluator.getTimerService().getCurrentTime(); if ( isExpired( currentTime, handle ) ) { return false; @@ -138,12 +140,12 @@ public boolean assertFact(final Object context, @Override public void retractFact(final Object context, - final InternalFactHandle fact, + final FactHandle fact, final PropagationContext pctx, final ReteEvaluator reteEvaluator) { final SlidingTimeWindowContext queue = (SlidingTimeWindowContext) context; - final EventFactHandle handle = (EventFactHandle) fact; - final EventFactHandle peekEvent = queue.peek(); + final DefaultEventHandle handle = (DefaultEventHandle) fact; + final DefaultEventHandle peekEvent = queue.peek(); if (peekEvent != null) { if (handle.equals(peekEvent)) { // it was the head of the queue @@ -169,12 +171,12 @@ public void expireFacts(final Object context, long currentTime = clock.getCurrentTime(); SlidingTimeWindowContext queue = (SlidingTimeWindowContext) context; - EventFactHandle handle = queue.peek(); + DefaultEventHandle handle = queue.peek(); while ( handle != null && isExpired( currentTime, handle ) ) { queue.remove(); if( handle.isValid()) { // if not expired yet, expire it - final PropagationContext expiresPctx = createPropagationContextForFact( reteEvaluator, handle, PropagationContext.Type.EXPIRATION ); + final PropagationContext expiresPctx = PhreakPropagationContextFactory.createPropagationContextForFact(reteEvaluator, handle, PropagationContext.Type.EXPIRATION); ObjectTypeNode.doRetractObject(handle, expiresPctx, reteEvaluator); } handle = queue.peek(); @@ -184,17 +186,17 @@ public void expireFacts(final Object context, } protected boolean isExpired(final long currentTime, - final EventFactHandle handle) { + final DefaultEventHandle handle) { return handle.getStartTimestamp() + this.size <= currentTime; } protected void updateNextExpiration(final InternalFactHandle fact, final ReteEvaluator reteEvaluator, - final Behavior.Context context, + final BehaviorContext context, final int nodeId) { TimerService clock = reteEvaluator.getTimerService(); if ( fact != null ) { - long nextTimestamp = ((EventFactHandle) fact).getStartTimestamp() + getSize(); + long nextTimestamp = ((DefaultEventHandle) fact).getStartTimestamp() + getSize(); if ( nextTimestamp < clock.getCurrentTime() ) { // Past and out-of-order events should not be insert, // but the engine silently accepts them anyway, resulting in possibly undesirable behaviors @@ -227,10 +229,10 @@ public String toString() { public static class SlidingTimeWindowContext implements - Behavior.Context, + BehaviorContext, Externalizable { - private PriorityQueue queue; + private PriorityQueue queue; private JobHandle jobHandle; public SlidingTimeWindowContext() { @@ -251,7 +253,7 @@ public void setJobHandle(JobHandle jobHandle) { @SuppressWarnings("unchecked") public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { - this.queue = (PriorityQueue) in.readObject(); + this.queue = (PriorityQueue) in.readObject(); } @Override @@ -259,11 +261,11 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeObject( this.queue ); } - public void add(EventFactHandle handle) { + public void add(DefaultEventHandle handle) { queue.add( handle ); } - public void remove(EventFactHandle handle) { + public void remove(DefaultEventHandle handle) { queue.remove( handle ); } @@ -271,20 +273,20 @@ public boolean isEmpty() { return queue.isEmpty(); } - public EventFactHandle peek() { + public DefaultEventHandle peek() { return queue.peek( ); } - public EventFactHandle poll() { + public DefaultEventHandle poll() { return queue.poll( ); } - public EventFactHandle remove() { + public DefaultEventHandle remove() { return queue.remove( ); } @Override - public Collection getFactHandles() { + public Collection getFactHandles() { return queue; } } @@ -295,13 +297,13 @@ public static class BehaviorJobContext Externalizable { public ReteEvaluator reteEvaluator; public int nodeId; - public Behavior behavior; - public Behavior.Context behaviorContext; + public BehaviorRuntime behavior; + public BehaviorContext behaviorContext; - public BehaviorJobContext(int nodeId, - ReteEvaluator reteEvaluator, - Behavior behavior, - Behavior.Context behaviorContext) { + public BehaviorJobContext(int nodeId, + ReteEvaluator reteEvaluator, + BehaviorRuntime behavior, + BehaviorContext behaviorContext) { super(); this.nodeId = nodeId; this.reteEvaluator = reteEvaluator; @@ -357,15 +359,15 @@ public void execute(JobContext ctx) { public static class BehaviorExpireWMAction extends PropagationEntry.AbstractPropagationEntry implements WorkingMemoryAction { - protected Behavior behavior; - protected Behavior.Context context; + protected BehaviorRuntime behavior; + protected BehaviorContext context; protected int nodeId; protected BehaviorExpireWMAction() { } public BehaviorExpireWMAction(final int nodeId, - Behavior behavior, - Behavior.Context context) { + BehaviorRuntime behavior, + BehaviorContext context) { super(); this.nodeId = nodeId; this.behavior = behavior; @@ -378,7 +380,7 @@ public BehaviorExpireWMAction(MarshallerReaderContext inCtx) throws IOException WindowMemory memory = inCtx.getWorkingMemory().getNodeMemory( windowNode ); - Behavior.Context[] behaviorContext = memory.behaviorContext; + BehaviorContext[] behaviorContext = memory.behaviorContext; int i = inCtx.readInt(); diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/AcceptsReadAccessor.java b/drools-core/src/main/java/org/drools/core/rule/accessor/AcceptsReadAccessor.java deleted file mode 100644 index ed2c2d18319..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/AcceptsReadAccessor.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -public interface AcceptsReadAccessor { - void setReadAccessor(ReadAccessor readAccessor); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/CompiledInvoker.java b/drools-core/src/main/java/org/drools/core/rule/accessor/CompiledInvoker.java deleted file mode 100644 index a38e7872aed..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/CompiledInvoker.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -/** - * This interface is used by semantic modules that are compiled - * to bytecode. - */ -public interface CompiledInvoker - extends - Invoker { - - /** - * Generated code should be able to return a String which represents the bytecode. - * The elements in the list will be used to compare one semantic invoker - * with another by making sure each item in the list is equivalent (equals()). - * There are utilities in the ASM package to retrieve the bytecode for this. - */ - String getMethodBytecode(); - - static boolean isCompiledInvoker(Invoker invoker) { - return invoker instanceof CompiledInvoker; - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/DataProvider.java b/drools-core/src/main/java/org/drools/core/rule/accessor/DataProvider.java deleted file mode 100644 index a1fb3d5732e..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/DataProvider.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import java.io.Serializable; -import java.util.Iterator; - -import org.drools.core.common.PropagationContext; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; - -public interface DataProvider - extends - Serializable, - Cloneable { - - Declaration[] getRequiredDeclarations(); - - Object createContext(); - - Iterator getResults(Tuple tuple, - ReteEvaluator reteEvaluator, - PropagationContext ctx, - Object providerContext); - - DataProvider clone(); - - void replaceDeclaration(Declaration declaration, - Declaration resolved); - - boolean isReactive(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/Enabled.java b/drools-core/src/main/java/org/drools/core/rule/accessor/Enabled.java deleted file mode 100644 index 6393bd13f00..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/Enabled.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import java.io.Serializable; -import java.util.Map; - -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; - -public interface Enabled extends Serializable { - boolean getValue(final Tuple tuple, - final Declaration[] declarations, - final RuleImpl rule, - final ReteEvaluator reteEvaluator); - - default Declaration[] findDeclarations( Map decls) { - return null; - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/EvalExpression.java b/drools-core/src/main/java/org/drools/core/rule/accessor/EvalExpression.java deleted file mode 100644 index cbe93c61b0e..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/EvalExpression.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; - -public interface EvalExpression - extends - Invoker, - Cloneable { - - Object createContext(); - - boolean evaluate(Tuple tuple, - Declaration[] requiredDeclarations, - ReteEvaluator reteEvaluator, - Object context ) throws Exception; - - void replaceDeclaration(Declaration declaration, - Declaration resolved); - - EvalExpression clone(); - - default EvalExpression clonePreservingDeclarations(EvalExpression original) { - return original; - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/FactHandleFactory.java b/drools-core/src/main/java/org/drools/core/rule/accessor/FactHandleFactory.java index f7a0cc94df2..32c4773839d 100644 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/FactHandleFactory.java +++ b/drools-core/src/main/java/org/drools/core/rule/accessor/FactHandleFactory.java @@ -1,26 +1,28 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.rule.accessor; import java.util.Collection; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.reteoo.ObjectTypeConf; @@ -82,5 +84,5 @@ InternalFactHandle newFactHandle(long id, DefaultFactHandle createDefaultFactHandle(long id, Object object, long recency, WorkingMemoryEntryPoint entryPoint); - EventFactHandle createEventFactHandle(long id, Object object, long recency, WorkingMemoryEntryPoint entryPoint, long timestamp, long duration); + DefaultEventHandle createEventFactHandle(long id, Object object, long recency, WorkingMemoryEntryPoint entryPoint, long timestamp, long duration); } diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/FieldValue.java b/drools-core/src/main/java/org/drools/core/rule/accessor/FieldValue.java deleted file mode 100644 index 68ef165d89b..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/FieldValue.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.math.BigInteger; - -public interface FieldValue - extends - Serializable { - - Object getValue(); - - char getCharValue(); - - BigDecimal getBigDecimalValue(); - - BigInteger getBigIntegerValue(); - - int getIntValue(); - - byte getByteValue(); - - short getShortValue(); - - long getLongValue(); - - float getFloatValue(); - - double getDoubleValue(); - - boolean getBooleanValue(); - - boolean isNull(); - - boolean isBooleanField(); - - boolean isIntegerNumberField(); - - boolean isFloatNumberField(); - - boolean isObjectField(); - - /** - * Returns true if the given field value implements the Collection interface - * @return - */ - boolean isCollectionField(); - - boolean isStringField(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/GlobalResolver.java b/drools-core/src/main/java/org/drools/core/rule/accessor/GlobalResolver.java deleted file mode 100644 index d1aad5e5b07..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/GlobalResolver.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -public interface GlobalResolver { - Object resolveGlobal(String identifier); - - void setGlobal(String identifier, Object value); - - void removeGlobal(String identifier); - - void clear(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/Invoker.java b/drools-core/src/main/java/org/drools/core/rule/accessor/Invoker.java deleted file mode 100644 index 6e073730f8b..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/Invoker.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import org.drools.core.rule.RuleComponent; - -public interface Invoker extends RuleComponent { - default boolean wrapsCompiledInvoker() { - return false; - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/PredicateExpression.java b/drools-core/src/main/java/org/drools/core/rule/accessor/PredicateExpression.java deleted file mode 100644 index 1d2b0e1641c..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/PredicateExpression.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; - -public interface PredicateExpression - extends - Invoker { - - Object createContext(); - - public boolean evaluate(InternalFactHandle handle, - Tuple tuple, - Declaration[] previousDeclarations, - Declaration[] localDeclarations, - ReteEvaluator reteEvaluator, - Object context ) throws Exception; -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/ReadAccessor.java b/drools-core/src/main/java/org/drools/core/rule/accessor/ReadAccessor.java deleted file mode 100644 index 07acbcad7f6..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/ReadAccessor.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import java.lang.reflect.Method; - -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; - -/** - * A public interface for Read accessors - */ -public interface ReadAccessor { - - Object getValue(Object object); - - boolean isNullValue(Object object); - - ValueType getValueType(); - - Class< ? > getExtractToClass(); - - String getExtractToClassName(); - - Method getNativeReadMethod(); - - String getNativeReadMethodName(); - - int getHashCode(Object object); - - int getIndex(); - - Object getValue(ReteEvaluator reteEvaluator, Object object); - - char getCharValue(ReteEvaluator reteEvaluator, Object object); - - int getIntValue(ReteEvaluator reteEvaluator, Object object); - - byte getByteValue(ReteEvaluator reteEvaluator, Object object); - - short getShortValue(ReteEvaluator reteEvaluator, Object object); - - long getLongValue(ReteEvaluator reteEvaluator, Object object); - - float getFloatValue(ReteEvaluator reteEvaluator, Object object); - - double getDoubleValue(ReteEvaluator reteEvaluator, Object object); - - boolean getBooleanValue(ReteEvaluator reteEvaluator, Object object); - - boolean isNullValue(ReteEvaluator reteEvaluator, Object object); - - int getHashCode(ReteEvaluator reteEvaluator, Object object); - - boolean isGlobal(); - - boolean isSelfReference(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/ReturnValueExpression.java b/drools-core/src/main/java/org/drools/core/rule/accessor/ReturnValueExpression.java deleted file mode 100644 index 18c692e0712..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/ReturnValueExpression.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; - -public interface ReturnValueExpression - extends - Invoker { - - Object createContext(); - - FieldValue evaluate(InternalFactHandle handle, - Tuple tuple, - Declaration[] previousDeclarations, - Declaration[] localDeclarations, - ReteEvaluator reteEvaluator, - Object context ) throws Exception; - - void replaceDeclaration(Declaration declaration, - Declaration resolved); - -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/Salience.java b/drools-core/src/main/java/org/drools/core/rule/accessor/Salience.java deleted file mode 100644 index 3bb0e3b25a4..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/Salience.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import java.io.Serializable; -import java.util.Map; - -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.consequence.InternalMatch; -import org.kie.api.definition.rule.Rule; - -public interface Salience extends Serializable { - - int DEFAULT_SALIENCE_VALUE = 0; - - int getValue(final InternalMatch internalMatch, - final Rule rule, - final ReteEvaluator reteEvaluator); - - int getValue(); - - boolean isDynamic(); - - default boolean isDefault() { - return getValue() == DEFAULT_SALIENCE_VALUE; - } - - default Declaration[] findDeclarations( Map decls) { - return null; - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/TupleValueExtractor.java b/drools-core/src/main/java/org/drools/core/rule/accessor/TupleValueExtractor.java deleted file mode 100644 index b8253706a12..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/TupleValueExtractor.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.core.rule.accessor; - -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; - -public interface TupleValueExtractor extends Cloneable { - - ValueType getValueType(); - - default Object getValue( Tuple tuple ) { - return getValue( null, tuple ); - } - - Object getValue( ReteEvaluator reteEvaluator, Tuple tuple ); - - TupleValueExtractor clone(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/Wireable.java b/drools-core/src/main/java/org/drools/core/rule/accessor/Wireable.java deleted file mode 100644 index 597d5939454..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/Wireable.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -public interface Wireable { - void wire(Object object); - - interface Immutable extends Wireable { - boolean isInitialized(); - } -} diff --git a/drools-core/src/main/java/org/drools/core/rule/accessor/WriteAccessor.java b/drools-core/src/main/java/org/drools/core/rule/accessor/WriteAccessor.java deleted file mode 100644 index 558d23a7941..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/accessor/WriteAccessor.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2008 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.accessor; - -import java.io.Externalizable; -import java.lang.reflect.Method; - -import org.drools.core.base.ValueType; - -/** - * An interface for a class that is able to write values into a class - * field - */ -public interface WriteAccessor extends Externalizable { - - int getIndex(); - - void setValue( Object bean, Object value ); - - void setCharValue( Object bean, char value ); - - void setIntValue( Object bean, int value ); - - void setByteValue( Object bean, byte value ); - - void setShortValue( Object bean, short value ); - - void setLongValue( Object bean, long value ); - - void setFloatValue( Object bean, float value ); - - void setDoubleValue( Object bean, double value ); - - void setBooleanValue( Object bean, boolean value ); - - ValueType getValueType(); - - Class< ? > getFieldType(); - - Method getNativeWriteMethod(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/consequence/ConflictResolver.java b/drools-core/src/main/java/org/drools/core/rule/consequence/ConflictResolver.java deleted file mode 100644 index 0f82e9ba41a..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/consequence/ConflictResolver.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.consequence; - -import java.io.Serializable; -import java.util.Comparator; - -import org.drools.core.reteoo.Tuple; - -/** - * Strategy for resolving conflicts amongst multiple rules. - * - *

- * Since a fact or set of facts may activate multiple rules, a - * ConflictResolutionStrategy is used to provide priority - * ordering of conflicting rules. - *

- * - * @see InternalMatch - * @see Tuple - * @see org.kie.rule.Rule - * - * - * @version $Id: ConflictResolver.java,v 1.1 2005/07/26 01:06:32 mproctor Exp $ - */ -public interface ConflictResolver - extends - Serializable, - Comparator { -} diff --git a/drools-core/src/main/java/org/drools/core/rule/consequence/Consequence.java b/drools-core/src/main/java/org/drools/core/rule/consequence/Consequence.java deleted file mode 100644 index 98eabce5535..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/consequence/Consequence.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.consequence; - -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.Invoker; - -/** - * Consequence to be fired upon successful match of a Rule. - */ -public interface Consequence - extends - Invoker { - - String getName(); - - /** - * Execute the consequence for the supplied matching Tuple. - * - * @param knowledgeHelper - * @param reteEvaluator - * The working memory session. - * @throws ConsequenceException - * If an error occurs while attempting to invoke the - * consequence. - */ - void evaluate(KnowledgeHelper knowledgeHelper, - ReteEvaluator reteEvaluator) throws Exception; - -} diff --git a/drools-core/src/main/java/org/drools/core/rule/consequence/ConsequenceExceptionHandler.java b/drools-core/src/main/java/org/drools/core/rule/consequence/ConsequenceExceptionHandler.java index 3d02a35e733..72f690f9c51 100644 --- a/drools-core/src/main/java/org/drools/core/rule/consequence/ConsequenceExceptionHandler.java +++ b/drools-core/src/main/java/org/drools/core/rule/consequence/ConsequenceExceptionHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.rule.consequence; import org.drools.core.WorkingMemory; diff --git a/drools-core/src/main/java/org/drools/core/rule/consequence/InternalMatch.java b/drools-core/src/main/java/org/drools/core/rule/consequence/InternalMatch.java index d7471ca74c9..648e684c0ac 100644 --- a/drools-core/src/main/java/org/drools/core/rule/consequence/InternalMatch.java +++ b/drools-core/src/main/java/org/drools/core/rule/consequence/InternalMatch.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.rule.consequence; import java.io.Serializable; @@ -22,7 +24,8 @@ import java.util.List; import java.util.Map; -import org.drools.core.InitialFact; +import org.drools.base.InitialFact; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.common.ActivationGroupNode; import org.drools.core.common.ActivationNode; import org.drools.core.common.InternalAgendaGroup; @@ -30,12 +33,12 @@ import org.drools.core.common.PropagationContext; import org.drools.core.common.QueryElementFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.RuleAgendaItem; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.drools.core.util.Queue.QueueEntry; import org.kie.api.runtime.process.ProcessInstance; import org.kie.api.runtime.rule.FactHandle; diff --git a/drools-core/src/main/java/org/drools/core/rule/consequence/KnowledgeHelper.java b/drools-core/src/main/java/org/drools/core/rule/consequence/KnowledgeHelper.java index dcc13e87b14..970ac5672be 100644 --- a/drools-core/src/main/java/org/drools/core/rule/consequence/KnowledgeHelper.java +++ b/drools-core/src/main/java/org/drools/core/rule/consequence/KnowledgeHelper.java @@ -1,38 +1,27 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.rule.consequence; import java.io.Serializable; -import java.util.Collection; -import java.util.Map; +import org.drools.base.rule.consequence.ConsequenceContext; import org.drools.core.WorkingMemory; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.beliefsystem.Mode; -import org.kie.api.runtime.Channel; -import org.kie.api.runtime.rule.EntryPoint; -import org.kie.api.runtime.rule.FactHandle; -import org.kie.api.runtime.rule.RuleContext; /** * KnowledgeHelper implementation types are injected into consequenses @@ -44,141 +33,18 @@ * passed to the consequence at runtime. To achieve this the implementation will * need to lookup the fact handle of the object form the WorkingMemory. */ -public interface KnowledgeHelper extends RuleContext, Serializable { +public interface KnowledgeHelper extends ConsequenceContext, Serializable { void setActivation(InternalMatch internalMatch); default void restoreActivationOnConsequenceFailure(InternalMatch internalMatch) { } - void reset(); - - - /** - * Asserts an object - * - * @param object - - * the object to be asserted - */ - InternalFactHandle insert(Object object) ; - - FactHandle insertAsync( Object object ); - - /** - * Asserts an object specifying that it implement the onPropertyChange - * listener - * - * @param object - - * the object to be asserted - * @param dynamic - - * specifies the object implements onPropertyChangeListener - */ - InternalFactHandle insert(Object object, boolean dynamic); - - InternalFactHandle insertLogical(Object object) ; - - InternalFactHandle insertLogical(Object object, Object value); - - InternalFactHandle insertLogical(Object object, Mode belief) ; - - InternalFactHandle insertLogical(Object object, Mode... beliefs) ; - - InternalFactHandle getFactHandle(Object object); - - InternalFactHandle getFactHandle(InternalFactHandle handle); - - void update(FactHandle handle, Object newObject); - - void update(FactHandle newObject); - void update(FactHandle newObject, BitMask mask, Class modifiedClass); - - void update(Object newObject); - void update(Object newObject, BitMask mask, Class modifiedClass); - - /** - * @deprecated Use delete - */ - void retract(FactHandle handle) ; - - /** - * @deprecated Use delete - */ - void retract(Object handle); - - - void delete(Object handle); - void delete(Object object, FactHandle.State fhState); - - void delete(FactHandle handle); - void delete(FactHandle handle, FactHandle.State fhState); - - Object get(Declaration declaration); - - /** - * @return - The rule name - */ - RuleImpl getRule(); - - Tuple getTuple(); - - InternalMatch getMatch(); WorkingMemory getWorkingMemory(); - - EntryPoint getEntryPoint( String id ); - - Channel getChannel( String id ); - - Map getChannels(); - - void setFocus(String focus); - - Declaration getDeclaration(String identifier); - - void halt(); - - T getContext(Class contextClass); - - T don( K core, Class trait, boolean logical ); - - T don( K core, Class trait, Mode... modes ); - - T don( K core, Class trait ); - T don( Thing core, Class trait ); - - T don( K core, Collection> trait, boolean logical ); - - T don( K core, Collection> trait, Mode... modes ); - - T don( K core, Collection> trait ); - - Thing shed( Thing thing, Class trait ); - - Thing shed( TraitableBean core, Class trait ); - - InternalFactHandle bolster( Object object ); + InternalMatch getMatch(); - InternalFactHandle bolster( Object object, Object value ); ClassLoader getProjectClassLoader(); - default void run(String ruleUnitName) { - throw new UnsupportedOperationException(); - } - - default void run(Object ruleUnit) { - throw new UnsupportedOperationException(); - } - - default void run(Class ruleUnitClass) { - throw new UnsupportedOperationException(); - } - - default void guard(Object ruleUnit) { - throw new UnsupportedOperationException(); - } - - default void guard(Class ruleUnitClass) { - throw new UnsupportedOperationException(); - } } diff --git a/drools-core/src/main/java/org/drools/core/rule/constraint/AlphaNodeFieldConstraint.java b/drools-core/src/main/java/org/drools/core/rule/constraint/AlphaNodeFieldConstraint.java deleted file mode 100644 index 08e8fbaf456..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/constraint/AlphaNodeFieldConstraint.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.constraint; - -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; - -public interface AlphaNodeFieldConstraint - extends - Constraint { - - boolean isAllowed(InternalFactHandle handle, ReteEvaluator reteEvaluator); - - /** - * Clone this constraints only if it is already used by a different node, otherwise returns this - */ - AlphaNodeFieldConstraint cloneIfInUse(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/constraint/BetaNodeFieldConstraint.java b/drools-core/src/main/java/org/drools/core/rule/constraint/BetaNodeFieldConstraint.java deleted file mode 100644 index 46622985d7a..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/constraint/BetaNodeFieldConstraint.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.rule.constraint; - -import org.drools.core.common.InternalFactHandle; -import org.drools.core.rule.ContextEntry; -import org.drools.core.reteoo.Tuple; - -public interface BetaNodeFieldConstraint - extends - Constraint { - - boolean isAllowedCachedLeft(ContextEntry context, - InternalFactHandle handle); - - boolean isAllowedCachedRight(Tuple tuple, - ContextEntry context); - - ContextEntry createContextEntry(); - - /** - * Clone this constraints only if it is already used by a different node, otherwise returns this - */ - BetaNodeFieldConstraint cloneIfInUse(); -} diff --git a/drools-core/src/main/java/org/drools/core/rule/package-info.java b/drools-core/src/main/java/org/drools/core/rule/package-info.java deleted file mode 100644 index be21f05d135..00000000000 --- a/drools-core/src/main/java/org/drools/core/rule/package-info.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -/** - * - * Contains the binary representations of rule constructs, like Package (which the compiler produces), Rule, and Conditional Elements. - * - */ -package org.drools.core.rule; diff --git a/drools-core/src/main/java/org/drools/core/runtime/process/InternalProcessRuntime.java b/drools-core/src/main/java/org/drools/core/runtime/process/InternalProcessRuntime.java index 966d626a321..2a14dd842b9 100644 --- a/drools-core/src/main/java/org/drools/core/runtime/process/InternalProcessRuntime.java +++ b/drools-core/src/main/java/org/drools/core/runtime/process/InternalProcessRuntime.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.runtime.process; import org.kie.api.event.process.ProcessEventManager; diff --git a/drools-core/src/main/java/org/drools/core/runtime/process/ProcessRuntimeFactoryService.java b/drools-core/src/main/java/org/drools/core/runtime/process/ProcessRuntimeFactoryService.java index 93b9de4259e..a87feee504e 100644 --- a/drools-core/src/main/java/org/drools/core/runtime/process/ProcessRuntimeFactoryService.java +++ b/drools-core/src/main/java/org/drools/core/runtime/process/ProcessRuntimeFactoryService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.runtime.process; import org.drools.core.common.InternalWorkingMemory; diff --git a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/DefaultConsequenceExceptionHandler.java b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/DefaultConsequenceExceptionHandler.java index 77f8e0abacc..e3f9a1d6967 100644 --- a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/DefaultConsequenceExceptionHandler.java +++ b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/DefaultConsequenceExceptionHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.runtime.rule.impl; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/FlatQueryResultRow.java b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/FlatQueryResultRow.java index 81416edf81b..5a1d88da610 100644 --- a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/FlatQueryResultRow.java +++ b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/FlatQueryResultRow.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.runtime.rule.impl; import java.util.ArrayList; diff --git a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/LiveQueryImpl.java b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/LiveQueryImpl.java index bb8cb0e2194..fd205642cb5 100644 --- a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/LiveQueryImpl.java +++ b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/LiveQueryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.runtime.rule.impl; import org.kie.api.runtime.rule.FactHandle; diff --git a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/OpenQueryViewChangedEventListenerAdapter.java b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/OpenQueryViewChangedEventListenerAdapter.java index de6b9ca8699..23c7322b1e7 100644 --- a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/OpenQueryViewChangedEventListenerAdapter.java +++ b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/OpenQueryViewChangedEventListenerAdapter.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.runtime.rule.impl; import java.util.List; import org.drools.core.base.InternalViewChangedEventListener; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.LeftTuple; import org.kie.api.runtime.rule.ViewChangedEventListener; diff --git a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/RowAdapter.java b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/RowAdapter.java index 03326f65f5c..e66fbca7a1a 100644 --- a/drools-core/src/main/java/org/drools/core/runtime/rule/impl/RowAdapter.java +++ b/drools-core/src/main/java/org/drools/core/runtime/rule/impl/RowAdapter.java @@ -1,24 +1,25 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.runtime.rule.impl; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Declaration; import org.drools.core.reteoo.Tuple; import org.kie.api.runtime.rule.FactHandle; import org.kie.api.runtime.rule.Row; @@ -27,7 +28,7 @@ public class RowAdapter implements Row { private RuleImpl rule; private Tuple tuple; - private InternalFactHandle[] factHandles; + private FactHandle[] factHandles; public RowAdapter(final RuleImpl rule, final Tuple leftTuple) { @@ -35,7 +36,7 @@ public RowAdapter(final RuleImpl rule, this.tuple = leftTuple; } - private InternalFactHandle getFactHandle(Declaration declr) { + private FactHandle getFactHandle(Declaration declr) { return this.factHandles[ declr.getPattern().getPatternId() ]; } @@ -47,7 +48,7 @@ public Object get(String identifier) { if ( declr == null ) { throw new RuntimeException("The identifier '" + identifier + "' does not exist as a bound variable for this query" ); } - InternalFactHandle factHandle = getFactHandle( declr ); + FactHandle factHandle = getFactHandle( declr ); return declr.getValue( null, factHandle ); } @@ -59,7 +60,7 @@ public FactHandle getFactHandle(String identifier) { if ( declr == null ) { throw new RuntimeException("The identifier '" + identifier + "' does not exist as a bound variable for this query" ); } - InternalFactHandle factHandle = getFactHandle( declr ); + FactHandle factHandle = getFactHandle( declr ); return factHandle; } diff --git a/drools-core/src/main/java/org/drools/core/time/EnqueuedSelfRemovalJobContext.java b/drools-core/src/main/java/org/drools/core/time/EnqueuedSelfRemovalJobContext.java index 35780b47b88..aa908a4367d 100644 --- a/drools-core/src/main/java/org/drools/core/time/EnqueuedSelfRemovalJobContext.java +++ b/drools-core/src/main/java/org/drools/core/time/EnqueuedSelfRemovalJobContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time; import java.util.Map; diff --git a/drools-core/src/main/java/org/drools/core/time/InternalSchedulerService.java b/drools-core/src/main/java/org/drools/core/time/InternalSchedulerService.java index 36e2319efec..b0ba3951f5b 100644 --- a/drools-core/src/main/java/org/drools/core/time/InternalSchedulerService.java +++ b/drools-core/src/main/java/org/drools/core/time/InternalSchedulerService.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time; import org.drools.core.time.impl.TimerJobInstance; diff --git a/drools-core/src/main/java/org/drools/core/time/Job.java b/drools-core/src/main/java/org/drools/core/time/Job.java index 44f9917f776..cd086a06915 100644 --- a/drools-core/src/main/java/org/drools/core/time/Job.java +++ b/drools-core/src/main/java/org/drools/core/time/Job.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time; public interface Job { diff --git a/drools-core/src/main/java/org/drools/core/time/JobContext.java b/drools-core/src/main/java/org/drools/core/time/JobContext.java index bda79a499d1..07988d7c0c7 100644 --- a/drools-core/src/main/java/org/drools/core/time/JobContext.java +++ b/drools-core/src/main/java/org/drools/core/time/JobContext.java @@ -1,24 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time; import java.io.Serializable; import java.util.Optional; +import org.drools.base.time.JobHandle; import org.drools.core.common.InternalKnowledgeRuntime; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ReteEvaluator; diff --git a/drools-core/src/main/java/org/drools/core/time/JobHandle.java b/drools-core/src/main/java/org/drools/core/time/JobHandle.java deleted file mode 100644 index 74c8db4d416..00000000000 --- a/drools-core/src/main/java/org/drools/core/time/JobHandle.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.time; - - -import org.drools.core.time.impl.TimerJobInstance; -import org.drools.core.util.LinkedListNode; - -/** - * An interface for Job Handles - */ -public interface JobHandle extends LinkedListNode { - - long getId(); - - void setCancel(boolean cancel); - - boolean isCancel(); - - TimerJobInstance getTimerJobInstance(); -} diff --git a/drools-core/src/main/java/org/drools/core/time/Scheduler.java b/drools-core/src/main/java/org/drools/core/time/Scheduler.java index a6a1348edcc..618ab80c5e7 100644 --- a/drools-core/src/main/java/org/drools/core/time/Scheduler.java +++ b/drools-core/src/main/java/org/drools/core/time/Scheduler.java @@ -1,20 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; + public interface Scheduler { /** * Schedule a job for later execution diff --git a/drools-core/src/main/java/org/drools/core/time/SchedulerService.java b/drools-core/src/main/java/org/drools/core/time/SchedulerService.java index dab4593b66a..89005ac20b8 100644 --- a/drools-core/src/main/java/org/drools/core/time/SchedulerService.java +++ b/drools-core/src/main/java/org/drools/core/time/SchedulerService.java @@ -1,21 +1,26 @@ -/* -* Copyright 2010 salaboy. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.core.time; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; + public interface SchedulerService { /** diff --git a/drools-core/src/main/java/org/drools/core/time/SelfRemovalJob.java b/drools-core/src/main/java/org/drools/core/time/SelfRemovalJob.java index 1315e87f612..f580f5be1a5 100644 --- a/drools-core/src/main/java/org/drools/core/time/SelfRemovalJob.java +++ b/drools-core/src/main/java/org/drools/core/time/SelfRemovalJob.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/time/SelfRemovalJobContext.java b/drools-core/src/main/java/org/drools/core/time/SelfRemovalJobContext.java index 4ae182db80b..5ad5c0ed9f4 100644 --- a/drools-core/src/main/java/org/drools/core/time/SelfRemovalJobContext.java +++ b/drools-core/src/main/java/org/drools/core/time/SelfRemovalJobContext.java @@ -1,22 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time; import java.util.Map; +import org.drools.base.time.JobHandle; import org.drools.core.common.ReteEvaluator; import org.drools.core.time.impl.TimerJobInstance; diff --git a/drools-core/src/main/java/org/drools/core/time/SessionPseudoClock.java b/drools-core/src/main/java/org/drools/core/time/SessionPseudoClock.java index c230dfafba6..001ad0657b8 100644 --- a/drools-core/src/main/java/org/drools/core/time/SessionPseudoClock.java +++ b/drools-core/src/main/java/org/drools/core/time/SessionPseudoClock.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time; public interface SessionPseudoClock extends org.kie.api.time.SessionPseudoClock { diff --git a/drools-core/src/main/java/org/drools/core/time/TemporalDependencyMatrix.java b/drools-core/src/main/java/org/drools/core/time/TemporalDependencyMatrix.java index 8c77c7999fb..2fb19f499da 100644 --- a/drools-core/src/main/java/org/drools/core/time/TemporalDependencyMatrix.java +++ b/drools-core/src/main/java/org/drools/core/time/TemporalDependencyMatrix.java @@ -1,27 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time; import java.util.List; import java.util.stream.IntStream; -import org.drools.core.rule.Pattern; +import org.drools.base.rule.Pattern; +import org.drools.base.time.Interval; -import static org.drools.core.rule.TypeDeclaration.NEVER_EXPIRES; +import static org.drools.base.rule.TypeDeclaration.NEVER_EXPIRES; /** * A class to abstract the management of temporal diff --git a/drools-core/src/main/java/org/drools/core/time/TimerExpression.java b/drools-core/src/main/java/org/drools/core/time/TimerExpression.java index 045f98a78a4..3cd30c52138 100644 --- a/drools-core/src/main/java/org/drools/core/time/TimerExpression.java +++ b/drools-core/src/main/java/org/drools/core/time/TimerExpression.java @@ -1,26 +1,30 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; public interface TimerExpression { Declaration[] getDeclarations(); - Object getValue(Tuple leftTuple, Declaration[] declrs, ReteEvaluator reteEvaluator); + Object getValue(BaseTuple leftTuple, Declaration[] declrs, ValueResolver valueResolver); } diff --git a/drools-core/src/main/java/org/drools/core/time/TimerExpressionUtil.java b/drools-core/src/main/java/org/drools/core/time/TimerExpressionUtil.java new file mode 100644 index 00000000000..e010cd7f7a0 --- /dev/null +++ b/drools-core/src/main/java/org/drools/core/time/TimerExpressionUtil.java @@ -0,0 +1,51 @@ +/** + * 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. + */ +package org.drools.core.time; + +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.time.TimeUtils; +import org.drools.util.DateUtils; + +import java.util.Date; + +public class TimerExpressionUtil { + public static long evalTimeExpression(TimerExpression expr, BaseTuple leftTuple, Declaration[] declrs, ValueResolver valueResolver) { + Object d = expr.getValue( leftTuple, declrs, valueResolver ); + if ( d instanceof Number ) { + return ((Number) d).longValue(); + } + return TimeUtils.parseTimeString( d.toString() ); + } + + public static Date evalDateExpression(TimerExpression expr, BaseTuple leftTuple, Declaration[] declrs, ValueResolver valueResolver) { + if (expr == null) { + return null; + } + Object d = expr.getValue( leftTuple, declrs, valueResolver ); + if ( d == null ) { + return null; + } + if ( d instanceof Number ) { + return new Date( ((Number) d).longValue() ); + } + return DateUtils.parseDate(d.toString()); + } +} diff --git a/drools-core/src/main/java/org/drools/core/time/TimerService.java b/drools-core/src/main/java/org/drools/core/time/TimerService.java index f64d816df52..97d82b683ee 100644 --- a/drools-core/src/main/java/org/drools/core/time/TimerService.java +++ b/drools-core/src/main/java/org/drools/core/time/TimerService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/time/impl/AbstractJobHandle.java b/drools-core/src/main/java/org/drools/core/time/impl/AbstractJobHandle.java index 623c1732660..8aa3592e691 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/AbstractJobHandle.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/AbstractJobHandle.java @@ -1,34 +1,39 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time.impl; -import org.drools.core.time.JobHandle; +import org.drools.base.time.JobHandle; +import org.drools.core.util.LinkedListNode; -public abstract class AbstractJobHandle implements JobHandle { +public abstract class AbstractJobHandle implements JobHandle, + LinkedListNode { - private JobHandle previous; - private JobHandle next; + private T previous; + private T next; @Override - public JobHandle getPrevious() { + public T getPrevious() { return previous; } @Override - public void setPrevious(JobHandle previous) { + public void setPrevious(T previous) { this.previous = previous; } @@ -39,12 +44,12 @@ public void nullPrevNext() { } @Override - public void setNext(JobHandle next) { + public void setNext(T next) { this.next = next; } @Override - public JobHandle getNext() { + public T getNext() { return next; } } diff --git a/drools-core/src/main/java/org/drools/core/time/impl/BaseTimer.java b/drools-core/src/main/java/org/drools/core/time/impl/BaseTimer.java index 51d2c2f2203..aa063daaf1a 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/BaseTimer.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/BaseTimer.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time.impl; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.ConditionalElement; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.ConditionalElement; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.RuleConditionElement; import java.util.Arrays; import java.util.Collections; @@ -61,7 +64,7 @@ protected Declaration[] sortDeclarations(Map outerDeclrs, D for ( int i = 0; i < sortedDeclrs.length; i++ ) { sortedDeclrs[i] = outerDeclrs.get( sortedDeclrs[i].getIdentifier() ); } - Arrays.sort(sortedDeclrs, RuleTerminalNode.SortDeclarations.instance); + Arrays.sort(sortedDeclrs, SortDeclarations.instance); return sortedDeclrs; } } diff --git a/drools-core/src/main/java/org/drools/core/time/impl/CommandServiceTimerJobFactoryManager.java b/drools-core/src/main/java/org/drools/core/time/impl/CommandServiceTimerJobFactoryManager.java index 545f5fcf2f0..6ebe31272e2 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/CommandServiceTimerJobFactoryManager.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/CommandServiceTimerJobFactoryManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import org.kie.api.runtime.ExecutableRunner; diff --git a/drools-core/src/main/java/org/drools/core/time/impl/CompositeMaxDurationTimer.java b/drools-core/src/main/java/org/drools/core/time/impl/CompositeMaxDurationTimer.java index f5106486966..96c1cc29945 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/CompositeMaxDurationTimer.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/CompositeMaxDurationTimer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.IOException; @@ -24,13 +26,15 @@ import java.util.List; import java.util.Map; +import org.drools.base.base.ValueResolver; +import org.drools.base.time.impl.Timer; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ConditionalElement; -import org.drools.core.rule.Declaration; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ConditionalElement; +import org.drools.base.rule.Declaration; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.reteoo.Tuple; -import org.drools.core.time.Trigger; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; import org.kie.api.runtime.Calendars; /** @@ -40,7 +44,7 @@ */ public class CompositeMaxDurationTimer extends BaseTimer implements - Timer { + Timer { private static final long serialVersionUID = -2531364489959820962L; @@ -76,12 +80,12 @@ public Trigger createTrigger(InternalMatch item, InternalWorkingMemory wm) { } public Trigger createTrigger(long timestamp, - Tuple leftTuple, - DefaultJobHandle jh, + BaseTuple leftTuple, + JobHandle jh, String[] calendarNames, Calendars calendars, Declaration[][] declrs, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { return createTrigger( getMaxTimestamp(leftTuple, timestamp), calendarNames, calendars ); } @@ -100,7 +104,7 @@ public Trigger createTrigger( long timestamp, // current time calendars ) : null ); } - private long getMaxTimestamp(Tuple leftTuple, long timestamp) { + private long getMaxTimestamp(BaseTuple leftTuple, long timestamp) { if (timer != null) { return timestamp; } diff --git a/drools-core/src/main/java/org/drools/core/time/impl/CompositeMaxDurationTrigger.java b/drools-core/src/main/java/org/drools/core/time/impl/CompositeMaxDurationTrigger.java index 9fcdb0590bd..5a617cacb94 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/CompositeMaxDurationTrigger.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/CompositeMaxDurationTrigger.java @@ -1,22 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/time/impl/CronExpression.java b/drools-core/src/main/java/org/drools/core/time/impl/CronExpression.java index 22788a5f8bf..eff662f7cab 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/CronExpression.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/CronExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time.impl; import java.text.ParseException; diff --git a/drools-core/src/main/java/org/drools/core/time/impl/CronTimer.java b/drools-core/src/main/java/org/drools/core/time/impl/CronTimer.java index 36b84f60efe..7c1e598daf6 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/CronTimer.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/CronTimer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.Externalizable; @@ -23,19 +25,23 @@ import java.text.ParseException; import java.util.Map; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ConditionalElement; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.time.impl.Timer; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ConditionalElement; +import org.drools.base.rule.Declaration; +import org.drools.base.time.JobHandle; import org.drools.core.time.TimerExpression; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.kie.api.runtime.Calendars; -import static org.drools.core.time.TimeUtils.evalDateExpression; +import static org.drools.core.time.TimerExpressionUtil.evalDateExpression; + +//import static org.drools.core.time.TimerExpressionUtils.evalDateExpression; public class CronTimer extends BaseTimer implements - Timer, + Timer, Externalizable { private TimerExpression startTime; private TimerExpression endTime; @@ -95,17 +101,17 @@ public CronExpression getCronExpression() { } public Trigger createTrigger(long timestamp, - Tuple leftTuple, - DefaultJobHandle jh, + BaseTuple leftTuple, + JobHandle jh, String[] calendarNames, Calendars calendars, Declaration[][] declrs, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { Declaration[] startDeclarations = declrs[0]; return new CronTrigger( timestamp, - evalDateExpression( this.startTime, leftTuple, startDeclarations, reteEvaluator ), - evalDateExpression( this.endTime, leftTuple, startDeclarations, reteEvaluator ), + evalDateExpression( this.startTime, leftTuple, startDeclarations, valueResolver ), + evalDateExpression( this.endTime, leftTuple, startDeclarations, valueResolver ), this.repeatLimit, this.cronExpression, calendarNames, diff --git a/drools-core/src/main/java/org/drools/core/time/impl/CronTrigger.java b/drools-core/src/main/java/org/drools/core/time/impl/CronTrigger.java index 2d94a5d7882..9e6d199eb86 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/CronTrigger.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/CronTrigger.java @@ -1,22 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.kie.api.runtime.Calendars; import java.util.Calendar; diff --git a/drools-core/src/main/java/org/drools/core/time/impl/DefaultJobHandle.java b/drools-core/src/main/java/org/drools/core/time/impl/DefaultJobHandle.java index e98a490e2e0..24734b3664d 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/DefaultJobHandle.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/DefaultJobHandle.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.Serializable; @@ -23,7 +25,7 @@ /** * A default implementation for the JobHandle interface */ -public class DefaultJobHandle extends AbstractJobHandle implements Serializable { +public class DefaultJobHandle extends AbstractJobHandle implements Serializable { private static final long serialVersionUID = 510l; @@ -41,8 +43,11 @@ public long getId() { return id; } - public void setCancel(boolean cancel) { - this.cancel = cancel; + public void cancel() { + if (!this.cancel) { + timerJobInstance.cancel(); + } + this.cancel = true; } public boolean isCancel() { diff --git a/drools-core/src/main/java/org/drools/core/time/impl/DefaultTimerJobFactoryManager.java b/drools-core/src/main/java/org/drools/core/time/impl/DefaultTimerJobFactoryManager.java index c2cbda97c8d..aa4ec5eeddb 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/DefaultTimerJobFactoryManager.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/DefaultTimerJobFactoryManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time.impl; import java.util.Collection; @@ -21,8 +24,8 @@ import org.drools.core.time.InternalSchedulerService; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; -import org.drools.core.time.Trigger; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; public class DefaultTimerJobFactoryManager implements @@ -30,6 +33,7 @@ public class DefaultTimerJobFactoryManager public static final DefaultTimerJobFactoryManager INSTANCE = new DefaultTimerJobFactoryManager(); + @Override public TimerJobInstance createTimerJobInstance(Job job, JobContext ctx, Trigger trigger, @@ -43,11 +47,19 @@ public TimerJobInstance createTimerJobInstance(Job job, scheduler ); } + @Override public Collection getTimerJobInstances() { return Collections.emptyList(); } + @Override public void addTimerJobInstance(TimerJobInstance instance) { } + @Override public void removeTimerJobInstance(TimerJobInstance instance) { } + + @Override + public void removeTimerJobInstance(JobHandle handle) { + + } } diff --git a/drools-core/src/main/java/org/drools/core/time/impl/DefaultTimerJobInstance.java b/drools-core/src/main/java/org/drools/core/time/impl/DefaultTimerJobInstance.java index c4207e4e738..f7bb73b7ad8 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/DefaultTimerJobInstance.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/DefaultTimerJobInstance.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time.impl; import org.drools.core.time.InternalSchedulerService; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; -import org.drools.core.time.Trigger; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/drools-core/src/main/java/org/drools/core/time/impl/DurationTimer.java b/drools-core/src/main/java/org/drools/core/time/impl/DurationTimer.java index ad89bcb8d51..9f455aac368 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/DurationTimer.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/DurationTimer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.Externalizable; @@ -25,21 +27,24 @@ import java.util.List; import java.util.Map; -import org.drools.core.common.EventFactHandle; +import org.drools.base.base.ValueResolver; +import org.drools.base.time.impl.Timer; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ConditionalElement; -import org.drools.core.rule.Declaration; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ConditionalElement; +import org.drools.base.rule.Declaration; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.reteoo.Tuple; -import org.drools.core.time.Trigger; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; import org.drools.util.MathUtils; import org.kie.api.runtime.Calendars; import org.kie.api.time.Calendar; public class DurationTimer extends BaseTimer implements - Timer, + Timer, Externalizable { private long duration; @@ -76,7 +81,7 @@ public Trigger createTrigger(InternalMatch item, InternalWorkingMemory wm) { long timestamp; if (eventFactHandle != null) { Tuple leftTuple = item.getTuple(); - EventFactHandle fh = (EventFactHandle) leftTuple.get(eventFactHandle); + DefaultEventHandle fh = (DefaultEventHandle) leftTuple.get(eventFactHandle); timestamp = fh.getStartTimestamp(); } else { timestamp = wm.getTimerService().getCurrentTime(); @@ -87,18 +92,18 @@ public Trigger createTrigger(InternalMatch item, InternalWorkingMemory wm) { } public Trigger createTrigger(long timestamp, - Tuple leftTuple, - DefaultJobHandle jh, + BaseTuple leftTuple, + JobHandle jh, String[] calendarNames, Calendars calendars, Declaration[][] declrs, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { return createTrigger(getEventTimestamp(leftTuple, timestamp), calendarNames, calendars); } - long getEventTimestamp(Tuple leftTuple, long timestamp) { + long getEventTimestamp(BaseTuple leftTuple, long timestamp) { return eventFactHandle != null ? - ((EventFactHandle) leftTuple.get(eventFactHandle)).getStartTimestamp() : + ((DefaultEventHandle) leftTuple.get(eventFactHandle)).getStartTimestamp() : timestamp; } diff --git a/drools-core/src/main/java/org/drools/core/time/impl/ExpressionIntervalTimer.java b/drools-core/src/main/java/org/drools/core/time/impl/ExpressionIntervalTimer.java index 663f63f4403..ace0d34ec31 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/ExpressionIntervalTimer.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/ExpressionIntervalTimer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.Externalizable; @@ -23,20 +25,22 @@ import java.util.Date; import java.util.Map; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ConditionalElement; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.time.impl.Timer; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ConditionalElement; +import org.drools.base.rule.Declaration; +import org.drools.base.time.JobHandle; import org.drools.core.time.TimerExpression; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.kie.api.runtime.Calendars; -import static org.drools.core.time.TimeUtils.evalDateExpression; -import static org.drools.core.time.TimeUtils.evalTimeExpression; +import static org.drools.core.time.TimerExpressionUtil.evalDateExpression; +import static org.drools.core.time.TimerExpressionUtil.evalTimeExpression; public class ExpressionIntervalTimer extends BaseTimer implements - Timer, + Timer, Externalizable { private TimerExpression startTime; @@ -106,12 +110,12 @@ public Declaration[][] getTimerDeclarations(Map outerDeclrs } public Trigger createTrigger(long timestamp, - Tuple leftTuple, - DefaultJobHandle jh, + BaseTuple leftTuple, + JobHandle jh, String[] calendarNames, Calendars calendars, Declaration[][] declrs, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { long timeSinceLastFire = 0; Declaration[] delayDeclarations = declrs[0]; @@ -124,17 +128,17 @@ public Trigger createTrigger(long timestamp, long newDelay; if ( jh != null ) { - IntervalTrigger preTrig = (IntervalTrigger) jh.getTimerJobInstance().getTrigger(); + IntervalTrigger preTrig = (IntervalTrigger) ((DefaultJobHandle)jh).getTimerJobInstance().getTrigger(); lastFireTime = preTrig.getLastFireTime(); createdTime = preTrig.getCreatedTime(); if (lastFireTime != null) { // it is already fired calculate the new delay using the period instead of the delay - newDelay = evalTimeExpression(this.period, leftTuple, delayDeclarations, reteEvaluator) - timestamp + lastFireTime.getTime(); + newDelay = evalTimeExpression(this.period, leftTuple, delayDeclarations, valueResolver) - timestamp + lastFireTime.getTime(); } else { - newDelay = evalTimeExpression(this.delay, leftTuple, delayDeclarations, reteEvaluator) - timestamp + createdTime.getTime(); + newDelay = evalTimeExpression(this.delay, leftTuple, delayDeclarations, valueResolver) - timestamp + createdTime.getTime(); } } else { - newDelay = evalTimeExpression(this.delay, leftTuple, delayDeclarations, reteEvaluator); + newDelay = evalTimeExpression(this.delay, leftTuple, delayDeclarations, valueResolver); } if (newDelay < 0) { @@ -142,11 +146,11 @@ public Trigger createTrigger(long timestamp, } return new IntervalTrigger(timestamp, - evalDateExpression( this.startTime, leftTuple, startDeclarations, reteEvaluator ), - evalDateExpression( this.endTime, leftTuple, startDeclarations, reteEvaluator ), + evalDateExpression( this.startTime, leftTuple, startDeclarations, valueResolver ), + evalDateExpression( this.endTime, leftTuple, startDeclarations, valueResolver ), this.repeatLimit, newDelay, - period != null ? evalTimeExpression(this.period, leftTuple, periodDeclarations, reteEvaluator) : 0, + period != null ? evalTimeExpression(this.period, leftTuple, periodDeclarations, valueResolver) : 0, calendarNames, calendars, createdTime, diff --git a/drools-core/src/main/java/org/drools/core/time/impl/IntervalTimer.java b/drools-core/src/main/java/org/drools/core/time/impl/IntervalTimer.java index 83bc5c688a0..b08df303f74 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/IntervalTimer.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/IntervalTimer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.Externalizable; @@ -23,19 +25,21 @@ import java.util.Date; import java.util.Map; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ConditionalElement; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ConditionalElement; +import org.drools.base.rule.Declaration; +import org.drools.base.time.JobHandle; +import org.drools.base.time.impl.Timer; import org.drools.core.time.TimerExpression; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.kie.api.runtime.Calendars; -import static org.drools.core.time.TimeUtils.evalDateExpression; +import static org.drools.core.time.TimerExpressionUtil.evalDateExpression; public class IntervalTimer extends BaseTimer implements - Timer, + Timer, Externalizable { private TimerExpression startTime; private TimerExpression endTime; @@ -98,12 +102,12 @@ public long getPeriod() { } public Trigger createTrigger(long timestamp, - Tuple leftTuple, - DefaultJobHandle jh, + BaseTuple leftTuple, + JobHandle jh, String[] calendarNames, Calendars calendars, Declaration[][] declrs, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { Declaration[] startDeclarations = declrs[0]; Date lastFireTime = null; @@ -111,7 +115,7 @@ public Trigger createTrigger(long timestamp, long newDelay = delay; if ( jh != null ) { - IntervalTrigger preTrig = (IntervalTrigger) jh.getTimerJobInstance().getTrigger(); + IntervalTrigger preTrig = (IntervalTrigger) ((DefaultJobHandle)jh).getTimerJobInstance().getTrigger(); lastFireTime = preTrig.getLastFireTime(); createdTime = preTrig.getCreatedTime(); if (lastFireTime != null) { @@ -127,8 +131,8 @@ public Trigger createTrigger(long timestamp, } return new IntervalTrigger( timestamp, - evalDateExpression( this.startTime, leftTuple, startDeclarations, reteEvaluator ), - evalDateExpression( this.endTime, leftTuple, startDeclarations, reteEvaluator ), + evalDateExpression( this.startTime, leftTuple, startDeclarations, valueResolver ), + evalDateExpression( this.endTime, leftTuple, startDeclarations, valueResolver ), this.repeatLimit, newDelay, this.period, diff --git a/drools-core/src/main/java/org/drools/core/time/impl/IntervalTrigger.java b/drools-core/src/main/java/org/drools/core/time/impl/IntervalTrigger.java index 42e7502b018..3c8a5022c3f 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/IntervalTrigger.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/IntervalTrigger.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.IOException; @@ -23,7 +25,7 @@ import java.util.Calendar; import java.util.Date; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.kie.api.runtime.Calendars; public class IntervalTrigger diff --git a/drools-core/src/main/java/org/drools/core/time/impl/JDKTimerService.java b/drools-core/src/main/java/org/drools/core/time/impl/JDKTimerService.java index 32f2168d24f..e78ab658010 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/JDKTimerService.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/JDKTimerService.java @@ -1,27 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time.impl; import org.drools.core.time.InternalSchedulerService; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; +import org.drools.base.time.JobHandle; import org.drools.core.time.TimerService; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.kie.api.time.SessionClock; import java.util.Collection; @@ -130,9 +132,10 @@ public void internalSchedule(TimerJobInstance timerJobInstance) { } public void removeJob(JobHandle jobHandle) { - jobHandle.setCancel(true); + jobHandle.cancel(); + jobFactoryManager.removeTimerJobInstance(jobHandle); + JDKJobHandle jdkJobHandle = (JDKJobHandle) jobHandle; - jobFactoryManager.removeTimerJobInstance(jdkJobHandle.getTimerJobInstance()); this.scheduler.remove((Runnable) jdkJobHandle.getFuture()); } diff --git a/drools-core/src/main/java/org/drools/core/time/impl/KieCronExpression.java b/drools-core/src/main/java/org/drools/core/time/impl/KieCronExpression.java index e7fd7807000..144e78f831f 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/KieCronExpression.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/KieCronExpression.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/time/impl/PointInTimeTrigger.java b/drools-core/src/main/java/org/drools/core/time/impl/PointInTimeTrigger.java index e922223bc4c..b70fb7d4ea4 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/PointInTimeTrigger.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/PointInTimeTrigger.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.IOException; @@ -22,7 +24,7 @@ import java.util.Collection; import java.util.Date; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.kie.api.time.Calendar; public class PointInTimeTrigger implements Trigger { diff --git a/drools-core/src/main/java/org/drools/core/time/impl/PseudoClockScheduler.java b/drools-core/src/main/java/org/drools/core/time/impl/PseudoClockScheduler.java index 54d18eebdbe..7eb01770283 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/PseudoClockScheduler.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/PseudoClockScheduler.java @@ -1,28 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time.impl; import org.drools.core.time.InternalSchedulerService; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; +import org.drools.base.time.JobHandle; import org.drools.core.time.SessionPseudoClock; import org.drools.core.time.TimerService; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -64,6 +66,7 @@ public void readExternal(ObjectInput in) throws IOException, if ( tmp != null ) { queue = tmp; } +// session = ((DroolsObjectInputStream) in).getWorkingMemory(); } public void writeExternal(ObjectOutput out) throws IOException { @@ -112,10 +115,8 @@ public void internalSchedule(TimerJobInstance timerJobInstance) { @Override public synchronized void removeJob(JobHandle jobHandle) { - jobHandle.setCancel(true); - TimerJobInstance timerJobInstance = jobHandle.getTimerJobInstance(); - jobFactoryManager.removeTimerJobInstance(timerJobInstance); - timerJobInstance.cancel(); + jobHandle.cancel(); + jobFactoryManager.removeTimerJobInstance(jobHandle); if ( ++cancelledJob > 1000 ) { purgeCancelledJob(); } diff --git a/drools-core/src/main/java/org/drools/core/time/impl/ThreadSafeTrackableTimeJobFactoryManager.java b/drools-core/src/main/java/org/drools/core/time/impl/ThreadSafeTrackableTimeJobFactoryManager.java index 51f6180ef2e..a560ba38d97 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/ThreadSafeTrackableTimeJobFactoryManager.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/ThreadSafeTrackableTimeJobFactoryManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import org.drools.core.time.JobContext; @@ -26,6 +28,7 @@ public ThreadSafeTrackableTimeJobFactoryManager() { super(new ConcurrentHashMap<>()); } + @Override protected SelfRemovalJobContext createJobContext( JobContext ctx ) { return new SelfRemovalJobContext( ctx, timerInstances ); } diff --git a/drools-core/src/main/java/org/drools/core/time/impl/Timer.java b/drools-core/src/main/java/org/drools/core/time/impl/Timer.java deleted file mode 100644 index 0d0fd8fb04b..00000000000 --- a/drools-core/src/main/java/org/drools/core/time/impl/Timer.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.time.impl; - -import java.io.Serializable; - -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.RuleComponent; -import org.drools.core.reteoo.Tuple; -import org.drools.core.time.Trigger; -import org.kie.api.runtime.Calendars; - -public interface Timer extends Serializable, RuleComponent, RuleConditionElement { - - Trigger createTrigger( long timestamp, String[] calendarNames, Calendars calendars); - - Trigger createTrigger(long timestamp, - Tuple leftTuple, - DefaultJobHandle jh, - String[] calendarNames, - Calendars calendars, - Declaration[][] declrs, - ReteEvaluator reteEvaluator); -} diff --git a/drools-core/src/main/java/org/drools/core/time/impl/TimerJobFactoryManager.java b/drools-core/src/main/java/org/drools/core/time/impl/TimerJobFactoryManager.java index 8a98dd0a6f2..06d97ec59b3 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/TimerJobFactoryManager.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/TimerJobFactoryManager.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time.impl; import org.drools.core.time.InternalSchedulerService; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; -import org.drools.core.time.Trigger; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; import java.util.Collection; @@ -34,5 +37,7 @@ TimerJobInstance createTimerJobInstance(Job job, void removeTimerJobInstance(TimerJobInstance instance); + void removeTimerJobInstance(JobHandle handle); + Collection getTimerJobInstances(); } diff --git a/drools-core/src/main/java/org/drools/core/time/impl/TimerJobInstance.java b/drools-core/src/main/java/org/drools/core/time/impl/TimerJobInstance.java index ca0462971cc..3ef2f02c63e 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/TimerJobInstance.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/TimerJobInstance.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time.impl; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; -import org.drools.core.time.Trigger; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; public interface TimerJobInstance { JobHandle getJobHandle(); diff --git a/drools-core/src/main/java/org/drools/core/time/impl/TrackableTimeJobFactoryManager.java b/drools-core/src/main/java/org/drools/core/time/impl/TrackableTimeJobFactoryManager.java index 4462f2c20af..5cfcb6869dd 100644 --- a/drools-core/src/main/java/org/drools/core/time/impl/TrackableTimeJobFactoryManager.java +++ b/drools-core/src/main/java/org/drools/core/time/impl/TrackableTimeJobFactoryManager.java @@ -1,28 +1,31 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time.impl; import org.drools.core.time.EnqueuedSelfRemovalJobContext; import org.drools.core.time.InternalSchedulerService; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; +import org.drools.base.time.JobHandle; import org.drools.core.time.SelfRemovalJob; import org.drools.core.time.SelfRemovalJobContext; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import java.util.Collection; import java.util.HashMap; @@ -42,6 +45,7 @@ protected TrackableTimeJobFactoryManager(Map timerInstan this.timerInstances = timerInstances; } + @Override public TimerJobInstance createTimerJobInstance(Job job, JobContext ctx, Trigger trigger, @@ -60,17 +64,24 @@ protected SelfRemovalJobContext createJobContext( JobContext ctx ) { return new EnqueuedSelfRemovalJobContext( ctx, timerInstances ); } + @Override public void addTimerJobInstance(TimerJobInstance instance) { this.timerInstances.put( instance.getJobHandle().getId(), instance ); } + @Override public void removeTimerJobInstance(TimerJobInstance instance) { this.timerInstances.remove( instance.getJobHandle().getId() ); } + @Override + public void removeTimerJobInstance(JobHandle handle) { + this.timerInstances.remove( handle.getId() ); + } + public Collection getTimerJobInstances() { return timerInstances.values(); } diff --git a/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java b/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java index 5cd6e541a52..e37c37fc310 100644 --- a/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java +++ b/drools-core/src/main/java/org/drools/core/util/AbstractBaseLinkedListNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.util; import javax.xml.bind.annotation.XmlAccessType; diff --git a/drools-core/src/main/java/org/drools/core/util/AbstractHashTable.java b/drools-core/src/main/java/org/drools/core/util/AbstractHashTable.java index 45310f9a8ed..a6dbd12c980 100644 --- a/drools-core/src/main/java/org/drools/core/util/AbstractHashTable.java +++ b/drools-core/src/main/java/org/drools/core/util/AbstractHashTable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.io.Externalizable; @@ -22,10 +24,8 @@ import java.io.ObjectOutput; import java.util.Objects; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.util.FieldIndex; import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.accessor.TupleValueExtractor; import org.drools.core.util.index.TupleList; public abstract class AbstractHashTable @@ -185,61 +185,6 @@ public String toString() { return sbuilder.toString(); } - public static class FieldIndex implements Externalizable { - - private static final long serialVersionUID = 510l; - - private TupleValueExtractor leftExtractor; - private ReadAccessor rightExtractor; - private boolean requiresCoercion; - - public FieldIndex() { } - - public FieldIndex( ReadAccessor rightExtractor, TupleValueExtractor leftExtractor ) { - this.rightExtractor = rightExtractor; - this.leftExtractor = leftExtractor; - this.requiresCoercion = isCoercionRequired( rightExtractor, leftExtractor ); - } - - private boolean isCoercionRequired( ReadAccessor extractor, TupleValueExtractor declaration ) { - return extractor.getValueType() != declaration.getValueType(); - } - - @Override - public void readExternal(ObjectInput in) throws IOException, - ClassNotFoundException { - rightExtractor = (ReadAccessor) in.readObject(); - leftExtractor = (Declaration) in.readObject(); - requiresCoercion = isCoercionRequired( rightExtractor, leftExtractor ); - } - - @Override - public void writeExternal(ObjectOutput out) throws IOException { - out.writeObject( rightExtractor ); - out.writeObject( leftExtractor ); - } - - public TupleValueExtractor getLeftExtractor() { - return this.leftExtractor; - } - - public ReadAccessor getRightExtractor() { - return this.rightExtractor; - } - - public boolean requiresCoercion() { - return requiresCoercion; - } - - public Object indexedValueOf(Tuple tuple, boolean left) { - return left ? - ( requiresCoercion ? - rightExtractor.getValueType().coerce( leftExtractor.getValue( tuple ) ) : - leftExtractor.getValue( tuple ) ) : - rightExtractor.getValue( null, tuple.getFactHandle().getObject() ); - } - } - public interface Index extends Externalizable { FieldIndex getFieldIndex(int index); HashEntry hashCodeOf(Tuple tuple, boolean left); diff --git a/drools-core/src/main/java/org/drools/core/util/ArrayQueue.java b/drools-core/src/main/java/org/drools/core/util/ArrayQueue.java index e9048042875..8521978453c 100644 --- a/drools-core/src/main/java/org/drools/core/util/ArrayQueue.java +++ b/drools-core/src/main/java/org/drools/core/util/ArrayQueue.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.core.util; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/util/AtomicBitwiseLong.java b/drools-core/src/main/java/org/drools/core/util/AtomicBitwiseLong.java index 7868f4bd176..ce9bd2bda96 100644 --- a/drools-core/src/main/java/org/drools/core/util/AtomicBitwiseLong.java +++ b/drools-core/src/main/java/org/drools/core/util/AtomicBitwiseLong.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util; import java.util.concurrent.atomic.AtomicLong; diff --git a/drools-core/src/main/java/org/drools/core/util/Bag.java b/drools-core/src/main/java/org/drools/core/util/Bag.java index c92de9145de..2c4928c1348 100644 --- a/drools-core/src/main/java/org/drools/core/util/Bag.java +++ b/drools-core/src/main/java/org/drools/core/util/Bag.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/util/BinaryHeapQueue.java b/drools-core/src/main/java/org/drools/core/util/BinaryHeapQueue.java index e6a5a5372de..e14f513aab1 100644 --- a/drools-core/src/main/java/org/drools/core/util/BinaryHeapQueue.java +++ b/drools-core/src/main/java/org/drools/core/util/BinaryHeapQueue.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/util/CompositeIterator.java b/drools-core/src/main/java/org/drools/core/util/CompositeIterator.java index 90df80cfdc6..378b230bf61 100644 --- a/drools-core/src/main/java/org/drools/core/util/CompositeIterator.java +++ b/drools-core/src/main/java/org/drools/core/util/CompositeIterator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.util.NoSuchElementException; diff --git a/drools-core/src/main/java/org/drools/core/util/ConfFileUtils.java b/drools-core/src/main/java/org/drools/core/util/ConfFileUtils.java index 2702bf332ec..de20098a45d 100644 --- a/drools-core/src/main/java/org/drools/core/util/ConfFileUtils.java +++ b/drools-core/src/main/java/org/drools/core/util/ConfFileUtils.java @@ -1,24 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.io.BufferedReader; import java.io.File; import java.io.IOException; +import java.io.InputStream; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; @@ -148,8 +151,8 @@ public static Properties getProperties(URL url) { } Properties properties = new Properties(); - try { - properties.load( url.openStream() ); + try (final InputStream inputStream = url.openStream()) { + properties.load( inputStream ); } catch ( IOException e ) { //swallow, as we'll return null return null; diff --git a/drools-core/src/main/java/org/drools/core/util/Entry.java b/drools-core/src/main/java/org/drools/core/util/Entry.java index 44f74307785..ade9e4a1c87 100644 --- a/drools-core/src/main/java/org/drools/core/util/Entry.java +++ b/drools-core/src/main/java/org/drools/core/util/Entry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; diff --git a/drools-core/src/main/java/org/drools/core/util/FactEntry.java b/drools-core/src/main/java/org/drools/core/util/FactEntry.java index f09b1d2ce06..189189260ec 100644 --- a/drools-core/src/main/java/org/drools/core/util/FactEntry.java +++ b/drools-core/src/main/java/org/drools/core/util/FactEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import org.drools.core.common.InternalFactHandle; diff --git a/drools-core/src/main/java/org/drools/core/util/FastIterator.java b/drools-core/src/main/java/org/drools/core/util/FastIterator.java index 1320977b05d..826b8605261 100644 --- a/drools-core/src/main/java/org/drools/core/util/FastIterator.java +++ b/drools-core/src/main/java/org/drools/core/util/FastIterator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util; public interface FastIterator { diff --git a/drools-core/src/main/java/org/drools/core/util/HashTableIterator.java b/drools-core/src/main/java/org/drools/core/util/HashTableIterator.java index 16b2a560c4f..d8e65bb7c9f 100644 --- a/drools-core/src/main/java/org/drools/core/util/HashTableIterator.java +++ b/drools-core/src/main/java/org/drools/core/util/HashTableIterator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/util/Iterator.java b/drools-core/src/main/java/org/drools/core/util/Iterator.java index 506983ccde6..6ca24347c1c 100644 --- a/drools-core/src/main/java/org/drools/core/util/Iterator.java +++ b/drools-core/src/main/java/org/drools/core/util/Iterator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/util/KeyStoreConstants.java b/drools-core/src/main/java/org/drools/core/util/KeyStoreConstants.java index e9eff2f9e20..030321afa76 100644 --- a/drools-core/src/main/java/org/drools/core/util/KeyStoreConstants.java +++ b/drools-core/src/main/java/org/drools/core/util/KeyStoreConstants.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; public class KeyStoreConstants { diff --git a/drools-core/src/main/java/org/drools/core/util/KeyStoreHelper.java b/drools-core/src/main/java/org/drools/core/util/KeyStoreHelper.java index 134d2eec9b2..3029709beb3 100755 --- a/drools-core/src/main/java/org/drools/core/util/KeyStoreHelper.java +++ b/drools-core/src/main/java/org/drools/core/util/KeyStoreHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util; import java.io.IOException; diff --git a/drools-core/src/main/java/org/drools/core/util/KieFunctions.java b/drools-core/src/main/java/org/drools/core/util/KieFunctions.java index 3f2def6ff4b..cabfe47c327 100644 --- a/drools-core/src/main/java/org/drools/core/util/KieFunctions.java +++ b/drools-core/src/main/java/org/drools/core/util/KieFunctions.java @@ -1,19 +1,21 @@ /** - * Copyright 2012 Red Hat, Inc. and/or its affiliates. + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.math.BigDecimal; diff --git a/drools-core/src/main/java/org/drools/core/util/LinkedList.java b/drools-core/src/main/java/org/drools/core/util/LinkedList.java index c78fb30ca8f..22b7e0b1abc 100644 --- a/drools-core/src/main/java/org/drools/core/util/LinkedList.java +++ b/drools-core/src/main/java/org/drools/core/util/LinkedList.java @@ -1,21 +1,26 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.util; +import org.drools.core.reteoo.AbstractTuple; +import org.drools.core.reteoo.RightTuple; +import org.drools.core.reteoo.RightTupleImpl; import org.drools.core.reteoo.Tuple; import java.io.Externalizable; @@ -52,7 +57,7 @@ public class LinkedList> private int size; - public static final FastIterator fastIterator = new LinkedListFastIterator(); // contains no state, so ok to be static + public static final FastIterator fastIterator = new LinkedListFastIterator(); // contains no state, so ok to be static /** * Construct an empty LinkedList @@ -352,9 +357,11 @@ public FastIterator iterator() { public FastIterator fastIterator() { return fastIterator; } - - public static class LinkedListFastIterator> implements FastIterator { - public K next(K object) { + + // All the tuples except for TMS are AbstractTuple + public static class LinkedListFastIterator implements FastIterator { + + public AbstractTuple next(AbstractTuple object) { return object.getNext(); } @@ -363,6 +370,17 @@ public boolean isFullIterator() { } } + // Special case of iterator that uses K extends Entry to support TMS custom objects + public static class TMSLinkedListFastIterator> implements FastIterator { + public K next(K object) { + return object.getNext(); + } + + public boolean isFullIterator() { + return false; + } + } + public java.util.Iterator javaUtilIterator() { return new JavaUtilIterator<>( this ); } diff --git a/drools-core/src/main/java/org/drools/core/util/LinkedListEntry.java b/drools-core/src/main/java/org/drools/core/util/LinkedListEntry.java index 99aae68b410..9752543fb20 100644 --- a/drools-core/src/main/java/org/drools/core/util/LinkedListEntry.java +++ b/drools-core/src/main/java/org/drools/core/util/LinkedListEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.util; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/util/LinkedListNode.java b/drools-core/src/main/java/org/drools/core/util/LinkedListNode.java index 0987f0c0fa5..00b369bbd5f 100644 --- a/drools-core/src/main/java/org/drools/core/util/LinkedListNode.java +++ b/drools-core/src/main/java/org/drools/core/util/LinkedListNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.util; /** diff --git a/drools-core/src/main/java/org/drools/core/util/MemoryUtil.java b/drools-core/src/main/java/org/drools/core/util/MemoryUtil.java index c4f855e77f9..1fcf9fc02e0 100644 --- a/drools-core/src/main/java/org/drools/core/util/MemoryUtil.java +++ b/drools-core/src/main/java/org/drools/core/util/MemoryUtil.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util; import java.lang.management.ManagementFactory; diff --git a/drools-core/src/main/java/org/drools/core/util/MessageUtils.java b/drools-core/src/main/java/org/drools/core/util/MessageUtils.java index c1375ee2219..50ddc32ef9d 100644 --- a/drools-core/src/main/java/org/drools/core/util/MessageUtils.java +++ b/drools-core/src/main/java/org/drools/core/util/MessageUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.util.List; diff --git a/drools-core/src/main/java/org/drools/core/util/Queue.java b/drools-core/src/main/java/org/drools/core/util/Queue.java index 56ac75e5bb5..3823ee8ed63 100644 --- a/drools-core/src/main/java/org/drools/core/util/Queue.java +++ b/drools-core/src/main/java/org/drools/core/util/Queue.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.util.Collection; diff --git a/drools-core/src/main/java/org/drools/core/util/QueueFactory.java b/drools-core/src/main/java/org/drools/core/util/QueueFactory.java index 181d5f87328..25bacf1235b 100644 --- a/drools-core/src/main/java/org/drools/core/util/QueueFactory.java +++ b/drools-core/src/main/java/org/drools/core/util/QueueFactory.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.core.util; diff --git a/drools-core/src/main/java/org/drools/core/util/ScalablePool.java b/drools-core/src/main/java/org/drools/core/util/ScalablePool.java index 37ac1a6b535..eac69bbc2e4 100644 --- a/drools-core/src/main/java/org/drools/core/util/ScalablePool.java +++ b/drools-core/src/main/java/org/drools/core/util/ScalablePool.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.util.ArrayList; diff --git a/drools-core/src/main/java/org/drools/core/util/TreeSetQueue.java b/drools-core/src/main/java/org/drools/core/util/TreeSetQueue.java index 1a164dee7fb..23c1473f22b 100644 --- a/drools-core/src/main/java/org/drools/core/util/TreeSetQueue.java +++ b/drools-core/src/main/java/org/drools/core/util/TreeSetQueue.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.io.Externalizable; diff --git a/drools-core/src/main/java/org/drools/core/util/TupleRBTree.java b/drools-core/src/main/java/org/drools/core/util/TupleRBTree.java index 0bc9d0e8aa8..01a60af266a 100644 --- a/drools-core/src/main/java/org/drools/core/util/TupleRBTree.java +++ b/drools-core/src/main/java/org/drools/core/util/TupleRBTree.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.util; import org.drools.core.reteoo.Tuple; diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/AllSetMask.java b/drools-core/src/main/java/org/drools/core/util/bitmask/AllSetMask.java deleted file mode 100644 index aa0236e18b9..00000000000 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/AllSetMask.java +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.core.util.bitmask; - -public interface AllSetMask { -} diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/EmptyMask.java b/drools-core/src/main/java/org/drools/core/util/bitmask/EmptyMask.java deleted file mode 100644 index b79280a0e6e..00000000000 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/EmptyMask.java +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.core.util.bitmask; - -public interface EmptyMask { -} diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/SingleLongBitMask.java b/drools-core/src/main/java/org/drools/core/util/bitmask/SingleLongBitMask.java deleted file mode 100644 index 4b18a5dc8e8..00000000000 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/SingleLongBitMask.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.core.util.bitmask; - -public abstract class SingleLongBitMask implements BitMask { - - public abstract long asLong(); - - public abstract SingleLongBitMask clone(); - - @Override - public final boolean equals(Object o) { - if (this == o) return true; - return o instanceof SingleLongBitMask && asLong() == ((SingleLongBitMask) o).asLong(); - } - - @Override - public final int hashCode() { - return (int) (asLong() ^ (asLong() >>> 32)); - } - - @Override - public final String toString() { - return "" + asLong(); - } -} diff --git a/drools-core/src/main/java/org/drools/core/util/index/AbstractTupleIndexTree.java b/drools-core/src/main/java/org/drools/core/util/index/AbstractTupleIndexTree.java index d2cdfac6961..fa5ce96e3a2 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/AbstractTupleIndexTree.java +++ b/drools-core/src/main/java/org/drools/core/util/index/AbstractTupleIndexTree.java @@ -1,12 +1,31 @@ +/** + * 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. + */ package org.drools.core.util.index; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.AbstractHashTable; +import org.drools.base.util.FieldIndex; public abstract class AbstractTupleIndexTree { - protected AbstractHashTable.FieldIndex index; + protected FieldIndex index; - protected IndexUtil.ConstraintType constraintType; + protected ConstraintTypeOperator constraintType; protected int factSize; diff --git a/drools-core/src/main/java/org/drools/core/util/index/AlphaRangeIndex.java b/drools-core/src/main/java/org/drools/core/util/index/AlphaRangeIndex.java index af6b8d007d4..ba200dd171e 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/AlphaRangeIndex.java +++ b/drools-core/src/main/java/org/drools/core/util/index/AlphaRangeIndex.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 +/** + * 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 * - * 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. + * 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. */ - package org.drools.core.util.index; import java.io.Externalizable; @@ -23,12 +25,12 @@ import java.util.Collection; import java.util.Collections; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.CompositeObjectSinkAdapter; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.util.index.IndexUtil.ConstraintType; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.accessor.FieldValue; import org.drools.core.util.index.RangeIndex.IndexType; /** @@ -128,7 +130,7 @@ private Comparable extractKey(IndexableConstraint constraint) { } private IndexType extractIndexType(IndexableConstraint constraint) { - ConstraintType constraintType = constraint.getConstraintType(); + ConstraintTypeOperator constraintType = constraint.getConstraintType(); switch (constraintType) { case LESS_THAN: return IndexType.LT; diff --git a/drools-core/src/main/java/org/drools/core/util/index/IndexFactory.java b/drools-core/src/main/java/org/drools/core/util/index/IndexFactory.java index 280f661839f..c9866b28a4b 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/IndexFactory.java +++ b/drools-core/src/main/java/org/drools/core/util/index/IndexFactory.java @@ -1,18 +1,34 @@ +/** + * 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. + */ package org.drools.core.util.index; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.core.RuleBaseConfiguration; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.TupleMemory; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; - -import static org.drools.core.util.index.IndexUtil.isBigDecimalEqualityConstraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; public interface IndexFactory { static BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType, BetaNodeFieldConstraint... constraints) { - if (config.getCompositeKeyDepth() < 1 || containsBigDecimalEqualityConstraint(constraints)) { + if (config.getCompositeKeyDepth() < 1) { return new BetaMemory( config.isSequential() ? null : new TupleList(), new TupleList(), createContext(constraints), @@ -26,21 +42,12 @@ static BetaMemory createBetaMemory(RuleBaseConfiguration config, short nodeType, nodeType ); } - private static boolean containsBigDecimalEqualityConstraint(BetaNodeFieldConstraint[] constraints) { - for (BetaNodeFieldConstraint constraint : constraints) { - if (constraint instanceof IndexableConstraint && isBigDecimalEqualityConstraint((IndexableConstraint) constraint)) { - return true; - } - } - return false; - } - - private static TupleMemory createRightMemory(RuleBaseConfiguration config, IndexSpec indexSpec) { - if ( !config.isIndexRightBetaMemory() || !indexSpec.getConstraintType().isIndexable() ) { + private static TupleMemory createRightMemory(RuleBaseConfiguration config, IndexSpec indexSpec) { + if ( !config.isIndexRightBetaMemory() || !indexSpec.getConstraintType().isIndexable() || indexSpec.getIndexes().length == 0 ) { return new TupleList(); } - if (indexSpec.getConstraintType() == IndexUtil.ConstraintType.EQUAL) { + if (indexSpec.getConstraintType() == ConstraintTypeOperator.EQUAL) { return IndexMemory.createEqualityMemory(indexSpec, false); } @@ -55,11 +62,11 @@ private static TupleMemory createLeftMemory(RuleBaseConfiguration config, IndexS if (config.isSequential()) { return null; } - if ( !config.isIndexLeftBetaMemory() || !indexSpec.getConstraintType().isIndexable() ) { + if ( !config.isIndexLeftBetaMemory() || !indexSpec.getConstraintType().isIndexable() || indexSpec.getIndexes().length == 0 ) { return new TupleList(); } - if (indexSpec.getConstraintType() == IndexUtil.ConstraintType.EQUAL) { + if (indexSpec.getConstraintType() == ConstraintTypeOperator.EQUAL) { return IndexMemory.createEqualityMemory(indexSpec, true); } diff --git a/drools-core/src/main/java/org/drools/core/util/index/IndexMemory.java b/drools-core/src/main/java/org/drools/core/util/index/IndexMemory.java index d2cfea535b8..2844c870718 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/IndexMemory.java +++ b/drools-core/src/main/java/org/drools/core/util/index/IndexMemory.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.core.util.index; import java.lang.reflect.InvocationTargetException; diff --git a/drools-core/src/main/java/org/drools/core/util/index/IndexSpec.java b/drools-core/src/main/java/org/drools/core/util/index/IndexSpec.java index dab49f51dbd..23e965d5c26 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/IndexSpec.java +++ b/drools-core/src/main/java/org/drools/core/util/index/IndexSpec.java @@ -1,31 +1,52 @@ +/** + * 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. + */ package org.drools.core.util.index; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.util.FieldIndex; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.drools.core.RuleBaseConfiguration; +import org.kie.internal.conf.IndexPrecedenceOption; + import java.util.ArrayList; import java.util.List; -import org.drools.core.RuleBaseConfiguration; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.util.AbstractHashTable; -import org.kie.internal.conf.IndexPrecedenceOption; +import static org.drools.base.util.index.IndexUtil.isEqualIndexable; public class IndexSpec { - private IndexUtil.ConstraintType constraintType = IndexUtil.ConstraintType.UNKNOWN; - private AbstractHashTable.FieldIndex[] indexes; + private ConstraintTypeOperator constraintType = ConstraintTypeOperator.UNKNOWN; + private FieldIndex[] indexes; IndexSpec(short nodeType, BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration config) { init(nodeType, constraints, config); } - public IndexUtil.ConstraintType getConstraintType() { + public ConstraintTypeOperator getConstraintType() { return constraintType; } - public AbstractHashTable.FieldIndex[] getIndexes() { + public FieldIndex[] getIndexes() { return indexes; } - public AbstractHashTable.FieldIndex getIndex(int pos) { + public FieldIndex getIndex(int pos) { return indexes[pos]; } @@ -36,21 +57,23 @@ private void init(short nodeType, BetaNodeFieldConstraint[] constraints, RuleBas determineTypeWithEqualityPriority(nodeType, constraints, config) : determineTypeWithPatternOrder(nodeType, constraints, config); - if (constraintType == IndexUtil.ConstraintType.EQUAL) { - List indexList = new ArrayList<>(); - indexList.add(((IndexableConstraint)constraints[firstIndexableConstraint]).getFieldIndex()); + if (constraintType == ConstraintTypeOperator.EQUAL) { + List indexList = new ArrayList<>(); + if (isEqualIndexable(constraints[firstIndexableConstraint])) { + indexList.add(((IndexableConstraint) constraints[firstIndexableConstraint]).getFieldIndex()); + } // look for other EQUAL constraint to eventually add them to the index for (int i = firstIndexableConstraint+1; i < constraints.length && indexList.size() < keyDepth; i++) { - if ( IndexUtil.ConstraintType.getType(constraints[i]) == IndexUtil.ConstraintType.EQUAL && ! ((IndexableConstraint) constraints[i]).isUnification() ) { + if ( isEqualIndexable(constraints[i]) && ! ((IndexableConstraint) constraints[i]).isUnification() ) { indexList.add(((IndexableConstraint)constraints[i]).getFieldIndex()); } } - indexes = indexList.toArray(new AbstractHashTable.FieldIndex[indexList.size()]); + indexes = indexList.toArray(new FieldIndex[indexList.size()]); } else if (constraintType.isComparison()) { // look for a dual constraint to create a range index - indexes = new AbstractHashTable.FieldIndex[]{ ((IndexableConstraint)constraints[firstIndexableConstraint]).getFieldIndex() }; + indexes = new FieldIndex[]{((IndexableConstraint)constraints[firstIndexableConstraint]).getFieldIndex() }; } } @@ -59,11 +82,11 @@ private int determineTypeWithEqualityPriority(short nodeType, BetaNodeFieldConst for (int i = 0; i < constraints.length; i++) { if (constraints[i] instanceof IndexableConstraint) { IndexableConstraint indexableConstraint = (IndexableConstraint) constraints[i]; - IndexUtil.ConstraintType type = indexableConstraint.getConstraintType(); - if (type == IndexUtil.ConstraintType.EQUAL) { + ConstraintTypeOperator type = indexableConstraint.getConstraintType(); + if (type == ConstraintTypeOperator.EQUAL) { constraintType = type; return i; - } else if (constraintType == IndexUtil.ConstraintType.UNKNOWN && type.isIndexableForNode(nodeType, indexableConstraint, config)) { + } else if (constraintType == ConstraintTypeOperator.UNKNOWN && type.isIndexableForNode(nodeType, indexableConstraint, config)) { constraintType = type; indexedConstraintPos = i; } @@ -74,7 +97,7 @@ private int determineTypeWithEqualityPriority(short nodeType, BetaNodeFieldConst private int determineTypeWithPatternOrder(short nodeType, BetaNodeFieldConstraint[] constraints, RuleBaseConfiguration config) { for (int i = 0; i < constraints.length; i++) { - IndexUtil.ConstraintType type = IndexUtil.ConstraintType.getType(constraints[i]); + ConstraintTypeOperator type = ConstraintTypeOperator.getType(constraints[i]); if ( type.isIndexableForNode(nodeType, (IndexableConstraint) constraints[i], config) ) { constraintType = type; return i; diff --git a/drools-core/src/main/java/org/drools/core/util/index/RangeIndex.java b/drools-core/src/main/java/org/drools/core/util/index/RangeIndex.java index fa93a988de3..a5af9b8eb76 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/RangeIndex.java +++ b/drools-core/src/main/java/org/drools/core/util/index/RangeIndex.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.util.index; import java.io.Serializable; diff --git a/drools-core/src/main/java/org/drools/core/util/index/TupleIndexHashTable.java b/drools-core/src/main/java/org/drools/core/util/index/TupleIndexHashTable.java index 7bb7c5a4df0..5f82e9adaa6 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/TupleIndexHashTable.java +++ b/drools-core/src/main/java/org/drools/core/util/index/TupleIndexHashTable.java @@ -1,32 +1,37 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.util.index; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; - -import org.drools.core.reteoo.TupleMemory; +import org.drools.base.util.FieldIndex; +import org.drools.core.reteoo.AbstractTuple; +import org.drools.core.reteoo.RightTupleImpl; import org.drools.core.reteoo.Tuple; +import org.drools.core.reteoo.TupleMemory; import org.drools.core.util.AbstractHashTable; import org.drools.core.util.FastIterator; import org.drools.core.util.Iterator; import org.drools.core.util.LinkedList; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + public class TupleIndexHashTable extends AbstractHashTable implements TupleMemory { private static final long serialVersionUID = 510l; @@ -49,7 +54,7 @@ public TupleIndexHashTable() { // constructor for serialisation } - public TupleIndexHashTable( FieldIndex[] index, boolean left ) { + public TupleIndexHashTable(FieldIndex[] index, boolean left) { this( 128, 0.75f, index, left ); } @@ -119,11 +124,11 @@ public Iterator iterator() { return this.tupleValueFullIterator; } - public FastIterator fastIterator() { + public FastIterator fastIterator() { return LinkedList.fastIterator; } - public FastIterator fullFastIterator() { + public FastIterator fullFastIterator() { if ( fullFastIterator == null ) { fullFastIterator = new FullFastIterator( this.table ); } else { @@ -132,12 +137,13 @@ public FastIterator fullFastIterator() { return fullFastIterator; } - public FastIterator fullFastIterator(Tuple tuple) { + + public FastIterator fullFastIterator(AbstractTuple tuple) { fullFastIterator.resume(tuple.getMemory(), this.table); return fullFastIterator; } - public static class FullFastIterator implements FastIterator { + public static class FullFastIterator implements FastIterator { private TupleList[] table; private int row; @@ -153,7 +159,7 @@ public void resume(TupleList target, TupleList[] table) { row++; // row always points to the row after the current list } - public Tuple next(Tuple tuple) { + public AbstractTuple next(AbstractTuple tuple) { TupleList list = null; if ( tuple != null ) { list = tuple.getMemory(); // assumes you do not pass in a null RightTuple @@ -175,7 +181,7 @@ public Tuple next(Tuple tuple) { if ( list != null ) { // we have a bucket so assign the frist LeftTuple and return - tuple = list.getFirst( ); + tuple = (AbstractTuple) list.getFirst( ); return tuple; } } @@ -189,7 +195,7 @@ public Tuple next(Tuple tuple) { // try the next bucket if we have a shared array position if ( list != null ) { // if we have another bucket, assign the first LeftTuple and return - tuple = list.getFirst( ); + tuple = (AbstractTuple) list.getFirst( ); return tuple; } } @@ -313,10 +319,16 @@ public Tuple[] toArray() { } public void removeAdd(Tuple tuple) { + HashEntry hashEntry; + try { + hashEntry = this.index.hashCodeOf( tuple, left ); + } catch (UnsupportedOperationException e) { + return; + } + TupleList memory = tuple.getMemory(); memory.remove( tuple ); - HashEntry hashEntry = this.index.hashCodeOf( tuple, left ); if ( hashEntry.hashCode() == memory.hashCode() ) { // it's the same bucket, so re-use and return memory.add( tuple ); @@ -329,7 +341,7 @@ public void removeAdd(Tuple tuple) { final int index = indexOf( memory.hashCode(), this.table.length ); TupleList previous = null; - TupleList current = (TupleList) this.table[index]; + TupleList current = this.table[index]; while ( current != memory ) { previous = current; current = current.getNext(); @@ -347,9 +359,11 @@ public void removeAdd(Tuple tuple) { } public void add(final Tuple tuple) { - final TupleList entry = getOrCreate( tuple ); - entry.add( tuple ); - this.factSize++; + TupleList entry = getOrCreate( tuple ); + if (entry != null) { + entry.add(tuple); + this.factSize++; + } } public void remove(final Tuple tuple) { @@ -360,7 +374,7 @@ public void remove(final Tuple tuple) { final int index = indexOf( memory.hashCode(), this.table.length ); TupleList previous = null; - TupleList current = (TupleList) this.table[index]; + TupleList current = this.table[index]; while ( current != memory ) { previous = current; current = current.getNext(); @@ -381,7 +395,12 @@ public void remove(final Tuple tuple) { * a get and then a create if the value is null. */ private TupleList getOrCreate(final Tuple tuple) { - HashEntry hashEntry = this.index.hashCodeOf( tuple, left ); + HashEntry hashEntry; + try { + hashEntry = this.index.hashCodeOf(tuple, left); + } catch (UnsupportedOperationException e) { + return null; + } int index = indexOf( hashEntry.hashCode(), this.table.length ); TupleList entry = this.table[index]; @@ -406,7 +425,12 @@ private TupleList getOrCreate(final Tuple tuple) { } private TupleList get(final Tuple tuple, boolean isLeftTuple) { - HashEntry hashEntry = this.index.hashCodeOf( tuple, isLeftTuple ); + HashEntry hashEntry; + try { + hashEntry = this.index.hashCodeOf(tuple, isLeftTuple); + } catch (UnsupportedOperationException e) { + return null; + } int index = indexOf( hashEntry.hashCode(), this.table.length ); TupleList entry = this.table[index]; diff --git a/drools-core/src/main/java/org/drools/core/util/index/TupleIndexRBTree.java b/drools-core/src/main/java/org/drools/core/util/index/TupleIndexRBTree.java index b9b31c77659..18ce1f4a874 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/TupleIndexRBTree.java +++ b/drools-core/src/main/java/org/drools/core/util/index/TupleIndexRBTree.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.util.index; import java.io.Externalizable; @@ -23,16 +25,17 @@ import java.util.ArrayList; import java.util.List; -import org.drools.core.base.CoercionUtil; -import org.drools.core.reteoo.TupleMemory; +import org.drools.base.util.FieldIndex; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.drools.core.reteoo.AbstractTuple; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.AbstractHashTable; -import org.drools.core.util.AbstractHashTable.FieldIndex; +import org.drools.core.reteoo.TupleMemory; import org.drools.core.util.FastIterator; import org.drools.core.util.Iterator; import org.drools.core.util.TupleRBTree; import org.drools.core.util.TupleRBTree.Boundary; import org.drools.core.util.TupleRBTree.Node; +import org.drools.util.CoercionUtil; public class TupleIndexRBTree extends AbstractTupleIndexTree implements Externalizable, TupleMemory { @@ -42,7 +45,7 @@ public TupleIndexRBTree() { // constructor for serialisation } - public TupleIndexRBTree( IndexUtil.ConstraintType constraintType, AbstractHashTable.FieldIndex index, boolean left ) { + public TupleIndexRBTree(ConstraintTypeOperator constraintType, FieldIndex index, boolean left) { this.index = index; this.constraintType = constraintType; this.left = left; @@ -59,8 +62,8 @@ public void writeExternal(ObjectOutput out) throws IOException { public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { tree = (TupleRBTree>) in.readObject(); - index = (AbstractHashTable.FieldIndex) in.readObject(); - constraintType = (IndexUtil.ConstraintType) in.readObject(); + index = (FieldIndex) in.readObject(); + constraintType = (ConstraintTypeOperator) in.readObject(); factSize = in.readInt(); left = in.readBoolean(); } @@ -122,15 +125,15 @@ public Iterator iterator() { return new FastIterator.IteratorAdapter(fastIterator(), firstTuple); } - public FastIterator fastIterator() { + public FastIterator fastIterator() { return new TupleFastIterator(); } - public FastIterator fullFastIterator() { + public FastIterator fullFastIterator() { return new TupleFastIterator(); } - public FastIterator fullFastIterator(Tuple leftTuple) { + public FastIterator fullFastIterator(AbstractTuple leftTuple) { FastIterator fastIterator = fullFastIterator(); Comparable key = getLeftIndexedValue(leftTuple); fastIterator.next(getNext(key, true)); @@ -200,18 +203,18 @@ public static Comparable coerceType(FieldIndex index, Comparable treeRootKey, Co return key; } - public class TupleFastIterator implements FastIterator { - public Tuple next(Tuple tuple) { + public class TupleFastIterator implements FastIterator { + public AbstractTuple next(AbstractTuple tuple) { if (tuple == null) { Node> firstNode = tree.first(); - return firstNode == null ? null : firstNode.getFirst(); + return firstNode == null ? null : (AbstractTuple) firstNode.getFirst(); } - Tuple next = tuple.getNext(); + AbstractTuple next = tuple.getNext(); if (next != null) { return next; } Comparable key = getLeftIndexedValue(tuple); - return getNext(key, false); + return (AbstractTuple) getNext(key, false); } public boolean isFullIterator() { diff --git a/drools-core/src/main/java/org/drools/core/util/index/TupleList.java b/drools-core/src/main/java/org/drools/core/util/index/TupleList.java index 7e8adb94ce2..c4230560f62 100644 --- a/drools-core/src/main/java/org/drools/core/util/index/TupleList.java +++ b/drools-core/src/main/java/org/drools/core/util/index/TupleList.java @@ -1,24 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.util.index; import java.io.Serializable; import org.drools.core.common.InternalFactHandle; +import org.drools.core.reteoo.AbstractTuple; +import org.drools.core.reteoo.RightTupleImpl; import org.drools.core.reteoo.TupleMemory; import org.drools.core.reteoo.Tuple; import org.drools.core.util.Entry; @@ -85,8 +89,8 @@ public void removeAdd(Tuple tuple) { return; } - Tuple previous = tuple.getPrevious(); - Tuple next = tuple.getNext(); + AbstractTuple previous = (AbstractTuple) tuple.getPrevious(); + AbstractTuple next = (AbstractTuple) tuple.getNext(); if (previous == null) { next.setPrevious( null ); this.first = next; @@ -95,7 +99,7 @@ public void removeAdd(Tuple tuple) { next.setPrevious( previous ); } - this.last.setNext( tuple ); + this.last.setNext((AbstractTuple) tuple); tuple.setPrevious( this.last ); tuple.setNext( null ); this.last = tuple; @@ -103,7 +107,7 @@ public void removeAdd(Tuple tuple) { public void add(final Tuple tuple) { if ( this.last != null ) { - this.last.setNext( tuple ); + this.last.setNext( (AbstractTuple) tuple ); tuple.setPrevious( this.last ); this.last = tuple; } else { @@ -117,7 +121,7 @@ public void add(final Tuple tuple) { public void remove(final Tuple tuple) { Tuple previous = tuple.getPrevious(); - Tuple next = tuple.getNext(); + AbstractTuple next = tuple.getNext(); if ( previous != null && next != null ) { // remove from middle @@ -199,16 +203,15 @@ public IndexType getIndexType() { return TupleMemory.IndexType.NONE; } - public FastIterator fastIterator() { + public FastIterator fastIterator() { return LinkedList.fastIterator; // contains no state, so ok to be static } - public FastIterator fullFastIterator() { + public FastIterator fullFastIterator() { return LinkedList.fastIterator; // contains no state, so ok to be static } - - public FastIterator fullFastIterator(Tuple tuple) { + public FastIterator fullFastIterator(AbstractTuple tuple) { return LinkedList.fastIterator; // contains no state, so ok to be static } diff --git a/drools-core/src/main/spotbugs/spotbugs-exclude.xml b/drools-core/src/main/spotbugs/spotbugs-exclude.xml index 625b487d08c..0533b50fd28 100644 --- a/drools-core/src/main/spotbugs/spotbugs-exclude.xml +++ b/drools-core/src/main/spotbugs/spotbugs-exclude.xml @@ -1,4 +1,24 @@ + diff --git a/drools-core/src/test/java/org/drools/core/base/ClassTypeResolverTest.java b/drools-core/src/test/java/org/drools/core/base/ClassTypeResolverTest.java index fe836f68dae..742da0e3bb8 100644 --- a/drools-core/src/test/java/org/drools/core/base/ClassTypeResolverTest.java +++ b/drools-core/src/test/java/org/drools/core/base/ClassTypeResolverTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import java.util.HashSet; diff --git a/drools-core/src/test/java/org/drools/core/base/ConcreteChild.java b/drools-core/src/test/java/org/drools/core/base/ConcreteChild.java index 0addfd27d17..c02ee53b6b6 100644 --- a/drools-core/src/test/java/org/drools/core/base/ConcreteChild.java +++ b/drools-core/src/test/java/org/drools/core/base/ConcreteChild.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import org.drools.core.util.asm.InterfaceChild; diff --git a/drools-core/src/test/java/org/drools/core/base/SimulateMacOSXClassLoader.java b/drools-core/src/test/java/org/drools/core/base/SimulateMacOSXClassLoader.java index 53e59adcfb5..9f8a232360f 100644 --- a/drools-core/src/test/java/org/drools/core/base/SimulateMacOSXClassLoader.java +++ b/drools-core/src/test/java/org/drools/core/base/SimulateMacOSXClassLoader.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import java.util.Collections; diff --git a/drools-core/src/test/java/org/drools/core/base/TestBean.java b/drools-core/src/test/java/org/drools/core/base/TestBean.java index 3e244be5b45..dc9eaf275d8 100644 --- a/drools-core/src/test/java/org/drools/core/base/TestBean.java +++ b/drools-core/src/test/java/org/drools/core/base/TestBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; import java.util.Collections; diff --git a/drools-core/src/test/java/org/drools/core/base/ValueTypeTest.java b/drools-core/src/test/java/org/drools/core/base/ValueTypeTest.java index 44ead0980de..f40d67e35b8 100755 --- a/drools-core/src/test/java/org/drools/core/base/ValueTypeTest.java +++ b/drools-core/src/test/java/org/drools/core/base/ValueTypeTest.java @@ -1,21 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base; +import org.drools.base.base.ValueType; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-core/src/test/java/org/drools/core/base/accumulators/VarianceNaNTest.java b/drools-core/src/test/java/org/drools/core/base/accumulators/VarianceNaNTest.java index 8586d488cdd..324a7353a32 100644 --- a/drools-core/src/test/java/org/drools/core/base/accumulators/VarianceNaNTest.java +++ b/drools-core/src/test/java/org/drools/core/base/accumulators/VarianceNaNTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.core.base.accumulators; import org.drools.core.base.accumulators.VarianceAccumulateFunction.VarianceData; diff --git a/drools-core/src/test/java/org/drools/core/base/evaluators/TimeIntervalParserTest.java b/drools-core/src/test/java/org/drools/core/base/evaluators/TimeIntervalParserTest.java index 65162e1f8bb..c4a79c1d8ff 100644 --- a/drools-core/src/test/java/org/drools/core/base/evaluators/TimeIntervalParserTest.java +++ b/drools-core/src/test/java/org/drools/core/base/evaluators/TimeIntervalParserTest.java @@ -1,22 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.base.evaluators; -import org.drools.core.util.TimeIntervalParser; +import org.drools.base.util.TimeIntervalParser; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-core/src/test/java/org/drools/core/common/ClassAwareObjectStoreTest.java b/drools-core/src/test/java/org/drools/core/common/ClassAwareObjectStoreTest.java index c1685251e93..16fa5b0cfc1 100644 --- a/drools-core/src/test/java/org/drools/core/common/ClassAwareObjectStoreTest.java +++ b/drools-core/src/test/java/org/drools/core/common/ClassAwareObjectStoreTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.core.common; import java.math.BigDecimal; diff --git a/drools-core/src/test/java/org/drools/core/common/DroolsObjectIOTest.java b/drools-core/src/test/java/org/drools/core/common/DroolsObjectIOTest.java index 7ca21e48910..c156e0623d6 100644 --- a/drools-core/src/test/java/org/drools/core/common/DroolsObjectIOTest.java +++ b/drools-core/src/test/java/org/drools/core/common/DroolsObjectIOTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.common; import java.io.ByteArrayInputStream; @@ -30,10 +32,12 @@ import java.io.ObjectOutputStream; import java.io.Serializable; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.GroupElement; +import org.drools.base.rule.GroupElement; import org.drools.core.util.DroolsStreamUtils; import org.junit.Test; diff --git a/drools-core/src/test/java/org/drools/core/facttemplates/FactTemplateFieldExtractorTest.java b/drools-core/src/test/java/org/drools/core/facttemplates/FactTemplateFieldExtractorTest.java index 7ce77679fa6..1d49e2e239e 100644 --- a/drools-core/src/test/java/org/drools/core/facttemplates/FactTemplateFieldExtractorTest.java +++ b/drools-core/src/test/java/org/drools/core/facttemplates/FactTemplateFieldExtractorTest.java @@ -1,26 +1,35 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.facttemplates; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.facttemplates.Fact; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.facttemplates.FactTemplateFieldExtractor; +import org.drools.base.facttemplates.FactTemplateImpl; +import org.drools.base.facttemplates.FactTemplateObjectType; +import org.drools.base.facttemplates.FieldTemplate; +import org.drools.base.facttemplates.FieldTemplateImpl; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.ReadAccessor; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-core/src/test/java/org/drools/core/facttemplates/FactTemplateTest.java b/drools-core/src/test/java/org/drools/core/facttemplates/FactTemplateTest.java index 39e98e4b5cf..a2335299f74 100644 --- a/drools-core/src/test/java/org/drools/core/facttemplates/FactTemplateTest.java +++ b/drools-core/src/test/java/org/drools/core/facttemplates/FactTemplateTest.java @@ -1,22 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.facttemplates; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.facttemplates.Fact; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.facttemplates.FactTemplateImpl; +import org.drools.base.facttemplates.FieldTemplate; +import org.drools.base.facttemplates.FieldTemplateImpl; import org.drools.core.reteoo.CoreComponentFactory; import org.junit.Test; diff --git a/drools-core/src/test/java/org/drools/core/impl/KnowledgeBaseImplTest.java b/drools-core/src/test/java/org/drools/core/impl/KnowledgeBaseImplTest.java index 6fcc5ac68c9..da961ccf59a 100644 --- a/drools-core/src/test/java/org/drools/core/impl/KnowledgeBaseImplTest.java +++ b/drools-core/src/test/java/org/drools/core/impl/KnowledgeBaseImplTest.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.impl; import java.util.Collections; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.core.reteoo.CoreComponentFactory; import org.junit.Test; import org.kie.internal.conf.CompositeBaseConfiguration; diff --git a/drools-core/src/test/java/org/drools/core/integrationtests/SerializationHelper.java b/drools-core/src/test/java/org/drools/core/integrationtests/SerializationHelper.java index 7ed65d82982..187fcfd5d7b 100644 --- a/drools-core/src/test/java/org/drools/core/integrationtests/SerializationHelper.java +++ b/drools-core/src/test/java/org/drools/core/integrationtests/SerializationHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.integrationtests; import java.io.IOException; diff --git a/drools-core/src/test/java/org/drools/core/io/impl/ByteArrayResourceSerializationTest.java b/drools-core/src/test/java/org/drools/core/io/impl/ByteArrayResourceSerializationTest.java index 40221fdb483..9e553bd2a04 100644 --- a/drools-core/src/test/java/org/drools/core/io/impl/ByteArrayResourceSerializationTest.java +++ b/drools-core/src/test/java/org/drools/core/io/impl/ByteArrayResourceSerializationTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.core.io.impl; import java.io.ByteArrayInputStream; diff --git a/drools-core/src/test/java/org/drools/core/io/impl/ByteArrayResourceToStringTest.java b/drools-core/src/test/java/org/drools/core/io/impl/ByteArrayResourceToStringTest.java index 90886a40c6a..290919c148f 100644 --- a/drools-core/src/test/java/org/drools/core/io/impl/ByteArrayResourceToStringTest.java +++ b/drools-core/src/test/java/org/drools/core/io/impl/ByteArrayResourceToStringTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.io.impl; import org.apache.commons.lang3.ArrayUtils; diff --git a/drools-core/src/test/java/org/drools/core/io/impl/ReaderResourceTest.java b/drools-core/src/test/java/org/drools/core/io/impl/ReaderResourceTest.java index eed76988eac..976c0947df0 100644 --- a/drools-core/src/test/java/org/drools/core/io/impl/ReaderResourceTest.java +++ b/drools-core/src/test/java/org/drools/core/io/impl/ReaderResourceTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.io.impl; import java.io.ByteArrayInputStream; diff --git a/drools-core/src/test/java/org/drools/core/reteoo/BaseNodeTest.java b/drools-core/src/test/java/org/drools/core/reteoo/BaseNodeTest.java index 6bc0b548be1..e969990baf9 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/BaseNodeTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/BaseNodeTest.java @@ -1,24 +1,26 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.BaseNode; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.common.UpdateContext; import org.drools.core.reteoo.builder.BuildContext; import org.drools.core.common.PropagationContext; @@ -44,7 +46,7 @@ public MockBaseNode() { } public MockBaseNode(final int id) { - super( id, RuleBasePartitionId.MAIN_PARTITION, false ); + super( id, RuleBasePartitionId.MAIN_PARTITION ); } public void ruleAttached() { diff --git a/drools-core/src/test/java/org/drools/core/reteoo/BetaNodeTest.java b/drools-core/src/test/java/org/drools/core/reteoo/BetaNodeTest.java index 20ac13337ee..f416955594e 100755 --- a/drools-core/src/test/java/org/drools/core/reteoo/BetaNodeTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/BetaNodeTest.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.Collections; import org.drools.core.common.EmptyBetaConstraints; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.reteoo.builder.BuildContext; import org.junit.Test; @@ -30,7 +32,7 @@ public class BetaNodeTest { @Test public void testEqualsObject() { - RuleBase kBase = RuleBaseFactory.newRuleBase(); + InternalRuleBase kBase = RuleBaseFactory.newRuleBase(); BuildContext buildContext = new BuildContext( kBase, Collections.emptyList() ); diff --git a/drools-core/src/test/java/org/drools/core/reteoo/DefaultFactHandleFactoryTest.java b/drools-core/src/test/java/org/drools/core/reteoo/DefaultFactHandleFactoryTest.java index fa74f6fa143..b9a85c5fe11 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/DefaultFactHandleFactoryTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/DefaultFactHandleFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.junit.Test; diff --git a/drools-core/src/test/java/org/drools/core/reteoo/FactHandleTest.java b/drools-core/src/test/java/org/drools/core/reteoo/FactHandleTest.java index 9539c6f3371..a2fae1cadfd 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/FactHandleTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/FactHandleTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-core/src/test/java/org/drools/core/reteoo/MockAccumulator.java b/drools-core/src/test/java/org/drools/core/reteoo/MockAccumulator.java index 3becc0deb8d..2e931369125 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/MockAccumulator.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/MockAccumulator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.IOException; @@ -24,10 +26,11 @@ import java.util.Collections; import java.util.List; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Accumulator; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Accumulator; +import org.kie.api.runtime.rule.FactHandle; /** * A Mock accumulate object. @@ -38,22 +41,22 @@ public class MockAccumulator private static final long serialVersionUID = 510l; - private Tuple leftTuple = null; + private BaseTuple leftTuple = null; private List matchingObjects = Collections.EMPTY_LIST; - private ReteEvaluator reteEvaluator = null; + private ValueResolver valueResolver = null; public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { leftTuple = (Tuple)in.readObject(); matchingObjects = (List)in.readObject(); - reteEvaluator = (ReteEvaluator)in.readObject(); + valueResolver = (ValueResolver)in.readObject(); } public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(leftTuple); out.writeObject(matchingObjects); - out.writeObject(reteEvaluator); + out.writeObject(valueResolver); } - public Tuple getLeftTuple() { + public BaseTuple getLeftTuple() { return this.leftTuple; } @@ -61,8 +64,8 @@ public List getMatchingObjects() { return this.matchingObjects; } - public ReteEvaluator getReteEvaluator() { - return this.reteEvaluator; + public ValueResolver getReteEvaluator() { + return this.valueResolver; } public Object createContext() { @@ -71,42 +74,42 @@ public Object createContext() { public Object init(Object workingMemoryContext, Object context, - Tuple leftTuple, + BaseTuple leftTuple, Declaration[] declarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { this.leftTuple = leftTuple; this.matchingObjects = new ArrayList(); - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; return context; } public Object accumulate(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, + BaseTuple leftTuple, + FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { this.matchingObjects.add( handle.getObject() ); return handle.getObject(); } public Object getResult(Object workingMemoryContext, Object context, - Tuple leftTuple, + BaseTuple leftTuple, Declaration[] declarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { return this.matchingObjects; } public boolean tryReverse(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, + BaseTuple leftTuple, + FactHandle handle, Object value, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { return false; } diff --git a/drools-core/src/test/java/org/drools/core/reteoo/MockEvalCondition.java b/drools-core/src/test/java/org/drools/core/reteoo/MockEvalCondition.java index d9a41d23002..79baa9f5a46 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/MockEvalCondition.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/MockEvalCondition.java @@ -1,29 +1,32 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.accessor.EvalExpression; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.accessor.EvalExpression; public class MockEvalCondition extends EvalCondition { @@ -36,9 +39,9 @@ public class MockEvalCondition extends EvalCondition { public Object createContext() { return null; } - public boolean evaluate(Tuple tuple, + public boolean evaluate(BaseTuple tuple, Declaration[] requiredDeclarations, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, Object context ) { return MockEvalCondition.this.isAllowed.booleanValue(); } diff --git a/drools-core/src/test/java/org/drools/core/reteoo/MockLeftTupleSink.java b/drools-core/src/test/java/org/drools/core/reteoo/MockLeftTupleSink.java index b9cdd37424e..fa18e14aa4c 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/MockLeftTupleSink.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/MockLeftTupleSink.java @@ -1,24 +1,27 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.ArrayList; import java.util.List; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.Memory; diff --git a/drools-core/src/test/java/org/drools/core/reteoo/MockObjectSink.java b/drools-core/src/test/java/org/drools/core/reteoo/MockObjectSink.java index da8046d9a4c..1f7489d52f0 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/MockObjectSink.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/MockObjectSink.java @@ -1,29 +1,33 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.ArrayList; import java.util.List; +import org.drools.base.reteoo.BaseTerminalNode; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.kie.api.definition.rule.Rule; public class MockObjectSink @@ -152,11 +156,11 @@ public boolean isAssociatedWith( Rule rule ) { } @Override - public void addAssociatedTerminal(TerminalNode terminalNode) { + public void addAssociatedTerminal(BaseTerminalNode terminalNode) { } @Override - public void removeAssociatedTerminal(TerminalNode terminalNode) { + public void removeAssociatedTerminal(BaseTerminalNode terminalNode) { } @Override @@ -165,7 +169,7 @@ public int getAssociatedTerminalsSize() { } @Override - public boolean hasAssociatedTerminal(NetworkNode terminalNode) { + public boolean hasAssociatedTerminal(BaseTerminalNode terminalNode) { return false; } diff --git a/drools-core/src/test/java/org/drools/core/reteoo/MockObjectSource.java b/drools-core/src/test/java/org/drools/core/reteoo/MockObjectSource.java index 4c18a1691e1..72ece6e9378 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/MockObjectSource.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/MockObjectSource.java @@ -1,32 +1,34 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - +import org.drools.base.base.ObjectType; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.base.ObjectType; import org.drools.core.common.PropagationContext; -import org.drools.core.util.bitmask.BitMask; +import org.drools.core.reteoo.builder.BuildContext; +import org.drools.util.bitmask.BitMask; + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; public class MockObjectSource extends ObjectSource { private static final long serialVersionUID = 510l; @@ -41,7 +43,7 @@ public MockObjectSource(int i, BuildContext context) { } public MockObjectSource(final int id) { - super( id, RuleBasePartitionId.MAIN_PARTITION, false); + super( id, RuleBasePartitionId.MAIN_PARTITION ); this.facts = new ArrayList(); } diff --git a/drools-core/src/test/java/org/drools/core/reteoo/MockRightTupleSink.java b/drools-core/src/test/java/org/drools/core/reteoo/MockRightTupleSink.java index 4324d09af9f..be4150d45d9 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/MockRightTupleSink.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/MockRightTupleSink.java @@ -1,28 +1,32 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.ArrayList; import java.util.List; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; +import org.drools.base.reteoo.BaseTerminalNode; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.kie.api.definition.rule.Rule; public class MockRightTupleSink @@ -79,11 +83,11 @@ public boolean thisNodeEquals(final Object object) { } @Override - public void addAssociatedTerminal(TerminalNode terminalNode) { + public void addAssociatedTerminal(BaseTerminalNode terminalNode) { } @Override - public void removeAssociatedTerminal(TerminalNode terminalNode) { + public void removeAssociatedTerminal(BaseTerminalNode terminalNode) { } @Override @@ -92,7 +96,7 @@ public int getAssociatedTerminalsSize() { } @Override - public boolean hasAssociatedTerminal(NetworkNode terminalNode) { + public boolean hasAssociatedTerminal(BaseTerminalNode terminalNode) { return false; } diff --git a/drools-core/src/test/java/org/drools/core/reteoo/MockTupleSource.java b/drools-core/src/test/java/org/drools/core/reteoo/MockTupleSource.java index ff58805a11b..6e027fe57f4 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/MockTupleSource.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/MockTupleSource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import org.drools.core.common.UpdateContext; diff --git a/drools-core/src/test/java/org/drools/core/reteoo/NodeTypeEnumTest.java b/drools-core/src/test/java/org/drools/core/reteoo/NodeTypeEnumTest.java index b25244df787..432dbfdf76c 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/NodeTypeEnumTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/NodeTypeEnumTest.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.reteoo; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; -import static org.drools.core.reteoo.NodeTypeEnums.*; +import static org.drools.base.reteoo.NodeTypeEnums.*; public class NodeTypeEnumTest { EntryPointNode epNode = new EntryPointNode(); diff --git a/drools-core/src/test/java/org/drools/core/reteoo/ObjectSourceTest.java b/drools-core/src/test/java/org/drools/core/reteoo/ObjectSourceTest.java index 0d383fbf077..5839b12a0fd 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/ObjectSourceTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/ObjectSourceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.lang.reflect.Field; diff --git a/drools-core/src/test/java/org/drools/core/reteoo/ObjectTypeConfTest.java b/drools-core/src/test/java/org/drools/core/reteoo/ObjectTypeConfTest.java index 85215633b35..12bf7384ea7 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/ObjectTypeConfTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/ObjectTypeConfTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; diff --git a/drools-core/src/test/java/org/drools/core/reteoo/ReteComparator.java b/drools-core/src/test/java/org/drools/core/reteoo/ReteComparator.java index f97720d068c..1695fb220e4 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/ReteComparator.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/ReteComparator.java @@ -1,27 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.Arrays; import java.util.Comparator; import org.drools.core.common.BaseNode; -import org.drools.core.common.NetworkNode; -import org.drools.core.impl.RuleBase; +import org.drools.base.common.NetworkNode; +import org.drools.core.impl.InternalRuleBase; import org.kie.api.KieBase; import org.kie.api.runtime.KieRuntime; import org.kie.api.runtime.KieSession; @@ -41,18 +43,18 @@ public static boolean areEqual(KieBase kbase1, KieBase kbase2) { } public static void compare(KieBase kbase1, KieBase kbase2) { - compare( (RuleBase) kbase1, (RuleBase) kbase2 ); + compare((InternalRuleBase) kbase1, (InternalRuleBase) kbase2); } public static void compare( KieRuntime session1, KieRuntime session2 ) { - compare( (RuleBase) session1.getKieBase(), (RuleBase) session2.getKieBase() ); + compare((InternalRuleBase) session1.getKieBase(), (InternalRuleBase) session2.getKieBase()); } public static void compare(KieSession session1, KieSession session2) { - compare( (RuleBase) session1.getKieBase(), (RuleBase) session2.getKieBase() ); + compare((InternalRuleBase) session1.getKieBase(), (InternalRuleBase) session2.getKieBase()); } - public static void compare(RuleBase kBase1, RuleBase kBase2) { + public static void compare(InternalRuleBase kBase1, InternalRuleBase kBase2) { compare( kBase1.getRete(), kBase2.getRete() ); } diff --git a/drools-core/src/test/java/org/drools/core/reteoo/ReteMemoryChecker.java b/drools-core/src/test/java/org/drools/core/reteoo/ReteMemoryChecker.java index 6843c675c9c..9db086b645d 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/ReteMemoryChecker.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/ReteMemoryChecker.java @@ -1,33 +1,36 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.BaseNode; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Memory; import org.drools.core.common.MemoryFactory; -import org.drools.core.common.NetworkNode; -import org.drools.core.impl.RuleBase; +import org.drools.base.common.NetworkNode; +import org.drools.core.impl.InternalRuleBase; import org.kie.api.runtime.KieSession; public class ReteMemoryChecker { public static void checkNodeMemories(KieSession session) { - RuleBase kbase = (RuleBase)session.getKieBase(); + InternalRuleBase kbase = (InternalRuleBase)session.getKieBase(); for (EntryPointNode entryPointNode : kbase.getRete().getEntryPointNodes().values()) { checkNodeMemory( (InternalWorkingMemory) session, entryPointNode ); } @@ -36,11 +39,7 @@ public static void checkNodeMemories(KieSession session) { private static void checkNodeMemory(InternalWorkingMemory wm, BaseNode node) { if (node instanceof MemoryFactory) { Memory memory = wm.getNodeMemory( (MemoryFactory) node ); - if ( NodeTypeEnums.ObjectTypeNode == node.getType() ) { - if ( !( memory instanceof ObjectTypeNode.ObjectTypeNodeMemory ) ) { - throw new RuntimeException( "Invalid memory type. Node: " + node + " has memory " + memory ); - } - } else if ( NodeTypeEnums.LeftInputAdapterNode == node.getType() ) { + if ( NodeTypeEnums.LeftInputAdapterNode == node.getType() ) { if ( !( memory instanceof LeftInputAdapterNode.LiaNodeMemory ) ) { throw new RuntimeException( "Invalid memory type. Node: " + node + " has memory " + memory ); } diff --git a/drools-core/src/test/java/org/drools/core/reteoo/TupleIterationTest.java b/drools-core/src/test/java/org/drools/core/reteoo/TupleIterationTest.java index 9f0e3cc2388..7324f62cca7 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/TupleIterationTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/TupleIterationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.util.ArrayList; @@ -86,7 +88,7 @@ public void execute(LeftTuple leafLeftTuple) { public void testMidTraversal() { JoinNodeLeftTuple tm2 = new JoinNodeLeftTuple(); JoinNodeLeftTuple tm1 = new JoinNodeLeftTuple(tm2, null, (PropagationContext) null,true); - LeftTuple tm1_1 = new JoinNodeLeftTuple(tm1, null, (PropagationContext) null,true); // this leaf will not be included + LeftTuple tm1_1 = new JoinNodeLeftTuple(tm1, null, (PropagationContext) null, true); // this leaf will not be included JoinNodeLeftTuple t0 = new JoinNodeLeftTuple(tm1, null, (PropagationContext) null,true); // insert two nodes before our root traversal position diff --git a/drools-core/src/test/java/org/drools/core/reteoo/TupleSourceTest.java b/drools-core/src/test/java/org/drools/core/reteoo/TupleSourceTest.java index eca80b76762..acfdf31990b 100644 --- a/drools-core/src/test/java/org/drools/core/reteoo/TupleSourceTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/TupleSourceTest.java @@ -1,25 +1,27 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo; import java.lang.reflect.Field; import java.util.Collections; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.reteoo.builder.BuildContext; import org.junit.Test; @@ -32,7 +34,7 @@ public class TupleSourceTest { @Test public void testObjectTupleConstructor() { KieBaseConfiguration kconf = RuleBaseFactory.newKnowledgeBaseConfiguration(); - RuleBase kBase = RuleBaseFactory.newRuleBase(kconf); + InternalRuleBase kBase = RuleBaseFactory.newRuleBase(kconf); BuildContext buildContext = new BuildContext(kBase, Collections.emptyList()); final MockTupleSource source = new MockTupleSource(15, buildContext); @@ -43,7 +45,7 @@ public void testObjectTupleConstructor() { public void testAddTupleSink() throws Exception { KieBaseConfiguration kconf = RuleBaseFactory.newKnowledgeBaseConfiguration(); - RuleBase kBase = RuleBaseFactory.newRuleBase(kconf); + InternalRuleBase kBase = RuleBaseFactory.newRuleBase(kconf); BuildContext buildContext = new BuildContext(kBase, Collections.emptyList()); final MockTupleSource source = new MockTupleSource(15, buildContext); diff --git a/drools-core/src/test/java/org/drools/core/reteoo/builder/ReteooRuleBuilderTest.java b/drools-core/src/test/java/org/drools/core/reteoo/builder/ReteooRuleBuilderTest.java index 9644055cb05..ff625a1d5f9 100755 --- a/drools-core/src/test/java/org/drools/core/reteoo/builder/ReteooRuleBuilderTest.java +++ b/drools-core/src/test/java/org/drools/core/reteoo/builder/ReteooRuleBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.reteoo.builder; import java.io.IOException; @@ -22,16 +24,16 @@ import java.util.Collections; import java.util.List; -import org.drools.core.base.ClassObjectType; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.impl.KnowledgeBaseImpl; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElementFactory; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElementFactory; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; import org.junit.Before; import org.junit.Test; @@ -69,9 +71,9 @@ public void testAddRuleWithPatterns() { rule.setLhs( lhsroot ); - final Consequence consequence = new Consequence() { + final Consequence consequence = new Consequence() { public void evaluate(KnowledgeHelper knowledgeHelper, - ReteEvaluator reteEvaluator) throws Exception { + ValueResolver valueResolver) throws Exception { System.out.println( "Consequence!" ); } diff --git a/drools-core/src/test/java/org/drools/core/test/model/Address.java b/drools-core/src/test/java/org/drools/core/test/model/Address.java index 14c1db5d249..4a19ffeac73 100644 --- a/drools-core/src/test/java/org/drools/core/test/model/Address.java +++ b/drools-core/src/test/java/org/drools/core/test/model/Address.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; public class Address { diff --git a/drools-core/src/test/java/org/drools/core/test/model/Cheese.java b/drools-core/src/test/java/org/drools/core/test/model/Cheese.java index 12e2c79f00d..32f7e875690 100644 --- a/drools-core/src/test/java/org/drools/core/test/model/Cheese.java +++ b/drools-core/src/test/java/org/drools/core/test/model/Cheese.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; import java.beans.IntrospectionException; diff --git a/drools-core/src/test/java/org/drools/core/test/model/CheeseEqual.java b/drools-core/src/test/java/org/drools/core/test/model/CheeseEqual.java index 9b4781e5e0a..a581bf092d5 100644 --- a/drools-core/src/test/java/org/drools/core/test/model/CheeseEqual.java +++ b/drools-core/src/test/java/org/drools/core/test/model/CheeseEqual.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; import java.io.Externalizable; diff --git a/drools-core/src/test/java/org/drools/core/test/model/CheeseInterface.java b/drools-core/src/test/java/org/drools/core/test/model/CheeseInterface.java index 47d3ec6cb62..aa6a9fc0692 100755 --- a/drools-core/src/test/java/org/drools/core/test/model/CheeseInterface.java +++ b/drools-core/src/test/java/org/drools/core/test/model/CheeseInterface.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; public interface CheeseInterface { diff --git a/drools-core/src/test/java/org/drools/core/test/model/FirstClass.java b/drools-core/src/test/java/org/drools/core/test/model/FirstClass.java index 80e7168a730..f48a22d6b1b 100644 --- a/drools-core/src/test/java/org/drools/core/test/model/FirstClass.java +++ b/drools-core/src/test/java/org/drools/core/test/model/FirstClass.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; public class FirstClass { diff --git a/drools-core/src/test/java/org/drools/core/test/model/MockFactHandle.java b/drools-core/src/test/java/org/drools/core/test/model/MockFactHandle.java index a0886e8a47d..9a58a082448 100644 --- a/drools-core/src/test/java/org/drools/core/test/model/MockFactHandle.java +++ b/drools-core/src/test/java/org/drools/core/test/model/MockFactHandle.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; import java.io.IOException; @@ -36,6 +38,26 @@ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundExcept id = in.readInt(); } + @Override + public Object getObject() { + return this; + } + + @Override + public boolean isNegated() { + return false; + } + + @Override + public boolean isEvent() { + return false; + } + + @Override + public boolean isValid() { + return true; + } + public MockFactHandle(final int id) { this.id = id; } @@ -68,4 +90,9 @@ public long getRecency() { // TODO Auto-generated method stub return 0; } + + @Override + public Object as(Class klass) throws ClassCastException { + throw new UnsupportedOperationException(); + } } diff --git a/drools-core/src/test/java/org/drools/core/test/model/Person.java b/drools-core/src/test/java/org/drools/core/test/model/Person.java index 07fa823e117..c6d9a0bc479 100755 --- a/drools-core/src/test/java/org/drools/core/test/model/Person.java +++ b/drools-core/src/test/java/org/drools/core/test/model/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; import java.util.ArrayList; diff --git a/drools-core/src/test/java/org/drools/core/test/model/SecondClass.java b/drools-core/src/test/java/org/drools/core/test/model/SecondClass.java index 4039bdddee2..e5681bbc0de 100644 --- a/drools-core/src/test/java/org/drools/core/test/model/SecondClass.java +++ b/drools-core/src/test/java/org/drools/core/test/model/SecondClass.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; public class SecondClass { diff --git a/drools-core/src/test/java/org/drools/core/test/model/StockTick.java b/drools-core/src/test/java/org/drools/core/test/model/StockTick.java index cd686f0e19d..ba5511b1fe4 100644 --- a/drools-core/src/test/java/org/drools/core/test/model/StockTick.java +++ b/drools-core/src/test/java/org/drools/core/test/model/StockTick.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; import java.io.Serializable; diff --git a/drools-core/src/test/java/org/drools/core/test/model/TestRuleRuntimeEventListener.java b/drools-core/src/test/java/org/drools/core/test/model/TestRuleRuntimeEventListener.java index 2e28a70adb9..8f9d2b3d9aa 100644 --- a/drools-core/src/test/java/org/drools/core/test/model/TestRuleRuntimeEventListener.java +++ b/drools-core/src/test/java/org/drools/core/test/model/TestRuleRuntimeEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.test.model; import java.io.Externalizable; diff --git a/drools-core/src/test/java/org/drools/core/time/TemporalDistanceTest.java b/drools-core/src/test/java/org/drools/core/time/TemporalDistanceTest.java index 4e431f94834..8ec95a3e9a5 100644 --- a/drools-core/src/test/java/org/drools/core/time/TemporalDistanceTest.java +++ b/drools-core/src/test/java/org/drools/core/time/TemporalDistanceTest.java @@ -1,21 +1,25 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time; +import org.drools.base.time.Interval; +import org.drools.base.time.TimeUtils; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-core/src/test/java/org/drools/core/time/impl/CompositeMaxDurationTimerTest.java b/drools-core/src/test/java/org/drools/core/time/impl/CompositeMaxDurationTimerTest.java index 78b93c06cdf..abd10b08591 100644 --- a/drools-core/src/test/java/org/drools/core/time/impl/CompositeMaxDurationTimerTest.java +++ b/drools-core/src/test/java/org/drools/core/time/impl/CompositeMaxDurationTimerTest.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.time.impl; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.junit.Test; import java.util.Date; diff --git a/drools-core/src/test/java/org/drools/core/time/impl/CronExpressionTest.java b/drools-core/src/test/java/org/drools/core/time/impl/CronExpressionTest.java index 432c1b908ad..f4dd05968ce 100644 --- a/drools-core/src/test/java/org/drools/core/time/impl/CronExpressionTest.java +++ b/drools-core/src/test/java/org/drools/core/time/impl/CronExpressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.ByteArrayInputStream; diff --git a/drools-core/src/test/java/org/drools/core/time/impl/CronJobTest.java b/drools-core/src/test/java/org/drools/core/time/impl/CronJobTest.java index 0eb3d50e85a..530c8f19d83 100644 --- a/drools-core/src/test/java/org/drools/core/time/impl/CronJobTest.java +++ b/drools-core/src/test/java/org/drools/core/time/impl/CronJobTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.util.concurrent.TimeUnit; diff --git a/drools-core/src/test/java/org/drools/core/time/impl/JDKTimerServiceTest.java b/drools-core/src/test/java/org/drools/core/time/impl/JDKTimerServiceTest.java index 6f2d25ad9b0..763865ca668 100644 --- a/drools-core/src/test/java/org/drools/core/time/impl/JDKTimerServiceTest.java +++ b/drools-core/src/test/java/org/drools/core/time/impl/JDKTimerServiceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.IOException; @@ -35,9 +37,9 @@ import org.drools.core.phreak.PropagationEntry; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; +import org.drools.base.time.JobHandle; import org.drools.core.time.TimerService; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-core/src/test/java/org/drools/core/time/impl/PseudoClockSchedulerTest.java b/drools-core/src/test/java/org/drools/core/time/impl/PseudoClockSchedulerTest.java index 37805b6f121..de6440b803c 100644 --- a/drools-core/src/test/java/org/drools/core/time/impl/PseudoClockSchedulerTest.java +++ b/drools-core/src/test/java/org/drools/core/time/impl/PseudoClockSchedulerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.util.Date; @@ -22,8 +24,8 @@ import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; -import org.drools.core.time.Trigger; +import org.drools.base.time.JobHandle; +import org.drools.base.time.Trigger; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-core/src/test/java/org/drools/core/time/impl/Quartz601Test.java b/drools-core/src/test/java/org/drools/core/time/impl/Quartz601Test.java index d3c07cfa5b0..344f29e3e83 100644 --- a/drools-core/src/test/java/org/drools/core/time/impl/Quartz601Test.java +++ b/drools-core/src/test/java/org/drools/core/time/impl/Quartz601Test.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.time.impl; import java.text.ParseException; diff --git a/drools-core/src/test/java/org/drools/core/time/impl/SerializationTestSupport.java b/drools-core/src/test/java/org/drools/core/time/impl/SerializationTestSupport.java index 143f83497f6..eb41e46bf1f 100644 --- a/drools-core/src/test/java/org/drools/core/time/impl/SerializationTestSupport.java +++ b/drools-core/src/test/java/org/drools/core/time/impl/SerializationTestSupport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.time.impl; import java.io.FileOutputStream; diff --git a/drools-core/src/test/java/org/drools/core/util/BinaryHeapPriorityQueueTest.java b/drools-core/src/test/java/org/drools/core/util/BinaryHeapPriorityQueueTest.java index 9a7d5615683..4eb1d745356 100644 --- a/drools-core/src/test/java/org/drools/core/util/BinaryHeapPriorityQueueTest.java +++ b/drools-core/src/test/java/org/drools/core/util/BinaryHeapPriorityQueueTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.util.ArrayList; diff --git a/drools-core/src/test/java/org/drools/core/util/BinaryHeapQueueTest.java b/drools-core/src/test/java/org/drools/core/util/BinaryHeapQueueTest.java index 791fc579db9..58beab84933 100644 --- a/drools-core/src/test/java/org/drools/core/util/BinaryHeapQueueTest.java +++ b/drools-core/src/test/java/org/drools/core/util/BinaryHeapQueueTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util; import java.util.ArrayList; @@ -25,14 +28,13 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalRuleFlowGroup; import org.drools.core.common.PropagationContext; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.RuleAgendaItem; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.GroupElement; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.consequence.ConflictResolver; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.consequence.ConflictResolver; +import org.drools.base.rule.consequence.Consequence; import org.junit.Before; import org.junit.Test; import org.kie.api.runtime.rule.FactHandle; diff --git a/drools-core/src/test/java/org/drools/core/util/ClassUtilsTest.java b/drools-core/src/test/java/org/drools/core/util/ClassUtilsTest.java index 79d9c0aa9ff..7339f04d88d 100644 --- a/drools-core/src/test/java/org/drools/core/util/ClassUtilsTest.java +++ b/drools-core/src/test/java/org/drools/core/util/ClassUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import org.drools.util.ClassUtils; diff --git a/drools-core/src/test/java/org/drools/core/util/DroolsAssert.java b/drools-core/src/test/java/org/drools/core/util/DroolsAssert.java index d99ef297b1c..612b7d9ab4a 100644 --- a/drools-core/src/test/java/org/drools/core/util/DroolsAssert.java +++ b/drools-core/src/test/java/org/drools/core/util/DroolsAssert.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.net.URL; diff --git a/drools-core/src/test/java/org/drools/core/util/DroolsStreamUtils.java b/drools-core/src/test/java/org/drools/core/util/DroolsStreamUtils.java index f89e3f499b3..0bd85c5f409 100644 --- a/drools-core/src/test/java/org/drools/core/util/DroolsStreamUtils.java +++ b/drools-core/src/test/java/org/drools/core/util/DroolsStreamUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.core.util; import java.io.ByteArrayInputStream; @@ -24,8 +26,8 @@ import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; /** * Created by IntelliJ IDEA. diff --git a/drools-core/src/test/java/org/drools/core/util/DroolsTestUtil.java b/drools-core/src/test/java/org/drools/core/util/DroolsTestUtil.java index e0f1b234318..01be1e643f6 100644 --- a/drools-core/src/test/java/org/drools/core/util/DroolsTestUtil.java +++ b/drools-core/src/test/java/org/drools/core/util/DroolsTestUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.util.ArrayList; @@ -22,7 +24,7 @@ import java.util.List; import java.util.Map; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.kie.api.KieBase; import org.kie.api.definition.KiePackage; import org.kie.api.definition.rule.Rule; @@ -38,7 +40,7 @@ public static Map rulestoMap( Collection rules ) { public static Map rulestoMap( KieBase kbase ) { List rules = new ArrayList(); - for ( KiePackage pkg : ((RuleBase)kbase).getPackages() ) { + for ( KiePackage pkg : ((InternalRuleBase)kbase).getPackages() ) { rules.addAll(pkg.getRules()); } diff --git a/drools-core/src/test/java/org/drools/core/util/FileManager.java b/drools-core/src/test/java/org/drools/core/util/FileManager.java index a6e4e2c7b44..e1192062b3a 100644 --- a/drools-core/src/test/java/org/drools/core/util/FileManager.java +++ b/drools-core/src/test/java/org/drools/core/util/FileManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.io.BufferedReader; diff --git a/drools-core/src/test/java/org/drools/core/util/HeapDump.java b/drools-core/src/test/java/org/drools/core/util/HeapDump.java index 43d4669eaf4..a2d176b698d 100644 --- a/drools-core/src/test/java/org/drools/core/util/HeapDump.java +++ b/drools-core/src/test/java/org/drools/core/util/HeapDump.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import javax.management.MBeanServer; diff --git a/drools-core/src/test/java/org/drools/core/util/IndexedHashtableIteratorTest.java b/drools-core/src/test/java/org/drools/core/util/IndexedHashtableIteratorTest.java index de901c498f5..a0de58e3e4a 100644 --- a/drools-core/src/test/java/org/drools/core/util/IndexedHashtableIteratorTest.java +++ b/drools-core/src/test/java/org/drools/core/util/IndexedHashtableIteratorTest.java @@ -1,20 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util; +import org.drools.core.reteoo.AbstractTuple; import org.drools.core.reteoo.JoinNodeLeftTuple; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.RightTupleImpl; @@ -62,7 +66,7 @@ public void testCanReachAllEntriesInLastTableRowRightTupleIndexHashTable() { // test fast TupleIndexHashTable.FullFastIterator iter = new TupleIndexHashTable.FullFastIterator( table ); List list = new ArrayList(); - for ( RightTuple rightTuple = (RightTuple) iter.next( null ); rightTuple != null; rightTuple = (RightTuple) iter.next( rightTuple ) ) { + for ( RightTuple rightTuple = (RightTuple) iter.next( null ); rightTuple != null; rightTuple = (RightTupleImpl) iter.next((AbstractTuple) rightTuple) ) { assertThat(contains(list, rightTuple)).isFalse(); // ensure no duplicate list.add( rightTuple ); } diff --git a/drools-core/src/test/java/org/drools/core/util/IoUtilsTest.java b/drools-core/src/test/java/org/drools/core/util/IoUtilsTest.java index 722299e98e8..c21a2287865 100644 --- a/drools-core/src/test/java/org/drools/core/util/IoUtilsTest.java +++ b/drools-core/src/test/java/org/drools/core/util/IoUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.core.util; import org.drools.io.ReaderInputStream; diff --git a/drools-core/src/test/java/org/drools/core/util/KeyStoreHelperTest.java b/drools-core/src/test/java/org/drools/core/util/KeyStoreHelperTest.java index 6871c240b6c..3546ec82c06 100755 --- a/drools-core/src/test/java/org/drools/core/util/KeyStoreHelperTest.java +++ b/drools-core/src/test/java/org/drools/core/util/KeyStoreHelperTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util; import java.io.FileOutputStream; diff --git a/drools-core/src/test/java/org/drools/core/util/KieFunctionsTest.java b/drools-core/src/test/java/org/drools/core/util/KieFunctionsTest.java index 68139596839..ef24047e6b5 100644 --- a/drools-core/src/test/java/org/drools/core/util/KieFunctionsTest.java +++ b/drools-core/src/test/java/org/drools/core/util/KieFunctionsTest.java @@ -1,19 +1,21 @@ /** - * Copyright 2012 Red Hat, Inc. and/or its affiliates. + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.math.BigDecimal; diff --git a/drools-core/src/test/java/org/drools/core/util/LeftTupleRBTreeTest.java b/drools-core/src/test/java/org/drools/core/util/LeftTupleRBTreeTest.java index 9bab443916a..06145713e91 100644 --- a/drools-core/src/test/java/org/drools/core/util/LeftTupleRBTreeTest.java +++ b/drools-core/src/test/java/org/drools/core/util/LeftTupleRBTreeTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util; import org.drools.core.util.TupleRBTree.Node; diff --git a/drools-core/src/test/java/org/drools/core/util/LinkedListTest.java b/drools-core/src/test/java/org/drools/core/util/LinkedListTest.java index 1dd1bc6d8c7..431515ffe21 100644 --- a/drools-core/src/test/java/org/drools/core/util/LinkedListTest.java +++ b/drools-core/src/test/java/org/drools/core/util/LinkedListTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import org.junit.Before; diff --git a/drools-core/src/test/java/org/drools/core/util/MethodUtilsTest.java b/drools-core/src/test/java/org/drools/core/util/MethodUtilsTest.java index be938253cdb..8d0e8693b6d 100644 --- a/drools-core/src/test/java/org/drools/core/util/MethodUtilsTest.java +++ b/drools-core/src/test/java/org/drools/core/util/MethodUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.lang.reflect.Method; diff --git a/drools-core/src/test/java/org/drools/core/util/NaturalComparator.java b/drools-core/src/test/java/org/drools/core/util/NaturalComparator.java index fb773f93ccd..8c8a7e7cee9 100644 --- a/drools-core/src/test/java/org/drools/core/util/NaturalComparator.java +++ b/drools-core/src/test/java/org/drools/core/util/NaturalComparator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import java.util.Comparator; diff --git a/drools-core/src/test/java/org/drools/core/util/RightTupleListTest.java b/drools-core/src/test/java/org/drools/core/util/RightTupleListTest.java index 753c4231693..7ba117dbb59 100644 --- a/drools-core/src/test/java/org/drools/core/util/RightTupleListTest.java +++ b/drools-core/src/test/java/org/drools/core/util/RightTupleListTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-core/src/test/java/org/drools/core/util/ScalablePoolTest.java b/drools-core/src/test/java/org/drools/core/util/ScalablePoolTest.java index 9cff4705592..34bc1e9f903 100644 --- a/drools-core/src/test/java/org/drools/core/util/ScalablePoolTest.java +++ b/drools-core/src/test/java/org/drools/core/util/ScalablePoolTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util; import org.junit.Test; diff --git a/drools-core/src/test/java/org/drools/core/util/asm/AbstractClass.java b/drools-core/src/test/java/org/drools/core/util/asm/AbstractClass.java index 6ec5210ff5c..e4477653b04 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/AbstractClass.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/AbstractClass.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public abstract class AbstractClass { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/BaseBean.java b/drools-core/src/test/java/org/drools/core/util/asm/BaseBean.java index 85dfab36e70..4a45d55899f 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/BaseBean.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/BaseBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public class BaseBean { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/BeanInherit.java b/drools-core/src/test/java/org/drools/core/util/asm/BeanInherit.java index 0e1259cf3dd..4ec314fb71d 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/BeanInherit.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/BeanInherit.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public class BeanInherit extends BaseBean { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/InterfaceChild.java b/drools-core/src/test/java/org/drools/core/util/asm/InterfaceChild.java index 7f8c6574c2d..8f061135aec 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/InterfaceChild.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/InterfaceChild.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public interface InterfaceChild diff --git a/drools-core/src/test/java/org/drools/core/util/asm/InterfaceChildImpl.java b/drools-core/src/test/java/org/drools/core/util/asm/InterfaceChildImpl.java index 23853a36c3e..b43a90829f7 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/InterfaceChildImpl.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/InterfaceChildImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public class InterfaceChildImpl extends AbstractClass diff --git a/drools-core/src/test/java/org/drools/core/util/asm/InterfaceParent.java b/drools-core/src/test/java/org/drools/core/util/asm/InterfaceParent.java index c4818930600..3de77a94229 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/InterfaceParent.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/InterfaceParent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public interface InterfaceParent { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/InterfaceParent2.java b/drools-core/src/test/java/org/drools/core/util/asm/InterfaceParent2.java index 9c18cb7e866..b2dec31379e 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/InterfaceParent2.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/InterfaceParent2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public interface InterfaceParent2 { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/MethodCompareA.java b/drools-core/src/test/java/org/drools/core/util/asm/MethodCompareA.java index 49909cd661a..060a3a3ec30 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/MethodCompareA.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/MethodCompareA.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public class MethodCompareA { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/MethodCompareB.java b/drools-core/src/test/java/org/drools/core/util/asm/MethodCompareB.java index dfb6d4d0fb2..eb106d27b60 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/MethodCompareB.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/MethodCompareB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public class MethodCompareB { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/TestAbstract.java b/drools-core/src/test/java/org/drools/core/util/asm/TestAbstract.java index 892135a7842..e19fa63396b 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/TestAbstract.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/TestAbstract.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public abstract class TestAbstract { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/TestAbstractImpl.java b/drools-core/src/test/java/org/drools/core/util/asm/TestAbstractImpl.java index 39b24adfc3f..6113c878fa8 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/TestAbstractImpl.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/TestAbstractImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public class TestAbstractImpl extends TestAbstract { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/TestBean.java b/drools-core/src/test/java/org/drools/core/util/asm/TestBean.java index ddc998a1166..aebec05ebe4 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/TestBean.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/TestBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public class TestBean { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/TestInterface.java b/drools-core/src/test/java/org/drools/core/util/asm/TestInterface.java index f54584306c9..0a4e8fb69a8 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/TestInterface.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/TestInterface.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public interface TestInterface { diff --git a/drools-core/src/test/java/org/drools/core/util/asm/TestInterfaceImpl.java b/drools-core/src/test/java/org/drools/core/util/asm/TestInterfaceImpl.java index 4628f3c1db0..b86bf0c9b2d 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/TestInterfaceImpl.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/TestInterfaceImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; public class TestInterfaceImpl diff --git a/drools-core/src/test/java/org/drools/core/util/asm/TestObject.java b/drools-core/src/test/java/org/drools/core/util/asm/TestObject.java index eaa990e0689..2b807110518 100644 --- a/drools-core/src/test/java/org/drools/core/util/asm/TestObject.java +++ b/drools-core/src/test/java/org/drools/core/util/asm/TestObject.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.core.util.asm; import java.math.BigDecimal; diff --git a/drools-core/src/test/java/org/drools/core/util/index/IndexUtilTest.java b/drools-core/src/test/java/org/drools/core/util/index/IndexUtilTest.java new file mode 100644 index 00000000000..36f191f4705 --- /dev/null +++ b/drools-core/src/test/java/org/drools/core/util/index/IndexUtilTest.java @@ -0,0 +1,363 @@ +/** + * 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. + */ +package org.drools.core.util.index; + +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.TupleValueExtractor; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.util.FieldIndex; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.drools.base.util.index.IndexUtil; +import org.drools.core.RuleBaseConfiguration; +import org.drools.core.reteoo.BetaMemory; +import org.drools.core.util.AbstractHashTable.DoubleCompositeIndex; +import org.drools.core.util.AbstractHashTable.Index; +import org.junit.Test; +import org.kie.api.KieBaseConfiguration; +import org.kie.api.runtime.rule.FactHandle; +import org.kie.internal.conf.CompositeConfiguration; +import org.kie.internal.conf.IndexPrecedenceOption; +import org.kie.internal.utils.ChainedProperties; + +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.lang.reflect.Method; + +import static org.assertj.core.api.Assertions.assertThat; + +public class IndexUtilTest { + + @Test + public void isEqualIndexable() { + FakeBetaNodeFieldConstraint intEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.PINTEGER_TYPE)); + assertThat(IndexUtil.isEqualIndexable(intEqualsConstraint)).isTrue(); + + FakeBetaNodeFieldConstraint intLessThanConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.LESS_THAN, new FakeReadAccessor(ValueType.PINTEGER_TYPE)); + assertThat(IndexUtil.isEqualIndexable(intLessThanConstraint)).isFalse(); + + FakeBetaNodeFieldConstraint bigDecimalEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.BIG_DECIMAL_TYPE)); + assertThat(IndexUtil.isEqualIndexable(bigDecimalEqualsConstraint)).as("BigDecimal equality cannot be indexed because of scale").isFalse(); + } + + @Test + public void createBetaMemoryWithIntEquals_shouldBeTupleIndexHashTable() { + RuleBaseConfiguration config = getRuleBaseConfiguration(); + FakeBetaNodeFieldConstraint intEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.PINTEGER_TYPE)); + BetaMemory betaMemory = IndexFactory.createBetaMemory(config, NodeTypeEnums.JoinNode, intEqualsConstraint); + assertThat(betaMemory.getLeftTupleMemory()).isInstanceOf(TupleIndexHashTable.class); + assertThat(betaMemory.getRightTupleMemory()).isInstanceOf(TupleIndexHashTable.class); + } + + private RuleBaseConfiguration getRuleBaseConfiguration() { + return new RuleBaseConfiguration(new CompositeConfiguration<>(ChainedProperties.getChainedProperties(null), null)); + } + + @Test + public void createBetaMemoryWithBigDecimalEquals_shouldNotBeTupleIndexHashTable() { + RuleBaseConfiguration config = getRuleBaseConfiguration(); + FakeBetaNodeFieldConstraint bigDecimalEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.BIG_DECIMAL_TYPE)); + BetaMemory betaMemory = IndexFactory.createBetaMemory(config, NodeTypeEnums.JoinNode, bigDecimalEqualsConstraint); + assertThat(betaMemory.getLeftTupleMemory()).isInstanceOf(TupleList.class); + assertThat(betaMemory.getRightTupleMemory()).isInstanceOf(TupleList.class); + } + + @Test + public void createBetaMemoryWithBigDecimalEqualsAndOtherIndexableConstraints_shouldBeTupleIndexHashTableButBigDecimalIsNotIndexed() { + RuleBaseConfiguration config = getRuleBaseConfiguration(); + FakeBetaNodeFieldConstraint intEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.PINTEGER_TYPE)); + FakeBetaNodeFieldConstraint bigDecimalEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.BIG_DECIMAL_TYPE)); + FakeBetaNodeFieldConstraint stringEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.STRING_TYPE)); + BetaMemory betaMemory = IndexFactory.createBetaMemory(config, NodeTypeEnums.JoinNode, intEqualsConstraint, bigDecimalEqualsConstraint, stringEqualsConstraint); + + // BigDecimal is not included in Indexes + assertThat(betaMemory.getLeftTupleMemory()).isInstanceOf(TupleIndexHashTable.class); + Index leftIndex = ((TupleIndexHashTable) betaMemory.getLeftTupleMemory()).getIndex(); + assertThat(leftIndex).isInstanceOf(DoubleCompositeIndex.class); + FieldIndex leftFieldIndex0 = leftIndex.getFieldIndex(0); + assertThat(leftFieldIndex0.getLeftExtractor().getValueType()).isEqualTo(ValueType.PINTEGER_TYPE); + FieldIndex leftFieldIndex1 = leftIndex.getFieldIndex(1); + assertThat(leftFieldIndex1.getLeftExtractor().getValueType()).isEqualTo(ValueType.STRING_TYPE); + + assertThat(betaMemory.getRightTupleMemory()).isInstanceOf(TupleIndexHashTable.class); + Index rightIndex = ((TupleIndexHashTable) betaMemory.getRightTupleMemory()).getIndex(); + assertThat(rightIndex).isInstanceOf(DoubleCompositeIndex.class); + FieldIndex rightFieldIndex0 = rightIndex.getFieldIndex(0); + assertThat(rightFieldIndex0.getRightExtractor().getValueType()).isEqualTo(ValueType.PINTEGER_TYPE); + FieldIndex rightFieldIndex1 = rightIndex.getFieldIndex(1); + assertThat(rightFieldIndex1.getRightExtractor().getValueType()).isEqualTo(ValueType.STRING_TYPE); + } + + @Test + public void isIndexableForNodeWithIntAndString() { + RuleBaseConfiguration config = getRuleBaseConfiguration(); + FakeBetaNodeFieldConstraint intEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.PINTEGER_TYPE)); + FakeBetaNodeFieldConstraint stringEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.STRING_TYPE)); + BetaNodeFieldConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{intEqualsConstraint, stringEqualsConstraint}; + boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.JoinNode, config.getCompositeKeyDepth(), constraints, config); + assertThat(indexed).containsExactly(true, true); + } + + @Test + public void isIndexableForNodeWithIntAndBigDecimalAndString() { + RuleBaseConfiguration config = getRuleBaseConfiguration(); + FakeBetaNodeFieldConstraint intEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.PINTEGER_TYPE)); + FakeBetaNodeFieldConstraint bigDecimalEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.BIG_DECIMAL_TYPE)); + FakeBetaNodeFieldConstraint stringEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.STRING_TYPE)); + BetaNodeFieldConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{intEqualsConstraint, bigDecimalEqualsConstraint, stringEqualsConstraint}; + boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.JoinNode, config.getCompositeKeyDepth(), constraints, config); + assertThat(indexed).as("BigDecimal is sorted to the last").containsExactly(true, true, false); + } + + @Test + public void isIndexableForNodeWithBigDecimal() { + RuleBaseConfiguration config = getRuleBaseConfiguration(); + FakeBetaNodeFieldConstraint bigDecimalEqualsConstraint = new FakeBetaNodeFieldConstraint(ConstraintTypeOperator.EQUAL, new FakeReadAccessor(ValueType.BIG_DECIMAL_TYPE)); + BetaNodeFieldConstraint[] constraints = new FakeBetaNodeFieldConstraint[]{bigDecimalEqualsConstraint}; + boolean[] indexed = IndexUtil.isIndexableForNode(IndexPrecedenceOption.EQUALITY_PRIORITY, NodeTypeEnums.JoinNode, config.getCompositeKeyDepth(), constraints, config); + assertThat(indexed).as("BigDecimal is not indexed").containsExactly(false); + } + + static class FakeBetaNodeFieldConstraint implements BetaNodeFieldConstraint, + IndexableConstraint { + + private ConstraintTypeOperator constraintType; + private ReadAccessor fieldExtractor; + + public FakeBetaNodeFieldConstraint() {} + + public FakeBetaNodeFieldConstraint(ConstraintTypeOperator constraintType, ReadAccessor fieldExtractor) { + this.constraintType = constraintType; + this.fieldExtractor = fieldExtractor; + } + + @Override + public boolean isUnification() { + return false; + } + + @Override + public boolean isIndexable(short nodeType, KieBaseConfiguration config) { + return false; + } + + @Override + public ConstraintTypeOperator getConstraintType() { + return constraintType; + } + + @Override + public FieldValue getField() { + return null; + } + + @Override + public FieldIndex getFieldIndex() { + return new FieldIndex(fieldExtractor, new Declaration("$p1", fieldExtractor, null)); + } + + @Override + public ReadAccessor getFieldExtractor() { + return fieldExtractor; + } + + @Override + public TupleValueExtractor getIndexExtractor() { + return null; + } + + @Override + public boolean isAllowedCachedLeft(ContextEntry context, FactHandle handle) { + return false; + } + + @Override + public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) { + return false; + } + + @Override + public ContextEntry createContextEntry() { + return null; + } + + @Override + public BetaNodeFieldConstraint cloneIfInUse() { + return null; + } + + @Override + public Declaration[] getRequiredDeclarations() { + return new Declaration[0]; + } + + @Override + public void replaceDeclaration(Declaration oldDecl, Declaration newDecl) { + + } + + @Override + public Constraint clone() { + return null; + } + + @Override + public ConstraintType getType() { + return null; + } + + @Override + public boolean isTemporal() { + return false; + } + + @Override + public void writeExternal(ObjectOutput out) throws IOException { + + } + + @Override + public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { + + } + } + + static class FakeReadAccessor implements ReadAccessor { + + private final ValueType valueType; + + private FakeReadAccessor(ValueType valueType) { + this.valueType = valueType; + } + + @Override + public Object getValue(Object object) { + return null; + } + + @Override + public ValueType getValueType() { + return valueType; + } + + @Override + public Class getExtractToClass() { + return null; + } + + @Override + public String getExtractToClassName() { + return null; + } + + @Override + public Method getNativeReadMethod() { + return null; + } + + @Override + public String getNativeReadMethodName() { + return null; + } + + @Override + public int getHashCode(Object object) { + return 0; + } + + @Override + public int getIndex() { + return 0; + } + + @Override + public Object getValue(ValueResolver valueResolver, Object object) { + return null; + } + + @Override + public char getCharValue(ValueResolver valueResolver, Object object) { + return 0; + } + + @Override + public int getIntValue(ValueResolver valueResolver, Object object) { + return 0; + } + + @Override + public byte getByteValue(ValueResolver valueResolver, Object object) { + return 0; + } + + @Override + public short getShortValue(ValueResolver valueResolver, Object object) { + return 0; + } + + @Override + public long getLongValue(ValueResolver valueResolver, Object object) { + return 0; + } + + @Override + public float getFloatValue(ValueResolver valueResolver, Object object) { + return 0; + } + + @Override + public double getDoubleValue(ValueResolver valueResolver, Object object) { + return 0; + } + + @Override + public boolean getBooleanValue(ValueResolver valueResolver, Object object) { + return false; + } + + @Override + public boolean isNullValue(ValueResolver valueResolver, Object object) { + return false; + } + + @Override + public int getHashCode(ValueResolver valueResolver, Object object) { + return 0; + } + + @Override + public boolean isGlobal() { + return false; + } + + @Override + public boolean isSelfReference() { + return false; + } + } +} diff --git a/drools-core/src/test/java/org/drools/core/util/index/RangeIndexTest.java b/drools-core/src/test/java/org/drools/core/util/index/RangeIndexTest.java index a5c3a30a45f..cc9b14c3282 100644 --- a/drools-core/src/test/java/org/drools/core/util/index/RangeIndexTest.java +++ b/drools-core/src/test/java/org/drools/core/util/index/RangeIndexTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.util.index; import org.drools.core.test.model.Person; diff --git a/drools-core/src/test/java/org/drools/core/xml/GenericsTest.java b/drools-core/src/test/java/org/drools/core/xml/GenericsTest.java index fe16dcd1c72..bef1301579b 100644 --- a/drools-core/src/test/java/org/drools/core/xml/GenericsTest.java +++ b/drools-core/src/test/java/org/drools/core/xml/GenericsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.core.xml; public class GenericsTest { diff --git a/drools-core/src/test/java/org/drools/mvel/dataproviders/TestVariable.java b/drools-core/src/test/java/org/drools/mvel/dataproviders/TestVariable.java index 9e68652acbb..4c2b69416b2 100644 --- a/drools-core/src/test/java/org/drools/mvel/dataproviders/TestVariable.java +++ b/drools-core/src/test/java/org/drools/mvel/dataproviders/TestVariable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.dataproviders; import java.util.ArrayList; diff --git a/drools-core/src/test/resources/basic-authentication-sample-agent-config.properties b/drools-core/src/test/resources/basic-authentication-sample-agent-config.properties index eb01bbf7cb2..8474b1d719e 100644 --- a/drools-core/src/test/resources/basic-authentication-sample-agent-config.properties +++ b/drools-core/src/test/resources/basic-authentication-sample-agent-config.properties @@ -1,3 +1,22 @@ +# +# 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. +# + newInstance=true url=http://localhost:8080/guvnor-webapp/org.kie.guvnor.Guvnor/package/defaultPackage/LATEST localCacheDir=d:/drools diff --git a/drools-core/src/test/resources/logback-test.xml b/drools-core/src/test/resources/logback-test.xml index 746ec95fc75..9444605a1e6 100644 --- a/drools-core/src/test/resources/logback-test.xml +++ b/drools-core/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-core/src/test/resources/org/drools/core/reteoo/test/AccumulateNodeUnificationTest.nodeTestCase b/drools-core/src/test/resources/org/drools/core/reteoo/test/AccumulateNodeUnificationTest.nodeTestCase index e59df2dd399..b2f97df92dc 100644 --- a/drools-core/src/test/resources/org/drools/core/reteoo/test/AccumulateNodeUnificationTest.nodeTestCase +++ b/drools-core/src/test/resources/org/drools/core/reteoo/test/AccumulateNodeUnificationTest.nodeTestCase @@ -5,14 +5,14 @@ import org.drools.core.test.model.Person; Setup ObjectTypeNode: - otnLeft0, org.drools.core.base.DroolsQuery; + otnLeft0, org.drools.core.base.DroolsQueryImpl; LeftInputAdapterNode: lian0, otnLeft0; ObjectTypeNode: otnRight1, Person; Binding: - v, 0, org.drools.core.base.DroolsQuery, [0], java.lang.String; - $age, 0, org.drools.core.base.DroolsQuery, [1], java.lang.Integer; + v, 0, org.drools.core.base.DroolsQueryImpl, [0], java.lang.String; + $age, 0, org.drools.core.base.DroolsQueryImpl, [1], java.lang.Integer; $likes, 1, Person, likes; $price, 2, Cheese, price; JoinNode: @@ -26,7 +26,7 @@ Setup LeftTupleSink: sink, acc; Facts: - new org.drools.core.base.DroolsQuery( "x", [org.kie.api.runtime.rule.Variable.v, 40], null, true), + new org.drools.core.base.DroolsQueryImpl( "x", [org.kie.api.runtime.rule.Variable.v, 40], null, true), new Person('darth', 35, "brie"), // h1 new Person('bobba', 36, 'stilton'), // h2 new Cheese('brie', 10), // h3 diff --git a/drools-core/src/test/resources/org/drools/core/reteoo/test/ExistsNodeUnificationTest.nodeTestCase b/drools-core/src/test/resources/org/drools/core/reteoo/test/ExistsNodeUnificationTest.nodeTestCase index 369fbb186d7..3c0ddd59d93 100644 --- a/drools-core/src/test/resources/org/drools/core/reteoo/test/ExistsNodeUnificationTest.nodeTestCase +++ b/drools-core/src/test/resources/org/drools/core/reteoo/test/ExistsNodeUnificationTest.nodeTestCase @@ -5,7 +5,7 @@ import org.drools.core.test.model.Person; Setup ObjectTypeNode: - otnLeft1, org.drools.core.base.DroolsQuery; + otnLeft1, org.drools.core.base.DroolsQueryImpl; LeftInputAdapterNode: lian0, otnLeft1; ObjectTypeNode: @@ -13,8 +13,8 @@ Setup ObjectTypeNode: otnRight2, Cheese; Binding: - v, 0, org.drools.core.base.DroolsQuery, [0], java.lang.String; - $age, 0, org.drools.core.base.DroolsQuery, [1], java.lang.Integer; + v, 0, org.drools.core.base.DroolsQueryImpl, [0], java.lang.String; + $age, 0, org.drools.core.base.DroolsQueryImpl, [1], java.lang.Integer; p1, 1, Person, age; ExistsNode: exists1, lian0, otnRight1; @@ -24,7 +24,7 @@ Setup join2, exists1, otnRight2; type, :=, v; Facts: - new org.drools.core.base.DroolsQuery( "x", [org.kie.api.runtime.rule.Variable.v, 35], null, true), + new org.drools.core.base.DroolsQueryImpl( "x", [org.kie.api.runtime.rule.Variable.v, 35], null, true), new Person('bobba', 36), new Person('yoda', 35); diff --git a/drools-core/src/test/resources/org/drools/core/reteoo/test/JoinNodeUnificationTest.nodeTestCase b/drools-core/src/test/resources/org/drools/core/reteoo/test/JoinNodeUnificationTest.nodeTestCase index b9110bde737..81a99df13a1 100644 --- a/drools-core/src/test/resources/org/drools/core/reteoo/test/JoinNodeUnificationTest.nodeTestCase +++ b/drools-core/src/test/resources/org/drools/core/reteoo/test/JoinNodeUnificationTest.nodeTestCase @@ -4,7 +4,7 @@ import org.drools.core.test.model.Person; Setup ObjectTypeNode: - otnLeft1, org.drools.core.base.DroolsQuery; + otnLeft1, org.drools.core.base.DroolsQueryImpl; LeftInputAdapterNode: lian0, otnLeft1; ObjectTypeNode: @@ -12,7 +12,7 @@ Setup ObjectTypeNode: otnRight2, Person; Binding: - v, 0, org.drools.core.base.DroolsQuery, [0], java.lang.Integer; + v, 0, org.drools.core.base.DroolsQueryImpl, [0], java.lang.Integer; p1, 1, Person, age; JoinNode: join1, lian0, otnRight1; @@ -21,7 +21,7 @@ Setup join2, join1, otnRight2; age, !=, p1; Facts: - new org.drools.core.base.DroolsQuery( "x", [org.kie.api.runtime.rule.Variable.v], null, true), + new org.drools.core.base.DroolsQueryImpl( "x", [org.kie.api.runtime.rule.Variable.v], null, true), new Person('bobba', 36); Test "Assert right then left" diff --git a/drools-core/src/test/resources/org/drools/core/reteoo/test/NotNodeUnificationTest.nodeTestCase b/drools-core/src/test/resources/org/drools/core/reteoo/test/NotNodeUnificationTest.nodeTestCase index f5f00c77ece..169fd445edc 100644 --- a/drools-core/src/test/resources/org/drools/core/reteoo/test/NotNodeUnificationTest.nodeTestCase +++ b/drools-core/src/test/resources/org/drools/core/reteoo/test/NotNodeUnificationTest.nodeTestCase @@ -5,7 +5,7 @@ import org.drools.core.test.model.Person; Setup ObjectTypeNode: - otnLeft1, org.drools.core.base.DroolsQuery; + otnLeft1, org.drools.core.base.DroolsQueryImpl; LeftInputAdapterNode: lian0, otnLeft1; ObjectTypeNode: @@ -13,8 +13,8 @@ Setup ObjectTypeNode: otnRight2, Cheese; Binding: - v, 0, org.drools.core.base.DroolsQuery, [0], java.lang.String; - $age, 0, org.drools.core.base.DroolsQuery, [1], java.lang.Integer; + v, 0, org.drools.core.base.DroolsQueryImpl, [0], java.lang.String; + $age, 0, org.drools.core.base.DroolsQueryImpl, [1], java.lang.Integer; p1, 1, Person, age; NotNode: not1, lian0, otnRight1; @@ -24,7 +24,7 @@ Setup join2, not1, otnRight2; type, :=, v; Facts: - new org.drools.core.base.DroolsQuery( "x", [org.kie.api.runtime.rule.Variable.v, 35], null, true), + new org.drools.core.base.DroolsQueryImpl( "x", [org.kie.api.runtime.rule.Variable.v, 35], null, true), new Person('bobba', 36), new Person('yoda', 35); diff --git a/drools-core/src/test/resources/org/drools/core/xml/test-change-set.xml b/drools-core/src/test/resources/org/drools/core/xml/test-change-set.xml index 51418566c53..b16fd5533c4 100644 --- a/drools-core/src/test/resources/org/drools/core/xml/test-change-set.xml +++ b/drools-core/src/test/resources/org/drools/core/xml/test-change-set.xml @@ -1,3 +1,23 @@ + diff --git a/drools-core/src/test/resources/rule-agent-config.properties b/drools-core/src/test/resources/rule-agent-config.properties index 8d8237499cf..ae786f68dfa 100644 --- a/drools-core/src/test/resources/rule-agent-config.properties +++ b/drools-core/src/test/resources/rule-agent-config.properties @@ -1,3 +1,22 @@ +# +# 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. +# + ## ## RuleAgent configuration file example ## diff --git a/drools-core/src/test/resources/rule-base-rule-agent-config.properties b/drools-core/src/test/resources/rule-base-rule-agent-config.properties index 20fc4178250..7255df0f68d 100644 --- a/drools-core/src/test/resources/rule-base-rule-agent-config.properties +++ b/drools-core/src/test/resources/rule-base-rule-agent-config.properties @@ -1,3 +1,22 @@ +# +# 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. +# + ## ## RuleAgent configuration file example ## diff --git a/drools-core/src/test/resources/sample-agent-config.properties b/drools-core/src/test/resources/sample-agent-config.properties index 9d5c2a0f4fa..cc15d10a9e0 100644 --- a/drools-core/src/test/resources/sample-agent-config.properties +++ b/drools-core/src/test/resources/sample-agent-config.properties @@ -1,3 +1,22 @@ +# +# 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. +# + newInstance=true dir=/home/packages file=/foo/bar.pkg \ diff --git a/drools-decisiontables/pom.xml b/drools-decisiontables/pom.xml index 1368fcac61e..8e619b0b2da 100644 --- a/drools-decisiontables/pom.xml +++ b/drools-decisiontables/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -23,11 +43,7 @@ org.drools - drools-core - - - org.drools - drools-compiler + drools-drl-extensions org.drools diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/DecisionTableProviderImpl.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/DecisionTableProviderImpl.java index 1a902938367..a809b8ff8e1 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/DecisionTableProviderImpl.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/DecisionTableProviderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable; import java.io.File; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/ExternalSpreadsheetCompiler.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/ExternalSpreadsheetCompiler.java index 6521a9a4f68..431f565336c 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/ExternalSpreadsheetCompiler.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/ExternalSpreadsheetCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable; import java.io.IOException; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/InputType.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/InputType.java index 1e2a08f2b2f..6c305d91d27 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/InputType.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/InputType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable; import java.util.List; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/SpreadsheetCompiler.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/SpreadsheetCompiler.java index bb6d971178b..78b4c93534e 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/SpreadsheetCompiler.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/SpreadsheetCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.decisiontable; import java.io.IOException; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/package-info.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/package-info.java index 1d6e42507fa..d16f77e6d21 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/package-info.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/package-info.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ /** * * This it a utility for using spreadsheets to manage rules. Use SpreasheetCompiler. diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java index 303cf167251..7ab48769955 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import java.util.EnumSet; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/DecisionTableParser.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/DecisionTableParser.java index 89153aed5b0..1d752ccdc30 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/DecisionTableParser.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/DecisionTableParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import java.io.File; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/DefaultRuleSheetListener.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/DefaultRuleSheetListener.java index 8ee5df06060..f2606c0bab0 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/DefaultRuleSheetListener.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/DefaultRuleSheetListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.decisiontable.parser; import java.util.ArrayList; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/LhsBuilder.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/LhsBuilder.java index 94c30f74e07..8d86c4d0f6f 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/LhsBuilder.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/LhsBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable.parser; import java.util.ArrayList; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RhsBuilder.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RhsBuilder.java index 12e08abf318..f4be4f8be99 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RhsBuilder.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RhsBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.decisiontable.parser; import java.util.ArrayList; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleMatrixSheetListener.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleMatrixSheetListener.java index a66006f1cb4..dc2014554e0 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleMatrixSheetListener.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleMatrixSheetListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import java.util.ArrayList; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetListener.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetListener.java index b143eb0e171..2c2ca48bd31 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetListener.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import org.drools.decisiontable.parser.xls.PropertiesSheetListener.CaseInsensitiveMap; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetParserUtil.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetParserUtil.java index 47a28f91656..3a8f57cdb6a 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetParserUtil.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/RuleSheetParserUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import java.util.ArrayList; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/SourceBuilder.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/SourceBuilder.java index 589c09f3c2d..e2cd74050cc 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/SourceBuilder.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/SourceBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable.parser; /** diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java index c2a33524ee9..a048251edfe 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvLineParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser.csv; import java.util.ArrayList; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvParser.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvParser.java index 4a05f61fc8f..05092534d94 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvParser.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/csv/CsvParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser.csv; import java.io.BufferedReader; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/ExcelParser.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/ExcelParser.java index 2698574bcdc..c5f011cfb91 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/ExcelParser.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/ExcelParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.decisiontable.parser.xls; import java.io.File; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/NullSheetListener.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/NullSheetListener.java index 66c67891ee0..b3bc41c93c2 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/NullSheetListener.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/NullSheetListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser.xls; import org.drools.template.parser.DataListener; diff --git a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/PropertiesSheetListener.java b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/PropertiesSheetListener.java index 821b74122ae..5f64f49d4a8 100644 --- a/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/PropertiesSheetListener.java +++ b/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/xls/PropertiesSheetListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.decisiontable.parser.xls; import java.util.ArrayList; diff --git a/drools-decisiontables/src/test/java/com/sample/FactData.java b/drools-decisiontables/src/test/java/com/sample/FactData.java index 53a3a77e566..c6b567e84d0 100644 --- a/drools-decisiontables/src/test/java/com/sample/FactData.java +++ b/drools-decisiontables/src/test/java/com/sample/FactData.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package com.sample; /** diff --git a/drools-decisiontables/src/test/java/org/acme/insurance/Driver.java b/drools-decisiontables/src/test/java/org/acme/insurance/Driver.java index 60c4040d785..943fc3048ce 100644 --- a/drools-decisiontables/src/test/java/org/acme/insurance/Driver.java +++ b/drools-decisiontables/src/test/java/org/acme/insurance/Driver.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.acme.insurance; /** diff --git a/drools-decisiontables/src/test/java/org/acme/insurance/Policy.java b/drools-decisiontables/src/test/java/org/acme/insurance/Policy.java index ab28a15a7c3..2504a2e4545 100644 --- a/drools-decisiontables/src/test/java/org/acme/insurance/Policy.java +++ b/drools-decisiontables/src/test/java/org/acme/insurance/Policy.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.acme.insurance; /** diff --git a/drools-decisiontables/src/test/java/org/acme/insurance/launcher/PricingRuleLauncher.java b/drools-decisiontables/src/test/java/org/acme/insurance/launcher/PricingRuleLauncher.java index 3c4e4637f64..3dc68ea9897 100644 --- a/drools-decisiontables/src/test/java/org/acme/insurance/launcher/PricingRuleLauncher.java +++ b/drools-decisiontables/src/test/java/org/acme/insurance/launcher/PricingRuleLauncher.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.acme.insurance.launcher; import java.io.InputStream; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/CalendarTimerResourcesTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/CalendarTimerResourcesTest.java index fe6029aa2c7..875c57a2f9f 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/CalendarTimerResourcesTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/CalendarTimerResourcesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable; import java.util.Calendar; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/Cheese.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/Cheese.java index bd07f910cb7..f2a7596ea66 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/Cheese.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/Cheese.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable; public class Cheese { diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/ColumnReplaceTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/ColumnReplaceTest.java index bd4a78873a0..62b75c7751d 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/ColumnReplaceTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/ColumnReplaceTest.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.junit.Test; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/DecimalSeparatorTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/DecimalSeparatorTest.java index 5a939c38942..92e749eca2c 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/DecimalSeparatorTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/DecimalSeparatorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.decisiontable; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/DumpGeneratedDrlTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/DumpGeneratedDrlTest.java index ecf0863bff2..214859716fe 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/DumpGeneratedDrlTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/DumpGeneratedDrlTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable; import java.io.File; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/EmptyHeaderTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/EmptyHeaderTest.java index 84dc4a9d5c4..d3be1fbfb0e 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/EmptyHeaderTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/EmptyHeaderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.decisiontable; import org.drools.template.parser.DecisionTableParseException; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/ExternalSpreadsheetCompilerTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/ExternalSpreadsheetCompilerTest.java index 90c8d81f797..ede2030c4d4 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/ExternalSpreadsheetCompilerTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/ExternalSpreadsheetCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable; import java.util.ArrayList; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/FixedPatternTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/FixedPatternTest.java index e2fe75f0aee..99d1f0adc48 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/FixedPatternTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/FixedPatternTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable; import java.util.ArrayList; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/IgnoreNumericFormatTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/IgnoreNumericFormatTest.java index d1588c55a2e..857ace04324 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/IgnoreNumericFormatTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/IgnoreNumericFormatTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.decisiontable; import java.io.IOException; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/LineBreakXLSTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/LineBreakXLSTest.java index 11294a2dccc..864e15ccd46 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/LineBreakXLSTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/LineBreakXLSTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.decisiontable; import com.sample.FactData; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/LinkedWorkbookTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/LinkedWorkbookTest.java index fc9dbfbfbc8..557bbc8fdf2 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/LinkedWorkbookTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/LinkedWorkbookTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable; import java.io.InputStream; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/MakeSureMultiLinesWorkTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/MakeSureMultiLinesWorkTest.java index f95bffaa181..4200d906990 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/MakeSureMultiLinesWorkTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/MakeSureMultiLinesWorkTest.java @@ -1,16 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ package org.drools.decisiontable; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/Person.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/Person.java index 723b0deed97..2482d4e65a0 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/Person.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable; public class Person { diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/PrioritySetWithFormulaTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/PrioritySetWithFormulaTest.java index aa47a0e3600..35f057a84d8 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/PrioritySetWithFormulaTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/PrioritySetWithFormulaTest.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.junit.Before; import org.junit.Test; import org.kie.api.KieBase; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/SpreadsheetCompilerUnitTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/SpreadsheetCompilerUnitTest.java index e1606e574c0..b7b7a897cab 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/SpreadsheetCompilerUnitTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/SpreadsheetCompilerUnitTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.decisiontable; import java.io.InputStream; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/SpreadsheetIntegrationExampleTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/SpreadsheetIntegrationExampleTest.java index 3c2faf3eeb3..4114466232a 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/SpreadsheetIntegrationExampleTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/SpreadsheetIntegrationExampleTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable; import java.util.ArrayList; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInCSVTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInCSVTest.java index 9c3ad2ff244..9f8da876726 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInCSVTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInCSVTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable; import java.util.ArrayList; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInXLSTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInXLSTest.java index 151f163b301..43dedef0e93 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInXLSTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/UnicodeInXLSTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable; import java.util.ArrayList; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/ValueHolder.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/ValueHolder.java index a8374380208..59f9c0e4b49 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/ValueHolder.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/ValueHolder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable; import java.math.BigDecimal; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/XlsFormulaTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/XlsFormulaTest.java index 845b1168672..0536688654b 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/XlsFormulaTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/XlsFormulaTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable; import java.util.ArrayList; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/integrationtests/IncrementalCompilationTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/integrationtests/IncrementalCompilationTest.java index aa96ee3a8de..ff6213f89f3 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/integrationtests/IncrementalCompilationTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/integrationtests/IncrementalCompilationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable.integrationtests; import java.io.InputStream; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/integrationtests/KModuleWithDecisionTablesTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/integrationtests/KModuleWithDecisionTablesTest.java index ff0587b8893..8ec05fd9d7d 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/integrationtests/KModuleWithDecisionTablesTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/integrationtests/KModuleWithDecisionTablesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable.integrationtests; import org.junit.Test; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/ActionTypeTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/ActionTypeTest.java index e2eecec05bb..d86cd606185 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/ActionTypeTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/ActionTypeTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable.parser; import java.util.HashMap; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/ColumnFactoryTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/ColumnFactoryTest.java index b22250561fd..20384ab5118 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/ColumnFactoryTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/ColumnFactoryTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable.parser; import org.drools.template.parser.ArrayColumn; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/LhsBuilderTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/LhsBuilderTest.java index 765cb480575..4ba1b0c0be0 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/LhsBuilderTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/LhsBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable.parser; import org.junit.Test; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/PropertiesSheetListenerTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/PropertiesSheetListenerTest.java index 23a2d23b025..acba2c64b5a 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/PropertiesSheetListenerTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/PropertiesSheetListenerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.decisiontable.parser; import org.drools.decisiontable.parser.xls.PropertiesSheetListener; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RhsBuilderTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RhsBuilderTest.java index aa500abd38c..555af32b981 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RhsBuilderTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RhsBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.decisiontable.parser; import org.junit.Test; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleSheetParserUtilTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleSheetParserUtilTest.java index 529daf0786c..3463fc43829 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleSheetParserUtilTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleSheetParserUtilTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import java.util.List; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParse2Test.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParse2Test.java index a019c6ea07c..64f56d6cc17 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParse2Test.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParse2Test.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import org.drools.template.model.DRLOutput; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParseFromFileTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParseFromFileTest.java index d35be3b4948..1857e5fed37 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParseFromFileTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParseFromFileTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import java.io.IOException; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParseLargeTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParseLargeTest.java index d7900fa7fee..5aa984eb3bb 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParseLargeTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RuleWorksheetParseLargeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import java.io.InputStream; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RulesheetUtil.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RulesheetUtil.java index c8ce1702627..2df87418156 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RulesheetUtil.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/RulesheetUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser; import java.io.IOException; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/csv/CsvLineParserTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/csv/CsvLineParserTest.java index 96fc54e423a..01cdff89842 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/csv/CsvLineParserTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/csv/CsvLineParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser.csv; import java.util.List; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/csv/CsvParserTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/csv/CsvParserTest.java index f335569ae43..ff69bb3ad50 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/csv/CsvParserTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/csv/CsvParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser.csv; import java.util.HashMap; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/xls/ExcelParserTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/xls/ExcelParserTest.java index a65bb29499b..90556d0615d 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/xls/ExcelParserTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/parser/xls/ExcelParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.decisiontable.parser.xls; import java.io.IOException; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/project/MultiKieBaseTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/project/MultiKieBaseTest.java index 92a679d9a40..1deb04797a4 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/project/MultiKieBaseTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/project/MultiKieBaseTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.decisiontable.project; import org.junit.After; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/project/MultiSheetsTest.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/project/MultiSheetsTest.java index 035bbded5a1..0b44cf395b3 100644 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/project/MultiSheetsTest.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/project/MultiSheetsTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.decisiontable.project; import org.junit.After; diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/project/Person.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/project/Person.java index d84d9608b1d..34979c2c9a1 100755 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/project/Person.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/project/Person.java @@ -1,18 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.decisiontable.project; public class Person { diff --git a/drools-decisiontables/src/test/java/org/drools/decisiontable/project/Result.java b/drools-decisiontables/src/test/java/org/drools/decisiontable/project/Result.java index ff3c1939643..213191b0fbe 100755 --- a/drools-decisiontables/src/test/java/org/drools/decisiontable/project/Result.java +++ b/drools-decisiontables/src/test/java/org/drools/decisiontable/project/Result.java @@ -1,18 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.decisiontable.project; import java.util.ArrayList; diff --git a/drools-decisiontables/src/test/java/org/kie/kogito/quickstart/Person.java b/drools-decisiontables/src/test/java/org/kie/kogito/quickstart/Person.java index 619e5f183af..41c2ff9ebac 100644 --- a/drools-decisiontables/src/test/java/org/kie/kogito/quickstart/Person.java +++ b/drools-decisiontables/src/test/java/org/kie/kogito/quickstart/Person.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.kogito.quickstart; public class Person { diff --git a/drools-decisiontables/src/test/java/org/kie/kogito/quickstart/Result.java b/drools-decisiontables/src/test/java/org/kie/kogito/quickstart/Result.java index bb51f79cf89..7d4017ffc50 100644 --- a/drools-decisiontables/src/test/java/org/kie/kogito/quickstart/Result.java +++ b/drools-decisiontables/src/test/java/org/kie/kogito/quickstart/Result.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.kogito.quickstart; public class Result { diff --git a/drools-decisiontables/src/test/resources/META-INF/kmodule.xml b/drools-decisiontables/src/test/resources/META-INF/kmodule.xml index 3527ebca45d..861cd940298 100644 --- a/drools-decisiontables/src/test/resources/META-INF/kmodule.xml +++ b/drools-decisiontables/src/test/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-decisiontables/src/test/resources/logback-test.xml b/drools-decisiontables/src/test/resources/logback-test.xml index 746ec95fc75..9444605a1e6 100644 --- a/drools-decisiontables/src/test/resources/logback-test.xml +++ b/drools-decisiontables/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.xml b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.xml index 3b76fa94dac..564c5f98bd7 100644 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.xml +++ b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeSetTestCSV.xml @@ -1,3 +1,23 @@ + diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.xml b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.xml index 21ea5344ed7..549cb25cce5 100644 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.xml +++ b/drools-decisiontables/src/test/resources/org/drools/decisiontable/changeset1Test.xml @@ -1,3 +1,23 @@ + diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheetsChangeSet.xml b/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheetsChangeSet.xml index 38a5b097bea..8b0b87fc0a0 100644 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheetsChangeSet.xml +++ b/drools-decisiontables/src/test/resources/org/drools/decisiontable/multipleSheetsChangeSet.xml @@ -1,3 +1,23 @@ + diff --git a/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.xml b/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.xml index 6ccd2c8142c..cb638d57c97 100644 --- a/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.xml +++ b/drools-decisiontables/src/test/resources/org/drools/decisiontable/scannerChangeSetTestCSV.xml @@ -1,3 +1,23 @@ + diff --git a/drools-distribution/pom.xml b/drools-distribution/pom.xml index 40e716c98da..ca2607bcc57 100644 --- a/drools-distribution/pom.xml +++ b/drools-distribution/pom.xml @@ -6,7 +6,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-docs/antora-playbook.yml b/drools-docs/antora-playbook.yml index 880372edb98..7fb961c663b 100644 --- a/drools-docs/antora-playbook.yml +++ b/drools-docs/antora-playbook.yml @@ -1,7 +1,7 @@ # We use author-mode for antora build because we generate antora.yml during the maven build site: title: Drools Documentation - url: https://www.drools.org/docs + url: https://docs.drools.org/latest/drools-docs start_page: drools::introduction/index.adoc robots: allow content: diff --git a/drools-docs/pom.xml b/drools-docs/pom.xml index 47c992684a2..138a53dc190 100755 --- a/drools-docs/pom.xml +++ b/drools-docs/pom.xml @@ -7,7 +7,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-docs/src/main/assembly/generated-docs-zip.xml b/drools-docs/src/main/assembly/generated-docs-zip.xml index 59e03287039..416f73a353f 100644 --- a/drools-docs/src/main/assembly/generated-docs-zip.xml +++ b/drools-docs/src/main/assembly/generated-docs-zip.xml @@ -12,7 +12,7 @@ ${project.build.directory}/website/docs/ - docs-website/ + / diff --git a/drools-docs/src/modules/ROOT/images/language-reference/groupby.png b/drools-docs/src/modules/ROOT/images/language-reference/groupby.png new file mode 100644 index 00000000000..ae4eb8b1f51 Binary files /dev/null and b/drools-docs/src/modules/ROOT/images/language-reference/groupby.png differ diff --git a/drools-docs/src/modules/ROOT/images/language-reference/groupby.svg b/drools-docs/src/modules/ROOT/images/language-reference/groupby.svg new file mode 100644 index 00000000000..ad9927c571a --- /dev/null +++ b/drools-docs/src/modules/ROOT/images/language-reference/groupby.svg @@ -0,0 +1,1314 @@ + + + + + + + + + + + + + + + + + + + + + + Page-1 + + + + + Process.49 + pattern + + + + + + + + + + + + pattern + + Dynamic connector.52 + + + + On-page reference.53 + + + + + + + + Dynamic connector.55 + + + + Process.60 + ‘from’ + + + + + + + + + + + + ‘from’ + + Process.61 + ‘accumulate’ + + + + + + + + + + + + ‘groupby’ + + Dynamic connector.65 + + + + Dynamic connector.66 + + + + Process.45 + ‘(‘ + + + + + + + + + + + + ‘(‘ + + Dynamic connector.74 + + + + Dynamic connector.75 + + + + Process.76 + pattern + + + + + + + + + + + + pattern + + Process.77 + collect + + + + + + + + + + + + collect + + Process.78 + accumulate + + + + + + + + + + + + groupby + + Process.79 + from + + + + + + + + + + + + from + + Dynamic connector.80 + + + + Dynamic connector.81 + + + + Dynamic connector.82 + + + + Dynamic connector.83 + + + + Dynamic connector.84 + + + + Dynamic connector.85 + + + + Process.86 + init + + + + + + + + + + + + init + + Process.87 + action + + + + + + + + + + + + action + + Process.88 + reverse + + + + + + + + + + + + reverse + + Process.89 + result + + + + + + + + + + + + result + + Dynamic connector.90 + + + + Dynamic connector.91 + + + + Dynamic connector.92 + + + + Dynamic connector.93 + + + + Process.94 + accumulateFunction + + + + + + + + + + + + accumulateFunction + + Dynamic connector.95 + + + + Process.97 + ‘)’ + + + + + + + + + + + + ‘)’ + + On-page reference.98 + + + + + + + + Dynamic connector.99 + + + + Dynamic connector.100 + + + + Dynamic connector.101 + + + + Process.94 + accumulateFunction + + + + + + + + + + + + keyFunction + Dynamic connector.90 + + + Dynamic connector.90 + + + diff --git a/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_KIEBuilding-section.adoc b/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_KIEBuilding-section.adoc index 1d241298509..2a65195fa1e 100644 --- a/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_KIEBuilding-section.adoc +++ b/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_KIEBuilding-section.adoc @@ -347,6 +347,43 @@ For example: ---- ==== +[[_buildingwithmavenandrunningdroolsinauberjarorfatjar]] +== Building with Maven and running Drools in a uber-jar or fat jar + +When building and running Drools in a _uber-jar_ (also known as a _fat JAR_ or _JAR with dependencies_), for example created by the Maven Shade Plugin, you will need to maintain conflicting resources from all dependencies. +For instance when depending on `org.drools:drools-ecj` in your build, the `org.eclipse.jdt:ecj` dependency is transitively added, and you might want to remove signature files from the _ECJ artifact_ which would not match in the final artifact. +In this case the Maven Shade Plugin could be configured as it follows: +// example from https://docs.oracle.com/en-us/iaas/data-flow/data-flow-tutorial/develop-apps-locally/create-fat-jars.htm --> +[source] +---- + + org.apache.maven.plugins + maven-shade-plugin + 3.1.0 + + + package + + shade + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + + + +---- + [[_definingakiemoduleprogrammatically]] == Defining a KieModule programmatically diff --git a/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_KIEDeploying-section.adoc b/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_KIEDeploying-section.adoc index 45821449126..1392bd6b8e9 100644 --- a/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_KIEDeploying-section.adoc +++ b/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_KIEDeploying-section.adoc @@ -182,9 +182,9 @@ It is important that you activate the profile that specifies the remote reposito profile-1 - + true - + ... diff --git a/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_rule-unit-dsl.adoc b/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_rule-unit-dsl.adoc index 5f5e392d08c..5f2d397d3c0 100644 --- a/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_rule-unit-dsl.adoc +++ b/drools-docs/src/modules/ROOT/pages/KIE/BuildDeployUtilizeAndRun/_rule-unit-dsl.adoc @@ -2,7 +2,21 @@ = Rule Unit DSL -In addition to the standard Rule Unit API, {PRODUCT} 8 offers an alternative way of writing rules in combination with Rule Unit. You can now define the rules for Rule Units using a dedicated set of Java APIs. Let's learn with comments on the example. +In addition to the standard Rule Unit API, {PRODUCT} 8 offers an alternative way of writing rules in combination with Rule Unit. +You can now define the rules for Rule Units using a dedicated set of Java APIs. + +TIP: As an end-user, you can think of the Rule Unit DSL as an alternative to DRL, in order to define your rules with an internal DSL using Java. +This can be helpful if you are authoring rules as a {PRODUCT} end-user, but you are also proficient with Java: +in that case, you now can define rules with DRL or Rule Unit DSL. + +CAUTION: The Rule Unit DSL is _not_ intended to be used a way to code-generate executable model code, nor to produce DRL files. +The goal of the Rule Unit DSL is to programmatically invoke the exec model methods (at runtime). +As a developer using {PRODUCT} for your application development +(you do not write the rules yourself, you write the Java code to integrate {PRODUCT} in your app development for your end-users) +you may find helpful to leverage _programmatically_ the Rule Unit DSL _only_ for very dynamic use-cases, +that is when the rule is only known at runtime, and compile-time performance optimizations are not needed. + +Let's learn with comments on the example. [source,java] ---- diff --git a/drools-docs/src/modules/ROOT/pages/experimental-features/_experimental-traits.adoc b/drools-docs/src/modules/ROOT/pages/experimental-features/_experimental-traits.adoc index e8d539ba1cb..f81bca2e505 100644 --- a/drools-docs/src/modules/ROOT/pages/experimental-features/_experimental-traits.adoc +++ b/drools-docs/src/modules/ROOT/pages/experimental-features/_experimental-traits.adoc @@ -30,7 +30,7 @@ When a trait is applied to a fact, a proxy class is created on the fly (one such [source] ---- -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; declare Customer @Traitable code: String @@ -50,11 +50,11 @@ then end ---- -In this case, the `code` and `balance` would be read from the underlying `Customer` object. Likewise, the `setAccount` will modify the underlying object, preserving a strongly typed access to the data structures. A hard field is a field that must have the same name and type both in the fact class and all trait interfaces. The name is used to establish the mapping: if two fields have the same name, then they must also have the same declared type. The annotation `@org.drools.core.factmodel.traits.Alias` allows to relax this restriction. If an `@Alias` is provided, its value string will be used to resolve mappings instead of the original field name. `@Alias` can be applied both to traits and core beans. +In this case, the `code` and `balance` would be read from the underlying `Customer` object. Likewise, the `setAccount` will modify the underlying object, preserving a strongly typed access to the data structures. A hard field is a field that must have the same name and type both in the fact class and all trait interfaces. The name is used to establish the mapping: if two fields have the same name, then they must also have the same declared type. The annotation `@org.drools.base.factmodel.traits.Alias` allows to relax this restriction. If an `@Alias` is provided, its value string will be used to resolve mappings instead of the original field name. `@Alias` can be applied both to traits and core beans. [source] ---- -import org.drools.core.factmodel.traits.*; +import org.drools.base.factmodel.traits.*; declare trait GoldenCustomer balance: long @Alias("org.acme.foo.accountBalance") end @@ -121,7 +121,7 @@ then Thing t = shed($x, GoldenCustomer.class) ---- -This operation returns another proxy implementing the `org.drools.core.factmodel.traits.Thing` interface, where the `getFields()` and `getCore()` methods are defined. Internally, in fact, all declared traits are generated to extend this interface (in addition to any others specified). This allows to preserve the wrapper with the soft fields which would otherwise be lost. +This operation returns another proxy implementing the `org.drools.base.factmodel.traits.Thing` interface, where the `getFields()` and `getCore()` methods are defined. Internally, in fact, all declared traits are generated to extend this interface (in addition to any others specified). This allows to preserve the wrapper with the soft fields which would otherwise be lost. A trait and its proxies are also correlated in another way. Whenever a fact object is "modified", its proxies are "modified" automatically as well, to allow trait-based patterns to react to potential changes in hard fields. Likewise, whenever a trait proxy (matched by a trait pattern) is modified, the modification is propagated to the fact class and the other traits. Moreover, whenever a `don` operation is performed, the fact object is also modified automatically, to reevaluate any `isA` operation which may be triggered. @@ -196,7 +196,7 @@ gc1.getRefers(); // returns c2, a Customer proxy wrapping p2 Notice that, by the time `p1` becomes `GoldenCustomer`, `p2` must have already become a `Customer` themselves, otherwise a runtime exception will be thrown since the very definition of `GoldenCustomer` would have been violated. -In some cases, however, one may want to infer, rather than verify, that `p2` is a `Customer` by virtue that `p1` is a `GoldenCustomer`. This modality can be enabled by marking `Customer` as "logical", using the annotation `@org.drools.core.factmodel.traits.Trait(logical = true)`. In this case, should `p2` not be a `Customer` by the time that `p1` becomes a `GoldenCustomer`, it will be automatically assigned the trait `Customer` to preserve the logical integrity of the system. +In some cases, however, one may want to infer, rather than verify, that `p2` is a `Customer` by virtue that `p1` is a `GoldenCustomer`. This modality can be enabled by marking `Customer` as "logical", using the annotation `@org.drools.base.factmodel.traits.Trait(logical = true)`. In this case, should `p2` not be a `Customer` by the time that `p1` becomes a `GoldenCustomer`, it will be automatically assigned the trait `Customer` to preserve the logical integrity of the system. Notice that the annotation on the fact class enables the dynamic type management for its fields, whereas the annotation on the traits determines whether they will be enforced as integrity constraints or cascaded dynamically. diff --git a/drools-docs/src/modules/ROOT/pages/language-reference/_drl-rules.adoc b/drools-docs/src/modules/ROOT/pages/language-reference/_drl-rules.adoc index d6215edba98..4d5142347e0 100644 --- a/drools-docs/src/modules/ROOT/pages/language-reference/_drl-rules.adoc +++ b/drools-docs/src/modules/ROOT/pages/language-reference/_drl-rules.adoc @@ -2072,6 +2072,7 @@ NOTE: The format `forall( p1 p2 p3 ...)` is equivalent to `not( p1 and not( and -- +[id=accumulate] `accumulate`:: Use this to iterate over a collection of objects, execute custom actions for each of the elements, and return one or more result objects (if the constraints evaluate to `true`). You can use predefined functions in your `accumulate` conditions or implement custom functions as needed. You can also use the abbreviation `acc` for `accumulate` in rule conditions. + @@ -2261,6 +2262,86 @@ Note that `drools.accumulate.function` is a required prefix, `average` is how th ==== -- +`groupby`:: +Use this to partition a collection of objects into groups, and perform accumulate functions independently on each group. You can use predefined functions in your `groupby` conditions or implement custom functions as needed. ++ +-- +Use the following format to define `groupby` conditions in rules: + +.Preferred format for `groupby` +[source,subs="+quotes"] +---- +groupby( __SOURCE_PATTERN__; __KEY_FUNCTION__ ; __FUNCTIONS__ [;__CONSTRAINTS__] ) +---- + +.Groupby +image::language-reference/groupby.png[align="center"] + +The {RULE_ENGINE} supports the same predefined `accumulate` functions that <> allows. These functions accept any expression as input. + +In the following example rule, `min`, `max`, and `average` are `accumulate` functions that calculate the minimum, maximum, and average temperature values over all the readings for each sensor by area: + +.Example rule with `groupby` to calculate temperature values +[source] +---- +rule "Raise alarm" + when + s : /sensors + groupby( /readings( sensor == $s, $temp : temperature, $area: area ); + $group: $area ; + $min : min( $temp ), + $max : max( $temp ), + $avg : average( $temp ); + $min < 20, $avg > 70 ) + then + // Raise the alarm for the group. + $group.raiseAlarm(); +end +---- + +The following example rule uses the `average` function with `accumulate` to calculate the average profit for all items in an order: + +.Example rule with `groupby` to calculate average profit +[source] +---- +rule "Average profit" + when + groupby( /orderItems( $order : order, $cost : cost, $price : price ); + $group: $order; + $avgProfit : average( 1 - $cost / $price ) ) + then + // Average profit for `$group` is `$avgProfit`. +end +---- + +NOTE: Built-in accumulate functions' return types may vary depend on parameter types. `min` and `max` can take `Comparable` parameters even if they are not numeric types, for example, `LocalDateTime`. In this case, the return type would be `Comparable`, so you may need to cast the bind variable of the return value in the rule. + +To use custom, domain-specific functions in `groupby` conditions, follow the same procedure as <>. + +To use the custom function in a DRL rule, import the function using the `import accumulate` statement: + +.Format to import a custom function +[source,subs="+quotes"] +---- +import accumulate __CLASS_NAME__ __FUNCTION_NAME__ +---- + +.Example rule with the imported `average` function +[source] +---- +import accumulate AverageAccumulateFunction.AverageData average + +rule "Average profit" + when + groupby( /orderItems[ $order : order, $cost : cost, $price : price ]; + $group: $order; + $avgProfit : average( 1 - $cost / $price ) ) + then + // Average profit for `$group` is `$avgProfit`. +end +---- +-- + [id="ref-drl-rules-conditions-elements-diagrams_{context}"] === Railroad diagrams for rule condition elements in DRL @@ -2514,9 +2595,21 @@ update ( ) // Causes `KieSession` to search for a fact handle of the o [source] ---- $application.setAmount( 100 ); -update( LoanApplication ); +update( $application ); ---- +[NOTE] +==== +When `modify` or `update` is called in a rule, its actual evaluation happens after executing the whole RHS code. It means all modifications in the RHS will affect in the evaluation. For example, +[source] +---- +$application.setAmount( 100 ); +update( $application ); +$application.setApproved( true ); +---- +The modifications of both `amount` and `approved` are considered in the evaluation of the update. +==== + NOTE: If you provide property-change listeners, you do not need to call this method when an object changes. For more information about property-change listeners, see xref:rule-engine/index.adoc#property-change-listeners-con_rule-engine[Property-change settings and listeners for fact types]. diff --git a/drools-docs/src/modules/ROOT/pages/release-notes/_release-notes-8.40.adoc b/drools-docs/src/modules/ROOT/pages/release-notes/_release-notes-8.40.adoc new file mode 100644 index 00000000000..652e9d61e67 --- /dev/null +++ b/drools-docs/src/modules/ROOT/pages/release-notes/_release-notes-8.40.adoc @@ -0,0 +1,7 @@ +== 8.40.0.Final release notes + +=== `kie-maven-plugin` update with maven compiler release + +In order to make the `kie-maven-plugin` compatible with Maven-based project using a more recent version of the JDK, the plugin will now also look at the `maven.compiler.release` property to infer the language level to use during the build, with precedence over the `java.version` property (old behaviour). + +When the `kie-maven-plugin` is used in a Maven-based project, we recommend NOT to set the `drools.dialect.java.compiler.lnglevel` in your KJAR project, so that the version of the JDK to be used is the one fully governed by the whole Maven build (including Java source files). diff --git a/drools-docs/src/modules/ROOT/pages/release-notes/index.adoc b/drools-docs/src/modules/ROOT/pages/release-notes/index.adoc index ba7523ff830..aecf038023a 100644 --- a/drools-docs/src/modules/ROOT/pages/release-notes/index.adoc +++ b/drools-docs/src/modules/ROOT/pages/release-notes/index.adoc @@ -11,6 +11,8 @@ This chapter contains the release notes for the {PRODUCT} 8-series. For the release notes of the _previous releases_, you can refer to the {PRODUCT} documentation of link:https://docs.drools.org/7.73.0.Final/drools-docs/html_single/index.html#droolsreleasenoteschapter[version 7]. +include::_release-notes-8.40.adoc[leveloffset=0] + include::_release-notes-8.33.adoc[leveloffset=0] include::_release-notes-8.32.adoc[leveloffset=0] diff --git a/drools-docs/src/modules/ROOT/pages/rule-engine/_inference-and-truth-maintenance.adoc b/drools-docs/src/modules/ROOT/pages/rule-engine/_inference-and-truth-maintenance.adoc index aa083727850..78b914fc0c6 100644 --- a/drools-docs/src/modules/ROOT/pages/rule-engine/_inference-and-truth-maintenance.adoc +++ b/drools-docs/src/modules/ROOT/pages/rule-engine/_inference-and-truth-maintenance.adoc @@ -13,7 +13,7 @@ rule "Infer Adult" when $p : Person(age >= 18) then - insert(new IsAdult($p)) + insert(new IsAdult($p)); end ---- @@ -63,14 +63,14 @@ rule "Infer Child" when $p : Person(age < 18) then - insertLogical(new IsChild($p)) + insertLogical(new IsChild($p)); end rule "Infer Adult" when $p : Person(age >= 18) then - insertLogical(new IsAdult($p)) + insertLogical(new IsAdult($p)); end ---- diff --git a/drools-docs/src/modules/ROOT/pages/rule-engine/_rule-base-configuration-con.adoc b/drools-docs/src/modules/ROOT/pages/rule-engine/_rule-base-configuration-con.adoc index 992cf3704a3..63ee143bc73 100644 --- a/drools-docs/src/modules/ROOT/pages/rule-engine/_rule-base-configuration-con.adoc +++ b/drools-docs/src/modules/ROOT/pages/rule-engine/_rule-base-configuration-con.adoc @@ -39,34 +39,39 @@ KieBase kieBase = kieContainer.newKieBase(kieBaseConf); ---- -- -drools.multithreadEvaluation:: -When enabled, this system property enables the {RULE_ENGINE} to evaluate rules in parallel by dividing the Phreak rule network into independent partitions. You can use this property to increase the speed of rule evaluation for specific rule bases. +drools.parallelExecution:: +When in use, this system property allows the {RULE_ENGINE} to only evaluate or both evaluate and execute rules in parallel by dividing the Phreak rule network into independent partitions. You can use this property to increase the speed of rule evaluation for specific rule bases. This option has 3 possible values: + +* `sequential` : evaluates and executes all rules sequentially +* `parallel_evaluation` : evaluates rules in parallel but fires consequence sequentially respecting the semantic imposed by salience and agenda-groups. +* `fully_parallel` : evaluates and executes everything in parallel + + -- -Default value: `false` +Default value: `sequential` -You can enable multithreaded evaluation using one of the following options: +You can enable parallel evaluation using one of the following options: -* Enable the multithreaded evaluation system property: +* Enable the parallel evaluation system property: + [source] ---- -drools.multithreadEvaluation=true +drools.parallelExecution=fully_parallel ---- -* Enable multithreaded evaluation while creating the KIE base programmatically: +* Enable parallel evaluation while creating the KIE base programmatically: + [source,java] ---- KieServices ks = KieServices.Factory.get(); KieBaseConfiguration kieBaseConf = ks.newKieBaseConfiguration(); -kieBaseConf.setOption(MultithreadEvaluationOption.YES); +kieBaseConf.setOption(ParallelExecutionOption.FULLY_PARALLEL); KieBase kieBase = kieContainer.newKieBase(kieBaseConf); ---- [WARNING] ==== -Rules that use queries, salience, or agenda groups are currently not supported by the parallel {RULE_ENGINE}. If these rule elements are present in the KIE base, the compiler emits a warning and automatically switches back to single-threaded evaluation. However, in some cases, the {RULE_ENGINE} might not detect the unsupported rule elements and rules might be evaluated incorrectly. For example, the {RULE_ENGINE} might not detect when rules rely on implicit salience given by rule ordering inside the DRL file, resulting in incorrect evaluation due to the unsupported salience attribute. +In `fully_parallel` mode rules that use queries, salience, or agenda groups are currently not supported by the parallel {RULE_ENGINE}. If these rule elements are present in the KIE base, the compiler emits a warning and automatically switches back to a single-threaded evaluation. However, in some cases, the {RULE_ENGINE} might not detect the unsupported rule elements and rules might be evaluated incorrectly. For example, the {RULE_ENGINE} might not detect when rules rely on implicit salience given by rule ordering inside the DRL file, resulting in incorrect evaluation due to the unsupported salience attribute. ==== -- diff --git a/drools-drl-ast/pom.xml b/drools-drl-ast/pom.xml index 41313d2e7f1..cfa059489c2 100644 --- a/drools-drl-ast/pom.xml +++ b/drools-drl-ast/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AbstractClassTypeDeclarationDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AbstractClassTypeDeclarationDescr.java index f87b2faa0cd..400324bdd7c 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AbstractClassTypeDeclarationDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AbstractClassTypeDeclarationDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccessorDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccessorDescr.java index 11cb95c8376..a6653b91106 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccessorDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccessorDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccumulateDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccumulateDescr.java index eda050a0831..dff19bd2b71 100755 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccumulateDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccumulateDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccumulateImportDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccumulateImportDescr.java index e52d629df55..7580e843fe3 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccumulateImportDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AccumulateImportDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ActionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ActionDescr.java index 0eb2c4799de..69b2ab511ce 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ActionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ActionDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.descr; public class ActionDescr extends BaseDescr { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AndDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AndDescr.java index c4a30f497f6..7944a2e3748 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AndDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AndDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.util.ArrayList; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AnnotatedBaseDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AnnotatedBaseDescr.java index 36f28ebae26..0bd9d9374ef 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AnnotatedBaseDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AnnotatedBaseDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.Externalizable; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AnnotationDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AnnotationDescr.java index 60fb7a0de93..852d45427b1 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AnnotationDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AnnotationDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AtomicExprDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AtomicExprDescr.java index 235b8b0769b..7721fcf1ba1 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AtomicExprDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AtomicExprDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; public class AtomicExprDescr extends BaseDescr implements ExpressionDescr { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AttributeDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AttributeDescr.java index e84a841829c..f6d4917c2c7 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AttributeDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/AttributeDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; public class AttributeDescr extends BaseDescr { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BaseDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BaseDescr.java index 4811cac86ed..c9a4dfa098f 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BaseDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BaseDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.Externalizable; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BehaviorDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BehaviorDescr.java index 8558dac55e2..5c6e8c31db5 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BehaviorDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BehaviorDescr.java @@ -1,21 +1,21 @@ -/* - * Copyright 2008 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on Apr 25, 2008 + * 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. */ - package org.drools.drl.ast.descr; import java.util.List; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BindingDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BindingDescr.java index 779e3937b7d..d325df699c3 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BindingDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/BindingDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; public class BindingDescr extends BaseDescr implements ExpressionDescr { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/CollectDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/CollectDescr.java index 059f0c592d6..0667d146732 100755 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/CollectDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/CollectDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; import java.util.Collections; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConditionalBranchDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConditionalBranchDescr.java index 5bc67ca7d33..bfdd08873d5 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConditionalBranchDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConditionalBranchDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConditionalElementDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConditionalElementDescr.java index 7b9b2662de3..48e728e44f1 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConditionalElementDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConditionalElementDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.util.List; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConnectiveDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConnectiveDescr.java index 8f4a3a05f36..aab6b6202ac 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConnectiveDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConnectiveDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConnectiveType.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConnectiveType.java index a813468b9de..6632c473f51 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConnectiveType.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConnectiveType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConstraintConnectiveDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConstraintConnectiveDescr.java index c101ad0b245..65ea9614acc 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConstraintConnectiveDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ConstraintConnectiveDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.util.ArrayList; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/DeclarativeInvokerDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/DeclarativeInvokerDescr.java index 3e8f549f72a..bda17a84113 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/DeclarativeInvokerDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/DeclarativeInvokerDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/DescrVisitor.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/DescrVisitor.java index 48e66f39230..1f1daa97169 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/DescrVisitor.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/DescrVisitor.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.drl.ast.descr; public interface DescrVisitor { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EntryPointDeclarationDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EntryPointDeclarationDescr.java index 44d9fa69edb..a40cfb76aa3 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EntryPointDeclarationDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EntryPointDeclarationDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2008 Red Hat +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EntryPointDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EntryPointDescr.java index 7c57d819faa..7ca18bd8b05 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EntryPointDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EntryPointDescr.java @@ -1,19 +1,20 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on Dec 13, 2007 + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EnumDeclarationDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EnumDeclarationDescr.java index 4707529225c..8a17f261891 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EnumDeclarationDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EnumDeclarationDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EnumLiteralDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EnumLiteralDescr.java index bbf54ed1b2f..f7808a90d16 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EnumLiteralDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EnumLiteralDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EvalDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EvalDescr.java index be2597ad0b5..99f9ff47bae 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EvalDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EvalDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.util.Collections; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EvaluatorBasedRestrictionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EvaluatorBasedRestrictionDescr.java index b3cbd22a036..9952a9d21fd 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EvaluatorBasedRestrictionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/EvaluatorBasedRestrictionDescr.java @@ -1,19 +1,20 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on Dec 1, 2007 + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExistsDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExistsDescr.java index b6d28d91d97..48a6886e163 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExistsDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExistsDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.util.ArrayList; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExprConstraintDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExprConstraintDescr.java index ceb2a3afadc..dec28ede8a5 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExprConstraintDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExprConstraintDescr.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExpressionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExpressionDescr.java index 49e3d3590d2..ae50023bd78 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExpressionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ExpressionDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.descr; public interface ExpressionDescr { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FactTemplateDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FactTemplateDescr.java index 3e3050367ce..a0a6c7bfe53 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FactTemplateDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FactTemplateDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.util.ArrayList; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FieldConstraintDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FieldConstraintDescr.java index 0bf42f2205c..6249ca463de 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FieldConstraintDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FieldConstraintDescr.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FieldTemplateDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FieldTemplateDescr.java index 06f06459c2b..ecd69c96604 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FieldTemplateDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FieldTemplateDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; public class FieldTemplateDescr extends BaseDescr { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ForFunctionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ForFunctionDescr.java index ae94b3a1cbc..292c7ad2d37 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ForFunctionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ForFunctionDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ForallDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ForallDescr.java index ff06350c94a..8eb0975147f 100755 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ForallDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ForallDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; import java.util.ArrayList; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FromDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FromDescr.java index 96e706e0a56..df441e47eb7 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FromDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FromDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.util.Collections; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FunctionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FunctionDescr.java index 8f4755144f1..2d5e5f213ca 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FunctionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FunctionDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; import java.util.ArrayList; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FunctionImportDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FunctionImportDescr.java index 5cc877e33ae..4bd23dbab7d 100755 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FunctionImportDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/FunctionImportDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/GlobalDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/GlobalDescr.java index e5efdb7f085..63a62bd8bc6 100755 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/GlobalDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/GlobalDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/GroupByDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/GroupByDescr.java index 4ad4ef2826b..78eee77c123 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/GroupByDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/GroupByDescr.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ImportDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ImportDescr.java index b9137b2cef9..050e73957a3 100755 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ImportDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ImportDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/LiteralDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/LiteralDescr.java index ccf558b1b58..cf2574876d5 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/LiteralDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/LiteralDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.text.DecimalFormat; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/LiteralRestrictionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/LiteralRestrictionDescr.java index e40f7fdcdd5..1f549e6c474 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/LiteralRestrictionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/LiteralRestrictionDescr.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/MVELExprDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/MVELExprDescr.java index 2c132ecf24b..320184a9d01 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/MVELExprDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/MVELExprDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; public class MVELExprDescr extends DeclarativeInvokerDescr { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/MultiPatternDestinationDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/MultiPatternDestinationDescr.java index 6b4cea59333..a5e2767d9da 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/MultiPatternDestinationDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/MultiPatternDestinationDescr.java @@ -1,20 +1,22 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on Jun 25, 2007 - */package org.drools.drl.ast.descr; + * 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. + */ +package org.drools.drl.ast.descr; /** * An interface to represent pattern destinations diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/NamedConsequenceDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/NamedConsequenceDescr.java index 263c8de3c55..8779bb36767 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/NamedConsequenceDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/NamedConsequenceDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/Namespaceable.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/Namespaceable.java index 8a9a62ca6cd..6c9e2ded40c 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/Namespaceable.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/Namespaceable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; public interface Namespaceable { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/NotDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/NotDescr.java index b10b7e7f44f..9f2e2047912 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/NotDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/NotDescr.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/OperatorDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/OperatorDescr.java index a329e0dd7cd..220923bcbc2 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/OperatorDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/OperatorDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.util.List; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/OrDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/OrDescr.java index 52f686951bc..5d80c7279e3 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/OrDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/OrDescr.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PackageDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PackageDescr.java index 5cc80bc6dee..84ba7588291 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PackageDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PackageDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PackageDescrDumper.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PackageDescrDumper.java index db599a7f07e..ca99289ca67 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PackageDescrDumper.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PackageDescrDumper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.descr; public interface PackageDescrDumper { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternDescr.java index f58aeec1f39..3dfcef92e5f 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternDescr.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternDestinationDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternDestinationDescr.java index 0d4a2d13ffe..b2ecef88370 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternDestinationDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternDestinationDescr.java @@ -1,26 +1,26 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - * - * Created on Jun 25, 2007 - */package org.drools.drl.ast.descr; - /** - * An interface to represent pattern destinations + * 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. */ +package org.drools.drl.ast.descr; + public interface PatternDestinationDescr { public PatternDescr getInputPattern(); public void setInputPattern(PatternDescr patternDescr); } + diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternSourceDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternSourceDescr.java index ec8fca8e179..86855165566 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternSourceDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PatternSourceDescr.java @@ -1,19 +1,20 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on Jun 25, 2007 + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PredicateDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PredicateDescr.java index 271f6622505..17b4890b6dc 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PredicateDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/PredicateDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; import org.kie.api.io.Resource; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ProcessDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ProcessDescr.java index 60d21f5adc6..227876ec7cb 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ProcessDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ProcessDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.descr; import org.kie.api.io.Resource; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QualifiedIdentifierRestrictionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QualifiedIdentifierRestrictionDescr.java index b6759b38acf..8f9bd3f9ca0 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QualifiedIdentifierRestrictionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QualifiedIdentifierRestrictionDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QualifiedName.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QualifiedName.java index f565a35f7fe..654707c0eeb 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QualifiedName.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QualifiedName.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.Serializable; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QueryDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QueryDescr.java index abe5d11cf28..c15652663d2 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QueryDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/QueryDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; import java.util.ArrayList; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RelationalExprDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RelationalExprDescr.java index d5ea84a3c1a..9aa0fa7d8ea 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RelationalExprDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RelationalExprDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.util.List; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/Restriction.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/Restriction.java index 9a6e48dc066..caa106accab 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/Restriction.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/Restriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; public class Restriction extends BaseDescr { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RestrictionConnectiveDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RestrictionConnectiveDescr.java index ff4829f0b4d..4c4f0630e02 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RestrictionConnectiveDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RestrictionConnectiveDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RestrictionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RestrictionDescr.java index 2725c44546e..a092449312f 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RestrictionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RestrictionDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ReturnValueDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ReturnValueDescr.java index 4acada63f85..f1b5c95c2ac 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ReturnValueDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ReturnValueDescr.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.descr; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ReturnValueRestrictionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ReturnValueRestrictionDescr.java index e7bd5c4eaf0..7482525b04b 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ReturnValueRestrictionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/ReturnValueRestrictionDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; public class ReturnValueRestrictionDescr extends EvaluatorBasedRestrictionDescr { diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RuleDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RuleDescr.java index b3b346ece39..14e28e62433 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RuleDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/RuleDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/TypeDeclarationDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/TypeDeclarationDescr.java index 292f4143b46..af7eb061e02 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/TypeDeclarationDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/TypeDeclarationDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2008 Red Hat +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; @@ -125,6 +127,6 @@ public void setTrait(boolean trait) { @Override public void indexByFQN(boolean isStrict) { super.indexByFQN( isStrict ); - trait |= hasAnnotation( "org.drools.core.factmodel.traits.Trait" ); + trait |= hasAnnotation( "org.drools.base.factmodel.traits.Trait" ); } } diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/TypeFieldDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/TypeFieldDescr.java index 667415ed2ce..0cc236a2416 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/TypeFieldDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/TypeFieldDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2008 Red Hat +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/UnitDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/UnitDescr.java index 30bb1f5d8a9..cf4497bcc31 100755 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/UnitDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/UnitDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/VariableRestrictionDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/VariableRestrictionDescr.java index fd959bd10ab..e75741c5258 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/VariableRestrictionDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/VariableRestrictionDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.ast.descr; import java.util.List; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/WindowDeclarationDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/WindowDeclarationDescr.java index 9f2d4e79a8b..99855161295 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/WindowDeclarationDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/WindowDeclarationDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.descr; import java.io.IOException; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/WindowReferenceDescr.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/WindowReferenceDescr.java index 742dfd317f6..5d558bc3f33 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/WindowReferenceDescr.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/WindowReferenceDescr.java @@ -1,19 +1,20 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on Dec 13, 2007 + * 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. */ package org.drools.drl.ast.descr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AbstractClassTypeDeclarationBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AbstractClassTypeDeclarationBuilder.java index ea9eed4862d..68fbc20ecd8 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AbstractClassTypeDeclarationBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AbstractClassTypeDeclarationBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AccumulateDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AccumulateDescrBuilder.java index 8011f3b45ff..3e96d28b2fe 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AccumulateDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AccumulateDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.AccumulateDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AccumulateImportDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AccumulateImportDescrBuilder.java index 176f05aa9af..fe14a691dd9 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AccumulateImportDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AccumulateImportDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.AccumulateImportDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AnnotatedDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AnnotatedDescrBuilder.java index c94d2f0e1b8..e80380b343c 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AnnotatedDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AnnotatedDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AnnotationDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AnnotationDescrBuilder.java index 9825f33c4ce..79db6176014 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AnnotationDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AnnotationDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.AnnotationDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AttributeDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AttributeDescrBuilder.java index 6ee41a9d31f..2489092e45c 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AttributeDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AttributeDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.AttributeDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AttributeSupportBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AttributeSupportBuilder.java index 6641453494b..88b9294006d 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AttributeSupportBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/AttributeSupportBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.AttributeDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/BehaviorDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/BehaviorDescrBuilder.java index 3e6f0746920..28c7a2720eb 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/BehaviorDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/BehaviorDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import java.util.List; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/CEDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/CEDescrBuilder.java index 32c11becff2..abab78ca891 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/CEDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/CEDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.AndDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/CollectDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/CollectDescrBuilder.java index 9f694f897fb..a2359ae5587 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/CollectDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/CollectDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.CollectDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ConditionalBranchDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ConditionalBranchDescrBuilder.java index 0ec09e8026e..f790e88767c 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ConditionalBranchDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ConditionalBranchDescrBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.ConditionalBranchDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DeclareDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DeclareDescrBuilder.java index 54e83d9d0cb..ace53a88d4e 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DeclareDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DeclareDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.PackageDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DescrBuilder.java index c1c7d2c22e7..f9e08b0a002 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DescrFactory.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DescrFactory.java index 468cbe2908d..ef7c97efb4f 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DescrFactory.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/DescrFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.dsl.impl.PackageDescrBuilderImpl; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EntryPointDeclarationDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EntryPointDeclarationDescrBuilder.java index 58561320c38..4ef5af12392 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EntryPointDeclarationDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EntryPointDeclarationDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.EntryPointDeclarationDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EnumDeclarationDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EnumDeclarationDescrBuilder.java index 7351c9b26b6..3d0b9ca45dd 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EnumDeclarationDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EnumDeclarationDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EnumLiteralDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EnumLiteralDescrBuilder.java index 1d027c5624a..a17d60bc36b 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EnumLiteralDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EnumLiteralDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.EnumLiteralDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EvalDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EvalDescrBuilder.java index 76447bfc37b..4393a26b43e 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EvalDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/EvalDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.EvalDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/FieldDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/FieldDescrBuilder.java index 65bbe563b27..ff57af8cffc 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/FieldDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/FieldDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.TypeFieldDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ForallDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ForallDescrBuilder.java index dfa732de29b..1ba10ca36db 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ForallDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ForallDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.ForallDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/FunctionDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/FunctionDescrBuilder.java index 3d1e94f05b6..412cbf1da99 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/FunctionDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/FunctionDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.FunctionDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/GlobalDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/GlobalDescrBuilder.java index a03f4576fb9..09e78a811b2 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/GlobalDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/GlobalDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.GlobalDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/GroupByDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/GroupByDescrBuilder.java index 17fa52d6e44..3f3caf3035c 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/GroupByDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/GroupByDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl; public interface GroupByDescrBuilder

> extends AccumulateDescrBuilder

{ diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ImportDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ImportDescrBuilder.java index afcdadd8b32..83c49a6ab9e 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ImportDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ImportDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.ImportDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/NamedConsequenceDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/NamedConsequenceDescrBuilder.java index 7e78daf970e..6173f675bf2 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/NamedConsequenceDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/NamedConsequenceDescrBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.NamedConsequenceDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PackageDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PackageDescrBuilder.java index b772332f7f4..ab0f5b2427d 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PackageDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PackageDescrBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.PackageDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ParameterSupportBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ParameterSupportBuilder.java index 190eb6721e5..e4e709f97b2 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ParameterSupportBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/ParameterSupportBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl; /** diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PatternContainerDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PatternContainerDescrBuilder.java index 272f81e439c..65455a1034c 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PatternContainerDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PatternContainerDescrBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PatternDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PatternDescrBuilder.java index d0f94dd4f45..0f3e8c701e5 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PatternDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/PatternDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.PatternDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/QueryDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/QueryDescrBuilder.java index f236a24cd26..2a85955e47c 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/QueryDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/QueryDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.AndDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/RuleDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/RuleDescrBuilder.java index 359b591c3c5..9e80ebb343a 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/RuleDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/RuleDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.AndDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/SourceDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/SourceDescrBuilder.java index 91f92357572..c4a33fb422b 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/SourceDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/SourceDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.PatternDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/TypeDeclarationDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/TypeDeclarationDescrBuilder.java index 1feb0166080..0089f03724b 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/TypeDeclarationDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/TypeDeclarationDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.TypeDeclarationDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/UnitDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/UnitDescrBuilder.java index 42459dc5214..bcd36ab545a 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/UnitDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/UnitDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.UnitDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/WindowDeclarationDescrBuilder.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/WindowDeclarationDescrBuilder.java index 76b32137741..c47b4f49568 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/WindowDeclarationDescrBuilder.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/WindowDeclarationDescrBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl; import org.drools.drl.ast.descr.WindowDeclarationDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AccumulateDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AccumulateDescrBuilderImpl.java index 891a53af825..a870c65fb07 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AccumulateDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AccumulateDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import java.util.List; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AccumulateImportDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AccumulateImportDescrBuilderImpl.java index 792b6cf95b5..b025954e1fe 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AccumulateImportDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AccumulateImportDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.AccumulateImportDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AnnotationDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AnnotationDescrBuilderImpl.java index 7fdf2968c6c..ab6ae81aa9f 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AnnotationDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AnnotationDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.DescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AttributeDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AttributeDescrBuilderImpl.java index 9960133d49f..6f1b743ea81 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AttributeDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/AttributeDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.AttributeDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/BaseDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/BaseDescrBuilderImpl.java index e9ac5705dc5..d820a57919f 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/BaseDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/BaseDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.DescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/BehaviorDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/BehaviorDescrBuilderImpl.java index 6ff8abd46d9..2e7b761f566 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/BehaviorDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/BehaviorDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import java.util.List; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/CEDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/CEDescrBuilderImpl.java index a4197cb1d88..cdd4dc73b8c 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/CEDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/CEDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.descr.AndDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/CollectDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/CollectDescrBuilderImpl.java index 03464240e0e..e7f98a61495 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/CollectDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/CollectDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.DescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ConditionalBranchDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ConditionalBranchDescrBuilderImpl.java index a2174ef63ec..e468967a84d 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ConditionalBranchDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ConditionalBranchDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.ConditionalBranchDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/DeclareDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/DeclareDescrBuilderImpl.java index c27e8c49c85..1be5eed38ba 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/DeclareDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/DeclareDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.DeclareDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EntryPointDeclarationDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EntryPointDeclarationDescrBuilderImpl.java index c8125ab3f9f..168abc989d5 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EntryPointDeclarationDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EntryPointDeclarationDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.PackageDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EnumDeclarationDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EnumDeclarationDescrBuilderImpl.java index bc3eafd14eb..5d100cecf2a 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EnumDeclarationDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EnumDeclarationDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.EnumDeclarationDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EnumLiteralDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EnumLiteralDescrBuilderImpl.java index f6781436ce8..1fa9483c43d 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EnumLiteralDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EnumLiteralDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.AnnotationDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EvalDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EvalDescrBuilderImpl.java index aca665cf64d..03f85c35f6f 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EvalDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/EvalDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.DescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/FieldDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/FieldDescrBuilderImpl.java index 87e963f8f6d..c16689f9fcb 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/FieldDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/FieldDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.AnnotationDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ForallDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ForallDescrBuilderImpl.java index 2394556b126..bdbbf4c08c4 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ForallDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ForallDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.DescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/FunctionDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/FunctionDescrBuilderImpl.java index 0ce68a4b2b3..63b910ff31d 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/FunctionDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/FunctionDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.PackageDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/GlobalDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/GlobalDescrBuilderImpl.java index eca05908974..ff3ecc3cd04 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/GlobalDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/GlobalDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.GlobalDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/GroupByDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/GroupByDescrBuilderImpl.java index 40f8a968bb4..df72031b1f9 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/GroupByDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/GroupByDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.descr.GroupByDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ImportDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ImportDescrBuilderImpl.java index cddd3212d0c..a00e2064ca3 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ImportDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/ImportDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.PackageDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/NamedConsequenceDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/NamedConsequenceDescrBuilderImpl.java index 70aa0b921f3..5f41064e1cc 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/NamedConsequenceDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/NamedConsequenceDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.DescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/PackageDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/PackageDescrBuilderImpl.java index 68ff76ecf28..6ca6be10f11 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/PackageDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/PackageDescrBuilderImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.AccumulateImportDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/PatternDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/PatternDescrBuilderImpl.java index 8243369b0ea..8691efad288 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/PatternDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/PatternDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.AnnotationDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/QueryDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/QueryDescrBuilderImpl.java index 83db973ce01..fa2bcbb7d17 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/QueryDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/QueryDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.CEDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/RuleDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/RuleDescrBuilderImpl.java index a8a28eecdad..05883fa1363 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/RuleDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/RuleDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.AnnotationDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/SourceDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/SourceDescrBuilderImpl.java index b1ba7f641fc..7465d8ccea7 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/SourceDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/SourceDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.descr.EntryPointDescr; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/TypeDeclarationDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/TypeDeclarationDescrBuilderImpl.java index a5d62da8e44..fe27877d065 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/TypeDeclarationDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/TypeDeclarationDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.FieldDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/UnitDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/UnitDescrBuilderImpl.java index e376bfc96e7..f1f2aca1b80 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/UnitDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/UnitDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.PackageDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/WindowDeclarationDescrBuilderImpl.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/WindowDeclarationDescrBuilderImpl.java index d4c9e7412ad..15f6e494f7f 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/WindowDeclarationDescrBuilderImpl.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/dsl/impl/WindowDeclarationDescrBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.dsl.impl; import org.drools.drl.ast.dsl.PackageDescrBuilder; diff --git a/drools-drl-ast/src/main/java/org/drools/drl/ast/util/AstUtil.java b/drools-drl-ast/src/main/java/org/drools/drl/ast/util/AstUtil.java index 9feccdc8313..ec4faa112fc 100644 --- a/drools-drl-ast/src/main/java/org/drools/drl/ast/util/AstUtil.java +++ b/drools-drl-ast/src/main/java/org/drools/drl/ast/util/AstUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.ast.util; import static java.lang.Character.isWhitespace; diff --git a/drools-drl-extensions/pom.xml b/drools-drl-extensions/pom.xml index 452da0b6179..cdde4c2f8f7 100644 --- a/drools-drl-extensions/pom.xml +++ b/drools-drl-extensions/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/DecisionTableFactory.java b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/DecisionTableFactory.java index 69e541471af..caef7c8ed27 100644 --- a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/DecisionTableFactory.java +++ b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/DecisionTableFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.extensions; import java.io.InputStream; diff --git a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/DecisionTableProvider.java b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/DecisionTableProvider.java index 99c2b7ddc42..7b2fbdc0551 100644 --- a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/DecisionTableProvider.java +++ b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/DecisionTableProvider.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.extensions; import java.io.File; diff --git a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/GuidedRuleTemplateFactory.java b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/GuidedRuleTemplateFactory.java index 1794f6ea992..eb3ba3aa876 100644 --- a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/GuidedRuleTemplateFactory.java +++ b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/GuidedRuleTemplateFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.drl.extensions; import org.kie.api.internal.utils.KieService; diff --git a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/GuidedRuleTemplateProvider.java b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/GuidedRuleTemplateProvider.java index 37e797f927d..e2bea514483 100644 --- a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/GuidedRuleTemplateProvider.java +++ b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/GuidedRuleTemplateProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.drl.extensions; import java.io.IOException; diff --git a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/ResourceConversionResult.java b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/ResourceConversionResult.java index 720f6e29cb0..e5b24b11000 100644 --- a/drools-drl-extensions/src/main/java/org/drools/drl/extensions/ResourceConversionResult.java +++ b/drools-drl-extensions/src/main/java/org/drools/drl/extensions/ResourceConversionResult.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.drools.drl.extensions; import org.kie.api.io.ResourceType; diff --git a/drools-drl-parser/pom.xml b/drools-drl-parser/pom.xml index c0152b09431..c9b978fe208 100644 --- a/drools-drl-parser/pom.xml +++ b/drools-drl-parser/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/BaseKnowledgeBuilderResultImpl.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/BaseKnowledgeBuilderResultImpl.java index 4134fdafd61..4dced22444c 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/BaseKnowledgeBuilderResultImpl.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/BaseKnowledgeBuilderResultImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.drl.parser; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/DRLFactory.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/DRLFactory.java index 9374310f738..15bf0addf05 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/DRLFactory.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/DRLFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.parser; import org.antlr.runtime.ANTLRInputStream; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/DrlExprParser.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/DrlExprParser.java index e42638dbced..60c61ac248d 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/DrlExprParser.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/DrlExprParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.parser; import java.util.Collections; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/DrlParser.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/DrlParser.java index 4ae976cef16..7b852c8dce3 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/DrlParser.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/DrlParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.parser; import org.drools.io.InternalResource; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsError.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsError.java index 457d92cf4f5..64330403d87 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsError.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.parser; import org.kie.internal.builder.KnowledgeBuilderError; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsParserException.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsParserException.java index e7fdeac95f2..ff4b538882b 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsParserException.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/DroolsParserException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.parser; public class DroolsParserException extends Exception { diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/MessageImpl.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/MessageImpl.java index 65f354d787d..1fbe3c5b365 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/MessageImpl.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/MessageImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.drl.parser; import org.kie.api.builder.Message; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/ParserError.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/ParserError.java index 4597f3d7414..90e228f592d 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/ParserError.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/ParserError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.parser; import org.kie.api.io.Resource; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/impl/Operator.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/impl/Operator.java index 81a6c6dc17d..874ede78c29 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/impl/Operator.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/impl/Operator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.parser.impl; import java.io.Externalizable; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/AbstractDRLLexer.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/AbstractDRLLexer.java index b49ea4b39f1..507b2a4f611 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/AbstractDRLLexer.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/AbstractDRLLexer.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.parser.lang; import org.antlr.runtime.CharStream; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/AbstractDRLParser.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/AbstractDRLParser.java index fd638fc6132..6734a2acd62 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/AbstractDRLParser.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/AbstractDRLParser.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.parser.lang; import org.antlr.runtime.RecognitionException; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Expressions.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Expressions.java index d21dda41db4..78be3a4f4ec 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Expressions.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Expressions.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // $ANTLR 3.5 src/main/resources/org/drools/compiler/lang/DRL5Expressions.g 2015-11-16 15:53:53 package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Lexer.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Lexer.java index 926da6cabf8..09a7a1b5084 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Lexer.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Lexer.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ // $ANTLR 3.5 src/main/resources/org/drools/compiler/lang/DRL5Lexer.g 2013-10-30 10:19:43 package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Parser.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Parser.java index 5ec94e4184a..e722ad27874 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Parser.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL5Parser.java @@ -1,3 +1,21 @@ +/** + * 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. + */ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Expressions.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Expressions.java index 0759261acfd..2c82b558882 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Expressions.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Expressions.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // $ANTLR 3.5.2 src/main/resources/org/drools/compiler/lang/DRL6Expressions.g 2020-01-07 16:38:43 package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Lexer.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Lexer.java index bff9c3c7de6..9d55b0afd9d 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Lexer.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Lexer.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // $ANTLR 3.5 src/main/resources/org/drools/compiler/lang/DRL6Lexer.g 2017-05-16 10:26:27 package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Parser.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Parser.java index b9fada2ba4d..5998110e52e 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Parser.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6Parser.java @@ -1,3 +1,21 @@ +/** + * 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. + */ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +64,7 @@ import org.drools.drl.ast.dsl.ForallDescrBuilder; import org.drools.drl.ast.dsl.FunctionDescrBuilder; import org.drools.drl.ast.dsl.GlobalDescrBuilder; +import org.drools.drl.ast.dsl.GroupByDescrBuilder; import org.drools.drl.ast.dsl.ImportDescrBuilder; import org.drools.drl.ast.dsl.NamedConsequenceDescrBuilder; import org.drools.drl.ast.dsl.PackageDescrBuilder; @@ -2396,6 +2415,7 @@ private BaseDescr lhsAnd(final CEDescrBuilder ce, * | lhsEval consequenceInvocation* * | lhsForall * | lhsAccumulate + * | lhsGroupBy * | LEFT_PAREN lhsOr RIGHT_PAREN namedConsequence? * | lhsPatternBind consequenceInvocation* * ) @@ -2427,6 +2447,8 @@ private BaseDescr lhsUnary(final CEDescrBuilder ce, result = lhsForall(ce); } else if (helper.validateIdentifierKey(DroolsSoftKeywords.ACCUMULATE) || helper.validateIdentifierKey(DroolsSoftKeywords.ACC)) { result = lhsAccumulate(ce); + } else if (helper.validateIdentifierKey(DroolsSoftKeywords.GROUPBY)) { + result = lhsGroupBy(ce); } else if (input.LA(1) == DRL6Lexer.LEFT_PAREN) { // the order here is very important: this if branch must come before the lhsPatternBind below result = lhsParen(ce, @@ -3287,6 +3309,165 @@ private BaseDescr lhsAccumulate(PatternContainerDescrBuilder ce) throws Re return result; } + /** + * lhsGroupBy := GROUPBY LEFT_PAREN lhsAnd (COMMA|SEMICOLON) + * groupByKeyBinding SEMICOLON + * accumulateFunctionBinding (COMMA accumulateFunctionBinding)* + * (SEMICOLON constraints)? + * RIGHT_PAREN SEMICOLON? + * + * @param ce + * @return + * @throws org.antlr.runtime.RecognitionException + */ + private BaseDescr lhsGroupBy(PatternContainerDescrBuilder ce) throws RecognitionException { + PatternDescrBuilder pattern; + BaseDescr result = null; + + pattern = helper.start((DescrBuilder) ce, + PatternDescrBuilder.class, + null); + if (pattern != null) { + result = pattern.getDescr(); + } + + try { + if (state.backtracking == 0) { + pattern.type("Object"); + pattern.isQuery(false); + // might have to add the implicit bindings as well + } + + GroupByDescrBuilder groupBy = helper.start(pattern, + GroupByDescrBuilder.class, + null); + try { + if (helper.validateIdentifierKey(DroolsSoftKeywords.GROUPBY)) { + match(input, + DRL6Lexer.ID, + DroolsSoftKeywords.GROUPBY, + null, + DroolsEditorType.KEYWORD); + } + if (state.failed) + return null; + + if (state.backtracking == 0 && input.LA(1) != DRL6Lexer.EOF) { + helper.emit(Location.LOCATION_LHS_FROM_ACCUMULATE); + } + match(input, + DRL6Lexer.LEFT_PAREN, + null, + null, + DroolsEditorType.SYMBOL); + if (state.failed) + return null; + + CEDescrBuilder source = groupBy.source(); + try { + helper.start(source, + CEDescrBuilder.class, + null); + lhsAnd(source, + true); + if (state.failed) + return null; + + if (source.getDescr() != null && source.getDescr() instanceof ConditionalElementDescr) { + ConditionalElementDescr root = source.getDescr(); + BaseDescr[] descrs = root.getDescrs().toArray(new BaseDescr[root.getDescrs().size()]); + root.getDescrs().clear(); + for (int i = 0; i < descrs.length; i++) { + root.addOrMerge(descrs[i]); + } + } + + } finally { + helper.end(CEDescrBuilder.class, + source); + } + + if (input.LA(1) == DRL6Lexer.COMMA) { + match(input, + DRL6Lexer.COMMA, + null, + null, + DroolsEditorType.SYMBOL); + if (state.failed) + return null; + } else if (input.LA(-1) != DRL6Lexer.SEMICOLON) { + // lhsUnary will consume an optional SEMICOLON, so we need to check if it was consumed already + // or if we must fail consuming it now + match(input, + DRL6Lexer.SEMICOLON, + null, + null, + DroolsEditorType.SYMBOL); + if (state.failed) + return null; + } + + // grouping functions + groupByKeyFunction(groupBy); + if (state.failed) + return null; + + match(input, + DRL6Lexer.SEMICOLON, + null, + null, + DroolsEditorType.SYMBOL); + if (state.failed) + return null; + + // accumulate functions + accumulateFunctionBinding(groupBy); + while (input.LA(1) == DRL6Lexer.COMMA) { + match(input, + DRL6Lexer.COMMA, + null, + null, + DroolsEditorType.SYMBOL); + if (state.failed) + return null; + + accumulateFunctionBinding(groupBy); + if (state.failed) + return null; + } + + if (input.LA(1) == DRL6Lexer.SEMICOLON) { + match(input, + DRL6Lexer.SEMICOLON, + null, + null, + DroolsEditorType.SYMBOL); + if (state.failed) + return null; + + constraints(pattern); + } + match(input, + DRL6Lexer.RIGHT_PAREN, + null, + null, + DroolsEditorType.SYMBOL); + if (state.failed) + return null; + } finally { + helper.end(GroupByDescrBuilder.class, + groupBy); + if (state.backtracking == 0 && input.LA(1) != DRL6Lexer.EOF) { + helper.emit(Location.LOCATION_LHS_BEGIN_OF_CONDITION); + } + } + } finally { + helper.end(PatternDescrBuilder.class, + pattern); + } + return result; + } + private void failMismatchedTokenException() throws DroolsMismatchedTokenException { if (state.backtracking > 0) { state.failed = true; @@ -4238,6 +4419,40 @@ private void fromAccumulate(PatternDescrBuilder pattern) throws RecognitionEx } } + /** + * groupByKeyFunction := (label COLON)? lhsExpression + * @param groupBy + * @throws org.antlr.runtime.RecognitionException + */ + private void groupByKeyFunction(GroupByDescrBuilder groupBy) throws RecognitionException { + String label = null; + if (input.LA(2) == DRL6Lexer.COLON) { + label = match(input, + DRL6Lexer.ID, + null, + null, + DroolsEditorType.IDENTIFIER) + .getText(); + if (state.failed) + return; + match(input, + DRL6Lexer.COLON, + null, + null, + DroolsEditorType.SYMBOL); + } + + String groupingFunction = conditionalExpression(); + if (state.failed) + return; + + if (label != null) { + groupBy.groupingFunction(groupingFunction, label); + } else { + groupBy.groupingFunction(groupingFunction); + } + } + /** * accumulateFunctionBinding := label accumulateFunction * @param accumulate diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6StrictParser.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6StrictParser.java index c3231ad8237..be9a34f0366 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6StrictParser.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRL6StrictParser.java @@ -1,3 +1,21 @@ +/** + * 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. + */ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLExpressions.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLExpressions.java index 5fc71face74..f683219c390 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLExpressions.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLExpressions.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.parser.lang; import org.antlr.runtime.Parser; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLLexer.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLLexer.java index 395eb260cf7..8cd6d6fa1b3 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLLexer.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLLexer.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.parser.lang; import org.antlr.runtime.TokenSource; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLParser.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLParser.java index 5a1076403bd..3bd26530217 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLParser.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DRLParser.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.parser.lang; import org.antlr.runtime.RecognitionException; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsEditorType.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsEditorType.java index 141edd0839a..17ffcbb13fc 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsEditorType.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsEditorType.java @@ -1,3 +1,21 @@ +/** + * 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. + */ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMismatchedSetException.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMismatchedSetException.java index c768a533859..7beb12e7d2a 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMismatchedSetException.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMismatchedSetException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.parser.lang; import java.util.Arrays; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMismatchedTokenException.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMismatchedTokenException.java index 9655145ed83..032c3cde5f5 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMismatchedTokenException.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMismatchedTokenException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.parser.lang; import org.antlr.runtime.IntStream; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMissingTokenException.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMissingTokenException.java index 75a4e57b67d..1d7a03369c6 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMissingTokenException.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsMissingTokenException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsParaphraseTypes.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsParaphraseTypes.java index e9547e4de22..8d605d990e0 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsParaphraseTypes.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsParaphraseTypes.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsParserExceptionFactory.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsParserExceptionFactory.java index 179b24db58f..76c59cb2260 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsParserExceptionFactory.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsParserExceptionFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSentence.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSentence.java index e9da2ab4d21..12b15b6b906 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSentence.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSentence.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSentenceType.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSentenceType.java index c09f1eaf701..8baec67b853 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSentenceType.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSentenceType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSoftKeywords.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSoftKeywords.java index e58a0326cad..731a098371a 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSoftKeywords.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsSoftKeywords.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.drl.parser.lang; @@ -34,6 +37,7 @@ public class DroolsSoftKeywords { public static final String FOCUS = "focus"; public static final String ACTIVATION = "activation"; public static final String GROUP = "group"; + public static final String GROUPBY = "groupby"; public static final String AGENDA = "agenda"; public static final String RULEFLOW = "ruleflow"; public static final String DURATION = "duration"; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsToken.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsToken.java index 68cc2c6ef96..81b835234c2 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsToken.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsToken.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.parser.lang; import org.antlr.runtime.CharStream; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsTree.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsTree.java index 9d4f21c16b7..610df67f06b 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsTree.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsTree.java @@ -1,3 +1,21 @@ +/** + * 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. + */ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsUnexpectedAnnotationException.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsUnexpectedAnnotationException.java index 584b2688654..cdcd78f70eb 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsUnexpectedAnnotationException.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/DroolsUnexpectedAnnotationException.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.parser.lang; import org.antlr.runtime.IntStream; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/Expander.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/Expander.java index 75422ee6633..0e9b625cc80 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/Expander.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/Expander.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.parser.lang; import java.io.IOException; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderException.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderException.java index 0c722c529e9..ecc203bdce3 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderException.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderResolver.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderResolver.java index 4059865ed4b..668007020cc 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderResolver.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ExpanderResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drl.parser.lang; public interface ExpanderResolver { diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/GeneralParseException.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/GeneralParseException.java index 1c754a70475..a3f0bfa1596 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/GeneralParseException.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/GeneralParseException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.parser.lang; import org.antlr.runtime.RecognitionException; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/Location.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/Location.java index 535bb7d035d..b37e47203fa 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/Location.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/Location.java @@ -1,19 +1,20 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on May 22, 2007 + * 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. */ package org.drools.drl.parser.lang; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParseException.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParseException.java index 1d9bcd80ce3..255de001105 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParseException.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParseException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.parser.lang; public class ParseException extends RuntimeException { diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParserHelper.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParserHelper.java index 93fca70d231..f47eeb44ef0 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParserHelper.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParserHelper.java @@ -1,3 +1,21 @@ +/** + * 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. + */ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +66,7 @@ import org.drools.drl.ast.dsl.ForallDescrBuilder; import org.drools.drl.ast.dsl.FunctionDescrBuilder; import org.drools.drl.ast.dsl.GlobalDescrBuilder; +import org.drools.drl.ast.dsl.GroupByDescrBuilder; import org.drools.drl.ast.dsl.ImportDescrBuilder; import org.drools.drl.ast.dsl.NamedConsequenceDescrBuilder; import org.drools.drl.ast.dsl.PackageDescrBuilder; @@ -594,6 +613,11 @@ void setEnd( DescrBuilder< ? , ? > db ) { CollectDescrBuilder< ? > collect = ((PatternDescrBuilder< ? >) ctxBuilder).from().collect(); setStart( collect ); return (T) collect; + } else if ( GroupByDescrBuilder.class.isAssignableFrom(clazz) ) { + // GroupBy extends Accumulate and thus need to be before it + GroupByDescrBuilder< ? > groupBy = ((PatternDescrBuilder< ? >) ctxBuilder).from().groupBy(); + setStart( groupBy ); + return (T) groupBy; } else if ( AccumulateDescrBuilder.class.isAssignableFrom( clazz ) ) { AccumulateDescrBuilder< ? > accumulate = ((PatternDescrBuilder< ? >) ctxBuilder).from().accumulate(); setStart( accumulate ); diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/AbstractDSLMappingEntry.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/AbstractDSLMappingEntry.java index 67a80684c2f..c8e705ac031 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/AbstractDSLMappingEntry.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/AbstractDSLMappingEntry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.parser.lang.dsl; import java.util.Collections; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/AntlrDSLMappingEntry.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/AntlrDSLMappingEntry.java index 2941e28996e..074ddc69aae 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/AntlrDSLMappingEntry.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/AntlrDSLMappingEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.parser.lang.dsl; import java.util.Map; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapLexer.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapLexer.java index 5afe000596d..a32b9239e96 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapLexer.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapLexer.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ // $ANTLR 3.5 src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g 2014-02-20 15:51:32 package org.drools.drl.parser.lang.dsl; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapParser.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapParser.java index 97afa152ba0..6243f37a200 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapParser.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapParser.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ // $ANTLR 3.5 src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g 2015-04-23 15:24:03 package org.drools.drl.parser.lang.dsl; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapWalker.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapWalker.java index 9c76820bc47..bd211ee1c59 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapWalker.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapWalker.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ // $ANTLR 3.5 src/main/resources/org/drools/compiler/lang/dsl/DSLMapWalker.g 2014-02-20 15:51:32 package org.drools.drl.parser.lang.dsl; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapping.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapping.java index c2bb0202d3b..a2bd0528771 100755 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapping.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMapping.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.parser.lang.dsl; import java.util.Collection; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingEntry.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingEntry.java index eec26c7c14e..8c49e15bdb8 100755 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingEntry.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.parser.lang.dsl; import java.util.List; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingFile.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingFile.java index e97cbe009ab..7b0b1bea44c 100755 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingFile.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingFile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.parser.lang.dsl; import org.kie.internal.builder.KnowledgeBuilderResult; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingParseException.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingParseException.java index 3c191d44dc0..f423b870af4 100755 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingParseException.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLMappingParseException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.parser.lang.dsl; public class DSLMappingParseException extends Exception { diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLTokenizedMappingFile.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLTokenizedMappingFile.java index 2dd881e108d..ad9cc99a926 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLTokenizedMappingFile.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DSLTokenizedMappingFile.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.drl.parser.lang.dsl; import java.io.IOException; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultDSLMapping.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultDSLMapping.java index cb361a31be2..ad23085d529 100755 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultDSLMapping.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultDSLMapping.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.parser.lang.dsl; import java.util.Collection; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultExpander.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultExpander.java index 2b8973d6a9c..6ea2e47323e 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultExpander.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultExpander.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.parser.lang.dsl; import java.io.BufferedReader; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultExpanderResolver.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultExpanderResolver.java index 437e3bf0d6d..ee13a653480 100644 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultExpanderResolver.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/DefaultExpanderResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.parser.lang.dsl; import java.io.IOException; diff --git a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/MappingError.java b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/MappingError.java index b3393982248..4f08b4d9fd8 100755 --- a/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/MappingError.java +++ b/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/dsl/MappingError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.drl.parser.lang.dsl; import org.drools.drl.parser.DroolsError; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/pom.xml index ccf85c6b267..fb215db80d1 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-drl-quarkus-extension - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: Quarkus Extension :: Deployment @@ -85,6 +105,11 @@ mockito-core test + + org.assertj + assertj-core + test + diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/AbstractCompilationProvider.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/AbstractCompilationProvider.java index 5f17105e436..964ec26a872 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/AbstractCompilationProvider.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/AbstractCompilationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.drl.quarkus.deployment; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java index 75848ee1fe4..c679cb7bcd3 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsAssetsProcessor.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.drl.quarkus.deployment; @@ -44,6 +47,7 @@ import org.drools.codegen.common.DroolsModelBuildContext; import org.drools.codegen.common.GeneratedFile; import org.drools.codegen.common.GeneratedFileType; +import org.drools.drl.quarkus.util.deployment.GlobalsBuildItem; import org.drools.drl.quarkus.util.deployment.KmoduleKieBaseModelsBuiltItem; import org.drools.drl.quarkus.util.deployment.PatternsTypesBuildItem; import org.drools.model.codegen.execmodel.PackageModel; @@ -90,7 +94,8 @@ public void generateSources( BuildProducer generatedBean BuildProducer staticResProducer, BuildProducer genResBI, BuildProducer otnClasesBI, - BuildProducer kbaseModelsBI) { + BuildProducer kbaseModelsBI, + BuildProducer globalsBI) { DroolsModelBuildContext context = createDroolsBuildContext(outputTargetBuildItem.getOutputDirectory(), root.getPaths(), combinedIndexBuildItem.getIndex()); @@ -122,6 +127,7 @@ public void generateSources( BuildProducer generatedBean if (ruleCodegen.getKmoduleKieBaseModels() != null) { kbaseModelsBI.produce(new KmoduleKieBaseModelsBuiltItem(ruleCodegen.getKmoduleKieBaseModels())); } + globalsBI.produce(new GlobalsBuildItem(ruleCodegen.getPackageModels().stream().collect(Collectors.toMap(PackageModel::getName, PackageModel::getGlobals)))); } @BuildStep diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsCompilationProvider.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsCompilationProvider.java index a70b9a7b7a2..b543613689d 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsCompilationProvider.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/DroolsCompilationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.drl.quarkus.deployment; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/ResourceCollector.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/ResourceCollector.java index e02043447d4..c9e018b00d5 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/ResourceCollector.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/main/java/org/drools/drl/quarkus/deployment/ResourceCollector.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.drl.quarkus.deployment; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/drl/quarkus/deployment/BuildItemsTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/drl/quarkus/deployment/BuildItemsTest.java new file mode 100644 index 00000000000..8fb53238ef5 --- /dev/null +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/drl/quarkus/deployment/BuildItemsTest.java @@ -0,0 +1,135 @@ +/** + * 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. + */ +package org.drools.drl.quarkus.deployment; + +import static org.assertj.core.api.Assertions.as; +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatNoException; + +import java.lang.reflect.Type; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.stream.Collectors; + +import org.assertj.core.api.InstanceOfAssertFactories; +import org.drools.drl.quarkus.util.deployment.GlobalsBuildItem; +import org.drools.drl.quarkus.util.deployment.PatternsTypesBuildItem; +import org.drools.quarkus.examples.otn.model.ASubclassOfMeasurement; +import org.drools.quarkus.examples.otn.model.Measurement; +import org.drools.quarkus.examples.otn.model.MyImplementation; +import org.drools.quarkus.examples.otn.model.MyInterface; +import org.drools.quarkus.examples.otn.model.MyUnusedClass; +import org.jboss.jandex.ClassInfo; +import org.jboss.jandex.DotName; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import io.quarkus.arc.deployment.AdditionalBeanBuildItem; +import io.quarkus.builder.BuildContext; +import io.quarkus.builder.BuildStep; +import io.quarkus.deployment.builditem.CombinedIndexBuildItem; +import io.quarkus.test.QuarkusUnitTest; + +/* + * The scope of these tests is to check the resulting BuildItems as produced by this drools-drl-quarkus-extension. + */ +public class BuildItemsTest { + + static final Logger LOG = LoggerFactory.getLogger(BuildItemsTest.class); + + @RegisterExtension + static final QuarkusUnitTest config = new QuarkusUnitTest() + .withApplicationRoot((jar) -> jar + .addAsResource("rules.txt", "src/main/resources/org/drools/quarkus/examples/otn/rules.drl") + .addClasses(ASubclassOfMeasurement.class, Measurement.class, MyImplementation.class, MyInterface.class, MyUnusedClass.class)) + .addBuildChainCustomizer(b -> { + b.addBuildStep(new BuildStep() { + @Override + public void execute(BuildContext context) { + GlobalsBuildItem gbi = context.consume(GlobalsBuildItem.class); + assertGlobals(gbi.getGlobals()); + + CombinedIndexBuildItem indexBI = context.consume(CombinedIndexBuildItem.class); + PatternsTypesBuildItem otnClasesBI = context.consume(PatternsTypesBuildItem.class); + Set allKnown = computeAllKnown(otnClasesBI, indexBI); + assertAllKnownOTNs(allKnown); + } + }) + .consumes(GlobalsBuildItem.class) + .consumes(PatternsTypesBuildItem.class) + .consumes(CombinedIndexBuildItem.class) + .produces(AdditionalBeanBuildItem.class) + .build(); + }); + + @Test + public void testQuarkusUTByAddBuildChainCustomizer() { + assertThatNoException().isThrownBy(() -> LOG.info("looking for a successfully executed QuarkusUnitTest" + + "with custom .addBuildChainCustomizer() containing assertions")); + } + + /* + * Compute all related indexed classes, from the known OTN/Pattern classes. + */ + private static Set computeAllKnown(PatternsTypesBuildItem otnClasesBI, CombinedIndexBuildItem indexBI) { + Set allKnown = new HashSet<>(); + for (Class c : otnClasesBI.getPatternsClasses().values().stream().flatMap(x -> x.stream()).collect(Collectors.toList())) { + allKnown.add(c.getCanonicalName()); + if (c.isInterface()) { + allKnown.addAll(indexBI.getIndex().getAllKnownImplementors(c).stream().map(ClassInfo::name).map(DotName::toString).collect(Collectors.toList())); + } else { + allKnown.addAll(indexBI.getIndex().getAllKnownSubclasses(c).stream().map(ClassInfo::name).map(DotName::toString).collect(Collectors.toList())); + } + } + return allKnown; + } + + /* + * check the DRL globals, given the defined rules. + */ + private static void assertGlobals(Map> globals) { + LOG.info("GlobalsBuildItem.globals: {}", globals); + + assertThat(globals).containsKey("org.drools.quarkus.examples.otn") + .extractingByKey("org.drools.quarkus.examples.otn", as(InstanceOfAssertFactories.MAP)) + .containsKey("controlSet"); + } + + /* + * check the known Patterns/OTNs classes, given the defined DRL rules. + */ + private static void assertAllKnownOTNs(Set allKnown) { + LOG.info("allKnown: {}", allKnown); + + assertThat(allKnown) + .as("these classes or subclasses are derived from OTNs in the rules.") + .contains(ASubclassOfMeasurement.class.getCanonicalName(), + Measurement.class.getCanonicalName(), + MyImplementation.class.getCanonicalName(), + MyInterface.class.getCanonicalName() + ); + + assertThat(allKnown) + .as("this class is unused in the rules despite star-import") + .doesNotContain(MyUnusedClass.class.getCanonicalName()); + } +} diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/ASubclassOfMeasurement.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/ASubclassOfMeasurement.java new file mode 100644 index 00000000000..e1482732a59 --- /dev/null +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/ASubclassOfMeasurement.java @@ -0,0 +1,31 @@ +/** + * 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. + */ +package org.drools.quarkus.examples.otn.model; + +public class ASubclassOfMeasurement extends Measurement { + + public ASubclassOfMeasurement(String id, String val) { + super(id, val); + } + + @Override + public String toString() { + return "ASubclassOfMeasurement{ "+ super.toString() +"}"; + } +} diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/Measurement.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/Measurement.java new file mode 100644 index 00000000000..2427dc3eec6 --- /dev/null +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/Measurement.java @@ -0,0 +1,50 @@ +/** + * 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. + */ +package org.drools.quarkus.examples.otn.model; + +public class Measurement { + private String id; + private String val; + + public Measurement(String id, String val) { + super(); + this.id = id; + this.val = val; + } + + public String getId() { + return id; + } + + public String getVal() { + return val; + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append("Measurement ["); + if (id != null) + builder.append("id=").append(id).append(", "); + if (val != null) + builder.append("val=").append(val); + builder.append("]"); + return builder.toString(); + } +} diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyImplementation.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyImplementation.java new file mode 100644 index 00000000000..ef22239471d --- /dev/null +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyImplementation.java @@ -0,0 +1,34 @@ +/** + * 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. + */ +package org.drools.quarkus.examples.otn.model; + +public class MyImplementation implements MyInterface { + + private final String val; + + public MyImplementation(String val) { + this.val = val; + } + + @Override + public String getVal() { + return val; + } + +} diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyInterface.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyInterface.java new file mode 100644 index 00000000000..30b13b428e6 --- /dev/null +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyInterface.java @@ -0,0 +1,23 @@ +/** + * 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. + */ +package org.drools.quarkus.examples.otn.model; + +public interface MyInterface { + String getVal(); +} diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyUnusedClass.java b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyUnusedClass.java new file mode 100644 index 00000000000..8e5af40e955 --- /dev/null +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyUnusedClass.java @@ -0,0 +1,23 @@ +/** + * 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. + */ +package org.drools.quarkus.examples.otn.model; + +public class MyUnusedClass { + +} diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/resources/rules.txt b/drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/resources/rules.txt similarity index 100% rename from drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/resources/rules.txt rename to drools-drl-quarkus-extension/drools-drl-quarkus-deployment/src/test/resources/rules.txt diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/pom.xml index 8b89e22990c..9d0a5db76a8 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/pom.xml @@ -1,4 +1,24 @@ + @@ -6,12 +26,16 @@ org.drools drools-drl-quarkus-examples - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: Quarkus Extension :: Examples :: Reactive drools-drl-quarkus-examples-multiunit + + org.drools.drl.quarkus.examples.multiunit + + org.drools diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/FirstUnit.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/FirstUnit.java index c37b8b12406..6c080c82bea 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/FirstUnit.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/FirstUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.multiunit; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleInput.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleInput.java index 223197f548e..df1be6f94c6 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleInput.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleInput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.multiunit; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleOutput1.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleOutput1.java index da44d465bab..c5fefbc84b9 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleOutput1.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleOutput1.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.multiunit; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleOutput2.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleOutput2.java index 4a24f714e45..104dd47cc83 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleOutput2.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/RuleOutput2.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.multiunit; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/SecondUnit.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/SecondUnit.java index 57e08d8c633..066cb66f189 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/SecondUnit.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/main/java/org/drools/quarkus/ruleunit/examples/multiunit/SecondUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.multiunit; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java index 728bf58c32c..532ee58bf1c 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-multiunit/src/test/java/org/drools/quarkus/ruleunit/examples/multiunit/RuntimeTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.multiunit; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/docker-compose.yml b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/docker-compose.yml index f07d3cc4007..802976737c0 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/docker-compose.yml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/docker-compose.yml @@ -1,3 +1,22 @@ +# +# 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. +# + version: '2' services: diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/pom.xml index 998b9a43163..a2bb7002d96 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/pom.xml @@ -1,4 +1,24 @@ + @@ -6,12 +26,16 @@ org.drools drools-drl-quarkus-examples - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: Quarkus Extension :: Examples :: Reactive drools-drl-quarkus-examples-reactive + + org.drools.drl.quarkus.examples.reactive + + org.drools diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java index bf39868231a..ff8e3f9091d 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Adaptor.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.reactive; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Alert.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Alert.java index 9092b7c5322..c5b9e28cc45 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Alert.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Alert.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.reactive; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/AlertingUnit.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/AlertingUnit.java index 0d75cf08c1d..4da24f6aaeb 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/AlertingUnit.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/AlertingUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.reactive; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Event.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Event.java index 64ea63ef9f9..c19c1c08410 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Event.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/Event.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.reactive; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/EventDeserializer.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/EventDeserializer.java index c7310161ad0..2aeb368fa0a 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/EventDeserializer.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/java/org/drools/quarkus/ruleunit/examples/reactive/EventDeserializer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.reactive; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/resources/application.properties b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/resources/application.properties index b13f79c2058..cada3a8d9b0 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/resources/application.properties +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/main/resources/application.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # Packaging # quarkus.package.type=fast-jar diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java index 14e6615a215..bbed58452e9 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/KafkaTestResourceLifecycleManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.reactive; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java index 6e1f058eef0..52f998f55f4 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/drools-drl-quarkus-examples-reactive/src/test/java/org/drools/quarkus/ruleunit/examples/reactive/RuntimeTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.examples.reactive; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/pom.xml index cf5bc72a188..a5075c2e717 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-examples/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-examples/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-drl-quarkus-extension - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: Quarkus Extension :: Examples diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/pom.xml index 2819b1fb8ea..60d0b3e4368 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/pom.xml @@ -1,122 +1,146 @@ + - 4.0.0 - - org.drools - drools-drl-quarkus-extension - 8.40.0-SNAPSHOT - + 4.0.0 + + org.drools + drools-drl-quarkus-extension + 8.45.0-SNAPSHOT + + + Drools :: Quarkus Extension :: Integration Test :: Hotreload + drools-drl-quarkus-integration-test-hotreload - Drools :: Quarkus Extension :: Integration Test :: Hotreload - drools-drl-quarkus-integration-test-hotreload + + org.drools.drl.quarkus.integrationtest.hotreload + - - - org.drools - drools-drl-quarkus - - - io.quarkus - quarkus-core - + + + org.drools + drools-drl-quarkus + + + io.quarkus + quarkus-core + - - io.quarkus - quarkus-resteasy - - - io.quarkus - quarkus-resteasy-jackson - + + io.quarkus + quarkus-resteasy + + + io.quarkus + quarkus-resteasy-jackson + - - io.quarkus - quarkus-junit5 - test - - - io.quarkus - quarkus-junit5-internal - test - - - io.rest-assured - rest-assured - test - + + io.quarkus + quarkus-junit5 + test + + + io.quarkus + quarkus-junit5-internal + test + + + io.rest-assured + rest-assured + test + - - - org.drools - drools-drl-quarkus-deployment - pom - test - - - * - * - - - - + + + org.drools + drools-drl-quarkus-deployment + pom + test + + + * + * + + + + - - - - - io.quarkus - quarkus-maven-plugin - ${version.io.quarkus} - - true - ${skipTests} - - - - + + + + + io.quarkus + quarkus-maven-plugin + ${version.io.quarkus} + + true + ${skipTests} + + + + - - - io.quarkus - quarkus-maven-plugin - - - - build - - - - + + + io.quarkus + quarkus-maven-plugin + + + + build + + + + - - - - org.apache.maven.plugins - maven-enforcer-plugin - - - ban-blacklisted-dependencies - validate - - enforce - - - false - - - - + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-blacklisted-dependencies + validate + + enforce + + + false + + + + - - maven-failsafe-plugin - - - org.jboss.logmanager.LogManager - - - - - + + maven-failsafe-plugin + + + org.jboss.logmanager.LogManager + + + + + \ No newline at end of file diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java index 8d34b050844..28cd4eb6d15 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/FindAdultEndpoint.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test.hotreload; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/Person.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/Person.java index f6c7d37490b..3e051b080f1 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/Person.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/java/org/drools/quarkus/test/hotreload/Person.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test.hotreload; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/resources/META-INF/kmodule.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/resources/META-INF/kmodule.xml index 215c42eca74..12f87b2d784 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/resources/META-INF/kmodule.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/resources/META-INF/kmodule.xml @@ -1,3 +1,23 @@ + \ No newline at end of file diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/resources/application.properties b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/resources/application.properties index fed01ccc9f2..f4c393cfdf6 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/resources/application.properties +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/main/resources/application.properties @@ -1,17 +1,20 @@ # -# Copyright 2020 Red Hat, Inc. and/or its affiliates. +# 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 # -# Licensed 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 # -# 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. +# 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. # quarkus.http.port=65535 \ No newline at end of file diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/test/java/org/drools/quarkus/test/hotreload/HotReloadIT.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/test/java/org/drools/quarkus/test/hotreload/HotReloadIT.java index 70a2203a1b1..5e5de51d846 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/test/java/org/drools/quarkus/test/hotreload/HotReloadIT.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test-hotreload/src/test/java/org/drools/quarkus/test/hotreload/HotReloadIT.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test.hotreload; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/pom.xml index e8eb3a632fb..de787a40af8 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/pom.xml @@ -1,166 +1,190 @@ + - 4.0.0 - - org.drools - drools-drl-quarkus-extension - 8.40.0-SNAPSHOT - + 4.0.0 + + org.drools + drools-drl-quarkus-extension + 8.45.0-SNAPSHOT + + + Drools :: Quarkus Extension :: Integration Test + drools-drl-quarkus-integration-test + + + org.drools.drl.quarkus.integrationtest + - Drools :: Quarkus Extension :: Integration Test - drools-drl-quarkus-integration-test + + + org.drools + drools-drl-quarkus + + + org.drools + drools-decisiontables + + + io.quarkus + quarkus-core + - - - org.drools - drools-drl-quarkus - - - org.drools - drools-decisiontables - - - io.quarkus - quarkus-core - - - - - io.quarkus - quarkus-resteasy-reactive - - - org.assertj - assertj-core - - - io.quarkus - quarkus-junit5 - test - - - io.rest-assured - rest-assured - test - - - - org.drools - drools-drl-quarkus-deployment - pom - test - - - * - * - - - + + io.quarkus + quarkus-resteasy-reactive + + + org.assertj + assertj-core + + + io.quarkus + quarkus-junit5 + test + + + io.rest-assured + rest-assured + test + - + + + org.drools + drools-drl-quarkus-deployment + pom + test + + + * + * + + + - - - - - io.quarkus - quarkus-maven-plugin - ${version.io.quarkus} - - true - ${skipTests} - - - - + + + + + + io.quarkus + quarkus-maven-plugin + ${version.io.quarkus} + + true + ${skipTests} + + + + + + + + io.quarkus + quarkus-maven-plugin + + + + build + + + + + + maven-failsafe-plugin + + false + + **/*IT.java + + + **/*Test.java + **/Native* + + -Xmx2048m -Xmx4g + + ${session.request.localRepositoryPath.path} + ${session.request.userSettingsFile.path} + + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-blacklisted-dependencies + validate + + enforce + + + false + + + + + + + + + + native + + + native + + + + native + + - - io.quarkus - quarkus-maven-plugin - - - - build - - - - - - maven-failsafe-plugin + + org.apache.maven.plugins + maven-failsafe-plugin + + + + integration-test + verify + - false - - **/*IT.java - - - **/*Test.java - **/Native* - - -Xmx2048m -Xmx4g - - ${session.request.localRepositoryPath.path} - ${session.request.userSettingsFile.path} - + + ${project.build.directory}/${project.build.finalName}-runner + - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - - - ban-blacklisted-dependencies - validate - - enforce - - - false - - - - + + + - - - - - native - - - native - - - - native - - - - - org.apache.maven.plugins - maven-failsafe-plugin - - - - integration-test - verify - - - - ${project.build.directory}/${project.build.finalName}-runner - - - - - - - - - + + + \ No newline at end of file diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/Person.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/Person.java index fe17501916c..fb77c5e53c3 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/Person.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/Person.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/ProbeCounter.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/ProbeCounter.java index 3d04fcf9641..d4aef14055c 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/ProbeCounter.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/ProbeCounter.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/ProbeEvent.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/ProbeEvent.java index 037da90dde7..6fc14eb7512 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/ProbeEvent.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/ProbeEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/Result.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/Result.java index 6ae43df36ab..48239d9e839 100755 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/Result.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/Result.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/StockTick.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/StockTick.java index 6485fa872b9..837a0e05b85 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/StockTick.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/StockTick.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java index f1008d7c1a7..cc47c1a1e36 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/java/org/drools/quarkus/test/TestableResource.java @@ -1,37 +1,41 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test; -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.fail; - -import java.util.List; -import java.util.concurrent.TimeUnit; -import java.util.stream.Collectors; +import org.kie.api.KieBase; +import org.kie.api.definition.KiePackage; +import org.kie.api.runtime.KieRuntimeBuilder; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.rule.FactHandle; +import org.kie.api.time.SessionPseudoClock; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.core.Response; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; -import org.kie.api.KieBase; -import org.kie.api.definition.KiePackage; -import org.kie.api.runtime.KieRuntimeBuilder; -import org.kie.api.runtime.KieSession; -import org.kie.api.time.SessionPseudoClock; +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.fail; @Path("/test") public class TestableResource { @@ -96,9 +100,29 @@ public Response testAllPkgsKBase() { List pkgNames = kBase.getKiePackages().stream().map(KiePackage::getName).collect(Collectors.toList()); assertThat(pkgNames) - .hasSize(5) - .contains("org.drools.quarkus.test","org.drools.drl","org.drools.dtable","org.drools.cep","org.drools.probe"); + .containsExactlyInAnyOrder("org.drools.quarkus.test","org.drools.drl","org.drools.dtable","org.drools.cep","org.drools.tms","org.drools.probe"); return Response.ok().build(); } + + @GET + @Path("testTms") + public Response testTms() { + KieSession ksession = runtimeBuilder.newKieSession("tmsKS"); + + FactHandle fh = ksession.insert("test"); + assertThat(ksession.fireAllRules()).isEqualTo(1); + + Collection ints = ksession.getObjects(Integer.class::isInstance); + assertThat(ints).hasSize(1); + assertThat(ints.iterator().next()).isEqualTo(4); + + ksession.delete(fh); + assertThat(ksession.fireAllRules()).isEqualTo(0); + + ints = ksession.getObjects(Integer.class::isInstance); + assertThat(ints).isEmpty(); + + return Response.ok().build(); + } } \ No newline at end of file diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/resources/META-INF/kmodule.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/resources/META-INF/kmodule.xml index 0c22cc992d1..cb43d34c56b 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/resources/META-INF/kmodule.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + @@ -9,6 +29,9 @@ + + + diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/resources/org/drools/tms/tms.drl b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/resources/org/drools/tms/tms.drl new file mode 100644 index 00000000000..dad66fd3a85 --- /dev/null +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/main/resources/org/drools/tms/tms.drl @@ -0,0 +1,7 @@ +package org.drools.tms + +rule R when + $s : String( $l : length ) +then + insertLogical($l); +end \ No newline at end of file diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java index 541d798fb47..76cedc9fb6c 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/RuntimeTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/TestableIT.java b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/TestableIT.java index 028e2eb88c1..328f398e04a 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/TestableIT.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-integration-test/src/test/java/org/drools/quarkus/test/TestableIT.java @@ -1,28 +1,30 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.test; import io.quarkus.test.junit.QuarkusIntegrationTest; import io.restassured.RestAssured; - -import java.util.concurrent.TimeUnit; - import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Timeout; +import java.util.concurrent.TimeUnit; + import static io.restassured.RestAssured.given; @QuarkusIntegrationTest @@ -46,4 +48,9 @@ public void testFireUntiHalt() { public void testAllPkgsKBase() { given().when().get("/test/testAllPkgsKBase").then().statusCode(200); } + + @Test + public void testTms() { + given().when().get("/test/testTms").then().statusCode(200); + } } diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/pom.xml index f164f5fb5ef..de4818e5152 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/pom.xml @@ -1,162 +1,186 @@ + - 4.0.0 - - org.drools - drools-drl-quarkus-extension - 8.40.0-SNAPSHOT - + 4.0.0 + + org.drools + drools-drl-quarkus-extension + 8.45.0-SNAPSHOT + + + Drools :: Quarkus Extension :: Quickstart Integration Test + drools-drl-quarkus-quickstart-test - Drools :: Quarkus Extension :: Quickstart Integration Test - drools-drl-quarkus-quickstart-test + + org.drools.drl.quarkus.quickstart.test + - - - org.drools - drools-drl-quarkus - - - org.drools - drools-ruleunits-engine - - - io.quarkus - quarkus-core - + + + org.drools + drools-drl-quarkus + + + org.drools + drools-ruleunits-engine + + + io.quarkus + quarkus-core + - - io.quarkus - quarkus-junit5 - test - - - io.rest-assured - rest-assured - test - - - org.assertj - assertj-core - test - + + io.quarkus + quarkus-junit5 + test + + + io.rest-assured + rest-assured + test + + + org.assertj + assertj-core + test + - - - org.drools - drools-drl-quarkus-deployment - pom - test - - - * - * - - - + + + org.drools + drools-drl-quarkus-deployment + pom + test + + + * + * + + + - + - - - - - io.quarkus - quarkus-maven-plugin - ${version.io.quarkus} - - true - ${skipTests} - - - - + + + + + io.quarkus + quarkus-maven-plugin + ${version.io.quarkus} + + true + ${skipTests} + + + + + + + io.quarkus + quarkus-maven-plugin + + + + build + + + + + + maven-failsafe-plugin + + false + + **/*IT.java + + + **/*Test.java + **/Native* + + -Xmx2048m -Xmx4g + + ${session.request.localRepositoryPath.path} + ${session.request.userSettingsFile.path} + + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-blacklisted-dependencies + validate + + enforce + + + false + + + + + + + + + + native + + + native + + + + native + + - - io.quarkus - quarkus-maven-plugin - - - - build - - - - - - maven-failsafe-plugin + + org.apache.maven.plugins + maven-failsafe-plugin + + + + integration-test + verify + - false - - **/*IT.java - - - **/*Test.java - **/Native* - - -Xmx2048m -Xmx4g - - ${session.request.localRepositoryPath.path} - ${session.request.userSettingsFile.path} - + + ${project.build.directory}/${project.build.finalName}-runner + - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - - - ban-blacklisted-dependencies - validate - - enforce - - - false - - - - + + + - - - - - native - - - native - - - - native - - - - - org.apache.maven.plugins - maven-failsafe-plugin - - - - integration-test - verify - - - - ${project.build.directory}/${project.build.finalName}-runner - - - - - - - - - + + + \ No newline at end of file diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java index f93f6ed0554..a58bbabd5c2 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeAlertsBean.java @@ -1,22 +1,24 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.quickstart.test; import java.util.Collection; -import java.util.List; import java.util.stream.Collectors; import javax.enterprise.context.ApplicationScoped; @@ -41,13 +43,13 @@ public Collection computeAlerts(Collection lights, Collection unitInstance = ruleUnit.createInstance(homeUnitData); - var queryResults = unitInstance.executeQuery("All Alerts"); - List results = queryResults.toList().stream() - .flatMap(m -> m.values().stream() - .filter(Alert.class::isInstance) - .map(Alert.class::cast)) - .collect(Collectors.toList()); - return results; + try (final RuleUnitInstance unitInstance = ruleUnit.createInstance(homeUnitData)) { + var queryResults = unitInstance.executeQuery("All Alerts"); + return queryResults.toList().stream() + .flatMap(m -> m.values().stream() + .filter(Alert.class::isInstance) + .map(Alert.class::cast)) + .collect(Collectors.toList()); + } } } diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeRuleUnitData.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeRuleUnitData.java index d2a1a92300c..77cdd55a726 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeRuleUnitData.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/HomeRuleUnitData.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.quickstart.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Alert.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Alert.java index 191c88c9e45..d6b5ac8b22f 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Alert.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Alert.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.quickstart.test.model; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/CCTV.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/CCTV.java index 37f2513bffb..3bbdbaf1f5e 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/CCTV.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/CCTV.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.quickstart.test.model; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Light.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Light.java index 6c7f845f9b5..3e5b0719508 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Light.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Light.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.quickstart.test.model; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Smartphone.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Smartphone.java index 0888bc581aa..a9d199b4c9e 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Smartphone.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/main/java/org/drools/quarkus/quickstart/test/model/Smartphone.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.quickstart.test.model; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java index 2029f09c594..4896b42524c 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/BeanTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.quickstart.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java index 1eef910ed36..6bcc7afc179 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-quickstart-test/src/test/java/org/drools/quarkus/quickstart/test/RuntimeIT.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.quickstart.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/pom.xml index 6796f3148d7..badddc11e79 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/pom.xml @@ -1,165 +1,189 @@ + - 4.0.0 - - org.drools - drools-drl-quarkus-extension - 8.40.0-SNAPSHOT - + 4.0.0 + + org.drools + drools-drl-quarkus-extension + 8.45.0-SNAPSHOT + + + Drools :: Quarkus Extension :: Integration Test with Rule Unit + drools-drl-quarkus-ruleunit-integration-test - Drools :: Quarkus Extension :: Integration Test with Rule Unit - drools-drl-quarkus-ruleunit-integration-test + + org.drools.drl.quarkus.ruleunit.integrationtest + - - - org.drools - drools-drl-quarkus - - - org.drools - drools-ruleunits-engine - - - io.quarkus - quarkus-core - - - - io.quarkus - quarkus-resteasy-reactive - - - org.assertj - assertj-core - - - io.quarkus - quarkus-junit5 - test - - - io.rest-assured - rest-assured - test - + + + org.drools + drools-drl-quarkus + + + org.drools + drools-ruleunits-engine + + + io.quarkus + quarkus-core + - - - org.drools - drools-drl-quarkus-deployment - pom - test - - - * - * - - - + + io.quarkus + quarkus-resteasy-reactive + + + org.assertj + assertj-core + + + io.quarkus + quarkus-junit5 + test + + + io.rest-assured + rest-assured + test + - + + + org.drools + drools-drl-quarkus-deployment + pom + test + + + * + * + + + - - - - - io.quarkus - quarkus-maven-plugin - ${version.io.quarkus} - - true - ${skipTests} - - - - + + + + + + io.quarkus + quarkus-maven-plugin + ${version.io.quarkus} + + true + ${skipTests} + + + + + + + + io.quarkus + quarkus-maven-plugin + + + + build + + + + + + maven-failsafe-plugin + + false + + **/*IT.java + + + **/*Test.java + **/Native* + + -Xmx2048m -Xmx4g + + ${session.request.localRepositoryPath.path} + ${session.request.userSettingsFile.path} + + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-blacklisted-dependencies + validate + + enforce + + + false + + + + + + + + + + native + + + native + + + + native + + - - io.quarkus - quarkus-maven-plugin - - - - build - - - - - - maven-failsafe-plugin + + org.apache.maven.plugins + maven-failsafe-plugin + + + + integration-test + verify + - false - - **/*IT.java - - - **/*Test.java - **/Native* - - -Xmx2048m -Xmx4g - - ${session.request.localRepositoryPath.path} - ${session.request.userSettingsFile.path} - + + ${project.build.directory}/${project.build.finalName}-runner + - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - - - ban-blacklisted-dependencies - validate - - enforce - - - false - - - - + + + - - - - - native - - - native - - - - native - - - - - org.apache.maven.plugins - maven-failsafe-plugin - - - - integration-test - verify - - - - ${project.build.directory}/${project.build.finalName}-runner - - - - - - - - - + + + \ No newline at end of file diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/HelloWorldUnit.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/HelloWorldUnit.java index 20f6d24028f..5f9ceca287e 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/HelloWorldUnit.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/HelloWorldUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/SimpleDTUnit.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/SimpleDTUnit.java index fa45f23c96d..587c5a1d702 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/SimpleDTUnit.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/SimpleDTUnit.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.quarkus.ruleunit.test; import java.util.concurrent.atomic.AtomicReference; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java index e956f4e3188..471c3c33a99 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/main/java/org/drools/quarkus/ruleunit/test/TestableResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java index b5c0335a677..e3b9d48e5ab 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeDslRuleUnitTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.quarkus.ruleunit.test; import io.quarkus.test.junit.QuarkusTest; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java index b683dcef384..48aaf172010 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/RuntimeTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/TestableIT.java b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/TestableIT.java index 08f1df1b918..570fae61ab9 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/TestableIT.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-ruleunit-integration-test/src/test/java/org/drools/quarkus/ruleunit/test/TestableIT.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.quarkus.ruleunit.test; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/pom.xml index a010d12f31a..f1f135cbe63 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-drl-quarkus-extension - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: Quarkus Extension :: Util :: Deployment diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/DroolsQuarkusResourceUtils.java b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/DroolsQuarkusResourceUtils.java index 690367f0b6b..a51374ae81f 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/DroolsQuarkusResourceUtils.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/DroolsQuarkusResourceUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.drl.quarkus.util.deployment; @@ -30,7 +33,7 @@ import org.drools.codegen.common.GeneratedFile; import org.drools.codegen.common.GeneratedFileType; import org.drools.codegen.common.context.QuarkusDroolsModelBuildContext; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import org.drools.wiring.api.ComponentsSupplier; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/GeneratedFileWriter.java b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/GeneratedFileWriter.java index 540a11788e6..c21cb41d2b2 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/GeneratedFileWriter.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/GeneratedFileWriter.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.drl.quarkus.util.deployment; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/GlobalsBuildItem.java b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/GlobalsBuildItem.java new file mode 100644 index 00000000000..e01a7556a89 --- /dev/null +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/GlobalsBuildItem.java @@ -0,0 +1,38 @@ +/** + * 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. + */ +package org.drools.drl.quarkus.util.deployment; + +import java.util.Map; + +import io.quarkus.builder.item.SimpleBuildItem; + +/** + * Collect Globals by package. + */ +public final class GlobalsBuildItem extends SimpleBuildItem { + private final Map> globals; + + public GlobalsBuildItem(Map> g) { + this.globals = g; + } + + public Map> getGlobals() { + return globals; + } +} diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/KmoduleKieBaseModelsBuiltItem.java b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/KmoduleKieBaseModelsBuiltItem.java index 1ef970b5666..6795134dec2 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/KmoduleKieBaseModelsBuiltItem.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/KmoduleKieBaseModelsBuiltItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.quarkus.util.deployment; import java.util.Collection; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/PatternsTypesBuildItem.java b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/PatternsTypesBuildItem.java index 81b021d3bcd..85a9994a097 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/PatternsTypesBuildItem.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/PatternsTypesBuildItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.quarkus.util.deployment; import java.util.Map; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/QuarkusAppPaths.java b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/QuarkusAppPaths.java index fce1cee8ea9..9979b2ba90a 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/QuarkusAppPaths.java +++ b/drools-drl-quarkus-extension/drools-drl-quarkus-util-deployment/src/main/java/org/drools/drl/quarkus/util/deployment/QuarkusAppPaths.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drl.quarkus.util.deployment; import java.nio.file.Path; diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml b/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml index 61d43070edf..8205e8d898c 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-drl-quarkus-extension - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: Quarkus Extension :: Runtime diff --git a/drools-drl-quarkus-extension/drools-drl-quarkus/src/main/resources/META-INF/quarkus-extension.yaml b/drools-drl-quarkus-extension/drools-drl-quarkus/src/main/resources/META-INF/quarkus-extension.yaml index bc05d63b2a2..714ddd8efc2 100644 --- a/drools-drl-quarkus-extension/drools-drl-quarkus/src/main/resources/META-INF/quarkus-extension.yaml +++ b/drools-drl-quarkus-extension/drools-drl-quarkus/src/main/resources/META-INF/quarkus-extension.yaml @@ -1,3 +1,22 @@ +# +# 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: "Drools-DRL" metadata: diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/pom.xml b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/pom.xml deleted file mode 100644 index 364225b8967..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/pom.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - 4.0.0 - - org.drools - drools-drl-quarkus-extension - 8.40.0-SNAPSHOT - - - Drools :: Quarkus Testing Extension Example :: Deployment - example-drools-drl-quarkus-testext-deployment - An example extension consuming the drools-drl-quarkus extension - - - org.drools.drl.quarkus.testext.deployment - - - - - - org.drools - example-drools-drl-quarkus-testext - ${project.version} - - - - - - - org.drools - example-drools-drl-quarkus-testext - - - org.drools - drools-drl-quarkus-util-deployment - - - - - io.quarkus - quarkus-core-deployment - - - org.jboss - jandex - - - - - io.quarkus - quarkus-arc-deployment - - - - - org.drools - drools-drl-quarkus - test - - - io.quarkus - quarkus-junit5-internal - test - - - org.assertj - assertj-core - test - - - - - - - maven-deploy-plugin - - true - - - - maven-compiler-plugin - - - - io.quarkus - quarkus-extension-processor - ${version.io.quarkus} - - - - - - maven-surefire-plugin - - - default-test - test - - test - - - - org.jboss.logmanager.LogManager - - - - - - - org.jboss.logmanager.LogManager - - - - - - \ No newline at end of file diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/main/java/org/drools/drl/quarkus/testext/deployment/DroolsTestExtAssetsProcessor.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/main/java/org/drools/drl/quarkus/testext/deployment/DroolsTestExtAssetsProcessor.java deleted file mode 100644 index 7912b11dda6..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/main/java/org/drools/drl/quarkus/testext/deployment/DroolsTestExtAssetsProcessor.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ -package org.drools.drl.quarkus.testext.deployment; - -import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; - -import java.util.HashSet; -import java.util.Optional; -import java.util.Set; -import java.util.stream.Collectors; - -import javax.inject.Inject; - -import org.drools.drl.quarkus.util.deployment.KmoduleKieBaseModelsBuiltItem; -import org.drools.drl.quarkus.util.deployment.PatternsTypesBuildItem; -import org.jboss.jandex.ClassInfo; -import org.jboss.jandex.DotName; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import io.quarkus.arc.deployment.AdditionalBeanBuildItem; -import io.quarkus.arc.deployment.BeanContainerListenerBuildItem; -import io.quarkus.deployment.annotations.BuildProducer; -import io.quarkus.deployment.annotations.BuildStep; -import io.quarkus.deployment.annotations.Record; -import io.quarkus.deployment.builditem.CombinedIndexBuildItem; -import io.quarkus.deployment.builditem.FeatureBuildItem; - -public class DroolsTestExtAssetsProcessor { - - private static final Logger LOGGER = LoggerFactory.getLogger(DroolsTestExtAssetsProcessor.class); - - private static final String FEATURE = "drools-drl-quarkus-testext-extension"; - - @Inject - CombinedIndexBuildItem indexBI; - - @BuildStep - public FeatureBuildItem feature() { - return new FeatureBuildItem(FEATURE); - } - - @Record(STATIC_INIT) - @BuildStep - public void generateSources( PatternsTypesBuildItem otnClasesBI, Optional kbaseModelsBI, - OtnMetadataRecorder recorder, BuildProducer additionalBeanProducer, BuildProducer containerListenerProducer ) { - LOGGER.info("{}", otnClasesBI.getPatternsClasses()); - Set allKnown = new HashSet<>(); - for (Class c : otnClasesBI.getPatternsClasses().values().stream().flatMap(x -> x.stream()).collect(Collectors.toList())) { - allKnown.add(c.getCanonicalName()); - if (c.isInterface()) { - allKnown.addAll(indexBI.getIndex().getAllKnownImplementors(c).stream().map(ClassInfo::name).map(DotName::toString).collect(Collectors.toList())); - } else { - allKnown.addAll(indexBI.getIndex().getAllKnownSubclasses(c).stream().map(ClassInfo::name).map(DotName::toString).collect(Collectors.toList())); - } - } - additionalBeanProducer.produce(AdditionalBeanBuildItem.unremovableOf(OtnClassesSingleton.class)); - containerListenerProducer.produce(new BeanContainerListenerBuildItem(recorder.setContent(otnClasesBI.getPatternsClasses(), allKnown))); - if (kbaseModelsBI.isPresent()) { - LOGGER.info("{}", kbaseModelsBI.get().getKieBaseModels()); - } - } - -} diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/ASubclassOfMeasurement.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/ASubclassOfMeasurement.java deleted file mode 100644 index 6bc643d52df..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/ASubclassOfMeasurement.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.quarkus.examples.otn.model; - -public class ASubclassOfMeasurement extends Measurement { - - public ASubclassOfMeasurement(String id, String val) { - super(id, val); - } - - @Override - public String toString() { - return "ASubclassOfMeasurement{ "+ super.toString() +"}"; - } -} diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/Measurement.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/Measurement.java deleted file mode 100644 index 486d8dd92ed..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/Measurement.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.quarkus.examples.otn.model; - -public class Measurement { - private String id; - private String val; - - public Measurement(String id, String val) { - super(); - this.id = id; - this.val = val; - } - - public String getId() { - return id; - } - - public String getVal() { - return val; - } - - @Override - public String toString() { - StringBuilder builder = new StringBuilder(); - builder.append("Measurement ["); - if (id != null) - builder.append("id=").append(id).append(", "); - if (val != null) - builder.append("val=").append(val); - builder.append("]"); - return builder.toString(); - } -} diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyInterface.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyInterface.java deleted file mode 100644 index c1208e5e920..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyInterface.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.quarkus.examples.otn.model; - -public interface MyInterface { - String getVal(); -} diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyUnusedClass.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyUnusedClass.java deleted file mode 100644 index 610ac5e8a6f..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyUnusedClass.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.quarkus.examples.otn.model; - -public class MyUnusedClass { - -} diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/testext/test/ExtensionTest.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/testext/test/ExtensionTest.java deleted file mode 100644 index be6385b9ac7..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/testext/test/ExtensionTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ -package org.drools.quarkus.testext.test; - -import static org.assertj.core.api.Assertions.assertThat; - -import javax.inject.Inject; - -import org.drools.drl.quarkus.testext.deployment.OtnClassesSingleton; -import org.drools.quarkus.examples.otn.model.ASubclassOfMeasurement; -import org.drools.quarkus.examples.otn.model.Measurement; -import org.drools.quarkus.examples.otn.model.MyImplementation; -import org.drools.quarkus.examples.otn.model.MyInterface; -import org.drools.quarkus.examples.otn.model.MyUnusedClass; -import org.jboss.shrinkwrap.api.ShrinkWrap; -import org.jboss.shrinkwrap.api.asset.EmptyAsset; -import org.jboss.shrinkwrap.api.spec.JavaArchive; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.RegisterExtension; - -import io.quarkus.test.QuarkusUnitTest; - -public class ExtensionTest { - - @RegisterExtension - final static QuarkusUnitTest test = new QuarkusUnitTest() - .setArchiveProducer(() -> - ShrinkWrap.create(JavaArchive.class) - .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml") - .addClasses(ASubclassOfMeasurement.class, - Measurement.class, - MyImplementation.class, - MyInterface.class, - MyUnusedClass.class) - .addAsResource("rules.txt", "src/main/resources/org/drools/quarkus/examples/otn/rules.drl") - ); - - @Inject - OtnClassesSingleton myBean; - - @Test - public void test() { - assertThat(myBean.getAllKnown()).contains(ASubclassOfMeasurement.class.getCanonicalName(), - Measurement.class.getCanonicalName(), - MyImplementation.class.getCanonicalName(), - MyInterface.class.getCanonicalName()) - .as("these classes or subclasses are derived from OTNs in the rules."); - - assertThat(myBean.getAllKnown()).doesNotContain(MyUnusedClass.class.getCanonicalName()) - .as("this class is unused in the rules despite star-import"); - } -} diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/pom.xml b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/pom.xml deleted file mode 100644 index 84853c8a227..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - 4.0.0 - - org.drools - drools-drl-quarkus-extension - 8.40.0-SNAPSHOT - - - Drools :: Quarkus Testing Extension Example :: Runtime - example-drools-drl-quarkus-testext - An example extension consuming the drools-drl-quarkus extension - - - org.drools.drl.quarkus.testext.runtime - - - - - - io.quarkus - quarkus-core - - - io.quarkus - quarkus-arc - - - - - - - maven-deploy-plugin - - true - - - - io.quarkus - quarkus-bootstrap-maven-plugin - ${version.io.quarkus} - - - compile - - extension-descriptor - - - ${project.groupId}:${project.artifactId}-deployment:${project.version} - - org.drools.drl.testext - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - - io.quarkus - quarkus-extension-processor - ${version.io.quarkus} - - - - - - ${jandex-maven-plugin.group-id} - jandex-maven-plugin - - - - \ No newline at end of file diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnClassesSingleton.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnClassesSingleton.java deleted file mode 100644 index 21a9a016503..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnClassesSingleton.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.drl.quarkus.testext.deployment; - -import java.util.Map; -import java.util.Set; - -import javax.enterprise.event.Observes; -import javax.inject.Singleton; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import io.quarkus.runtime.StartupEvent; - -@Singleton -public class OtnClassesSingleton { - private static final Logger LOGGER = LoggerFactory.getLogger(OtnClassesSingleton.class); - - private Map>> patternsTypesClasses; - private Set allKnown; - - void onStart(@Observes StartupEvent ev) { - LOGGER.info("The application is starting..."); - } - - public Map>> getPatternsTypesClasses() { - return patternsTypesClasses; - } - - public void setPatternsTypesClasses(Map>> patternsTypesClasses) { - this.patternsTypesClasses = patternsTypesClasses; - } - - public Set getAllKnown() { - return allKnown; - } - - public void setAllKnown(Set allKnown) { - this.allKnown = allKnown; - } -} diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnMetadataRecorder.java b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnMetadataRecorder.java deleted file mode 100644 index 9ec69775ec3..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/java/org/drools/drl/quarkus/testext/deployment/OtnMetadataRecorder.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.drl.quarkus.testext.deployment; - -import java.util.Map; -import java.util.Set; - -import io.quarkus.arc.runtime.BeanContainerListener; -import io.quarkus.runtime.annotations.Recorder; - -@Recorder -public class OtnMetadataRecorder { - - public BeanContainerListener setContent(Map>> contentValue, Set allKnown) { - return beanContainer -> { - OtnClassesSingleton bean = beanContainer.beanInstance(OtnClassesSingleton.class); - bean.setPatternsTypesClasses(contentValue); - bean.setAllKnown(allKnown); - }; - } -} diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/resources/META-INF/quarkus-extension.yaml b/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/resources/META-INF/quarkus-extension.yaml deleted file mode 100644 index b32763902a4..00000000000 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext/src/main/resources/META-INF/quarkus-extension.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: "Example Drools-DRL-testext" -metadata: - keywords: - - "drools" - - "rules" - - "DRL" diff --git a/drools-drl-quarkus-extension/pom.xml b/drools-drl-quarkus-extension/pom.xml index 479e38c6248..40894b6cd0a 100644 --- a/drools-drl-quarkus-extension/pom.xml +++ b/drools-drl-quarkus-extension/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -47,8 +67,6 @@ drools-drl-quarkus-ruleunit-integration-test drools-drl-quarkus-quickstart-test drools-drl-quarkus-examples - example-drools-drl-quarkus-testext - example-drools-drl-quarkus-testext-deployment diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml index 6b3910cc66e..9ebf47d3e7a 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.drools drools-drlonyaml-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-drlonyaml-cli-tests Drools :: DRL on YAML :: CLI tests diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/main/java/org/drools/drlonyaml/cli/tests/Utils.java b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/main/java/org/drools/drlonyaml/cli/tests/Utils.java index 437ba669837..bc6a85be7e7 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/main/java/org/drools/drlonyaml/cli/tests/Utils.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/main/java/org/drools/drlonyaml/cli/tests/Utils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.cli.tests; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/test/java/org/drools/drlonyaml/cli/tests/ConversionsUsingCliTest.java b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/test/java/org/drools/drlonyaml/cli/tests/ConversionsUsingCliTest.java index faf506368b8..d9e8ed0570d 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/test/java/org/drools/drlonyaml/cli/tests/ConversionsUsingCliTest.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli-tests/src/test/java/org/drools/drlonyaml/cli/tests/ConversionsUsingCliTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.drlonyaml.cli.tests; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml index 4ec8fe251c0..f3a7784cb23 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.drools drools-drlonyaml-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-drlonyaml-cli Drools :: DRL on YAML :: CLI diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/App.java b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/App.java index d3bd50c8fee..c0cf898d762 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/App.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/App.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.cli; import org.drools.drlonyaml.cli.utils.DrlOnYamlCliVersionProvider; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Batch2Drl.java b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Batch2Drl.java index 28ceed9ff2a..c94035f6371 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Batch2Drl.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Batch2Drl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drlonyaml.cli; import java.io.File; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Batch2Yaml.java b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Batch2Yaml.java index 607f904fd9f..74b8fcbc241 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Batch2Yaml.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Batch2Yaml.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drlonyaml.cli; import java.io.File; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Drl2Yaml.java b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Drl2Yaml.java index 18ae5a86949..48230d48d1e 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Drl2Yaml.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Drl2Yaml.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drlonyaml.cli; import static org.drools.drlonyaml.cli.utils.Utils.conventionInputStream; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Yaml2Drl.java b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Yaml2Drl.java index 703fd5ce515..35ed656881f 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Yaml2Drl.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/Yaml2Drl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.drlonyaml.cli; import static org.drools.drlonyaml.cli.utils.Utils.conventionInputStream; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/DrlOnYamlCliVersionProvider.java b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/DrlOnYamlCliVersionProvider.java index 7ddaae7a586..da6055e50e7 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/DrlOnYamlCliVersionProvider.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/DrlOnYamlCliVersionProvider.java @@ -1,22 +1,24 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.cli.utils; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import picocli.CommandLine.IVersionProvider; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/FileWriteStrategy.java b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/FileWriteStrategy.java index 23dbe6064d6..22f58f85592 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/FileWriteStrategy.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/FileWriteStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.cli.utils; import java.io.File; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/Utils.java b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/Utils.java index d1254326673..f971e5674fb 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/Utils.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/java/org/drools/drlonyaml/cli/utils/Utils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.cli.utils; import java.io.ByteArrayInputStream; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/resources/logback.xml b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/resources/logback.xml index 88af66c1ab6..797486d0f87 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/resources/logback.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-cli/src/main/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml index 00b72bcda61..c49ce93592d 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.drools drools-drlonyaml-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-drlonyaml-model Drools :: DRL on YAML :: model diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/AbstractThen.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/AbstractThen.java index fba477cee44..9106888c7ea 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/AbstractThen.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/AbstractThen.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import com.fasterxml.jackson.annotation.JsonSubTypes; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/AbstractThenDeserializer.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/AbstractThenDeserializer.java index 88f5956517e..01b532174a9 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/AbstractThenDeserializer.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/AbstractThenDeserializer.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.io.IOException; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/All.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/All.java index 0baa7c72fd6..51b69c57078 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/All.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/All.java @@ -1,24 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import org.drools.drl.ast.descr.AndDescr; @@ -31,6 +33,7 @@ public class All implements Base { private List all = new ArrayList<>(); public static All from(AndDescr o) { + Objects.requireNonNull(o); All result = new All(); result.all = Utils.from(o.getDescrs()); return result; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Base.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Base.java index 69e171742e3..5a55738b032 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Base.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Base.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import com.fasterxml.jackson.annotation.JsonSubTypes; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/BaseDeserializer.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/BaseDeserializer.java index 93bcaa55b4f..c6e53100da5 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/BaseDeserializer.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/BaseDeserializer.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.io.IOException; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/DrlPackage.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/DrlPackage.java index b1a0b6fa035..dd578aa22fa 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/DrlPackage.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/DrlPackage.java @@ -1,26 +1,29 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import org.drools.drl.ast.descr.FunctionDescr; +import org.drools.drl.ast.descr.GlobalDescr; import org.drools.drl.ast.descr.ImportDescr; import org.drools.drl.ast.descr.PackageDescr; import org.drools.drl.ast.descr.RuleDescr; @@ -29,22 +32,28 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -@JsonPropertyOrder({"name", "imports", "rules", "functions"}) +@JsonPropertyOrder({"name", "imports", "globals", "rules", "functions"}) public class DrlPackage { @JsonInclude(Include.NON_EMPTY) private String name = ""; // default empty, consistent with DRL parser. @JsonInclude(Include.NON_EMPTY) private List imports = new ArrayList<>(); + @JsonInclude(Include.NON_EMPTY) + private List globals = new ArrayList<>(); private List rules = new ArrayList<>(); @JsonInclude(Include.NON_EMPTY) private List functions = new ArrayList<>(); public static DrlPackage from(PackageDescr o) { + Objects.requireNonNull(o); DrlPackage result = new DrlPackage(); result.name = o.getName(); for (ImportDescr i : o.getImports()) { result.imports.add(Import.from(i)); } + for (GlobalDescr g : o.getGlobals()) { + result.globals.add(Global.from(g)); + } for (RuleDescr r : o.getRules()) { result.rules.add(Rule.from(r)); } @@ -61,6 +70,10 @@ public String getName() { public List getImports() { return imports; } + + public List getGlobals() { + return globals; + } public List getRules() { return rules; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Exists.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Exists.java index 89a6f06df16..799eba26f02 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Exists.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Exists.java @@ -1,24 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import org.drools.drl.ast.descr.ExistsDescr; @@ -31,6 +33,7 @@ public class Exists implements Base { private List exists = new ArrayList<>(); public static Exists from(ExistsDescr o) { + Objects.requireNonNull(o); Exists result = new Exists(); result.exists = Utils.from(o.getDescrs()); return result; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Function.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Function.java index 4d998015061..fc6de0a4f2f 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Function.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Function.java @@ -1,24 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import org.drools.drl.ast.descr.FunctionDescr; @@ -29,6 +31,7 @@ public class Function { private String body; public static Function from(FunctionDescr f) { + Objects.requireNonNull(f); Function result = new Function(); result.name = f.getName(); result.returnType = f.getReturnType(); diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Global.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Global.java new file mode 100644 index 00000000000..ee0757a2a34 --- /dev/null +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Global.java @@ -0,0 +1,50 @@ +/** + * 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. + */ +package org.drools.drlonyaml.model; + +import java.util.Objects; + +import org.drools.drl.ast.descr.GlobalDescr; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + +@JsonPropertyOrder({"type", "id"}) +public class Global { + @JsonProperty(required = true) + private String type; + @JsonProperty(required = true) + private String id; + + public static Global from(GlobalDescr r) { + Objects.requireNonNull(r); + Global result = new Global(); + result.type = r.getType(); + result.id = r.getIdentifier(); + return result; + } + + public String getType() { + return type; + } + + public String getId() { + return id; + } +} diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Import.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Import.java index d1b47a324da..2fd0f2bf380 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Import.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Import.java @@ -1,22 +1,25 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; +import java.util.Objects; + import org.drools.drl.ast.descr.ImportDescr; import com.fasterxml.jackson.annotation.JsonCreator; @@ -36,6 +39,7 @@ private Import() { } public static Import from(ImportDescr i) { + Objects.requireNonNull(i); Import result = new Import(); result.target = i.getTarget(); return result; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Not.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Not.java index 1c0b3ba40dd..0abe658b324 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Not.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Not.java @@ -1,24 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import org.drools.drl.ast.descr.NotDescr; @@ -31,6 +33,7 @@ public class Not implements Base { private List not = new ArrayList<>(); public static Not from(NotDescr o) { + Objects.requireNonNull(o); Not result = new Not(); result.not = Utils.from(o.getDescrs()); return result; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Pattern.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Pattern.java index 2d6a6317b13..2d141c490d1 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Pattern.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Pattern.java @@ -1,24 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.ExprConstraintDescr; @@ -43,6 +45,7 @@ public class Pattern implements Base { private String from; public static Pattern from(PatternDescr o) { + Objects.requireNonNull(o); Pattern result = new Pattern(); result.given = o.getObjectType(); if (o.getAllBoundIdentifiers().isEmpty()) { diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Rule.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Rule.java index 69e393415cc..48045917974 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Rule.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Rule.java @@ -1,24 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.RuleDescr; @@ -36,6 +38,7 @@ public class Rule { private AbstractThen then; public static Rule from(RuleDescr r) { + Objects.requireNonNull(r); Rule result = new Rule(); result.name = r.getName(); for (BaseDescr dd: r.getLhs().getDescrs()) { diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/StringThen.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/StringThen.java index 0dff65b7af8..cbf2431b46a 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/StringThen.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/StringThen.java @@ -1,22 +1,25 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; +import java.util.Objects; + import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; @@ -34,6 +37,7 @@ private StringThen() { } public static StringThen from(String then) { + Objects.requireNonNull(then); StringThen result = new StringThen(); result.then = then; return result; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Utils.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Utils.java index 59d480dead8..a6c7f138a0c 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Utils.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/java/org/drools/drlonyaml/model/Utils.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import java.util.ArrayList; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/resources/drlonyaml-schema.json b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/resources/drlonyaml-schema.json index a44f1086ad5..82d153571ea 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/resources/drlonyaml-schema.json +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/main/resources/drlonyaml-schema.json @@ -61,6 +61,18 @@ } } }, + "Global" : { + "type" : "object", + "properties" : { + "type" : { + "type" : "string" + }, + "id" : { + "type" : "string" + } + }, + "required" : [ "type", "id" ] + }, "Import" : { "type" : "string" }, @@ -157,6 +169,12 @@ "$ref" : "#/definitions/Import" } }, + "globals" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/Global" + } + }, "rules" : { "type" : "array", "items" : { diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/java/org/drools/drlonyaml/model/SmokeTest.java b/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/java/org/drools/drlonyaml/model/SmokeTest.java index 8edbe22bd4e..79ed3ccfd2a 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/java/org/drools/drlonyaml/model/SmokeTest.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/java/org/drools/drlonyaml/model/SmokeTest.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.model; import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/logback-test.xml b/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/logback-test.xml index 68bce7b1d3b..2c8aa9f4d13 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/logback-test.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/smoketests/yamlfirst_smoke1.yml b/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/smoketests/yamlfirst_smoke1.yml index c7ec5b3186b..2b2d1a38bce 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/smoketests/yamlfirst_smoke1.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/smoketests/yamlfirst_smoke1.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. name: ciao imports: diff --git a/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/smoketests/yamlfirst_smoke2.yml b/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/smoketests/yamlfirst_smoke2.yml index 54fafb7a1e6..e8687869c17 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/smoketests/yamlfirst_smoke2.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-model/src/test/resources/smoketests/yamlfirst_smoke2.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. name: ciao imports: diff --git a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml index 0ad3aec75f2..50a56ef4bdf 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.drools drools-drlonyaml-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-drlonyaml-schemagen Drools :: DRL on YAML :: schema generator diff --git a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/src/main/java/org/drools/drlonyaml/schemagen/AtomicTypeJsonValueDefinitionProvider.java b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/src/main/java/org/drools/drlonyaml/schemagen/AtomicTypeJsonValueDefinitionProvider.java index c469cb62348..476a5889cae 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/src/main/java/org/drools/drlonyaml/schemagen/AtomicTypeJsonValueDefinitionProvider.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/src/main/java/org/drools/drlonyaml/schemagen/AtomicTypeJsonValueDefinitionProvider.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.schemagen; import java.util.List; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/src/main/java/org/drools/drlonyaml/schemagen/Generator.java b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/src/main/java/org/drools/drlonyaml/schemagen/Generator.java index 056b96ddbf7..9e97cedaaab 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-schemagen/src/main/java/org/drools/drlonyaml/schemagen/Generator.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-schemagen/src/main/java/org/drools/drlonyaml/schemagen/Generator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.schemagen; import java.nio.file.Files; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml index 9b7847ae489..37a2ab9fbcf 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.drools drools-drlonyaml-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-drlonyaml-todrl Drools :: DRL on YAML :: to DRL emitter diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/main/java/org/drools/drlonyaml/todrl/YAMLtoDrlDumper.java b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/main/java/org/drools/drlonyaml/todrl/YAMLtoDrlDumper.java index 4efbaeb2c07..9c615393c27 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/main/java/org/drools/drlonyaml/todrl/YAMLtoDrlDumper.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/main/java/org/drools/drlonyaml/todrl/YAMLtoDrlDumper.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.drlonyaml.todrl; import java.io.StringWriter; diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/main/resources/drl.ftl b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/main/resources/drl.ftl index 0c869731f79..bf323167843 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/main/resources/drl.ftl +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/main/resources/drl.ftl @@ -10,6 +10,14 @@ import ${import.target}; <#-- +## DRL globals + +--> +<#list globals as global> +global ${global.type} ${global.id}; + +<#-- + ## DRL rules --> diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/java/org/drools/drlonyaml/todrl/YAMLtoDRLTest.java b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/java/org/drools/drlonyaml/todrl/YAMLtoDRLTest.java index 110f27b013a..9456f1af25d 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/java/org/drools/drlonyaml/todrl/YAMLtoDRLTest.java +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/java/org/drools/drlonyaml/todrl/YAMLtoDRLTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.drlonyaml.todrl; import static org.assertj.core.api.Assertions.assertThat; @@ -97,4 +115,9 @@ public void smokeTestFromYAML9() { public void smokeTestFromYAML10() { assertDumpingYAMLtoDRLisValid("/smoketests/yaml10.yml"); } + + @Test + public void smokeTestFromYAML11() { + assertDumpingYAMLtoDRLisValid("/smoketests/yaml11.yml"); + } } diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/logback-test.xml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/logback-test.xml index 6ee304772b2..6beec2376e1 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/logback-test.xml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml10.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml10.yml index a45c88459e8..95b0ae2b9a0 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml10.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml10.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. rules: - name: Fix the PersistentVolume Claim Pod PENDING diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml11.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml11.yml new file mode 100644 index 00000000000..5d80a500149 --- /dev/null +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml11.yml @@ -0,0 +1,63 @@ +# +# 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. +# + +# only syntactically valid yaml. +name: rules.rhoc +imports: +- java.util.Map +- org.drools.ruleops.model.Advice +- io.fabric8.kubernetes.api.model.ConfigMap +- io.fabric8.kubernetes.api.model.Pod +globals: +- type: String + id: arg0 +rules: +- name: Find configMap in connector namespace to enable logs + when: + - given: Pod + as: $pod + having: + - "metadata.labels[\"cos.bf2.org/connector.id\"] == arg0" + - "$deploymentId : metadata.labels[\"cos.bf2.org/deployment.id\"]" + - "$namespace: metadata.namespace" + - given: ConfigMap + as: $configMap + having: + - metadata.name == "mctr-" + $deploymentId + "-configmap" + - metadata.namespace == $namespace + then: | + if(!$configMap.getData().containsKey("override.properties")) { + String description = """ + Run the following command: + + kubectl edit configmap %s -n %s + + Upgrade then the data field: + + override.properties: |- + quarkus.log.level=DEBUG + quarkus.log.min-level=DEBUG + quarkus.log.category."org.apache".level = DEBUG + quarkus.log.category."org.apache".min-level = DEBUG + + """ + .formatted($configMap.getMetadata().getName(), $namespace); + + insert(new Advice("To enable logging on connector: %s".formatted(arg0), description)); + } diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml2.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml2.yml index f394455c26f..84b1cf5fc03 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml2.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml2.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. name: mypackage imports: diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml3.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml3.yml index 98136292035..a5a279abbcf 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml3.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml3.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. rules: - name: Relax the ResourceQuota limits StatefulSet PENDING diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml4.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml4.yml index ef10b3d9f96..c5db488d0b7 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml4.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml4.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. rules: - name: Fix the Service targetPort and the containerPort diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml5.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml5.yml index 74e39c61c4c..330fd0155eb 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml5.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml5.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. rules: [] functions: diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml6.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml6.yml index 09ca52a7668..2384001ef90 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml6.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml6.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. rules: - name: Fix the Service selector No Pod found for selector diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml7.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml7.yml index 6cc55bb1721..1b058a0299d 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml7.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml7.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. rules: - name: "Fix the Service selector matches Pod name, but other selectors don't" diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml8.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml8.yml index 70c7d9a64a5..6af22700ab8 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml8.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml8.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. rules: - name: Fix the Service selector sounds like Pod name but not an exact match diff --git a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml9.yml b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml9.yml index 93c30948700..54514b3ae22 100644 --- a/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml9.yml +++ b/drools-drlonyaml-parent/drools-drlonyaml-todrl/src/test/resources/smoketests/yaml9.yml @@ -1,3 +1,22 @@ +# +# 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. +# + # only syntactically valid yaml. rules: - name: Relax the ResourceQuota limits Deployment PENDING diff --git a/drools-drlonyaml-parent/pom.xml b/drools-drlonyaml-parent/pom.xml index cf3f861c211..db0bfdba1d3 100644 --- a/drools-drlonyaml-parent/pom.xml +++ b/drools-drlonyaml-parent/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml org.drools diff --git a/drools-ecj/pom.xml b/drools-ecj/pom.xml index 2a8c9b14c22..ec0bdd20958 100644 --- a/drools-ecj/pom.xml +++ b/drools-ecj/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -40,39 +60,4 @@ test - - - - - - maven-shade-plugin - - - package - - shade - - - true - - - org.eclipse.jdt:ecj - - - - - org.eclipse.jdt - org.drools.compiler.shade.org.eclipse.jdt - - - - - - - - - - - - - \ No newline at end of file + diff --git a/drools-ecj/src/main/java/org/drools/ecj/EclipseCompilationProblem.java b/drools-ecj/src/main/java/org/drools/ecj/EclipseCompilationProblem.java index e929f47cbc9..87d03e88b3c 100644 --- a/drools-ecj/src/main/java/org/drools/ecj/EclipseCompilationProblem.java +++ b/drools-ecj/src/main/java/org/drools/ecj/EclipseCompilationProblem.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.ecj; import org.kie.memorycompiler.CompilationProblem; diff --git a/drools-ecj/src/main/java/org/drools/ecj/EclipseJavaCompiler.java b/drools-ecj/src/main/java/org/drools/ecj/EclipseJavaCompiler.java index ed883578016..7e8f2c95fd5 100644 --- a/drools-ecj/src/main/java/org/drools/ecj/EclipseJavaCompiler.java +++ b/drools-ecj/src/main/java/org/drools/ecj/EclipseJavaCompiler.java @@ -1,15 +1,20 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ package org.drools.ecj; @@ -379,7 +384,7 @@ public void cleanup() { final Compiler compiler = new Compiler(nameEnvironment, policy, compilerOptions, compilerRequestor, problemFactory); - if ( JavaCompiler.DUMP_GENERATED_CLASSES ) { + if ( true ) { //JavaCompiler.DUMP_GENERATED_CLASSES ) { dumpUnits( compilationUnits, pReader ); } @@ -394,11 +399,12 @@ private void dumpUnits( ICompilationUnit[] compilationUnits, ResourceReader read for (ICompilationUnit unit : compilationUnits) { String name = ( (CompilationUnit) unit ).fileName; String source = new String( reader.getBytes( name ) ); - try { - IoUtils.write( new java.io.File(name.replace( '/', '.' )), reader.getBytes( name ) ); - } catch (IOException e) { - throw new RuntimeException( e ); - } +// System.out.println(source); +// try { +// IoUtils.write( new java.io.File(name.replace( '/', '.' )), reader.getBytes( name ) ); +// } catch (IOException e) { +// throw new RuntimeException( e ); +// } } } diff --git a/drools-ecj/src/main/java/org/drools/ecj/EclipseJavaCompilerSettings.java b/drools-ecj/src/main/java/org/drools/ecj/EclipseJavaCompilerSettings.java index 134058b021e..afc1a1e31ac 100644 --- a/drools-ecj/src/main/java/org/drools/ecj/EclipseJavaCompilerSettings.java +++ b/drools-ecj/src/main/java/org/drools/ecj/EclipseJavaCompilerSettings.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.ecj; import java.util.HashMap; diff --git a/drools-ecj/src/test/java/org/drools/ecj/JavaCompilerI18NTest.java b/drools-ecj/src/test/java/org/drools/ecj/JavaCompilerI18NTest.java index db634c09243..c2db63729d0 100644 --- a/drools-ecj/src/test/java/org/drools/ecj/JavaCompilerI18NTest.java +++ b/drools-ecj/src/test/java/org/drools/ecj/JavaCompilerI18NTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.ecj; import java.util.ArrayList; diff --git a/drools-engine-classic/pom.xml b/drools-engine-classic/pom.xml index 686d8043640..8207bbfd45b 100644 --- a/drools-engine-classic/pom.xml +++ b/drools-engine-classic/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-engine/pom.xml b/drools-engine/pom.xml index baeefacb113..db6ce44e7b2 100644 --- a/drools-engine/pom.xml +++ b/drools-engine/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-examples-api/default-kiesession-from-file/pom.xml b/drools-examples-api/default-kiesession-from-file/pom.xml index 5ec7c769b70..d41a54fc876 100644 --- a/drools-examples-api/default-kiesession-from-file/pom.xml +++ b/drools-examples-api/default-kiesession-from-file/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT default-kiesession-from-file diff --git a/drools-examples-api/default-kiesession-from-file/src/main/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExample.java b/drools-examples-api/default-kiesession-from-file/src/main/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExample.java index c53731ca8c2..4022a96c58a 100644 --- a/drools-examples-api/default-kiesession-from-file/src/main/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExample.java +++ b/drools-examples-api/default-kiesession-from-file/src/main/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.defaultkiesessionfromfile; import org.kie.api.KieServices; diff --git a/drools-examples-api/default-kiesession-from-file/src/main/resources/logback.xml b/drools-examples-api/default-kiesession-from-file/src/main/resources/logback.xml index eba2b625773..3b4a54ff0d7 100644 --- a/drools-examples-api/default-kiesession-from-file/src/main/resources/logback.xml +++ b/drools-examples-api/default-kiesession-from-file/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromByteArrayExampleTest.java b/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromByteArrayExampleTest.java index 842d6c07495..60c732e59a7 100644 --- a/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromByteArrayExampleTest.java +++ b/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromByteArrayExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.defaultkiesessionfromfile; import org.junit.Test; diff --git a/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExampleTest.java b/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExampleTest.java index a5564960f8b..4c5256c239e 100644 --- a/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExampleTest.java +++ b/drools-examples-api/default-kiesession-from-file/src/test/java/org/drools/example/api/defaultkiesessionfromfile/DefaultKieSessionFromFileExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.defaultkiesessionfromfile; import org.junit.Test; diff --git a/drools-examples-api/default-kiesession/pom.xml b/drools-examples-api/default-kiesession/pom.xml index c13cec31adb..2b6f916be02 100644 --- a/drools-examples-api/default-kiesession/pom.xml +++ b/drools-examples-api/default-kiesession/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT default-kiesession diff --git a/drools-examples-api/default-kiesession/src/main/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExample.java b/drools-examples-api/default-kiesession/src/main/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExample.java index 01ec9fa9f80..e1eab8bf88c 100644 --- a/drools-examples-api/default-kiesession/src/main/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExample.java +++ b/drools-examples-api/default-kiesession/src/main/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.defaultkiesession; import org.kie.api.KieServices; diff --git a/drools-examples-api/default-kiesession/src/main/java/org/drools/example/api/defaultkiesession/Message.java b/drools-examples-api/default-kiesession/src/main/java/org/drools/example/api/defaultkiesession/Message.java index 8b5d459aacb..043258a8ed8 100644 --- a/drools-examples-api/default-kiesession/src/main/java/org/drools/example/api/defaultkiesession/Message.java +++ b/drools-examples-api/default-kiesession/src/main/java/org/drools/example/api/defaultkiesession/Message.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.defaultkiesession; public class Message { diff --git a/drools-examples-api/default-kiesession/src/main/resources/META-INF/kmodule.xml b/drools-examples-api/default-kiesession/src/main/resources/META-INF/kmodule.xml index cfd88a7e2c3..f89320600e1 100644 --- a/drools-examples-api/default-kiesession/src/main/resources/META-INF/kmodule.xml +++ b/drools-examples-api/default-kiesession/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/default-kiesession/src/main/resources/logback.xml b/drools-examples-api/default-kiesession/src/main/resources/logback.xml index eba2b625773..3b4a54ff0d7 100644 --- a/drools-examples-api/default-kiesession/src/main/resources/logback.xml +++ b/drools-examples-api/default-kiesession/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExampleTest.java b/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExampleTest.java index 33490db0f53..c319068dab2 100644 --- a/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExampleTest.java +++ b/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.defaultkiesession; import org.junit.Test; diff --git a/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionFromFSExampleTest.java b/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionFromFSExampleTest.java index 2ecb240e031..985c3eaaa80 100644 --- a/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionFromFSExampleTest.java +++ b/drools-examples-api/default-kiesession/src/test/java/org/drools/example/api/defaultkiesession/DefaultKieSessionFromFSExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.defaultkiesession; import org.junit.Test; diff --git a/drools-examples-api/kie-module-from-multiple-files/pom.xml b/drools-examples-api/kie-module-from-multiple-files/pom.xml index 0a39f74d3de..02c31972a5a 100644 --- a/drools-examples-api/kie-module-from-multiple-files/pom.xml +++ b/drools-examples-api/kie-module-from-multiple-files/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-module-from-multiple-files diff --git a/drools-examples-api/kie-module-from-multiple-files/src/main/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExample.java b/drools-examples-api/kie-module-from-multiple-files/src/main/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExample.java index 1198af40c86..c058e3a3842 100644 --- a/drools-examples-api/kie-module-from-multiple-files/src/main/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExample.java +++ b/drools-examples-api/kie-module-from-multiple-files/src/main/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiemodulefrommultiplefiles; import org.kie.api.KieServices; diff --git a/drools-examples-api/kie-module-from-multiple-files/src/main/resources/logback.xml b/drools-examples-api/kie-module-from-multiple-files/src/main/resources/logback.xml index d0498c0d9c4..dd53cf7d9f7 100644 --- a/drools-examples-api/kie-module-from-multiple-files/src/main/resources/logback.xml +++ b/drools-examples-api/kie-module-from-multiple-files/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/kie-module-from-multiple-files/src/test/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExampleTest.java b/drools-examples-api/kie-module-from-multiple-files/src/test/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExampleTest.java index 31a8ca75fe5..403cd9392fb 100644 --- a/drools-examples-api/kie-module-from-multiple-files/src/test/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExampleTest.java +++ b/drools-examples-api/kie-module-from-multiple-files/src/test/java/org/drools/example/api/kiemodulefrommultiplefiles/KieModuleFromMultipleFilesExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiemodulefrommultiplefiles; import org.junit.Test; diff --git a/drools-examples-api/kiebase-inclusion/pom.xml b/drools-examples-api/kiebase-inclusion/pom.xml index 9d82d86e2e3..caf5f4f3c53 100644 --- a/drools-examples-api/kiebase-inclusion/pom.xml +++ b/drools-examples-api/kiebase-inclusion/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kiebase-inclusion diff --git a/drools-examples-api/kiebase-inclusion/src/main/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExample.java b/drools-examples-api/kiebase-inclusion/src/main/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExample.java index b1587cdaeea..8419d071d9a 100644 --- a/drools-examples-api/kiebase-inclusion/src/main/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExample.java +++ b/drools-examples-api/kiebase-inclusion/src/main/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiebaseinclusion; import org.drools.example.api.namedkiesession.Message; diff --git a/drools-examples-api/kiebase-inclusion/src/main/resources/META-INF/kmodule.xml b/drools-examples-api/kiebase-inclusion/src/main/resources/META-INF/kmodule.xml index e600ed19abc..8e644b219c2 100644 --- a/drools-examples-api/kiebase-inclusion/src/main/resources/META-INF/kmodule.xml +++ b/drools-examples-api/kiebase-inclusion/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/kiebase-inclusion/src/main/resources/logback.xml b/drools-examples-api/kiebase-inclusion/src/main/resources/logback.xml index a32ea1700e4..85e5323256b 100644 --- a/drools-examples-api/kiebase-inclusion/src/main/resources/logback.xml +++ b/drools-examples-api/kiebase-inclusion/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/kiebase-inclusion/src/test/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExampleTest.java b/drools-examples-api/kiebase-inclusion/src/test/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExampleTest.java index fc04d8ddc9c..77804c46fb1 100644 --- a/drools-examples-api/kiebase-inclusion/src/test/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExampleTest.java +++ b/drools-examples-api/kiebase-inclusion/src/test/java/org/drools/example/api/kiebaseinclusion/KieBaseInclusionExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiebaseinclusion; import org.junit.Test; diff --git a/drools-examples-api/kiecontainer-from-kierepo/pom.xml b/drools-examples-api/kiecontainer-from-kierepo/pom.xml index 42028d00b19..065fca8fae9 100644 --- a/drools-examples-api/kiecontainer-from-kierepo/pom.xml +++ b/drools-examples-api/kiecontainer-from-kierepo/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kiecontainer-from-kierepo diff --git a/drools-examples-api/kiecontainer-from-kierepo/src/main/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExample.java b/drools-examples-api/kiecontainer-from-kierepo/src/main/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExample.java index fa0947fbf69..f8fc93d9462 100644 --- a/drools-examples-api/kiecontainer-from-kierepo/src/main/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExample.java +++ b/drools-examples-api/kiecontainer-from-kierepo/src/main/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExample.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiecontainerfromkierepo; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import org.kie.api.KieServices; import org.kie.api.runtime.KieContainer; import org.kie.api.runtime.KieSession; diff --git a/drools-examples-api/kiecontainer-from-kierepo/src/main/resources/logback.xml b/drools-examples-api/kiecontainer-from-kierepo/src/main/resources/logback.xml index a32ea1700e4..85e5323256b 100644 --- a/drools-examples-api/kiecontainer-from-kierepo/src/main/resources/logback.xml +++ b/drools-examples-api/kiecontainer-from-kierepo/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/kiecontainer-from-kierepo/src/test/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExampleTest.java b/drools-examples-api/kiecontainer-from-kierepo/src/test/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExampleTest.java index 9fa88c01a68..70da1110b7b 100644 --- a/drools-examples-api/kiecontainer-from-kierepo/src/test/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExampleTest.java +++ b/drools-examples-api/kiecontainer-from-kierepo/src/test/java/org/drools/example/api/kiecontainerfromkierepo/KieContainerFromKieRepoExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiecontainerfromkierepo; import org.junit.Test; diff --git a/drools-examples-api/kiefilesystem-example/pom.xml b/drools-examples-api/kiefilesystem-example/pom.xml index c66ed238dba..c3db7cf436e 100644 --- a/drools-examples-api/kiefilesystem-example/pom.xml +++ b/drools-examples-api/kiefilesystem-example/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kiefilesystem-example diff --git a/drools-examples-api/kiefilesystem-example/src/main/java/org/drools/example/api/kiefilesystem/KieFileSystemExample.java b/drools-examples-api/kiefilesystem-example/src/main/java/org/drools/example/api/kiefilesystem/KieFileSystemExample.java index a5cda90b273..af7ade5c6a9 100644 --- a/drools-examples-api/kiefilesystem-example/src/main/java/org/drools/example/api/kiefilesystem/KieFileSystemExample.java +++ b/drools-examples-api/kiefilesystem-example/src/main/java/org/drools/example/api/kiefilesystem/KieFileSystemExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiefilesystem; import org.kie.api.KieServices; diff --git a/drools-examples-api/kiefilesystem-example/src/main/java/org/drools/example/api/kiefilesystem/Message.java b/drools-examples-api/kiefilesystem-example/src/main/java/org/drools/example/api/kiefilesystem/Message.java index fe89c9d8c1b..4eef357c9fb 100644 --- a/drools-examples-api/kiefilesystem-example/src/main/java/org/drools/example/api/kiefilesystem/Message.java +++ b/drools-examples-api/kiefilesystem-example/src/main/java/org/drools/example/api/kiefilesystem/Message.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiefilesystem; public class Message { diff --git a/drools-examples-api/kiefilesystem-example/src/main/resources/logback.xml b/drools-examples-api/kiefilesystem-example/src/main/resources/logback.xml index a32ea1700e4..85e5323256b 100644 --- a/drools-examples-api/kiefilesystem-example/src/main/resources/logback.xml +++ b/drools-examples-api/kiefilesystem-example/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/kiefilesystem-example/src/test/java/org/drools/example/api/kiefilesystem/KieFileSystemExampleTest.java b/drools-examples-api/kiefilesystem-example/src/test/java/org/drools/example/api/kiefilesystem/KieFileSystemExampleTest.java index e6c7c6a3835..bc55c5dc4b1 100644 --- a/drools-examples-api/kiefilesystem-example/src/test/java/org/drools/example/api/kiefilesystem/KieFileSystemExampleTest.java +++ b/drools-examples-api/kiefilesystem-example/src/test/java/org/drools/example/api/kiefilesystem/KieFileSystemExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiefilesystem; import org.junit.Test; diff --git a/drools-examples-api/kiemodulemodel-example/pom.xml b/drools-examples-api/kiemodulemodel-example/pom.xml index 3674e3c25d1..8deb710a98b 100644 --- a/drools-examples-api/kiemodulemodel-example/pom.xml +++ b/drools-examples-api/kiemodulemodel-example/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kiemodulemodel-example diff --git a/drools-examples-api/kiemodulemodel-example/src/main/java/org/drools/example/api/kiemodulemodel/KieModuleModelExample.java b/drools-examples-api/kiemodulemodel-example/src/main/java/org/drools/example/api/kiemodulemodel/KieModuleModelExample.java index 6dcdc4f41f6..fc6c1c158ed 100644 --- a/drools-examples-api/kiemodulemodel-example/src/main/java/org/drools/example/api/kiemodulemodel/KieModuleModelExample.java +++ b/drools-examples-api/kiemodulemodel-example/src/main/java/org/drools/example/api/kiemodulemodel/KieModuleModelExample.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiemodulemodel; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import org.kie.api.KieServices; import org.kie.api.builder.KieBuilder; import org.kie.api.builder.KieFileSystem; diff --git a/drools-examples-api/kiemodulemodel-example/src/main/resources/logback.xml b/drools-examples-api/kiemodulemodel-example/src/main/resources/logback.xml index a32ea1700e4..85e5323256b 100644 --- a/drools-examples-api/kiemodulemodel-example/src/main/resources/logback.xml +++ b/drools-examples-api/kiemodulemodel-example/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/kiemodulemodel-example/src/test/java/org/drools/example/api/kiemodulemodel/KieModuleModelExampleTest.java b/drools-examples-api/kiemodulemodel-example/src/test/java/org/drools/example/api/kiemodulemodel/KieModuleModelExampleTest.java index 1878c5bc928..979a2baa9b4 100644 --- a/drools-examples-api/kiemodulemodel-example/src/test/java/org/drools/example/api/kiemodulemodel/KieModuleModelExampleTest.java +++ b/drools-examples-api/kiemodulemodel-example/src/test/java/org/drools/example/api/kiemodulemodel/KieModuleModelExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.kiemodulemodel; import org.junit.Test; diff --git a/drools-examples-api/multiple-kbases/pom.xml b/drools-examples-api/multiple-kbases/pom.xml index 7a11fa6a46b..9636a806d8a 100644 --- a/drools-examples-api/multiple-kbases/pom.xml +++ b/drools-examples-api/multiple-kbases/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT multiple-kbases diff --git a/drools-examples-api/multiple-kbases/src/main/resources/META-INF/kmodule.xml b/drools-examples-api/multiple-kbases/src/main/resources/META-INF/kmodule.xml index bf9a5d3dec1..639d3c73166 100644 --- a/drools-examples-api/multiple-kbases/src/main/resources/META-INF/kmodule.xml +++ b/drools-examples-api/multiple-kbases/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/multiple-kbases/src/main/resources/logback.xml b/drools-examples-api/multiple-kbases/src/main/resources/logback.xml index 5cd819b44d2..4f482099a74 100644 --- a/drools-examples-api/multiple-kbases/src/main/resources/logback.xml +++ b/drools-examples-api/multiple-kbases/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/multiple-kbases/src/test/java/org/drools/example/api/multiplekbases/MultipleKbasesExampleTest.java b/drools-examples-api/multiple-kbases/src/test/java/org/drools/example/api/multiplekbases/MultipleKbasesExampleTest.java index 8101ebc95b6..a7faa33f89c 100644 --- a/drools-examples-api/multiple-kbases/src/test/java/org/drools/example/api/multiplekbases/MultipleKbasesExampleTest.java +++ b/drools-examples-api/multiple-kbases/src/test/java/org/drools/example/api/multiplekbases/MultipleKbasesExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.multiplekbases; import java.util.ArrayList; diff --git a/drools-examples-api/named-kiesession-from-file/pom.xml b/drools-examples-api/named-kiesession-from-file/pom.xml index a641038f56f..411bec642f3 100644 --- a/drools-examples-api/named-kiesession-from-file/pom.xml +++ b/drools-examples-api/named-kiesession-from-file/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: API examples :: Named KieSession from File diff --git a/drools-examples-api/named-kiesession-from-file/src/main/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExample.java b/drools-examples-api/named-kiesession-from-file/src/main/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExample.java index 8b0d1cb2f7f..330b4e4afd9 100644 --- a/drools-examples-api/named-kiesession-from-file/src/main/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExample.java +++ b/drools-examples-api/named-kiesession-from-file/src/main/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.namedkiesessionfromfile; import org.kie.api.KieServices; diff --git a/drools-examples-api/named-kiesession-from-file/src/main/resources/logback.xml b/drools-examples-api/named-kiesession-from-file/src/main/resources/logback.xml index 6087691bb5a..0ebb113ee90 100644 --- a/drools-examples-api/named-kiesession-from-file/src/main/resources/logback.xml +++ b/drools-examples-api/named-kiesession-from-file/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/named-kiesession-from-file/src/test/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExampleTest.java b/drools-examples-api/named-kiesession-from-file/src/test/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExampleTest.java index 9230a6af77f..e2cd2afe1de 100644 --- a/drools-examples-api/named-kiesession-from-file/src/test/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExampleTest.java +++ b/drools-examples-api/named-kiesession-from-file/src/test/java/org/drools/example/api/namedkiesessionfromfile/NamedKieSessionFromFileExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.namedkiesessionfromfile; import org.junit.Test; diff --git a/drools-examples-api/named-kiesession/pom.xml b/drools-examples-api/named-kiesession/pom.xml index f7feb996359..84cd75d19e8 100644 --- a/drools-examples-api/named-kiesession/pom.xml +++ b/drools-examples-api/named-kiesession/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT named-kiesession diff --git a/drools-examples-api/named-kiesession/src/main/java/org/drools/example/api/namedkiesession/Message.java b/drools-examples-api/named-kiesession/src/main/java/org/drools/example/api/namedkiesession/Message.java index ea102be3340..07cc1f79141 100644 --- a/drools-examples-api/named-kiesession/src/main/java/org/drools/example/api/namedkiesession/Message.java +++ b/drools-examples-api/named-kiesession/src/main/java/org/drools/example/api/namedkiesession/Message.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.namedkiesession; public class Message { diff --git a/drools-examples-api/named-kiesession/src/main/java/org/drools/example/api/namedkiesession/NamedKieSessionExample.java b/drools-examples-api/named-kiesession/src/main/java/org/drools/example/api/namedkiesession/NamedKieSessionExample.java index c7ba5ba3e51..5aa75097cea 100644 --- a/drools-examples-api/named-kiesession/src/main/java/org/drools/example/api/namedkiesession/NamedKieSessionExample.java +++ b/drools-examples-api/named-kiesession/src/main/java/org/drools/example/api/namedkiesession/NamedKieSessionExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.namedkiesession; import org.kie.api.KieServices; diff --git a/drools-examples-api/named-kiesession/src/main/resources/META-INF/kmodule.xml b/drools-examples-api/named-kiesession/src/main/resources/META-INF/kmodule.xml index 32bfab79924..e9cd3d59146 100644 --- a/drools-examples-api/named-kiesession/src/main/resources/META-INF/kmodule.xml +++ b/drools-examples-api/named-kiesession/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/named-kiesession/src/main/resources/logback.xml b/drools-examples-api/named-kiesession/src/main/resources/logback.xml index 919249bcf41..10c0f6cf560 100644 --- a/drools-examples-api/named-kiesession/src/main/resources/logback.xml +++ b/drools-examples-api/named-kiesession/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/named-kiesession/src/test/java/org/drools/example/api/namedkiesession/NamedKieSessionExampleTest.java b/drools-examples-api/named-kiesession/src/test/java/org/drools/example/api/namedkiesession/NamedKieSessionExampleTest.java index 60947696e83..4c22b893351 100644 --- a/drools-examples-api/named-kiesession/src/test/java/org/drools/example/api/namedkiesession/NamedKieSessionExampleTest.java +++ b/drools-examples-api/named-kiesession/src/test/java/org/drools/example/api/namedkiesession/NamedKieSessionExampleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.example.api.namedkiesession; import org.junit.Test; diff --git a/drools-examples-api/pom.xml b/drools-examples-api/pom.xml index 3b7c347eeb0..81bd07d20f3 100644 --- a/drools-examples-api/pom.xml +++ b/drools-examples-api/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-examples-api/reactive-kiesession/pom.xml b/drools-examples-api/reactive-kiesession/pom.xml index 5980ba98d32..6ec8a00ef5e 100644 --- a/drools-examples-api/reactive-kiesession/pom.xml +++ b/drools-examples-api/reactive-kiesession/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-examples-api - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT reactive-kiesession diff --git a/drools-examples-api/reactive-kiesession/src/main/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExample.java b/drools-examples-api/reactive-kiesession/src/main/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExample.java index e7ba6dc1af3..0970b0d83f7 100644 --- a/drools-examples-api/reactive-kiesession/src/main/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExample.java +++ b/drools-examples-api/reactive-kiesession/src/main/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.example.api.reactivekiesession; import org.kie.api.KieServices; diff --git a/drools-examples-api/reactive-kiesession/src/main/resources/META-INF/kmodule.xml b/drools-examples-api/reactive-kiesession/src/main/resources/META-INF/kmodule.xml index cfd88a7e2c3..f89320600e1 100644 --- a/drools-examples-api/reactive-kiesession/src/main/resources/META-INF/kmodule.xml +++ b/drools-examples-api/reactive-kiesession/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/reactive-kiesession/src/main/resources/logback.xml b/drools-examples-api/reactive-kiesession/src/main/resources/logback.xml index eba2b625773..3b4a54ff0d7 100644 --- a/drools-examples-api/reactive-kiesession/src/main/resources/logback.xml +++ b/drools-examples-api/reactive-kiesession/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples-api/reactive-kiesession/src/main/resources/reactivekiesession/reactive.drl b/drools-examples-api/reactive-kiesession/src/main/resources/reactivekiesession/reactive.drl index 87fd9a3a2f9..c6f62a9c614 100644 --- a/drools-examples-api/reactive-kiesession/src/main/resources/reactivekiesession/reactive.drl +++ b/drools-examples-api/reactive-kiesession/src/main/resources/reactivekiesession/reactive.drl @@ -15,7 +15,7 @@ package org.drools.example.api.reactivekiesession -import org.drools.core.phreak.Reactive +import org.drools.base.phreak.Reactive global java.util.List list diff --git a/drools-examples-api/reactive-kiesession/src/test/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExampleTest.java b/drools-examples-api/reactive-kiesession/src/test/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExampleTest.java index c2f8af6f6bf..75044ac5f26 100644 --- a/drools-examples-api/reactive-kiesession/src/test/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExampleTest.java +++ b/drools-examples-api/reactive-kiesession/src/test/java/org/drools/example/api/reactivekiesession/ReactiveKieSessionExampleTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.example.api.reactivekiesession; import org.junit.Test; diff --git a/drools-examples/pom.xml b/drools-examples/pom.xml index a151eaeeba0..ebe595cbce2 100644 --- a/drools-examples/pom.xml +++ b/drools-examples/pom.xml @@ -1,11 +1,31 @@ + 4.0.0 org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-examples/src/main/java/org/drools/benchmark/DroolsBenchmarkExamplesApp.java b/drools-examples/src/main/java/org/drools/benchmark/DroolsBenchmarkExamplesApp.java index 759e8b8cb84..4d2a2e28901 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/DroolsBenchmarkExamplesApp.java +++ b/drools-examples/src/main/java/org/drools/benchmark/DroolsBenchmarkExamplesApp.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark; import java.awt.*; diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltz/Edge.java b/drools-examples/src/main/java/org/drools/benchmark/waltz/Edge.java index e1dad57d842..b5c6dbdeb34 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltz/Edge.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltz/Edge.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltz; diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltz/Junction.java b/drools-examples/src/main/java/org/drools/benchmark/waltz/Junction.java index 1cc30daabba..d9c5142867e 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltz/Junction.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltz/Junction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltz; diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltz/Line.java b/drools-examples/src/main/java/org/drools/benchmark/waltz/Line.java index d5223bd20d7..c7a6afe249e 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltz/Line.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltz/Line.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltz; diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltz/Stage.java b/drools-examples/src/main/java/org/drools/benchmark/waltz/Stage.java index 53d5bf90165..2ff88e2e4a6 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltz/Stage.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltz/Stage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltz; diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltz/WaltzBenchmark.java b/drools-examples/src/main/java/org/drools/benchmark/waltz/WaltzBenchmark.java index 9f0ed408980..982a644ea4e 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltz/WaltzBenchmark.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltz/WaltzBenchmark.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.benchmark.waltz; import java.io.BufferedReader; diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltz/WaltzUtil.java b/drools-examples/src/main/java/org/drools/benchmark/waltz/WaltzUtil.java index 2eaeaa6f87c..e4c5e7f95f2 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltz/WaltzUtil.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltz/WaltzUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltz; diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Edge.java b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Edge.java index bdd874347a4..3b643e5c846 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Edge.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Edge.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltzdb; diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/EdgeLabel.java b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/EdgeLabel.java index 6c385828ad1..57c23fcc8cc 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/EdgeLabel.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/EdgeLabel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltzdb; //(literalize edge_label p1 p2 l_name l_id) public class EdgeLabel { diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Illegal.java b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Illegal.java index e8d9dd890da..8ef776e4b1d 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Illegal.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Illegal.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltzdb; //(literalize illegal bp l_id) public class Illegal { diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Junction.java b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Junction.java index d7a8de41f81..34169443621 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Junction.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Junction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltzdb; //(literalize junction p1 p2 p3 base_point type name visited) public class Junction { diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Label.java b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Label.java index 90560defd40..4c37c6caa28 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Label.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Label.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltzdb; //(literalize label id type name n1 n2 n3) public class Label { diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Line.java b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Line.java index 41fef5a577d..883fd35026a 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Line.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Line.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltzdb; public class Line { diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Stage.java b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Stage.java index 042c623078c..894ddc4798f 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Stage.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/Stage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.benchmark.waltzdb; public class Stage { diff --git a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/WaltzDbBenchmark.java b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/WaltzDbBenchmark.java index 6b75e39711c..ce65c72aaf9 100644 --- a/drools-examples/src/main/java/org/drools/benchmark/waltzdb/WaltzDbBenchmark.java +++ b/drools-examples/src/main/java/org/drools/benchmark/waltzdb/WaltzDbBenchmark.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.benchmark.waltzdb; import java.io.BufferedReader; @@ -52,7 +54,7 @@ public static void main(final String[] args) { kbaseConfiguration.setProperty( "drools.removeIdentities", "true" ); - final InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase( kbaseConfiguration ); + final InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(kbaseConfiguration); // final RuleBase ruleBase = RuleBaseFactory.newRuleBase( RuleBase.RETEOO, // conf ); diff --git a/drools-examples/src/main/java/org/drools/examples/DroolsExamplesApp.java b/drools-examples/src/main/java/org/drools/examples/DroolsExamplesApp.java index b686e442e60..3271b54e1fc 100644 --- a/drools-examples/src/main/java/org/drools/examples/DroolsExamplesApp.java +++ b/drools-examples/src/main/java/org/drools/examples/DroolsExamplesApp.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples; import java.awt.Container; diff --git a/drools-examples/src/main/java/org/drools/examples/backwardchaining/HouseOfDoomMain.java b/drools-examples/src/main/java/org/drools/examples/backwardchaining/HouseOfDoomMain.java index 73f45eedb3c..fb4f681b386 100644 --- a/drools-examples/src/main/java/org/drools/examples/backwardchaining/HouseOfDoomMain.java +++ b/drools-examples/src/main/java/org/drools/examples/backwardchaining/HouseOfDoomMain.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.backwardchaining; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/backwardchaining/Location.java b/drools-examples/src/main/java/org/drools/examples/backwardchaining/Location.java index ec8039c3ad8..e7e7109be35 100644 --- a/drools-examples/src/main/java/org/drools/examples/backwardchaining/Location.java +++ b/drools-examples/src/main/java/org/drools/examples/backwardchaining/Location.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.backwardchaining; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/examples/banking/Account.java b/drools-examples/src/main/java/org/drools/examples/banking/Account.java index 003e233f41c..1f40bdc6a4b 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/Account.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/Account.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; public class Account { diff --git a/drools-examples/src/main/java/org/drools/examples/banking/AllocatedCashflow.java b/drools-examples/src/main/java/org/drools/examples/banking/AllocatedCashflow.java index 88d91060217..f1e94913857 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/AllocatedCashflow.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/AllocatedCashflow.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; import java.util.Date; diff --git a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample1.java b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample1.java index bc052877ee2..8af0d487df9 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample1.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample1.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; public class BankingExample1 { diff --git a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample2.java b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample2.java index d32fafd3daa..6989c282592 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample2.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; public class BankingExample2 { diff --git a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample3.java b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample3.java index 60293c880ae..95b19f6a4a2 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample3.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample3.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; public class BankingExample3 { diff --git a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample4.java b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample4.java index c009209d4de..4bed5d22cc1 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample4.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample4.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; public class BankingExample4 { diff --git a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample5.java b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample5.java index 0e85069eeb0..d4ceb9c5acf 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample5.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample5.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; public class BankingExample5 { diff --git a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample6.java b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample6.java index 7b0d534f835..0a07a275633 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/BankingExample6.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/BankingExample6.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; public class BankingExample6 { diff --git a/drools-examples/src/main/java/org/drools/examples/banking/BankingExamplesApp.java b/drools-examples/src/main/java/org/drools/examples/banking/BankingExamplesApp.java index 1a1b854caac..febb61d94d6 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/BankingExamplesApp.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/BankingExamplesApp.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; import javax.swing.*; diff --git a/drools-examples/src/main/java/org/drools/examples/banking/Cashflow.java b/drools-examples/src/main/java/org/drools/examples/banking/Cashflow.java index eb04c9281b3..91dd90cc159 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/Cashflow.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/Cashflow.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; import java.util.Date; diff --git a/drools-examples/src/main/java/org/drools/examples/banking/RuleRunner.java b/drools-examples/src/main/java/org/drools/examples/banking/RuleRunner.java index ea8bb47fae3..1213c90808e 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/RuleRunner.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/RuleRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; import java.util.Collection; diff --git a/drools-examples/src/main/java/org/drools/examples/banking/SimpleDate.java b/drools-examples/src/main/java/org/drools/examples/banking/SimpleDate.java index 7d7f78d1ef3..2efedfc9364 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/SimpleDate.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/SimpleDate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; import java.text.ParseException; diff --git a/drools-examples/src/main/java/org/drools/examples/banking/TypedCashflow.java b/drools-examples/src/main/java/org/drools/examples/banking/TypedCashflow.java index 46cc7ff61eb..2bcc02abd28 100644 --- a/drools-examples/src/main/java/org/drools/examples/banking/TypedCashflow.java +++ b/drools-examples/src/main/java/org/drools/examples/banking/TypedCashflow.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.banking; import java.util.Date; diff --git a/drools-examples/src/main/java/org/drools/examples/birdsfly/Bird.java b/drools-examples/src/main/java/org/drools/examples/birdsfly/Bird.java index a6d1225ebab..da3895d07f4 100644 --- a/drools-examples/src/main/java/org/drools/examples/birdsfly/Bird.java +++ b/drools-examples/src/main/java/org/drools/examples/birdsfly/Bird.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.birdsfly; public class Bird { diff --git a/drools-examples/src/main/java/org/drools/examples/birdsfly/BirdsFlyExample.java b/drools-examples/src/main/java/org/drools/examples/birdsfly/BirdsFlyExample.java index 12fccecee1d..75d6e48d6f9 100644 --- a/drools-examples/src/main/java/org/drools/examples/birdsfly/BirdsFlyExample.java +++ b/drools-examples/src/main/java/org/drools/examples/birdsfly/BirdsFlyExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.birdsfly; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/birdsfly/Broken.java b/drools-examples/src/main/java/org/drools/examples/birdsfly/Broken.java index d2cfbbe9605..25d74c0ea78 100644 --- a/drools-examples/src/main/java/org/drools/examples/birdsfly/Broken.java +++ b/drools-examples/src/main/java/org/drools/examples/birdsfly/Broken.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.birdsfly; public class Broken { diff --git a/drools-examples/src/main/java/org/drools/examples/birdsfly/Fly.java b/drools-examples/src/main/java/org/drools/examples/birdsfly/Fly.java index bb14f4108fd..f4a6047603d 100644 --- a/drools-examples/src/main/java/org/drools/examples/birdsfly/Fly.java +++ b/drools-examples/src/main/java/org/drools/examples/birdsfly/Fly.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.birdsfly; public class Fly { diff --git a/drools-examples/src/main/java/org/drools/examples/birdsfly/Rocket.java b/drools-examples/src/main/java/org/drools/examples/birdsfly/Rocket.java index 62f139898ce..e66f118031e 100644 --- a/drools-examples/src/main/java/org/drools/examples/birdsfly/Rocket.java +++ b/drools-examples/src/main/java/org/drools/examples/birdsfly/Rocket.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.birdsfly; public class Rocket { diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/AdultBusPass.java b/drools-examples/src/main/java/org/drools/examples/buspass/AdultBusPass.java index 5f02f573e5e..3fff7c1d6f1 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/AdultBusPass.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/AdultBusPass.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; public class AdultBusPass extends BusPass { diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/BadBehaviour.java b/drools-examples/src/main/java/org/drools/examples/buspass/BadBehaviour.java index 252cbe56d39..ad665e6ace1 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/BadBehaviour.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/BadBehaviour.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; public class BadBehaviour { diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/BusPass.java b/drools-examples/src/main/java/org/drools/examples/buspass/BusPass.java index 41cdab36000..37a150edfcd 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/BusPass.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/BusPass.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; public class BusPass { diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/BussPassBadExample.java b/drools-examples/src/main/java/org/drools/examples/buspass/BussPassBadExample.java index 8f6ec6e44c2..39e31098bc7 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/BussPassBadExample.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/BussPassBadExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/BussPassGoodExample.java b/drools-examples/src/main/java/org/drools/examples/buspass/BussPassGoodExample.java index c4c6e045e55..e35f62045f3 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/BussPassGoodExample.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/BussPassGoodExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/BussPassJTMSExample.java b/drools-examples/src/main/java/org/drools/examples/buspass/BussPassJTMSExample.java index 3952e69412f..9566d29c597 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/BussPassJTMSExample.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/BussPassJTMSExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/ChildBusPass.java b/drools-examples/src/main/java/org/drools/examples/buspass/ChildBusPass.java index e5eb477053c..f88c6a82c41 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/ChildBusPass.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/ChildBusPass.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; public class ChildBusPass extends BusPass { diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/IsAdult.java b/drools-examples/src/main/java/org/drools/examples/buspass/IsAdult.java index 4bfc30f8a9d..e085018ee4f 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/IsAdult.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/IsAdult.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; public class IsAdult { diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/IsChild.java b/drools-examples/src/main/java/org/drools/examples/buspass/IsChild.java index dc35bd555f2..632d334f9d3 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/IsChild.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/IsChild.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; public class IsChild { diff --git a/drools-examples/src/main/java/org/drools/examples/buspass/Person.java b/drools-examples/src/main/java/org/drools/examples/buspass/Person.java index 81aa09c644b..bd63c0d9c4e 100644 --- a/drools-examples/src/main/java/org/drools/examples/buspass/Person.java +++ b/drools-examples/src/main/java/org/drools/examples/buspass/Person.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.buspass; public class Person { diff --git a/drools-examples/src/main/java/org/drools/examples/cashflow/Account.java b/drools-examples/src/main/java/org/drools/examples/cashflow/Account.java index 387a3ac055c..349e1852f7a 100644 --- a/drools-examples/src/main/java/org/drools/examples/cashflow/Account.java +++ b/drools-examples/src/main/java/org/drools/examples/cashflow/Account.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.cashflow; public class Account { diff --git a/drools-examples/src/main/java/org/drools/examples/cashflow/AccountPeriod.java b/drools-examples/src/main/java/org/drools/examples/cashflow/AccountPeriod.java index 5defc7d1d22..bf7e8945907 100644 --- a/drools-examples/src/main/java/org/drools/examples/cashflow/AccountPeriod.java +++ b/drools-examples/src/main/java/org/drools/examples/cashflow/AccountPeriod.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.cashflow; import java.util.Date; diff --git a/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlow.java b/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlow.java index 073f253190d..2eab5a5f96c 100644 --- a/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlow.java +++ b/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlow.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.cashflow; diff --git a/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlowMain.java b/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlowMain.java index 6551dd4aedd..beb26cbd8c8 100644 --- a/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlowMain.java +++ b/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlowMain.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.cashflow; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlowType.java b/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlowType.java index 6e75209f763..b9b1d3fde92 100644 --- a/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlowType.java +++ b/drools-examples/src/main/java/org/drools/examples/cashflow/CashFlowType.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.cashflow; public enum CashFlowType { diff --git a/drools-examples/src/main/java/org/drools/examples/circularTms/CircularTmsExample.java b/drools-examples/src/main/java/org/drools/examples/circularTms/CircularTmsExample.java index 80aff488eb9..36eaf98bd12 100644 --- a/drools-examples/src/main/java/org/drools/examples/circularTms/CircularTmsExample.java +++ b/drools-examples/src/main/java/org/drools/examples/circularTms/CircularTmsExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.circularTms; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/decisiontable/Driver.java b/drools-examples/src/main/java/org/drools/examples/decisiontable/Driver.java index bdbcec098dc..23e5e19eb99 100644 --- a/drools-examples/src/main/java/org/drools/examples/decisiontable/Driver.java +++ b/drools-examples/src/main/java/org/drools/examples/decisiontable/Driver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.examples.decisiontable; /** diff --git a/drools-examples/src/main/java/org/drools/examples/decisiontable/Policy.java b/drools-examples/src/main/java/org/drools/examples/decisiontable/Policy.java index bd1a93edbf7..f45d7b79bd0 100644 --- a/drools-examples/src/main/java/org/drools/examples/decisiontable/Policy.java +++ b/drools-examples/src/main/java/org/drools/examples/decisiontable/Policy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.examples.decisiontable; /** diff --git a/drools-examples/src/main/java/org/drools/examples/decisiontable/PricingRuleDTExample.java b/drools-examples/src/main/java/org/drools/examples/decisiontable/PricingRuleDTExample.java index 81aa9fb6055..75810483404 100644 --- a/drools-examples/src/main/java/org/drools/examples/decisiontable/PricingRuleDTExample.java +++ b/drools-examples/src/main/java/org/drools/examples/decisiontable/PricingRuleDTExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.examples.decisiontable; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/diagnostics/Answer.java b/drools-examples/src/main/java/org/drools/examples/diagnostics/Answer.java index 34038c0a0a1..cb9e0ca6a86 100644 --- a/drools-examples/src/main/java/org/drools/examples/diagnostics/Answer.java +++ b/drools-examples/src/main/java/org/drools/examples/diagnostics/Answer.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.diagnostics; public class Answer { diff --git a/drools-examples/src/main/java/org/drools/examples/diagnostics/DiagnosticsExample.java b/drools-examples/src/main/java/org/drools/examples/diagnostics/DiagnosticsExample.java index bc3513a22bc..9c8f110bd6b 100644 --- a/drools-examples/src/main/java/org/drools/examples/diagnostics/DiagnosticsExample.java +++ b/drools-examples/src/main/java/org/drools/examples/diagnostics/DiagnosticsExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.diagnostics; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/diagnostics/Question.java b/drools-examples/src/main/java/org/drools/examples/diagnostics/Question.java index 601103bbeb4..fef496b84b9 100644 --- a/drools-examples/src/main/java/org/drools/examples/diagnostics/Question.java +++ b/drools-examples/src/main/java/org/drools/examples/diagnostics/Question.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.diagnostics; public class Question { diff --git a/drools-examples/src/main/java/org/drools/examples/diagnostics/Solution.java b/drools-examples/src/main/java/org/drools/examples/diagnostics/Solution.java index a4b6ad187c9..139e981799f 100644 --- a/drools-examples/src/main/java/org/drools/examples/diagnostics/Solution.java +++ b/drools-examples/src/main/java/org/drools/examples/diagnostics/Solution.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.diagnostics; public class Solution { diff --git a/drools-examples/src/main/java/org/drools/examples/diagnostics/WontStart.java b/drools-examples/src/main/java/org/drools/examples/diagnostics/WontStart.java index 235c80af32e..d4c8daa5d71 100644 --- a/drools-examples/src/main/java/org/drools/examples/diagnostics/WontStart.java +++ b/drools-examples/src/main/java/org/drools/examples/diagnostics/WontStart.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.diagnostics; public class WontStart { diff --git a/drools-examples/src/main/java/org/drools/examples/fibonacci/FibonacciExample.java b/drools-examples/src/main/java/org/drools/examples/fibonacci/FibonacciExample.java index 4c0ab7125e0..38cd8c765a5 100644 --- a/drools-examples/src/main/java/org/drools/examples/fibonacci/FibonacciExample.java +++ b/drools-examples/src/main/java/org/drools/examples/fibonacci/FibonacciExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.fibonacci; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/fire/Alarm.java b/drools-examples/src/main/java/org/drools/examples/fire/Alarm.java index 03f33d6218a..46ba9443f54 100644 --- a/drools-examples/src/main/java/org/drools/examples/fire/Alarm.java +++ b/drools-examples/src/main/java/org/drools/examples/fire/Alarm.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.fire; public class Alarm { diff --git a/drools-examples/src/main/java/org/drools/examples/fire/Fire.java b/drools-examples/src/main/java/org/drools/examples/fire/Fire.java index 34a2bc00094..2eb4d257a94 100644 --- a/drools-examples/src/main/java/org/drools/examples/fire/Fire.java +++ b/drools-examples/src/main/java/org/drools/examples/fire/Fire.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.fire; public class Fire { diff --git a/drools-examples/src/main/java/org/drools/examples/fire/FireExample.java b/drools-examples/src/main/java/org/drools/examples/fire/FireExample.java index b3359f2d7b7..9ab65ec6259 100644 --- a/drools-examples/src/main/java/org/drools/examples/fire/FireExample.java +++ b/drools-examples/src/main/java/org/drools/examples/fire/FireExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.fire; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/fire/FireLogicalExample.java b/drools-examples/src/main/java/org/drools/examples/fire/FireLogicalExample.java index 0634adefe7e..ed6077ea0d6 100644 --- a/drools-examples/src/main/java/org/drools/examples/fire/FireLogicalExample.java +++ b/drools-examples/src/main/java/org/drools/examples/fire/FireLogicalExample.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.fire; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/fire/Room.java b/drools-examples/src/main/java/org/drools/examples/fire/Room.java index 041d322377e..b8cfb0f57db 100644 --- a/drools-examples/src/main/java/org/drools/examples/fire/Room.java +++ b/drools-examples/src/main/java/org/drools/examples/fire/Room.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.fire; public class Room { diff --git a/drools-examples/src/main/java/org/drools/examples/fire/Sprinkler.java b/drools-examples/src/main/java/org/drools/examples/fire/Sprinkler.java index 2dfb68d8b5c..773760c5a77 100644 --- a/drools-examples/src/main/java/org/drools/examples/fire/Sprinkler.java +++ b/drools-examples/src/main/java/org/drools/examples/fire/Sprinkler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.examples.fire; public class Sprinkler { diff --git a/drools-examples/src/main/java/org/drools/examples/golfing/GolfingExample.java b/drools-examples/src/main/java/org/drools/examples/golfing/GolfingExample.java index 9ca905581e7..7a89870fe1b 100644 --- a/drools-examples/src/main/java/org/drools/examples/golfing/GolfingExample.java +++ b/drools-examples/src/main/java/org/drools/examples/golfing/GolfingExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.golfing; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/helloworld/HelloWorldExample.java b/drools-examples/src/main/java/org/drools/examples/helloworld/HelloWorldExample.java index d2724668cf9..860f5c945c6 100644 --- a/drools-examples/src/main/java/org/drools/examples/helloworld/HelloWorldExample.java +++ b/drools-examples/src/main/java/org/drools/examples/helloworld/HelloWorldExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.examples.helloworld; import java.util.ArrayList; diff --git a/drools-examples/src/main/java/org/drools/examples/honestpolitician/HonestPoliticianExample.java b/drools-examples/src/main/java/org/drools/examples/honestpolitician/HonestPoliticianExample.java index 86ce25ccb17..47c6cfa3025 100644 --- a/drools-examples/src/main/java/org/drools/examples/honestpolitician/HonestPoliticianExample.java +++ b/drools-examples/src/main/java/org/drools/examples/honestpolitician/HonestPoliticianExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.honestpolitician; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/honestpolitician/Hope.java b/drools-examples/src/main/java/org/drools/examples/honestpolitician/Hope.java index 7382d5acf10..777280ec204 100644 --- a/drools-examples/src/main/java/org/drools/examples/honestpolitician/Hope.java +++ b/drools-examples/src/main/java/org/drools/examples/honestpolitician/Hope.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.honestpolitician; public class Hope { diff --git a/drools-examples/src/main/java/org/drools/examples/honestpolitician/Politician.java b/drools-examples/src/main/java/org/drools/examples/honestpolitician/Politician.java index 22dd1a81bb4..1c0d39e09f7 100644 --- a/drools-examples/src/main/java/org/drools/examples/honestpolitician/Politician.java +++ b/drools-examples/src/main/java/org/drools/examples/honestpolitician/Politician.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.honestpolitician; public class Politician { diff --git a/drools-examples/src/main/java/org/drools/examples/performance/PerformanceExample.java b/drools-examples/src/main/java/org/drools/examples/performance/PerformanceExample.java index 14ceb1bbf08..2b5fad10dc9 100644 --- a/drools-examples/src/main/java/org/drools/examples/performance/PerformanceExample.java +++ b/drools-examples/src/main/java/org/drools/examples/performance/PerformanceExample.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.examples.performance; import java.util.ArrayList; diff --git a/drools-examples/src/main/java/org/drools/examples/petstore/PetStoreExample.java b/drools-examples/src/main/java/org/drools/examples/petstore/PetStoreExample.java index ab5c9373f31..2b27e8aa795 100644 --- a/drools-examples/src/main/java/org/drools/examples/petstore/PetStoreExample.java +++ b/drools-examples/src/main/java/org/drools/examples/petstore/PetStoreExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.petstore; import java.awt.BorderLayout; diff --git a/drools-examples/src/main/java/org/drools/examples/shopping/ShoppingExample.java b/drools-examples/src/main/java/org/drools/examples/shopping/ShoppingExample.java index 82acbfe87e8..e0a322e7afd 100644 --- a/drools-examples/src/main/java/org/drools/examples/shopping/ShoppingExample.java +++ b/drools-examples/src/main/java/org/drools/examples/shopping/ShoppingExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.shopping; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/state/State.java b/drools-examples/src/main/java/org/drools/examples/state/State.java index 9345143ad41..24d3c8396d7 100644 --- a/drools-examples/src/main/java/org/drools/examples/state/State.java +++ b/drools-examples/src/main/java/org/drools/examples/state/State.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.state; import java.beans.PropertyChangeListener; diff --git a/drools-examples/src/main/java/org/drools/examples/state/StateExampleUsingAgendaGroup.java b/drools-examples/src/main/java/org/drools/examples/state/StateExampleUsingAgendaGroup.java index 290f96ba031..aa8b8e8e4c3 100644 --- a/drools-examples/src/main/java/org/drools/examples/state/StateExampleUsingAgendaGroup.java +++ b/drools-examples/src/main/java/org/drools/examples/state/StateExampleUsingAgendaGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.state; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/state/StateExampleUsingSalience.java b/drools-examples/src/main/java/org/drools/examples/state/StateExampleUsingSalience.java index 9581c63244a..7aeeda99d9d 100644 --- a/drools-examples/src/main/java/org/drools/examples/state/StateExampleUsingSalience.java +++ b/drools-examples/src/main/java/org/drools/examples/state/StateExampleUsingSalience.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.state; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/Cell.java b/drools-examples/src/main/java/org/drools/examples/sudoku/Cell.java index 7050e4289ed..075fe97a82a 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/Cell.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/Cell.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/CellCol.java b/drools-examples/src/main/java/org/drools/examples/sudoku/CellCol.java index d0ce2099814..f781742cae5 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/CellCol.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/CellCol.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/CellFile.java b/drools-examples/src/main/java/org/drools/examples/sudoku/CellFile.java index b08fa87bfdb..dc0b906e4b4 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/CellFile.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/CellFile.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/CellGroup.java b/drools-examples/src/main/java/org/drools/examples/sudoku/CellGroup.java index 9993a2f1907..78c4ebcbf54 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/CellGroup.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/CellGroup.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/CellRow.java b/drools-examples/src/main/java/org/drools/examples/sudoku/CellRow.java index 9da8fe695bf..206d12454aa 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/CellRow.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/CellRow.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/CellSqr.java b/drools-examples/src/main/java/org/drools/examples/sudoku/CellSqr.java index 9ef952f7d5e..45c40a146d4 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/CellSqr.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/CellSqr.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/Counter.java b/drools-examples/src/main/java/org/drools/examples/sudoku/Counter.java index b198ccae0e4..7477ad49d3f 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/Counter.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/Counter.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/SetOfNine.java b/drools-examples/src/main/java/org/drools/examples/sudoku/SetOfNine.java index 0c704e31b12..1c5ceb477e4 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/SetOfNine.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/SetOfNine.java @@ -1,17 +1,20 @@ -/* - * Copyright 20101 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/Setting.java b/drools-examples/src/main/java/org/drools/examples/sudoku/Setting.java index c7897d325f2..2fa989c54ae 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/Setting.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/Setting.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/Stepping.java b/drools-examples/src/main/java/org/drools/examples/sudoku/Stepping.java index 13d7ba28191..476274fd339 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/Stepping.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/Stepping.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/Sudoku.java b/drools-examples/src/main/java/org/drools/examples/sudoku/Sudoku.java index b2af0787285..7cc33f6fc63 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/Sudoku.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/Sudoku.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/SudokuExample.java b/drools-examples/src/main/java/org/drools/examples/sudoku/SudokuExample.java index ed5bd057df0..cc5b90dbb9d 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/SudokuExample.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/SudokuExample.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/AbstractSudokuGridModel.java b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/AbstractSudokuGridModel.java index 0c2e44c4d57..d6e353a7462 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/AbstractSudokuGridModel.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/AbstractSudokuGridModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.examples.sudoku.swing; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridEvent.java b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridEvent.java index c0942f5d6a9..ff6772de806 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridEvent.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.examples.sudoku.swing; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridListener.java b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridListener.java index 8a19df89eaa..385bbb1a711 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridListener.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku.swing; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridModel.java b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridModel.java index 7219216053c..2aa26e924b1 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridModel.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.examples.sudoku.swing; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridSamples.java b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridSamples.java index e25101f954f..ce5a2c0a1db 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridSamples.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridSamples.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.examples.sudoku.swing; diff --git a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridView.java b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridView.java index cb200c8058f..5494d2abda8 100644 --- a/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridView.java +++ b/drools-examples/src/main/java/org/drools/examples/sudoku/swing/SudokuGridView.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.examples.sudoku.swing; diff --git a/drools-examples/src/main/java/org/drools/examples/traits/Scholar.java b/drools-examples/src/main/java/org/drools/examples/traits/Scholar.java index 5bbfce76205..eda5bebf46a 100644 --- a/drools-examples/src/main/java/org/drools/examples/traits/Scholar.java +++ b/drools-examples/src/main/java/org/drools/examples/traits/Scholar.java @@ -1,23 +1,25 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.traits; -import org.drools.core.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.Trait; @Trait( impl = ScholarImpl.class ) public interface Scholar { diff --git a/drools-examples/src/main/java/org/drools/examples/traits/ScholarImpl.java b/drools-examples/src/main/java/org/drools/examples/traits/ScholarImpl.java index f4a52a45b56..f3dd248a9ae 100644 --- a/drools-examples/src/main/java/org/drools/examples/traits/ScholarImpl.java +++ b/drools-examples/src/main/java/org/drools/examples/traits/ScholarImpl.java @@ -1,23 +1,25 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.traits; -import org.drools.core.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Thing; public class ScholarImpl implements Scholar { diff --git a/drools-examples/src/main/java/org/drools/examples/traits/TraitExample.java b/drools-examples/src/main/java/org/drools/examples/traits/TraitExample.java index 5cfc2d04cfa..e08f66f965c 100644 --- a/drools-examples/src/main/java/org/drools/examples/traits/TraitExample.java +++ b/drools-examples/src/main/java/org/drools/examples/traits/TraitExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.traits; import java.util.Collection; diff --git a/drools-examples/src/main/java/org/drools/examples/troubleticket/Customer.java b/drools-examples/src/main/java/org/drools/examples/troubleticket/Customer.java index 3f76bf9ff4b..eab1511d84d 100644 --- a/drools-examples/src/main/java/org/drools/examples/troubleticket/Customer.java +++ b/drools-examples/src/main/java/org/drools/examples/troubleticket/Customer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.troubleticket; public class Customer { diff --git a/drools-examples/src/main/java/org/drools/examples/troubleticket/Ticket.java b/drools-examples/src/main/java/org/drools/examples/troubleticket/Ticket.java index 3c6857a0781..baafe8a26ee 100644 --- a/drools-examples/src/main/java/org/drools/examples/troubleticket/Ticket.java +++ b/drools-examples/src/main/java/org/drools/examples/troubleticket/Ticket.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.troubleticket; public class Ticket { diff --git a/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExample.java b/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExample.java index 8512d1a0d5f..70140d1a984 100644 --- a/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExample.java +++ b/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.troubleticket; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExampleWithDSL.java b/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExampleWithDSL.java index b59e32f05c0..7061409ee36 100644 --- a/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExampleWithDSL.java +++ b/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExampleWithDSL.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.examples.troubleticket; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExampleWithDT.java b/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExampleWithDT.java index 19b9f7dcfdd..b179a46de86 100644 --- a/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExampleWithDT.java +++ b/drools-examples/src/main/java/org/drools/examples/troubleticket/TroubleTicketExampleWithDT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.examples.troubleticket; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/games/GameConfiguration.java b/drools-examples/src/main/java/org/drools/games/GameConfiguration.java index 016640cdab7..d543580718e 100644 --- a/drools-examples/src/main/java/org/drools/games/GameConfiguration.java +++ b/drools-examples/src/main/java/org/drools/games/GameConfiguration.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games; public class GameConfiguration { diff --git a/drools-examples/src/main/java/org/drools/games/GameFrame.java b/drools-examples/src/main/java/org/drools/games/GameFrame.java index 87dfdb4363b..df9aacd2f2d 100644 --- a/drools-examples/src/main/java/org/drools/games/GameFrame.java +++ b/drools-examples/src/main/java/org/drools/games/GameFrame.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games; import javax.swing.*; diff --git a/drools-examples/src/main/java/org/drools/games/GamePanel.java b/drools-examples/src/main/java/org/drools/games/GamePanel.java index 0e938efe9b7..fd08a2e0062 100644 --- a/drools-examples/src/main/java/org/drools/games/GamePanel.java +++ b/drools-examples/src/main/java/org/drools/games/GamePanel.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games; import javax.swing.*; diff --git a/drools-examples/src/main/java/org/drools/games/GameUI.java b/drools-examples/src/main/java/org/drools/games/GameUI.java index 7c0abdb0d1b..53a68b6afa0 100644 --- a/drools-examples/src/main/java/org/drools/games/GameUI.java +++ b/drools-examples/src/main/java/org/drools/games/GameUI.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games; import org.kie.api.runtime.KieSession; diff --git a/drools-examples/src/main/java/org/drools/games/KeyPressed.java b/drools-examples/src/main/java/org/drools/games/KeyPressed.java index 9af1ab98768..d8ea2d5ecc3 100644 --- a/drools-examples/src/main/java/org/drools/games/KeyPressed.java +++ b/drools-examples/src/main/java/org/drools/games/KeyPressed.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/Run.java b/drools-examples/src/main/java/org/drools/games/Run.java index 1a815cb3662..1a05c5138ee 100644 --- a/drools-examples/src/main/java/org/drools/games/Run.java +++ b/drools-examples/src/main/java/org/drools/games/Run.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games; import org.kie.api.definition.type.ClassReactive; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/Action.java b/drools-examples/src/main/java/org/drools/games/adventures/Action.java index f96eb3c21f0..ca311d1bbbe 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/Action.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/Action.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures; public enum Action { diff --git a/drools-examples/src/main/java/org/drools/games/adventures/AdventureFrame.java b/drools-examples/src/main/java/org/drools/games/adventures/AdventureFrame.java index ae1b91ef11e..e156e0ea4f1 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/AdventureFrame.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/AdventureFrame.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures; import net.miginfocom.layout.ConstraintParser; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/Counter.java b/drools-examples/src/main/java/org/drools/games/adventures/Counter.java index 8d98e6d1be8..6fc4d7da5cd 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/Counter.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/Counter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures; import java.util.concurrent.atomic.AtomicLong; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/GameEngine.java b/drools-examples/src/main/java/org/drools/games/adventures/GameEngine.java index 9524dad0f20..3ea200ef76e 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/GameEngine.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/GameEngine.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures; import org.apache.commons.io.IOUtils; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/Request.java b/drools-examples/src/main/java/org/drools/games/adventures/Request.java index 82a4e80c8bf..3815f503fe0 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/Request.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/Request.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures; public class Request { diff --git a/drools-examples/src/main/java/org/drools/games/adventures/Response.java b/drools-examples/src/main/java/org/drools/games/adventures/Response.java index 2217055560f..09239760d3b 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/Response.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/Response.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures; public class Response { diff --git a/drools-examples/src/main/java/org/drools/games/adventures/TextAdventure.java b/drools-examples/src/main/java/org/drools/games/adventures/TextAdventure.java index 147dc092ac6..66c4a95cb46 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/TextAdventure.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/TextAdventure.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures; import org.drools.games.adventures.AdventureFrame.JTableChannel; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/UserSession.java b/drools-examples/src/main/java/org/drools/games/adventures/UserSession.java index c3ecf055c75..42e8e78137e 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/UserSession.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/UserSession.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures; import java.util.HashMap; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/Character.java b/drools-examples/src/main/java/org/drools/games/adventures/model/Character.java index 4ef660881b9..1f48117944c 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/Character.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/Character.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; public class Character extends Thing { diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/Command.java b/drools-examples/src/main/java/org/drools/games/adventures/model/Command.java index 04b80c33a5f..d0e145a9856 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/Command.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/Command.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.drools.games.adventures.UserSession; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/Door.java b/drools-examples/src/main/java/org/drools/games/adventures/model/Door.java index 2f5ffedd0af..213de0a3bfc 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/Door.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/Door.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/DropCommand.java b/drools-examples/src/main/java/org/drools/games/adventures/model/DropCommand.java index e711eb0e8ec..d8988194e72 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/DropCommand.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/DropCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/DropEvent.java b/drools-examples/src/main/java/org/drools/games/adventures/model/DropEvent.java index 8d51f02f308..19f23915c98 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/DropEvent.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/DropEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/EnterEvent.java b/drools-examples/src/main/java/org/drools/games/adventures/model/EnterEvent.java index ea1bfeffadf..00c0b52baff 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/EnterEvent.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/EnterEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/ExitEvent.java b/drools-examples/src/main/java/org/drools/games/adventures/model/ExitEvent.java index 291fda0e3ae..5d1e5e0dfd1 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/ExitEvent.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/ExitEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/GameEvent.java b/drools-examples/src/main/java/org/drools/games/adventures/model/GameEvent.java index 54a84b967b8..da1a0356cb5 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/GameEvent.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/GameEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; public class GameEvent { diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/GiveCommand.java b/drools-examples/src/main/java/org/drools/games/adventures/model/GiveCommand.java index 6d2f06ffc39..6418c0ddc68 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/GiveCommand.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/GiveCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/GiveEvent.java b/drools-examples/src/main/java/org/drools/games/adventures/model/GiveEvent.java index b634d9fb3dd..309145370ee 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/GiveEvent.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/GiveEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/Holding.java b/drools-examples/src/main/java/org/drools/games/adventures/model/Holding.java index f6effd50b25..0c39a3a3833 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/Holding.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/Holding.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/Item.java b/drools-examples/src/main/java/org/drools/games/adventures/model/Item.java index 4ff5d7adb63..438869b7d47 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/Item.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/Item.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; public class Item extends Thing { diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/Key.java b/drools-examples/src/main/java/org/drools/games/adventures/model/Key.java index 55c251178f2..67d5938999d 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/Key.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/Key.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; public class Key extends Thing { diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/Location.java b/drools-examples/src/main/java/org/drools/games/adventures/model/Location.java index f66d44b486a..8d169ecaef4 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/Location.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/Location.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/LockStatus.java b/drools-examples/src/main/java/org/drools/games/adventures/model/LockStatus.java index 6b1f98ff5cf..b42faa283ec 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/LockStatus.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/LockStatus.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; public enum LockStatus { diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/LookCommand.java b/drools-examples/src/main/java/org/drools/games/adventures/model/LookCommand.java index 2eabffa78a5..7c8881b5133 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/LookCommand.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/LookCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/MoveCommand.java b/drools-examples/src/main/java/org/drools/games/adventures/model/MoveCommand.java index b2baa2ba829..aa4aa7c6ac8 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/MoveCommand.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/MoveCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/PickupCommand.java b/drools-examples/src/main/java/org/drools/games/adventures/model/PickupCommand.java index 028b855de0f..00a3c403561 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/PickupCommand.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/PickupCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/PickupEvent.java b/drools-examples/src/main/java/org/drools/games/adventures/model/PickupEvent.java index 9b82dc73d75..2ffa78960a3 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/PickupEvent.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/PickupEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/Room.java b/drools-examples/src/main/java/org/drools/games/adventures/model/Room.java index 9eaf3895fda..0bbed62fd5d 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/Room.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/Room.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; public class Room extends Thing { diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/SearchCommand.java b/drools-examples/src/main/java/org/drools/games/adventures/model/SearchCommand.java index 709fbfc9168..06dccda8eb1 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/SearchCommand.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/SearchCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/Thing.java b/drools-examples/src/main/java/org/drools/games/adventures/model/Thing.java index d1acfb726e7..22c277e31c5 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/Thing.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/Thing.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; import org.kie.api.definition.type.Position; diff --git a/drools-examples/src/main/java/org/drools/games/adventures/model/UseCommand.java b/drools-examples/src/main/java/org/drools/games/adventures/model/UseCommand.java index 06d804013d0..c1d74b703c3 100644 --- a/drools-examples/src/main/java/org/drools/games/adventures/model/UseCommand.java +++ b/drools-examples/src/main/java/org/drools/games/adventures/model/UseCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.adventures.model; public class UseCommand extends Command { diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Bullet.java b/drools-examples/src/main/java/org/drools/games/invaders/Bullet.java index ae580e671a6..e93beab456c 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Bullet.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Bullet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; public class Bullet extends Unit { diff --git a/drools-examples/src/main/java/org/drools/games/invaders/FPSTimer.java b/drools-examples/src/main/java/org/drools/games/invaders/FPSTimer.java index 6cfa619f5af..d69add863ff 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/FPSTimer.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/FPSTimer.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.games.invaders; diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Invader.java b/drools-examples/src/main/java/org/drools/games/invaders/Invader.java index fc106a16652..782c8f771e8 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Invader.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Invader.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; public class Invader extends Unit { diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Invaders1Main.java b/drools-examples/src/main/java/org/drools/games/invaders/Invaders1Main.java index ffb400c78ad..0a7412313e7 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Invaders1Main.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Invaders1Main.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; import org.drools.games.GameConfiguration; diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Invaders2Main.java b/drools-examples/src/main/java/org/drools/games/invaders/Invaders2Main.java index f6523b61462..bdb3ab86108 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Invaders2Main.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Invaders2Main.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; import org.drools.games.GameUI; diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Invaders3Main.java b/drools-examples/src/main/java/org/drools/games/invaders/Invaders3Main.java index 72d83162de3..09139484167 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Invaders3Main.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Invaders3Main.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; import org.drools.games.GameUI; diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Invaders4Main.java b/drools-examples/src/main/java/org/drools/games/invaders/Invaders4Main.java index 265e12a2320..af652e97d0b 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Invaders4Main.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Invaders4Main.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; import org.drools.games.GameUI; diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Invaders5Main.java b/drools-examples/src/main/java/org/drools/games/invaders/Invaders5Main.java index 7b239cd9a7c..9587c3b2af3 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Invaders5Main.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Invaders5Main.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; import org.drools.games.GameUI; diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Invaders6Main.java b/drools-examples/src/main/java/org/drools/games/invaders/Invaders6Main.java index e85cbdeb8d1..5f4386ef530 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Invaders6Main.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Invaders6Main.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; import org.drools.games.GameUI; diff --git a/drools-examples/src/main/java/org/drools/games/invaders/InvadersConfiguration.java b/drools-examples/src/main/java/org/drools/games/invaders/InvadersConfiguration.java index 19e0c307993..b79a97e0ac0 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/InvadersConfiguration.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/InvadersConfiguration.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; import org.drools.games.GameConfiguration; diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Ship.java b/drools-examples/src/main/java/org/drools/games/invaders/Ship.java index 868862e39c5..dc542b42740 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Ship.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Ship.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; public class Ship extends Unit { diff --git a/drools-examples/src/main/java/org/drools/games/invaders/Unit.java b/drools-examples/src/main/java/org/drools/games/invaders/Unit.java index adf10164a2b..d89257d1e8b 100644 --- a/drools-examples/src/main/java/org/drools/games/invaders/Unit.java +++ b/drools-examples/src/main/java/org/drools/games/invaders/Unit.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.invaders; public class Unit { diff --git a/drools-examples/src/main/java/org/drools/games/numberguess/Game.java b/drools-examples/src/main/java/org/drools/games/numberguess/Game.java index e688e86e4ad..a1beda82538 100644 --- a/drools-examples/src/main/java/org/drools/games/numberguess/Game.java +++ b/drools-examples/src/main/java/org/drools/games/numberguess/Game.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.numberguess; public class Game { diff --git a/drools-examples/src/main/java/org/drools/games/numberguess/GameRules.java b/drools-examples/src/main/java/org/drools/games/numberguess/GameRules.java index 7e55dcea792..14fa23edb05 100644 --- a/drools-examples/src/main/java/org/drools/games/numberguess/GameRules.java +++ b/drools-examples/src/main/java/org/drools/games/numberguess/GameRules.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.numberguess; public class GameRules { diff --git a/drools-examples/src/main/java/org/drools/games/numberguess/Guess.java b/drools-examples/src/main/java/org/drools/games/numberguess/Guess.java index 33fb4c98fa3..ab7d957e21b 100644 --- a/drools-examples/src/main/java/org/drools/games/numberguess/Guess.java +++ b/drools-examples/src/main/java/org/drools/games/numberguess/Guess.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.numberguess; public class Guess { diff --git a/drools-examples/src/main/java/org/drools/games/numberguess/NumberGuessMain.java b/drools-examples/src/main/java/org/drools/games/numberguess/NumberGuessMain.java index 57960e495dc..9c9dd50dc6e 100644 --- a/drools-examples/src/main/java/org/drools/games/numberguess/NumberGuessMain.java +++ b/drools-examples/src/main/java/org/drools/games/numberguess/NumberGuessMain.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.numberguess; import org.kie.api.KieServices; diff --git a/drools-examples/src/main/java/org/drools/games/numberguess/RandomNumber.java b/drools-examples/src/main/java/org/drools/games/numberguess/RandomNumber.java index 5c07f3b24e0..5fd92ba4b98 100644 --- a/drools-examples/src/main/java/org/drools/games/numberguess/RandomNumber.java +++ b/drools-examples/src/main/java/org/drools/games/numberguess/RandomNumber.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.numberguess; import java.util.Random; diff --git a/drools-examples/src/main/java/org/drools/games/pong/Ball.java b/drools-examples/src/main/java/org/drools/games/pong/Ball.java index 624ffd62b74..e98637aaea8 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/Ball.java +++ b/drools-examples/src/main/java/org/drools/games/pong/Ball.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; public class Ball { diff --git a/drools-examples/src/main/java/org/drools/games/pong/Bat.java b/drools-examples/src/main/java/org/drools/games/pong/Bat.java index 5864f4b07ce..1092a7580eb 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/Bat.java +++ b/drools-examples/src/main/java/org/drools/games/pong/Bat.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; diff --git a/drools-examples/src/main/java/org/drools/games/pong/Collision.java b/drools-examples/src/main/java/org/drools/games/pong/Collision.java index 29800fc0cab..60db3bc15d0 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/Collision.java +++ b/drools-examples/src/main/java/org/drools/games/pong/Collision.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; public class Collision { diff --git a/drools-examples/src/main/java/org/drools/games/pong/CollisionType.java b/drools-examples/src/main/java/org/drools/games/pong/CollisionType.java index d9188312264..aa92145fbc1 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/CollisionType.java +++ b/drools-examples/src/main/java/org/drools/games/pong/CollisionType.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; public enum CollisionType { diff --git a/drools-examples/src/main/java/org/drools/games/pong/Player.java b/drools-examples/src/main/java/org/drools/games/pong/Player.java index 647c947b90c..e7baca6c77c 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/Player.java +++ b/drools-examples/src/main/java/org/drools/games/pong/Player.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; public class Player { diff --git a/drools-examples/src/main/java/org/drools/games/pong/PlayerId.java b/drools-examples/src/main/java/org/drools/games/pong/PlayerId.java index 7206847ff0d..9e16c8108de 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/PlayerId.java +++ b/drools-examples/src/main/java/org/drools/games/pong/PlayerId.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; public enum PlayerId { diff --git a/drools-examples/src/main/java/org/drools/games/pong/PointWin.java b/drools-examples/src/main/java/org/drools/games/pong/PointWin.java index 0a0e4d90a7f..a43f3777112 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/PointWin.java +++ b/drools-examples/src/main/java/org/drools/games/pong/PointWin.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; public class PointWin { diff --git a/drools-examples/src/main/java/org/drools/games/pong/PongConfiguration.java b/drools-examples/src/main/java/org/drools/games/pong/PongConfiguration.java index 1deb6e8233f..baabf6ab592 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/PongConfiguration.java +++ b/drools-examples/src/main/java/org/drools/games/pong/PongConfiguration.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; import org.drools.games.GameConfiguration; diff --git a/drools-examples/src/main/java/org/drools/games/pong/PongGame.java b/drools-examples/src/main/java/org/drools/games/pong/PongGame.java index c77c015be68..1db27407bbe 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/PongGame.java +++ b/drools-examples/src/main/java/org/drools/games/pong/PongGame.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; public class PongGame { diff --git a/drools-examples/src/main/java/org/drools/games/pong/PongMain.java b/drools-examples/src/main/java/org/drools/games/pong/PongMain.java index 673f4c52469..4957df475b4 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/PongMain.java +++ b/drools-examples/src/main/java/org/drools/games/pong/PongMain.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; import org.drools.games.invaders.FPSTimer; diff --git a/drools-examples/src/main/java/org/drools/games/pong/PongUI.java b/drools-examples/src/main/java/org/drools/games/pong/PongUI.java index d0cda201544..642388534f1 100644 --- a/drools-examples/src/main/java/org/drools/games/pong/PongUI.java +++ b/drools-examples/src/main/java/org/drools/games/pong/PongUI.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.pong; import java.awt.*; diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Arrow.java b/drools-examples/src/main/java/org/drools/games/wumpus/Arrow.java index cbe0ba66a6d..8dba6c9e969 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Arrow.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Arrow.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Arrow { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Cell.java b/drools-examples/src/main/java/org/drools/games/wumpus/Cell.java index e469838a615..7be5a4d34e3 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Cell.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Cell.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Cell { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/ClimbCommand.java b/drools-examples/src/main/java/org/drools/games/wumpus/ClimbCommand.java index babbe36b5c5..18e9b10b7a5 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/ClimbCommand.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/ClimbCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class ClimbCommand implements Command { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Command.java b/drools-examples/src/main/java/org/drools/games/wumpus/Command.java index 371c7b3f001..a396e3c61bb 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Command.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Command.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public interface Command { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Direction.java b/drools-examples/src/main/java/org/drools/games/wumpus/Direction.java index c227865f45e..7a123b821e9 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Direction.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Direction.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public enum Direction { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/EndEvent.java b/drools-examples/src/main/java/org/drools/games/wumpus/EndEvent.java index 353262d094c..e4680ff96dc 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/EndEvent.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/EndEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class EndEvent { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/EndGameEvent.java b/drools-examples/src/main/java/org/drools/games/wumpus/EndGameEvent.java index 7dafe32cd83..8a7a3cdc17a 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/EndGameEvent.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/EndGameEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class EndGameEvent { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/EndNewTurnEvent.java b/drools-examples/src/main/java/org/drools/games/wumpus/EndNewTurnEvent.java index 90f295b4f3c..c1b959a3ffa 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/EndNewTurnEvent.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/EndNewTurnEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class EndNewTurnEvent { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/FeelBreeze.java b/drools-examples/src/main/java/org/drools/games/wumpus/FeelBreeze.java index e865741d507..b4493c8746c 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/FeelBreeze.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/FeelBreeze.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class FeelBreeze implements Sensor { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/FeelBump.java b/drools-examples/src/main/java/org/drools/games/wumpus/FeelBump.java index 8966d3e7546..86e26b653fe 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/FeelBump.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/FeelBump.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class FeelBump implements Sensor { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Gold.java b/drools-examples/src/main/java/org/drools/games/wumpus/Gold.java index 7eb01158d56..036432847f7 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Gold.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Gold.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Gold extends Thing { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/GoldWin.java b/drools-examples/src/main/java/org/drools/games/wumpus/GoldWin.java index a048aea33ef..bc935f3d136 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/GoldWin.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/GoldWin.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class GoldWin { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/GrabCommand.java b/drools-examples/src/main/java/org/drools/games/wumpus/GrabCommand.java index aed1c19ec1e..5b7387b7480 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/GrabCommand.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/GrabCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class GrabCommand implements Command { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/HearScream.java b/drools-examples/src/main/java/org/drools/games/wumpus/HearScream.java index df277089dd1..f7fce03b33c 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/HearScream.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/HearScream.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class HearScream { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Hero.java b/drools-examples/src/main/java/org/drools/games/wumpus/Hero.java index 32e65f044d3..2f0201e4357 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Hero.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Hero.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Hero extends Thing { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Init.java b/drools-examples/src/main/java/org/drools/games/wumpus/Init.java index 1f22b65fdb3..9ef711b0242 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Init.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Init.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Init { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Move.java b/drools-examples/src/main/java/org/drools/games/wumpus/Move.java index a321e265f7c..be175007165 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Move.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Move.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public enum Move { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/MoveCommand.java b/drools-examples/src/main/java/org/drools/games/wumpus/MoveCommand.java index 5d4ce76ab4d..956db5d7405 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/MoveCommand.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/MoveCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class MoveCommand implements Command { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/MoveEvent.java b/drools-examples/src/main/java/org/drools/games/wumpus/MoveEvent.java index cf346291503..12f3fb6d945 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/MoveEvent.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/MoveEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class MoveEvent { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Pit.java b/drools-examples/src/main/java/org/drools/games/wumpus/Pit.java index bdbe7ad6596..0d3dafdc040 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Pit.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Pit.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Pit extends Thing { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/PitDeath.java b/drools-examples/src/main/java/org/drools/games/wumpus/PitDeath.java index f6e2658fe4b..8c60f6c4f48 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/PitDeath.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/PitDeath.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class PitDeath { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Play.java b/drools-examples/src/main/java/org/drools/games/wumpus/Play.java index 5fd2dd21fdc..d64b9465fcf 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Play.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Play.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Play { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Reset.java b/drools-examples/src/main/java/org/drools/games/wumpus/Reset.java index f9574799574..8a9c5a99624 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Reset.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Reset.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Reset { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Score.java b/drools-examples/src/main/java/org/drools/games/wumpus/Score.java index 617f6402b7e..0d633b90db4 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Score.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Score.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Score { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/SeeGlitter.java b/drools-examples/src/main/java/org/drools/games/wumpus/SeeGlitter.java index 87ef0e1f2a7..2edb53a7dc1 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/SeeGlitter.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/SeeGlitter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class SeeGlitter implements Sensor { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Sensor.java b/drools-examples/src/main/java/org/drools/games/wumpus/Sensor.java index 5f527205441..9f2845b2908 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Sensor.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Sensor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public interface Sensor { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/SensorArray.java b/drools-examples/src/main/java/org/drools/games/wumpus/SensorArray.java index 1c69985e73f..4064f9c7cb5 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/SensorArray.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/SensorArray.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class SensorArray { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/ShootCommand.java b/drools-examples/src/main/java/org/drools/games/wumpus/ShootCommand.java index 415ed4822da..0ebf8b07151 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/ShootCommand.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/ShootCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class ShootCommand implements Command { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/SmellStench.java b/drools-examples/src/main/java/org/drools/games/wumpus/SmellStench.java index aaa8542de05..0c56b8df7cc 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/SmellStench.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/SmellStench.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class SmellStench implements Sensor { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Start.java b/drools-examples/src/main/java/org/drools/games/wumpus/Start.java index f29046a33c6..c183f2d0d30 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Start.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Start.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Start { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/StartEvent.java b/drools-examples/src/main/java/org/drools/games/wumpus/StartEvent.java index 212b943addd..0f4e5536162 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/StartEvent.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/StartEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class StartEvent { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/StartGameEvent.java b/drools-examples/src/main/java/org/drools/games/wumpus/StartGameEvent.java index 345edb1fad2..158f6e30f15 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/StartGameEvent.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/StartGameEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class StartGameEvent { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/StartNewTurnEvent.java b/drools-examples/src/main/java/org/drools/games/wumpus/StartNewTurnEvent.java index 32ab23b5ea1..e5a8d7b8245 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/StartNewTurnEvent.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/StartNewTurnEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class StartNewTurnEvent { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Thing.java b/drools-examples/src/main/java/org/drools/games/wumpus/Thing.java index eea881c74c6..25d894ddc7d 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Thing.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Thing.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Thing { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/Wumpus.java b/drools-examples/src/main/java/org/drools/games/wumpus/Wumpus.java index 9883a202fb3..717bc45d7fe 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/Wumpus.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/Wumpus.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class Wumpus extends Thing { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/WumpusDeath.java b/drools-examples/src/main/java/org/drools/games/wumpus/WumpusDeath.java index 267f1c5cf01..86ab78d1e3d 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/WumpusDeath.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/WumpusDeath.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; public class WumpusDeath { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/WumpusWorldConfiguration.java b/drools-examples/src/main/java/org/drools/games/wumpus/WumpusWorldConfiguration.java index 65fcc5c764d..ce09f1f94b3 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/WumpusWorldConfiguration.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/WumpusWorldConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.games.wumpus; public class WumpusWorldConfiguration { diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/WumpusWorldMain.java b/drools-examples/src/main/java/org/drools/games/wumpus/WumpusWorldMain.java index 6ba17af2c87..16e49ff4c55 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/WumpusWorldMain.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/WumpusWorldMain.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus; import org.drools.games.wumpus.view.GameUI; diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/view/GameUI.java b/drools-examples/src/main/java/org/drools/games/wumpus/view/GameUI.java index 0687ae11324..1fcf1517a0f 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/view/GameUI.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/view/GameUI.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus.view; import java.awt.*; diff --git a/drools-examples/src/main/java/org/drools/games/wumpus/view/GameView.java b/drools-examples/src/main/java/org/drools/games/wumpus/view/GameView.java index 8a2c314dee9..39b290b5cd0 100644 --- a/drools-examples/src/main/java/org/drools/games/wumpus/view/GameView.java +++ b/drools-examples/src/main/java/org/drools/games/wumpus/view/GameView.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.games.wumpus.view; import org.drools.games.wumpus.Cell; diff --git a/drools-examples/src/main/resources/META-INF/kmodule.xml b/drools-examples/src/main/resources/META-INF/kmodule.xml index 47eb693d96f..5503946e624 100644 --- a/drools-examples/src/main/resources/META-INF/kmodule.xml +++ b/drools-examples/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples/src/main/resources/logback.xml b/drools-examples/src/main/resources/logback.xml index acc28155693..adc3b19b4ec 100644 --- a/drools-examples/src/main/resources/logback.xml +++ b/drools-examples/src/main/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/drools-examples/src/main/resources/org/drools/examples/traits/traitsShed.drl b/drools-examples/src/main/resources/org/drools/examples/traits/traitsShed.drl index 6e478e7f2d7..68ccb35b5dc 100644 --- a/drools-examples/src/main/resources/org/drools/examples/traits/traitsShed.drl +++ b/drools-examples/src/main/resources/org/drools/examples/traits/traitsShed.drl @@ -17,7 +17,7 @@ package org.drools.examples.traits import org.drools.examples.traits.Scholar; -import org.drools.core.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Thing; declare Person diff --git a/drools-fastutil/pom.xml b/drools-fastutil/pom.xml index d82aae7c1dd..e32492dab64 100644 --- a/drools-fastutil/pom.xml +++ b/drools-fastutil/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilHashTupleMemory.java b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilHashTupleMemory.java index cc77233ce16..e745ac035e3 100644 --- a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilHashTupleMemory.java +++ b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilHashTupleMemory.java @@ -1,27 +1,30 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.fastutil; import it.unimi.dsi.fastutil.Hash.Strategy; import it.unimi.dsi.fastutil.objects.ObjectIterator; +import org.drools.core.reteoo.AbstractTuple; import org.drools.core.reteoo.Tuple; import org.drools.core.reteoo.TupleMemory; import org.drools.core.util.AbstractHashTable.DoubleCompositeIndex; -import org.drools.core.util.AbstractHashTable.FieldIndex; +import org.drools.base.util.FieldIndex; import org.drools.core.util.AbstractHashTable.HashEntry; import org.drools.core.util.AbstractHashTable.Index; import org.drools.core.util.AbstractHashTable.SingleIndex; @@ -182,18 +185,18 @@ public Iterator iterator() { } @Override - public FastIterator fastIterator() { + public FastIterator fastIterator() { return LinkedList.fastIterator; } @Override - public FastIterator fullFastIterator() { + public FastIterator fullFastIterator() { fullFastIterator.reset(); return fullFastIterator; } @Override - public FastIterator fullFastIterator(Tuple tuple) { + public FastIterator fullFastIterator(AbstractTuple tuple) { fullFastIterator.resume(tuple); return fullFastIterator; } @@ -266,7 +269,7 @@ public HashEntry clone() { } - public static class FullIterator implements Iterator { + public static class FullIterator implements Iterator { private FullFastIterator fullFastIterator; private Tuple tuple; @@ -275,13 +278,13 @@ public FullIterator(FullFastIterator fullFastIterator) { } @Override - public Tuple next() { - this.tuple = fullFastIterator.next(tuple); - return this.tuple; + public AbstractTuple next() { + this.tuple = fullFastIterator.next((AbstractTuple) tuple); + return (AbstractTuple) this.tuple; } } - public static class FullFastIterator implements FastIterator { + public static class FullFastIterator implements FastIterator { private FastUtilMergableHashSet set; @@ -295,7 +298,7 @@ public FullFastIterator(FastUtilMergableHashSet set) { * This only seems to be used in tests, so is not performance sensitive * @param target */ - public void resume(Tuple target) { + public void resume(AbstractTuple target) { reset(); TupleList targetMemory = target.getMemory(); // not ideal as this is a linear search to find the resume point @@ -307,8 +310,8 @@ public void resume(Tuple target) { } } - public Tuple next(Tuple tuple) { - Tuple next = null; + public AbstractTuple next(AbstractTuple tuple) { + AbstractTuple next = null; if (tuple != null) { next = tuple.getNext(); if (next != null) { @@ -317,7 +320,7 @@ public Tuple next(Tuple tuple) { } if (it.hasNext()) { - next = ((TupleList)it.next()).getFirst(); + next = (AbstractTuple) ((TupleList)it.next()).getFirst(); } return next; } diff --git a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilIndexMemory.java b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilIndexMemory.java index 1607d379c7c..b9e565178eb 100644 --- a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilIndexMemory.java +++ b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilIndexMemory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.fastutil; import org.drools.core.reteoo.TupleMemory; diff --git a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilMergableHashSet.java b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilMergableHashSet.java index 6a73b6760a4..d42286f936d 100644 --- a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilMergableHashSet.java +++ b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilMergableHashSet.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.fastutil; import it.unimi.dsi.fastutil.objects.ObjectOpenCustomHashSet; diff --git a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilTreeMemory.java b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilTreeMemory.java index 53b97cf543a..b3fc5999b88 100644 --- a/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilTreeMemory.java +++ b/drools-fastutil/src/main/java/org/drools/fastutil/FastUtilTreeMemory.java @@ -1,33 +1,36 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.fastutil; import it.unimi.dsi.fastutil.objects.Object2ObjectMap; import it.unimi.dsi.fastutil.objects.Object2ObjectMaps; import it.unimi.dsi.fastutil.objects.Object2ObjectRBTreeMap; import it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator; +import org.drools.core.reteoo.AbstractTuple; import org.drools.core.reteoo.Tuple; import org.drools.core.reteoo.TupleMemory; import it.unimi.dsi.fastutil.objects.ObjectIterator; -import org.drools.core.util.AbstractHashTable; import org.drools.core.util.FastIterator; +import org.drools.base.util.FieldIndex; import org.drools.core.util.Iterator; import org.drools.core.util.index.AbstractTupleIndexTree; -import org.drools.core.util.index.IndexUtil.ConstraintType; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.core.util.index.TupleIndexRBTree; import org.drools.core.util.index.TupleList; @@ -71,7 +74,7 @@ public TupleList setValue(TupleList value) { } } - public FastUtilTreeMemory(ConstraintType constraintType, AbstractHashTable.FieldIndex index, boolean left) { + public FastUtilTreeMemory(ConstraintTypeOperator constraintType, FieldIndex index, boolean left) { this.index = index; this.constraintType = constraintType; this.left = left; @@ -84,7 +87,7 @@ public FastUtilTreeMemory(ConstraintType constraintType, AbstractHashTable.Field @Override public Tuple getFirst(Tuple tuple) { - return fastIterator.getFirst(tuple); + return fastIterator.getFirst((AbstractTuple) tuple); } @Override @@ -154,7 +157,7 @@ public Iterator iterator() { } @Override - public FastIterator fastIterator() { + public FastIterator fastIterator() { return this.fastIterator; } @@ -165,7 +168,7 @@ public FastIterator fullFastIterator() { } @Override - public FastIterator fullFastIterator(Tuple tuple) { + public FastIterator fullFastIterator(AbstractTuple tuple) { throw new UnsupportedOperationException(); } @@ -239,7 +242,7 @@ public boolean isFullIterator() { return true; } } - public static class TreeFastIterator implements FastIterator { + public static class TreeFastIterator implements FastIterator { FastUtilTreeMemory treeMemory; ObjectBidirectionalIterator> it; @@ -248,14 +251,14 @@ public static class TreeFastIterator implements FastIterator { Comparable key; - ConstraintType constraintType; + ConstraintTypeOperator constraintType; public TreeFastIterator(FastUtilTreeMemory treeMemory) { this.treeMemory = treeMemory; constraintType = !treeMemory.left ? treeMemory.constraintType : treeMemory.constraintType.negate(); } - public Tuple getFirst(Tuple tuple) { + public AbstractTuple getFirst(AbstractTuple tuple) { key = TupleIndexRBTree.coerceType(treeMemory.index, !treeMemory.tree.isEmpty() ? treeMemory.tree.firstKey() : null, treeMemory.getIndexedValue(tuple, !treeMemory.left)); if (key == null) { @@ -263,7 +266,7 @@ public Tuple getFirst(Tuple tuple) { case EQUAL: case GREATER_OR_EQUAL: case LESS_OR_EQUAL: - return treeMemory.nullTupleList.getFirst(); + return (AbstractTuple) treeMemory.nullTupleList.getFirst(); default: return null; } @@ -271,8 +274,8 @@ public Tuple getFirst(Tuple tuple) { HolderEntry from = HolderEntry.getInstance().setKey(key); - if (constraintType == ConstraintType.LESS_THAN || - constraintType == ConstraintType.LESS_OR_EQUAL) { + if (constraintType == ConstraintTypeOperator.LESS_THAN || + constraintType == ConstraintTypeOperator.LESS_OR_EQUAL) { it = treeMemory.tree.object2ObjectEntrySet().iterator(); } else { it = treeMemory.tree.object2ObjectEntrySet().iterator(from); @@ -321,12 +324,12 @@ public Tuple getFirst(Tuple tuple) { current = first; - return first; + return (AbstractTuple) first; } @Override - public Tuple next(Tuple tuple) { - Tuple next = tuple.getNext(); + public AbstractTuple next(AbstractTuple tuple) { + AbstractTuple next = tuple.getNext(); if (next == null && it.hasNext()) { Object2ObjectMap.Entry entry = it.next(); @@ -336,7 +339,7 @@ public Tuple next(Tuple tuple) { switch (constraintType) { case LESS_THAN: { if (entry.getKey().compareTo(key) < 0) { - next = list.getFirst(); + next = (AbstractTuple) list.getFirst(); } else { it = null; key = null; @@ -344,14 +347,14 @@ public Tuple next(Tuple tuple) { break; } case LESS_OR_EQUAL: { if (entry.getKey().compareTo(key) <= 0) { - next = list.getFirst(); + next = (AbstractTuple) list.getFirst(); } else { it = null; key = null; } break; } default: - next = list.getFirst(); + next = (AbstractTuple) list.getFirst(); } } else if (next == null){ it = null; diff --git a/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java b/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java index 9077b0360bc..42feadaa1d4 100644 --- a/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java +++ b/drools-fastutil/src/test/java/org/drools/fastutil/FastUtilTreeMemoryTest.java @@ -1,18 +1,38 @@ +/** + * 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. + */ package org.drools.fastutil; -import org.drools.core.base.ValueType; -import org.drools.core.base.extractors.BaseObjectClassFieldReader; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.base.extractors.BaseObjectClassFieldReader; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.reteoo.BaseTuple; +import org.drools.core.reteoo.AbstractTuple; import org.drools.core.reteoo.JoinNodeLeftTuple; import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.TupleValueExtractor; -import org.drools.core.util.AbstractHashTable; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.TupleValueExtractor; import org.drools.core.util.FastIterator; +import org.drools.base.util.FieldIndex; import org.drools.fastutil.FastUtilTreeMemory.TreeFastIterator; -import org.drools.core.util.index.IndexUtil.ConstraintType; +import org.drools.base.util.index.ConstraintTypeOperator; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -26,14 +46,14 @@ public void testMocks() { Tuple tuple10 = getLeftTuple(10); - AbstractHashTable.FieldIndex fieldIndex = new AbstractHashTable.FieldIndex(rightValueExtractor, leftValueExtractor); + FieldIndex fieldIndex = new FieldIndex(rightValueExtractor, leftValueExtractor); assertThat(fieldIndex.getLeftExtractor().getValue(tuple10)).isEqualTo(10); } @Test public void testGreaterThan() { - AbstractHashTable.FieldIndex fieldIndex = new AbstractHashTable.FieldIndex(getRightExtractor(), getTupleValueExtractor()); - FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintType.GREATER_THAN, fieldIndex, !true); + FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor()); + FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.GREATER_THAN, fieldIndex, !true); Tuple tuple10 = getLeftTuple(10); Tuple tuple20 = getLeftTuple(20); @@ -59,13 +79,13 @@ public void testGreaterThan() { tuple = assertThatEquals(tuple, it, 20); tuple = assertThatEquals(tuple, it, 30); tuple = assertThatEquals(tuple, it, 40); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); } @Test public void testGreaterOrEqual() { - AbstractHashTable.FieldIndex fieldIndex = new AbstractHashTable.FieldIndex(getRightExtractor(), getTupleValueExtractor()); - FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintType.GREATER_OR_EQUAL, fieldIndex, !true); + FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor()); + FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.GREATER_OR_EQUAL, fieldIndex, !true); Tuple tuple10 = getLeftTuple(10); Tuple tuple20 = getLeftTuple(20); @@ -91,13 +111,13 @@ public void testGreaterOrEqual() { tuple = assertThatEquals(tuple, it, 20); tuple = assertThatEquals(tuple, it, 30); tuple = assertThatEquals(tuple, it, 40); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); } @Test public void testLessOrEqual() { - AbstractHashTable.FieldIndex fieldIndex = new AbstractHashTable.FieldIndex(getRightExtractor(), getTupleValueExtractor()); - FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintType.LESS_OR_EQUAL, fieldIndex, !true); + FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor()); + FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.LESS_OR_EQUAL, fieldIndex, !true); Tuple tuple10 = getLeftTuple(10); Tuple tuple20 = getLeftTuple(20); @@ -116,20 +136,20 @@ public void testLessOrEqual() { // check gets 10, but nothing more it = (TreeFastIterator) treeMemory.fastIterator(); Tuple tuple = assertThatEquals(it, 10, 10); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); // check gets 10 and 20, but nothing more it = (TreeFastIterator) treeMemory.fastIterator(); tuple = assertThatEquals(it, 20, 10); tuple = assertThatEquals(tuple, it, 20); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); // check gets 10, 20 and 30 but nothing more it = (TreeFastIterator) treeMemory.fastIterator(); tuple = assertThatEquals(it, 30, 10); tuple = assertThatEquals(tuple, it, 20); tuple = assertThatEquals(tuple, it, 30); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); // check gets 10, 20 and 30 but nothing more @@ -137,7 +157,7 @@ public void testLessOrEqual() { tuple = assertThatEquals(it, 35, 10); tuple = assertThatEquals(tuple, it, 20); tuple = assertThatEquals(tuple, it, 30); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); // check key after last it = (TreeFastIterator) treeMemory.fastIterator(); @@ -145,13 +165,13 @@ public void testLessOrEqual() { tuple = assertThatEquals(tuple, it, 20); tuple = assertThatEquals(tuple, it, 30); tuple = assertThatEquals(tuple, it, 40); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); } @Test public void testLessThan() { - AbstractHashTable.FieldIndex fieldIndex = new AbstractHashTable.FieldIndex(getRightExtractor(), getTupleValueExtractor()); - FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintType.LESS_THAN, fieldIndex, !true); + FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor()); + FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.LESS_THAN, fieldIndex, !true); Tuple tuple10 = getLeftTuple(10); Tuple tuple20 = getLeftTuple(20); @@ -174,13 +194,13 @@ public void testLessThan() { // check gets 10 but nothing more it = (TreeFastIterator) treeMemory.fastIterator(); Tuple tuple = assertThatEquals(it, 20, 10); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); // check gets 10 and 20 but nothing more it = (TreeFastIterator) treeMemory.fastIterator(); tuple = assertThatEquals(it, 30, 10); tuple = assertThatEquals(tuple, it, 20); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); // check gets 10, 20 and 30 but nothing more @@ -188,7 +208,7 @@ public void testLessThan() { tuple = assertThatEquals(it, 35, 10); tuple = assertThatEquals(tuple, it, 20); tuple = assertThatEquals(tuple, it, 30); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); // check key after last it = (TreeFastIterator) treeMemory.fastIterator(); @@ -196,13 +216,13 @@ public void testLessThan() { tuple = assertThatEquals(tuple, it, 20); tuple = assertThatEquals(tuple, it, 30); tuple = assertThatEquals(tuple, it, 40); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); } @Test public void testSharedFirstBucket() { - AbstractHashTable.FieldIndex fieldIndex = new AbstractHashTable.FieldIndex(getRightExtractor(), getTupleValueExtractor()); - FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintType.GREATER_THAN, fieldIndex, !true); + FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor()); + FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.GREATER_THAN, fieldIndex, !true); Tuple tuple10_1 = getLeftTuple(10); Tuple tuple10_2 = getLeftTuple(10); @@ -229,7 +249,7 @@ public void testSharedFirstBucket() { tuple = assertThatEquals(tuple, it, 20); tuple = assertThatEquals(tuple, it, 30); tuple = assertThatEquals(tuple, it, 40); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); // Check full iterator FastIterator fullit = treeMemory.fullFastIterator(); @@ -247,8 +267,8 @@ public void testSharedFirstBucket() { @Test public void testSharedLastBucket() { - AbstractHashTable.FieldIndex fieldIndex = new AbstractHashTable.FieldIndex(getRightExtractor(), getTupleValueExtractor()); - FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintType.GREATER_THAN, fieldIndex, !true); + FieldIndex fieldIndex = new FieldIndex(getRightExtractor(), getTupleValueExtractor()); + FastUtilTreeMemory treeMemory = new FastUtilTreeMemory(ConstraintTypeOperator.GREATER_THAN, fieldIndex, !true); Tuple tuple10 = getLeftTuple(10); Tuple tuple20 = getLeftTuple(20); @@ -275,7 +295,7 @@ public void testSharedLastBucket() { assertThat(tuple).isSameAs(tuple40_2); tuple = assertThatEquals(tuple, it, 40); assertThat(tuple).isSameAs(tuple40_3); - assertThat(it.next(tuple)).isNull(); + assertThat(it.next((AbstractTuple) tuple)).isNull(); // check full iterator @@ -293,7 +313,7 @@ public void testSharedLastBucket() { } private static Tuple assertThatEquals(Tuple tuple, TreeFastIterator it, int expected) { - tuple = (Tuple) it.next(tuple); + tuple = (Tuple) it.next((AbstractTuple) tuple); return assertThatEquals(tuple, expected); } @@ -303,7 +323,7 @@ private static Tuple assertThatEquals(Tuple tuple, FastIterator it, int expected } private static Tuple assertThatEquals(TreeFastIterator it, int first, int expected) { - Tuple tuple = it.getFirst(getLeftTuple(first)); + Tuple tuple = it.getFirst((AbstractTuple) getLeftTuple(first)); return assertThatEquals(tuple, expected); } @@ -313,7 +333,7 @@ private static Tuple assertThatEquals(FastIterator it, int expected) { } private static void assertThatIsNull(TreeFastIterator it, int first) { - Tuple tuple = it.getFirst(getLeftTuple(first)); + Tuple tuple = it.getFirst((AbstractTuple) getLeftTuple(first)); assertThat(tuple).isNull(); } @@ -340,7 +360,7 @@ public ValueType getValueType() { } @Override - public Object getValue(ReteEvaluator reteEvaluator, Tuple tuple) { + public Object getValue(ValueResolver valueResolver, BaseTuple tuple) { return tuple.getFactHandle().getObject(); } @@ -356,7 +376,7 @@ public TupleValueExtractor clone() { public static ReadAccessor getRightExtractor() { ReadAccessor readAccessor = new BaseObjectClassFieldReader() { @Override - public Object getValue(ReteEvaluator reteEvaluator, Object object) { + public Object getValue(ValueResolver valueResolver, Object object) { return object; } }; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml index 51c0a503892..ea3858d5a5c 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/pom.xml @@ -1,11 +1,31 @@ + drools-impact-analysis-graph org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/AnalyzedRule.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/AnalyzedRule.java index e1e11572103..b40a16ddfe4 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/AnalyzedRule.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/AnalyzedRule.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.graph; import org.drools.impact.analysis.model.Rule; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Graph.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Graph.java index cbcda90b518..4068b9ad753 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Graph.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Graph.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph; import java.util.Map; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/GraphAnalysis.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/GraphAnalysis.java index fc658d36f27..0baf46ee577 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/GraphAnalysis.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/GraphAnalysis.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph; import java.util.Collection; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/GraphCollapsionHelper.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/GraphCollapsionHelper.java index 0859ffc84ac..8a6b4ea2235 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/GraphCollapsionHelper.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/GraphCollapsionHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph; import java.util.HashMap; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ImpactAnalysisHelper.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ImpactAnalysisHelper.java index 063f8321f99..b14a82cdb84 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ImpactAnalysisHelper.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ImpactAnalysisHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph; import java.util.Collection; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Link.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Link.java index cfd50561641..fce33fe6c8e 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Link.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Link.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph; public class Link { diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/LinkFilter.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/LinkFilter.java index 353b17f12fc..8ee41f70baa 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/LinkFilter.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/LinkFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph; public enum LinkFilter { diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ModelToGraphConverter.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ModelToGraphConverter.java index 6b70eef3f2f..ae740a7dfc4 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ModelToGraphConverter.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ModelToGraphConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph; import java.util.Collection; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Node.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Node.java index 6cf57904481..721e7692153 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Node.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/Node.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph; import java.util.HashSet; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ReactivityType.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ReactivityType.java index 5f0f06ac5c8..4d5f9eed343 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ReactivityType.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/ReactivityType.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.graph; public enum ReactivityType { diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/TextReporter.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/TextReporter.java index f15090695bc..8ba2934256e 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/TextReporter.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-common/src/main/java/org/drools/impact/analysis/graph/TextReporter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph; import java.util.HashSet; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml index 0478528ce4e..7eda96fad51 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/pom.xml @@ -1,11 +1,31 @@ + drools-impact-analysis-graph org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/main/java/org/drools/impact/analysis/graph/graphviz/GraphImageGenerator.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/main/java/org/drools/impact/analysis/graph/graphviz/GraphImageGenerator.java index 8a7f3eb1032..26aaafd5282 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/main/java/org/drools/impact/analysis/graph/graphviz/GraphImageGenerator.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/main/java/org/drools/impact/analysis/graph/graphviz/GraphImageGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.graph.graphviz; import java.io.File; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/test/java/org/drools/impact/analysis/graph/graphviz/GraphvizOutputTest.java b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/test/java/org/drools/impact/analysis/graph/graphviz/GraphvizOutputTest.java index 9273295b19e..3400719c433 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/test/java/org/drools/impact/analysis/graph/graphviz/GraphvizOutputTest.java +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/test/java/org/drools/impact/analysis/graph/graphviz/GraphvizOutputTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.graph.graphviz; import java.io.File; diff --git a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/test/resources/logback-test.xml b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/test/resources/logback-test.xml index 55bfb430811..32ecf9c8d4c 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/test/resources/logback-test.xml +++ b/drools-impact-analysis/drools-impact-analysis-graph/drools-impact-analysis-graph-graphviz/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-impact-analysis/drools-impact-analysis-graph/pom.xml b/drools-impact-analysis/drools-impact-analysis-graph/pom.xml index 394ac041afc..911f98e191a 100644 --- a/drools-impact-analysis/drools-impact-analysis-graph/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-graph/pom.xml @@ -1,11 +1,31 @@ + drools-impact-analysis org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-itests/pom.xml b/drools-impact-analysis/drools-impact-analysis-itests/pom.xml index 2f113d64f32..f75835377ad 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-itests/pom.xml @@ -1,11 +1,31 @@ + drools-impact-analysis org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -13,8 +33,11 @@ Drools :: Impact Analysis :: Integration Tests - + + org.drools.impact.analysis.integrationtests + + org.drools drools-impact-analysis-parser diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/ExampleUsageTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/ExampleUsageTest.java index 77187b311fc..fe6ff62228e 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/ExampleUsageTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/ExampleUsageTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.example; import java.io.IOException; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/domain/Order.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/domain/Order.java index 66f52170695..8dc13ebe3b2 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/domain/Order.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/domain/Order.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.example.domain; public class Order { diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/domain/Product.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/domain/Product.java index a2a584c8c6e..7d545df5bee 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/domain/Product.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/example/domain/Product.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.impact.analysis.example.domain; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/AbstractGraphTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/AbstractGraphTest.java index dc69a4dc7fa..8cddb8a7f9b 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/AbstractGraphTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/AbstractGraphTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import java.io.IOException; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/BasicGraphTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/BasicGraphTest.java index 3da18e03589..5ad4a7d68a0 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/BasicGraphTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/BasicGraphTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import org.drools.impact.analysis.graph.Graph; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/DrlSyntaxTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/DrlSyntaxTest.java index 9dec38d4702..bc7909ff720 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/DrlSyntaxTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/DrlSyntaxTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import java.util.ArrayList; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/GraphCollapsionTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/GraphCollapsionTest.java index dfba6a817b0..fb2d95d3212 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/GraphCollapsionTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/GraphCollapsionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import java.io.IOException; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/ImpactAnalysisTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/ImpactAnalysisTest.java index 865719f707c..261621473c3 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/ImpactAnalysisTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/ImpactAnalysisTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import java.util.Arrays; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/LinkFilterTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/LinkFilterTest.java index aea49d93558..7f8d1e51e58 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/LinkFilterTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/LinkFilterTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import org.drools.impact.analysis.graph.Graph; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/PropertyTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/PropertyTest.java index b340421187c..19fa869b432 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/PropertyTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/PropertyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import org.drools.impact.analysis.graph.Graph; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/RhsTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/RhsTest.java index aa7d50b1b99..c1c626bad73 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/RhsTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/RhsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import java.util.List; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/RuleExecutionHelper.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/RuleExecutionHelper.java index b41ba7e28cb..fa98b0d87b2 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/RuleExecutionHelper.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/RuleExecutionHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import java.util.List; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/SpecialUsageTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/SpecialUsageTest.java index 9a549776098..9177ca88fbc 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/SpecialUsageTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/SpecialUsageTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import org.drools.impact.analysis.graph.Graph; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/TypeTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/TypeTest.java index a40b9f542a1..b88407b7e39 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/TypeTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/TypeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests; import java.math.BigDecimal; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Address.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Address.java index 9d210c813f5..de5ea4c5748 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Address.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Address.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests.domain; public class Address { diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/ControlFact.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/ControlFact.java index 498c33d3578..81b0a5d5d71 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/ControlFact.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/ControlFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests.domain; import java.util.HashMap; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/FunctionUtils.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/FunctionUtils.java index 2ecd6321eb1..65a98e9dec3 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/FunctionUtils.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/FunctionUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests.domain; import java.math.BigDecimal; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Order.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Order.java index 28e88f6967b..d16775e719f 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Order.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Order.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests.domain; public class Order { diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Person.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Person.java index 0592ab61b4d..9525d0a2d01 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Person.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests.domain; import java.math.BigDecimal; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/ProductItem.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/ProductItem.java index 6aaba279dda..3e336a441be 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/ProductItem.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/ProductItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests.domain; import java.math.BigDecimal; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/PropHolder.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/PropHolder.java index 502453c304f..246282f4653 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/PropHolder.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/domain/PropHolder.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.impact.analysis.integrationtests.domain; import java.math.BigDecimal; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/KogitoDrlSyntaxTest.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/KogitoDrlSyntaxTest.java index a0284718faa..1a5285da180 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/KogitoDrlSyntaxTest.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/KogitoDrlSyntaxTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.integrationtests.kogito; import org.drools.impact.analysis.graph.Graph; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/LoanUnit.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/LoanUnit.java index 78ce1497700..37cb55c5dfd 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/LoanUnit.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/LoanUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.impact.analysis.integrationtests.kogito; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/domain/Applicant.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/domain/Applicant.java index 12133fbefe9..4c31d87f0ec 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/domain/Applicant.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/domain/Applicant.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.impact.analysis.integrationtests.kogito.domain; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/domain/LoanApplication.java b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/domain/LoanApplication.java index a44daf767de..e416c36c683 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/domain/LoanApplication.java +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/java/org/drools/impact/analysis/integrationtests/kogito/domain/LoanApplication.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.impact.analysis.integrationtests.kogito.domain; diff --git a/drools-impact-analysis/drools-impact-analysis-itests/src/test/resources/logback-test.xml b/drools-impact-analysis/drools-impact-analysis-itests/src/test/resources/logback-test.xml index 55bfb430811..32ecf9c8d4c 100644 --- a/drools-impact-analysis/drools-impact-analysis-itests/src/test/resources/logback-test.xml +++ b/drools-impact-analysis/drools-impact-analysis-itests/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-impact-analysis/drools-impact-analysis-model/pom.xml b/drools-impact-analysis/drools-impact-analysis-model/pom.xml index 2823827ac3e..aadc2e5492c 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-model/pom.xml @@ -1,11 +1,31 @@ + drools-impact-analysis org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/AnalysisModel.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/AnalysisModel.java index d3b96c246a6..d989b3b770f 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/AnalysisModel.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/AnalysisModel.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model; import java.util.ArrayList; diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/Package.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/Package.java index 2840bc67312..1e9774afd19 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/Package.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/Package.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model; import java.util.List; diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/Rule.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/Rule.java index 2b4bc849f28..4e6fa6f6332 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/Rule.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/Rule.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model; import java.util.Objects; diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/Constraint.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/Constraint.java index 7484a9b981c..697cdcc956f 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/Constraint.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/Constraint.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model.left; public class Constraint { diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/LeftHandSide.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/LeftHandSide.java index 778895372ff..db6190e3219 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/LeftHandSide.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/LeftHandSide.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model.left; import java.util.ArrayList; diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/MapConstraint.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/MapConstraint.java index eee18581c75..65923ce1ff4 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/MapConstraint.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/MapConstraint.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model.left; public class MapConstraint extends Constraint { diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/Pattern.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/Pattern.java index 4057bd3a896..69d9289b06b 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/Pattern.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/left/Pattern.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model.left; import java.util.ArrayList; diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ConsequenceAction.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ConsequenceAction.java index 38ba8b11bf8..f48b9d61e1e 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ConsequenceAction.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ConsequenceAction.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model.right; public class ConsequenceAction { diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/InsertAction.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/InsertAction.java index e8dc240cc0a..8bac2d6108b 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/InsertAction.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/InsertAction.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.impact.analysis.model.right; import java.util.ArrayList; diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/InsertedProperty.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/InsertedProperty.java index 0a018812517..ae260953049 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/InsertedProperty.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/InsertedProperty.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.impact.analysis.model.right; public class InsertedProperty extends ModifiedProperty { diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifiedMapProperty.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifiedMapProperty.java index f3797d7ad8c..dcebb5901fc 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifiedMapProperty.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifiedMapProperty.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model.right; public class ModifiedMapProperty extends ModifiedProperty { diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifiedProperty.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifiedProperty.java index 406010c0cdf..b58717e94f9 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifiedProperty.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifiedProperty.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model.right; public class ModifiedProperty { diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifyAction.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifyAction.java index 5458d361caa..d2eb88a6880 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifyAction.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/ModifyAction.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model.right; import java.util.ArrayList; diff --git a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/RightHandSide.java b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/RightHandSide.java index f9de8e14326..62aabf2ea70 100644 --- a/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/RightHandSide.java +++ b/drools-impact-analysis/drools-impact-analysis-model/src/main/java/org/drools/impact/analysis/model/right/RightHandSide.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.model.right; import java.util.ArrayList; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/pom.xml b/drools-impact-analysis/drools-impact-analysis-parser/pom.xml index 8c2e4ccd1f1..daa671a78cd 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/pom.xml +++ b/drools-impact-analysis/drools-impact-analysis-parser/pom.xml @@ -1,11 +1,31 @@ + drools-impact-analysis org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/ModelBuilder.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/ModelBuilder.java index 0f5d96197ba..07c1b2a91c9 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/ModelBuilder.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/ModelBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser; import java.util.UUID; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/ImpactAnalysisRuleContext.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/ImpactAnalysisRuleContext.java index b8883908313..956543068eb 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/ImpactAnalysisRuleContext.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/ImpactAnalysisRuleContext.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser.impl; import java.util.HashMap; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/LhsParser.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/LhsParser.java index 9e6d6134957..fcf941dca27 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/LhsParser.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/LhsParser.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser.impl; import java.lang.reflect.Method; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/PackageParser.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/PackageParser.java index ba871a2065c..c0615b27321 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/PackageParser.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/PackageParser.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser.impl; import java.util.ArrayList; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/ParserUtil.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/ParserUtil.java index bdce4b025aa..ec75a64f0cb 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/ParserUtil.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/ParserUtil.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser.impl; import java.math.BigDecimal; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/RhsParser.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/RhsParser.java index 04ac593ab2e..58471490189 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/RhsParser.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/impl/RhsParser.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser.impl; import java.lang.reflect.Method; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisKieModule.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisKieModule.java index 782de2cdf5f..c94c1bf8830 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisKieModule.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisKieModule.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser.internal; import java.io.File; @@ -30,7 +34,7 @@ import org.drools.compiler.kie.builder.impl.ResultsImpl; import org.drools.compiler.kie.util.KieJarChangeSet; import org.drools.compiler.kproject.models.KieBaseModelImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.io.InternalResource; import org.drools.impact.analysis.model.AnalysisModel; @@ -209,12 +213,12 @@ public KnowledgeBuilderConfiguration createBuilderConfiguration( KieBaseModel kB } @Override - public InternalKnowledgeBase createKieBase(KieBaseModelImpl kBaseModel, KieProject kieProject, BuildContext buildContext, KieBaseConfiguration conf ) { + public InternalKnowledgeBase createKieBase(KieBaseModelImpl kBaseModel, KieProject kieProject, BuildContext buildContext, KieBaseConfiguration conf) { return internalKieModule.createKieBase( kBaseModel, kieProject, buildContext, conf ); } @Override - public void afterKieBaseCreationUpdate( String name, InternalKnowledgeBase kBase ) { + public void afterKieBaseCreationUpdate( String name, InternalKnowledgeBase kBase) { internalKieModule.afterKieBaseCreationUpdate( name, kBase ); } diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisKieProject.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisKieProject.java index 7008a49d62c..2db4f60b0c6 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisKieProject.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisKieProject.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser.internal; import java.util.function.BiFunction; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisProject.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisProject.java index 04f80ecbc59..7fc3e416f65 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisProject.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactAnalysisProject.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser.internal; import java.util.function.BiFunction; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactModelBuilderImpl.java b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactModelBuilderImpl.java index e68e73a816b..26212c22f92 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactModelBuilderImpl.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/main/java/org/drools/impact/analysis/parser/internal/ImpactModelBuilderImpl.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.impact.analysis.parser.internal; import java.util.Collection; @@ -25,8 +29,8 @@ import org.drools.compiler.builder.impl.processors.OtherDeclarationCompilationPhase; import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.lang.descr.CompositePackageDescr; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr; import org.drools.drl.ast.descr.EnumDeclarationDescr; import org.drools.drl.ast.descr.GlobalDescr; @@ -44,7 +48,7 @@ import static java.util.Collections.emptyList; import static org.drools.compiler.builder.impl.ClassDefinitionFactory.createClassDefinition; -import static org.drools.core.util.Drools.hasMvel; +import static org.drools.base.util.Drools.hasMvel; public class ImpactModelBuilderImpl extends KnowledgeBuilderImpl { diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/ParserTest.java b/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/ParserTest.java index 646c76c4b8f..b78559ce267 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/ParserTest.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/ParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.parser; import org.drools.impact.analysis.model.AnalysisModel; diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/domain/Address.java b/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/domain/Address.java index 65a1a5b3df3..b9f63f2ddb5 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/domain/Address.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/domain/Address.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.parser.domain; public class Address { diff --git a/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/domain/Person.java b/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/domain/Person.java index cd9bd85d918..432e3514ee3 100644 --- a/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/domain/Person.java +++ b/drools-impact-analysis/drools-impact-analysis-parser/src/test/java/org/drools/impact/analysis/parser/domain/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.impact.analysis.parser.domain; import java.math.BigDecimal; diff --git a/drools-impact-analysis/pom.xml b/drools-impact-analysis/pom.xml index 2c742d1117c..a59f6e20b97 100644 --- a/drools-impact-analysis/pom.xml +++ b/drools-impact-analysis/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-io/pom.xml b/drools-io/pom.xml index 346c645d10a..cb1d5638663 100644 --- a/drools-io/pom.xml +++ b/drools-io/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-io/src/main/java/org/drools/io/BaseResource.java b/drools-io/src/main/java/org/drools/io/BaseResource.java index 021cdd6ffe9..d5cfaac6703 100644 --- a/drools-io/src/main/java/org/drools/io/BaseResource.java +++ b/drools-io/src/main/java/org/drools/io/BaseResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.io; import java.io.Externalizable; diff --git a/drools-io/src/main/java/org/drools/io/ByteArrayResource.java b/drools-io/src/main/java/org/drools/io/ByteArrayResource.java index 5febe3e801e..26c2157f351 100644 --- a/drools-io/src/main/java/org/drools/io/ByteArrayResource.java +++ b/drools-io/src/main/java/org/drools/io/ByteArrayResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.io; import java.io.ByteArrayInputStream; diff --git a/drools-io/src/main/java/org/drools/io/ClassPathResource.java b/drools-io/src/main/java/org/drools/io/ClassPathResource.java index 25dbb672f18..6899f8e006c 100644 --- a/drools-io/src/main/java/org/drools/io/ClassPathResource.java +++ b/drools-io/src/main/java/org/drools/io/ClassPathResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.io; import java.io.ByteArrayInputStream; diff --git a/drools-io/src/main/java/org/drools/io/DescrResource.java b/drools-io/src/main/java/org/drools/io/DescrResource.java index b2fcce00bc3..22f9953276e 100644 --- a/drools-io/src/main/java/org/drools/io/DescrResource.java +++ b/drools-io/src/main/java/org/drools/io/DescrResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.io; import java.io.ByteArrayInputStream; diff --git a/drools-io/src/main/java/org/drools/io/FileSystemResource.java b/drools-io/src/main/java/org/drools/io/FileSystemResource.java index 0b61ca1c3fc..18d758c0871 100644 --- a/drools-io/src/main/java/org/drools/io/FileSystemResource.java +++ b/drools-io/src/main/java/org/drools/io/FileSystemResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.io; import java.io.ByteArrayInputStream; diff --git a/drools-io/src/main/java/org/drools/io/InputStreamResource.java b/drools-io/src/main/java/org/drools/io/InputStreamResource.java index 98829f60574..069fce85831 100644 --- a/drools-io/src/main/java/org/drools/io/InputStreamResource.java +++ b/drools-io/src/main/java/org/drools/io/InputStreamResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.io; import java.io.ByteArrayInputStream; diff --git a/drools-io/src/main/java/org/drools/io/InternalResource.java b/drools-io/src/main/java/org/drools/io/InternalResource.java index 439526ac667..0596ccf7105 100644 --- a/drools-io/src/main/java/org/drools/io/InternalResource.java +++ b/drools-io/src/main/java/org/drools/io/InternalResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.io; import java.io.IOException; diff --git a/drools-io/src/main/java/org/drools/io/KnowledgeResource.java b/drools-io/src/main/java/org/drools/io/KnowledgeResource.java index 311431ff359..58e4ab4e281 100644 --- a/drools-io/src/main/java/org/drools/io/KnowledgeResource.java +++ b/drools-io/src/main/java/org/drools/io/KnowledgeResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.io; import org.kie.api.io.ResourceConfiguration; diff --git a/drools-io/src/main/java/org/drools/io/ReaderInputStream.java b/drools-io/src/main/java/org/drools/io/ReaderInputStream.java index 90790150be1..9263917d6c5 100644 --- a/drools-io/src/main/java/org/drools/io/ReaderInputStream.java +++ b/drools-io/src/main/java/org/drools/io/ReaderInputStream.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.io; import org.drools.util.StringUtils; diff --git a/drools-io/src/main/java/org/drools/io/ReaderResource.java b/drools-io/src/main/java/org/drools/io/ReaderResource.java index 067b4ace7dd..de65df5ca92 100644 --- a/drools-io/src/main/java/org/drools/io/ReaderResource.java +++ b/drools-io/src/main/java/org/drools/io/ReaderResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.io; import java.io.FileNotFoundException; diff --git a/drools-io/src/main/java/org/drools/io/ResourceConfigurationImpl.java b/drools-io/src/main/java/org/drools/io/ResourceConfigurationImpl.java index 7ba20d5cd0f..09866f81ff2 100644 --- a/drools-io/src/main/java/org/drools/io/ResourceConfigurationImpl.java +++ b/drools-io/src/main/java/org/drools/io/ResourceConfigurationImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.io; import java.io.Serializable; diff --git a/drools-io/src/main/java/org/drools/io/ResourceFactoryServiceImpl.java b/drools-io/src/main/java/org/drools/io/ResourceFactoryServiceImpl.java index 5a27791bf8c..d283aa42edd 100644 --- a/drools-io/src/main/java/org/drools/io/ResourceFactoryServiceImpl.java +++ b/drools-io/src/main/java/org/drools/io/ResourceFactoryServiceImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.io; import java.io.File; diff --git a/drools-kiesession/pom.xml b/drools-kiesession/pom.xml index af2f6c68f60..d3f459e0430 100644 --- a/drools-kiesession/pom.xml +++ b/drools-kiesession/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/agenda/CompositeDefaultAgenda.java b/drools-kiesession/src/main/java/org/drools/kiesession/agenda/CompositeDefaultAgenda.java index e631bd2f2ba..be94289414a 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/agenda/CompositeDefaultAgenda.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/agenda/CompositeDefaultAgenda.java @@ -1,42 +1,36 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.agenda; -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.util.Iterator; -import java.util.Map; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.stream.Stream; - +import org.drools.base.common.NetworkNode; +import org.drools.base.common.PartitionsManager; import org.drools.core.common.ActivationsFilter; import org.drools.core.common.AgendaGroupsManager; +import org.drools.core.common.InternalActivationGroup; import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.NetworkNode; +import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.core.common.RuleFlowGroup; import org.drools.core.event.AgendaEventSupport; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.ExecutableEntry; import org.drools.core.phreak.PropagationEntry; import org.drools.core.phreak.PropagationList; @@ -45,57 +39,55 @@ import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; import org.drools.core.reteoo.TerminalNode; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.common.InternalActivationGroup; import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.common.PropagationContext; -import org.drools.core.common.RuleFlowGroup; import org.drools.core.util.CompositeIterator; import org.kie.api.runtime.rule.AgendaFilter; -import org.kie.internal.concurrent.ExecutorProviderFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.util.Iterator; +import java.util.Map; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutorService; +import java.util.stream.Stream; + import static java.util.concurrent.CompletableFuture.runAsync; -import static java.util.concurrent.CompletableFuture.supplyAsync; +import static org.drools.base.common.PartitionsManager.doOnForkJoinPool; public class CompositeDefaultAgenda implements Externalizable, InternalAgenda { - protected static final transient Logger log = LoggerFactory.getLogger( CompositeDefaultAgenda.class ); - - private static final ExecutorService EXECUTOR = ExecutorProviderFactory.getExecutorProvider().getExecutor(); - - private static final AtomicBoolean FIRING_UNTIL_HALT_USING_EXECUTOR = new AtomicBoolean( false ); - - private final DefaultAgenda[] agendas = new DefaultAgenda[RuleBasePartitionId.PARALLEL_PARTITIONS_NUMBER]; + protected static final Logger log = LoggerFactory.getLogger( CompositeDefaultAgenda.class ); private final DefaultAgenda.ExecutionStateMachine executionStateMachine = new DefaultAgenda.ConcurrentExecutionStateMachine(); + private DefaultAgenda[] agendas; + private PropagationList propagationList; public CompositeDefaultAgenda() { } - public CompositeDefaultAgenda(RuleBase kBase) { - this( kBase, true ); - } - - public CompositeDefaultAgenda(RuleBase kBase, boolean initMain) { - for ( int i = 0; i < agendas.length; i++ ) { - agendas[i] = new PartitionedDefaultAgenda(kBase, initMain, executionStateMachine, i); + public CompositeDefaultAgenda(InternalWorkingMemory workingMemory) { + InternalRuleBase kBase = workingMemory.getKnowledgeBase(); + this.agendas = new DefaultAgenda[kBase.getParallelEvaluationSlotsCount()]; + for ( int i = 0; i < this.agendas.length; i++ ) { + agendas[i] = new PartitionedDefaultAgenda(workingMemory, executionStateMachine, i); } + // this composite agenda and the first partitioned one share the same propagation list + this.propagationList = agendas[0].getPropagationList(); } @Override public void writeExternal( ObjectOutput out ) throws IOException { - for ( DefaultAgenda agenda : agendas ) { - out.writeObject( agenda ); - } + out.writeObject( agendas ); } @Override public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { - for ( int i = 0; i < agendas.length; i++ ) { - agendas[i] = (DefaultAgenda) in.readObject(); - } + agendas = (DefaultAgenda[]) in.readObject(); } @Override @@ -133,13 +125,6 @@ public RuleAgendaItem peekNextRule() { return getAgendaGroupsManager().peekNextRule(); } - @Override - public void setWorkingMemory( InternalWorkingMemory workingMemory ) { - Stream.of( agendas ).forEach( a -> a.setWorkingMemory( workingMemory ) ); - // this composite agenda and the first partitioned one share the same propagation list - this.propagationList = agendas[0].getPropagationList(); - } - @Override public int fireAllRules( AgendaFilter agendaFilter, int fireLimit ) { if (!executionStateMachine.toFireAllRules()) { @@ -174,17 +159,7 @@ public int fireAllRules( AgendaFilter agendaFilter, int fireLimit ) { } private int parallelFire( AgendaFilter agendaFilter, int fireLimit ) { - CompletableFuture[] results = new CompletableFuture[agendas.length-1]; - for (int i = 0; i < results.length; i++) { - final int j = i; - results[j] = supplyAsync( () -> agendas[j].internalFireAllRules( agendaFilter, fireLimit, false ), EXECUTOR ); - } - - int result = agendas[agendas.length-1].internalFireAllRules( agendaFilter, fireLimit, false ); - for (int i = 0; i < results.length; i++) { - result += results[i].join(); - } - return result; + return doOnForkJoinPool(() -> Stream.of(agendas).parallel().mapToInt(a -> a.internalFireAllRules( agendaFilter, fireLimit, false )).sum() ); } @Override @@ -204,39 +179,27 @@ public void fireUntilHalt() { @Override public void fireUntilHalt( AgendaFilter agendaFilter ) { - ExecutorService fireUntilHaltExecutor = EXECUTOR; - - if ( FIRING_UNTIL_HALT_USING_EXECUTOR.getAndSet( true )) { - fireUntilHaltExecutor = ExecutorProviderFactory.getExecutorProvider().newFixedThreadPool(); - } - if ( log.isTraceEnabled() ) { log.trace("Starting Fire Until Halt"); } + + ExecutorService fireUntilHaltExecutor = PartitionsManager.borrowFireUntilHaltExecutors(); if (executionStateMachine.toFireUntilHalt()) { try { while ( isFiring() ) { - CompletableFuture[] futures = new CompletableFuture[agendas.length - 1]; + CompletableFuture[] futures = new CompletableFuture[agendas.length]; for ( int i = 0; i < futures.length; i++ ) { final int j = i; futures[j] = runAsync( () -> agendas[j].internalFireUntilHalt( agendaFilter, false ), fireUntilHaltExecutor ); } - - agendas[agendas.length - 1].internalFireUntilHalt( agendaFilter, false ); - - for ( int i = 0; i < futures.length; i++ ) { - futures[i].join(); - } + CompletableFuture.allOf(futures).join(); } } finally { executionStateMachine.immediateHalt( propagationList ); - if ( fireUntilHaltExecutor == EXECUTOR ) { - FIRING_UNTIL_HALT_USING_EXECUTOR.set( false ); - } else { - fireUntilHaltExecutor.shutdown(); - } + PartitionsManager.offerFireUntilHaltExecutors(fireUntilHaltExecutor); } } + if ( log.isTraceEnabled() ) { log.trace("Ending Fire Until Halt"); } @@ -308,6 +271,13 @@ public void notifyWaitOnRest() { } } + @Override + public void haltGroupEvaluation() { + for ( int i = 0; i < agendas.length; i++ ) { + agendas[i].haltGroupEvaluation(); + } + } + @Override public Iterator getActionsIterator() { return new CompositeIterator<>( Stream.of( agendas ).map( DefaultAgenda::getActionsIterator ).toArray(Iterator[]::new) ); @@ -416,11 +386,6 @@ public String getFocusName() { throw new UnsupportedOperationException( "org.drools.core.common.CompositeDefaultAgenda.getFocusName -> TODO" ); } - @Override - public int fireNextItem( AgendaFilter filter, int fireCount, int fireLimit ) { - throw new UnsupportedOperationException( "org.drools.core.common.CompositeDefaultAgenda.fireNextItem -> TODO" ); - } - @Override public void cancelActivation( InternalMatch internalMatch) { throw new UnsupportedOperationException( "org.drools.core.common.CompositeDefaultAgenda.cancelActivation -> TODO" ); @@ -437,10 +402,12 @@ public InternalAgendaGroup getAgendaGroup( String name ) { } @Override - public void setFocus( String name ) { + public boolean setFocus( String name ) { + boolean groupChanged = false; for ( int i = 0; i < agendas.length; i++ ) { - agendas[i].setFocus( name ); + groupChanged |= agendas[i].setFocus( name ); } + return groupChanged; } @Override @@ -528,6 +495,11 @@ public KnowledgeHelper getKnowledgeHelper() { throw new UnsupportedOperationException( "This method has to be called on the single partitioned agendas" ); } + @Override + public void resetKnowledgeHelper() { + throw new UnsupportedOperationException( "This method has to be called on the single partitioned agendas" ); + } + @Override public boolean isParallelAgenda() { return true; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/agenda/DefaultAgenda.java b/drools-kiesession/src/main/java/org/drools/kiesession/agenda/DefaultAgenda.java index 847724495f1..66221696d2a 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/agenda/DefaultAgenda.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/agenda/DefaultAgenda.java @@ -1,32 +1,26 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.agenda; -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.ActivationGroupImpl; import org.drools.core.common.ActivationGroupNode; import org.drools.core.common.ActivationsFilter; @@ -42,12 +36,11 @@ import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.RuleFlowGroup; -import org.drools.core.concurrent.RuleEvaluator; -import org.drools.core.concurrent.SequentialRuleEvaluator; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.core.concurrent.GroupEvaluator; +import org.drools.core.concurrent.ParallelGroupEvaluator; +import org.drools.core.concurrent.SequentialGroupEvaluator; import org.drools.core.event.AgendaEventSupport; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.ExecutableEntry; import org.drools.core.phreak.PropagationEntry; import org.drools.core.phreak.PropagationList; @@ -61,8 +54,6 @@ import org.drools.core.reteoo.PathMemory; import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.consequence.ConsequenceException; import org.drools.core.rule.consequence.ConsequenceExceptionHandler; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.rule.consequence.KnowledgeHelper; @@ -76,6 +67,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + /** * Rule-firing Agenda. * @@ -90,18 +88,15 @@ * Non-invalidated actions are left on the agenda, and are executed in turn. *

*/ -public class DefaultAgenda implements Externalizable, InternalAgenda { +public class DefaultAgenda implements InternalAgenda { - protected static final transient Logger log = LoggerFactory.getLogger( DefaultAgenda.class ); + protected static final Logger log = LoggerFactory.getLogger( DefaultAgenda.class ); private static final long serialVersionUID = 510l; - /** Working memory of this Agenda. */ - protected InternalWorkingMemory workingMemory; + protected final InternalWorkingMemory workingMemory; - /** Items time-delayed. */ - - private Map activationGroups; + private final Map activationGroups; private final org.drools.core.util.LinkedList eager = new org.drools.core.util.LinkedList<>(); @@ -113,76 +108,63 @@ public class DefaultAgenda implements Externalizable, InternalAgenda { protected int activationCounter; - private boolean declarativeAgenda; - private boolean sequential; + private final boolean declarativeAgenda; + private final boolean sequential; private ActivationsFilter activationsFilter; - private volatile List expirationContexts; + private final List expirationContexts; - private RuleEvaluator ruleEvaluator; + private final GroupEvaluator groupEvaluator; - private PropagationList propagationList; + private final PropagationList propagationList; - private ExecutionStateMachine executionStateMachine; + private final ExecutionStateMachine executionStateMachine; - private AgendaGroupsManager agendaGroupsManager; + private final AgendaGroupsManager agendaGroupsManager; // ------------------------------------------------------------ // Constructors // ------------------------------------------------------------ - public DefaultAgenda() { } - public DefaultAgenda(RuleBase kBase) { - this( kBase, true ); + public DefaultAgenda(InternalWorkingMemory workingMemory) { + this(workingMemory, null); } - public DefaultAgenda(RuleBase kBase, boolean initMain) { - this(kBase, initMain, new ConcurrentExecutionStateMachine()); - } + DefaultAgenda(InternalWorkingMemory workingMemory, ExecutionStateMachine executionStateMachine) { - DefaultAgenda(RuleBase kBase, - boolean initMain, - ExecutionStateMachine executionStateMachine) { - this.agendaGroupsManager = AgendaGroupsManager.create(kBase, initMain); + this.workingMemory = workingMemory; + this.agendaGroupsManager = AgendaGroupsManager.create(workingMemory); this.activationGroups = new HashMap<>(); - this.executionStateMachine = executionStateMachine; - Object object = ComponentsFactory.createConsequenceExceptionHandler( kBase.getRuleBaseConfiguration().getConsequenceExceptionHandler(), - kBase.getConfiguration().getClassLoader() ); + if (executionStateMachine != null) { + this.executionStateMachine = executionStateMachine; + } else { + this.executionStateMachine = workingMemory.getRuleSessionConfiguration().isThreadSafe() ? + new ConcurrentExecutionStateMachine() : + new UnsafeExecutionStateMachine(); + } + + InternalRuleBase kBase = workingMemory.getKnowledgeBase(); + RuleBaseConfiguration ruleBaseConf = kBase.getRuleBaseConfiguration(); + Object object = ComponentsFactory.createConsequenceExceptionHandler( ruleBaseConf.getConsequenceExceptionHandler(), + ruleBaseConf.getClassLoader() ); if ( object instanceof ConsequenceExceptionHandler ) { this.legacyConsequenceExceptionHandler = (ConsequenceExceptionHandler) object; } else { this.consequenceExceptionHandler = (org.kie.api.runtime.rule.ConsequenceExceptionHandler) object; } - this.declarativeAgenda = kBase.getRuleBaseConfiguration().isDeclarativeAgenda(); - this.sequential = kBase.getRuleBaseConfiguration().isSequential(); - if (kBase.getRuleBaseConfiguration().getEventProcessingMode() == EventProcessingOption.STREAM) { - expirationContexts = new ArrayList<>(); - } - } + this.declarativeAgenda = ruleBaseConf.isDeclarativeAgenda(); + this.sequential = ruleBaseConf.isSequential(); + this.expirationContexts = ruleBaseConf.getEventProcessingMode() == EventProcessingOption.STREAM ? new ArrayList<>() : null; - @Override - public void readExternal(ObjectInput in) throws IOException, - ClassNotFoundException { - setWorkingMemory( (InternalWorkingMemory) in.readObject() ); - agendaGroupsManager = (AgendaGroupsManager) in.readObject(); - activationGroups = (Map) in.readObject(); - legacyConsequenceExceptionHandler = (ConsequenceExceptionHandler) in.readObject(); - declarativeAgenda = in.readBoolean(); - sequential = in.readBoolean(); - this.executionStateMachine = new ConcurrentExecutionStateMachine(); - } + // for fully parallel execution the parallelism is implemented at the level of CompositeDefaultAgenda + this.groupEvaluator = ruleBaseConf.isParallelEvaluation() && !ruleBaseConf.isParallelExecution() ? + new ParallelGroupEvaluator( this ) : + new SequentialGroupEvaluator( this ); - @Override - public void writeExternal(ObjectOutput out) throws IOException { - out.writeObject( workingMemory ); - out.writeObject( agendaGroupsManager ); - out.writeObject( activationGroups ); - out.writeObject( legacyConsequenceExceptionHandler ); - out.writeBoolean( declarativeAgenda ); - out.writeBoolean( sequential ); + this.propagationList = createPropagationList(); } @Override @@ -204,19 +186,6 @@ public InternalMatch createAgendaItem(RuleTerminalNodeLeftTuple rtnLeftTuple, return rtnLeftTuple; } - @Override - public void setWorkingMemory(final InternalWorkingMemory workingMemory) { - this.workingMemory = workingMemory; - this.agendaGroupsManager.setReteEvaluator( workingMemory ); - - if ( !workingMemory.getRuleSessionConfiguration().isThreadSafe() ) { - executionStateMachine = new UnsafeExecutionStateMachine(); - } - - this.ruleEvaluator = new SequentialRuleEvaluator( this ); - this.propagationList = createPropagationList(); - } - protected PropagationList createPropagationList() { if (!workingMemory.getRuleSessionConfiguration().isThreadSafe()) { return new ThreadUnsafePropagationList( workingMemory ); @@ -346,7 +315,6 @@ public void cancelActivation(final InternalMatch internalMatch) { if (internalMatch.getActivationGroupNode() != null ) { internalMatch.getActivationGroupNode().getActivationGroup().removeActivation(internalMatch); } - (( Tuple ) internalMatch).decreaseActivationCountForEvents(); workingMemory.getAgendaEventSupport().fireActivationCancelled(internalMatch, workingMemory, @@ -361,15 +329,14 @@ public void cancelActivation(final InternalMatch internalMatch) { } @Override - public void setFocus(final String name) { - setFocus( null, name ); + public boolean setFocus(final String name) { + return setFocus( null, name ); } - public void setFocus(final PropagationContext ctx, - final String name) { + public boolean setFocus(final PropagationContext ctx, final String name) { InternalAgendaGroup agendaGroup = getAgendaGroupsManager().getAgendaGroup( name ); agendaGroup.setAutoFocusActivator( ctx ); - getAgendaGroupsManager().setFocus( agendaGroup ); + return getAgendaGroupsManager().setFocus( agendaGroup ); } @Override @@ -527,45 +494,6 @@ public void clearAndCancelRuleFlowGroup(final String name) { agendaGroupsManager.clearAndCancelAgendaGroup(name, this); } - /** - * Fire the next scheduled Agenda item, skipping items - * that are not allowed by the agenda filter. - * - * @return true if an activation was fired. false if no more activations - * to fire - * - * @throws ConsequenceException - * If an error occurs while firing an agenda item. - */ - @Override - public int fireNextItem(final AgendaFilter filter, - int fireCount, - int fireLimit) { - // Because rules can be on the agenda, but after network evaluation produce no full matches, the - // engine uses tryAgain to drive a loop to find a rule that has matches, until there are no more rules left to try. - // once rule with 1..n matches is found, it'll return back to the outer loop. - boolean tryagain; - int localFireCount = 0; - do { - tryagain = false; - evaluateEagerList(); - final InternalAgendaGroup group = getAgendaGroupsManager().getNextFocus(); - // if there is a group with focus - if ( group != null ) { - localFireCount = ruleEvaluator.evaluateAndFire(filter, fireCount, fireLimit, group); - - // it produced no full matches, so drive the search to the next rule - if ( localFireCount == 0 ) { - // nothing matched - tryagain = true; - propagationList.flush(); // There may actions to process, which create new rule matches - } - } - } while ( tryagain ); - - return localFireCount; - } - @Override public void evaluateEagerList() { while ( !eager.isEmpty() ) { @@ -695,7 +623,7 @@ private int fireLoop(AgendaFilter agendaFilter, int fireLimit, RestHandler restH // only fire rules while the limit has not reached. // if halt is called, then isFiring will be false. // The while loop may continue to loop, to keep flushing the action propagation queue - returnedFireCount = ruleEvaluator.evaluateAndFire( agendaFilter, fireCount, fireLimit, group ); + returnedFireCount = groupEvaluator.evaluateAndFire( group, agendaFilter, fireCount, fireLimit ); fireCount += returnedFireCount; limitReached = ( fireLimit > 0 && fireCount >= fireLimit ); @@ -834,6 +762,7 @@ protected Halt( ExecutionStateMachine executionStateMachine ) { @Override public void internalExecute(ReteEvaluator reteEvaluator ) { executionStateMachine.internalHalt(); + reteEvaluator.getActivationsManager().haltGroupEvaluation(); } @Override @@ -890,7 +819,17 @@ public void handleException(InternalMatch internalMatch, Exception e) { @Override public KnowledgeHelper getKnowledgeHelper() { - return ruleEvaluator.getKnowledgeHelper(); + return groupEvaluator.getKnowledgeHelper(); + } + + @Override + public void resetKnowledgeHelper() { + groupEvaluator.resetKnowledgeHelper(); + } + + @Override + public void haltGroupEvaluation() { + groupEvaluator.haltEvaluation(); } @Override @@ -1291,15 +1230,23 @@ private boolean flushExpirations() { } protected void doRetract( PropagationContext ectx ) { - InternalFactHandle factHandle = ectx.getFactHandle(); - ObjectTypeNode.retractLeftTuples( factHandle, ectx, workingMemory ); - ObjectTypeNode.retractRightTuples( factHandle, ectx, workingMemory ); - if ( factHandle.isPendingRemoveFromStore() ) { + InternalFactHandle factHandle = (InternalFactHandle) ectx.getFactHandle(); + retractFactHandle(ectx, factHandle); + if (isPendingRemoveFactHandleFromStore(factHandle)) { String epId = factHandle.getEntryPointName(); ( (InternalWorkingMemoryEntryPoint) workingMemory.getEntryPoint( epId ) ).removeFromObjectStore( factHandle ); } } + protected void retractFactHandle(PropagationContext ectx, InternalFactHandle factHandle) { + ObjectTypeNode.retractLeftTuples(factHandle, ectx, workingMemory ); + ObjectTypeNode.retractRightTuples(factHandle, ectx, workingMemory ); + } + + protected boolean isPendingRemoveFactHandleFromStore(InternalFactHandle factHandle) { + return factHandle.isPendingRemoveFromStore(); + } + @Override public boolean isParallelAgenda() { return false; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/agenda/DefaultAgendaFactory.java b/drools-kiesession/src/main/java/org/drools/kiesession/agenda/DefaultAgendaFactory.java index 5e213733975..24ca3cb4c59 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/agenda/DefaultAgendaFactory.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/agenda/DefaultAgendaFactory.java @@ -1,27 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.agenda; -import java.io.Serializable; - import org.drools.core.common.AgendaFactory; import org.drools.core.common.InternalAgenda; -import org.drools.core.impl.RuleBase; +import org.drools.core.common.InternalWorkingMemory; + +import java.io.Serializable; public class DefaultAgendaFactory implements AgendaFactory, Serializable { @@ -33,16 +35,9 @@ public static AgendaFactory getInstance() { private DefaultAgendaFactory() { } - public InternalAgenda createAgenda(RuleBase kBase, boolean initMain) { - return kBase.getRuleBaseConfiguration().isMultithreadEvaluation() ? - new CompositeDefaultAgenda( kBase, initMain ) : - new DefaultAgenda( kBase, initMain ); - } - - public InternalAgenda createAgenda(RuleBase kBase) { - return kBase.getRuleBaseConfiguration().isMultithreadEvaluation() ? - new CompositeDefaultAgenda( kBase ) : - new DefaultAgenda( kBase ); + public InternalAgenda createAgenda(InternalWorkingMemory workingMemory) { + return workingMemory.getKnowledgeBase().getRuleBaseConfiguration().isParallelExecution() ? + new CompositeDefaultAgenda( workingMemory ) : + new DefaultAgenda( workingMemory ); } - } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/agenda/PartitionedDefaultAgenda.java b/drools-kiesession/src/main/java/org/drools/kiesession/agenda/PartitionedDefaultAgenda.java index cfc264f861b..93a58c79b33 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/agenda/PartitionedDefaultAgenda.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/agenda/PartitionedDefaultAgenda.java @@ -1,55 +1,51 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.agenda; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.InternalWorkingMemoryEntryPoint; -import org.drools.core.impl.RuleBase; -import org.drools.core.reteoo.ObjectTypeNode; +import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.PropagationContext; +import org.drools.core.reteoo.ObjectTypeNode; public class PartitionedDefaultAgenda extends DefaultAgenda { private final int partition; - PartitionedDefaultAgenda(RuleBase kBase, - boolean initMain, + PartitionedDefaultAgenda(InternalWorkingMemory workingMemory, ExecutionStateMachine executionStateMachine, int partition) { - super(kBase, initMain, executionStateMachine); + super(workingMemory, executionStateMachine); this.partition = partition; } /** * Do not use this constructor! It should be used just by deserialization. */ - public PartitionedDefaultAgenda() { - partition = 0; + @Override + protected void retractFactHandle(PropagationContext ectx, InternalFactHandle factHandle) { + ObjectTypeNode.retractLeftTuples(factHandle, ectx, workingMemory, partition ); + ObjectTypeNode.retractRightTuples(factHandle, ectx, workingMemory, partition ); } @Override - protected void doRetract( PropagationContext ectx ) { - InternalFactHandle factHandle = ectx.getFactHandle(); - ObjectTypeNode.retractLeftTuples( factHandle, ectx, workingMemory, partition ); - ObjectTypeNode.retractRightTuples( factHandle, ectx, workingMemory, partition ); - if ( isMainPartition() && factHandle.isPendingRemoveFromStore() ) { - String epId = factHandle.getEntryPointName(); - ( (InternalWorkingMemoryEntryPoint) workingMemory.getEntryPoint( epId ) ).removeFromObjectStore( factHandle ); - } + protected boolean isPendingRemoveFactHandleFromStore(InternalFactHandle factHandle) { + return isMainPartition() && super.isPendingRemoveFactHandleFromStore(factHandle); } private boolean isMainPartition() { diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ActivationLogEvent.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ActivationLogEvent.java index f1effec7e0c..ae18a7da6e1 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ActivationLogEvent.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ActivationLogEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.IOException; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ActivationLogEventFilter.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ActivationLogEventFilter.java index 7158c364b5d..7999e7f4577 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ActivationLogEventFilter.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ActivationLogEventFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; /** diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ILogEventFilter.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ILogEventFilter.java index ceff05cd285..14c0ad78bba 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ILogEventFilter.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ILogEventFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; /** diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/KnowledgeRuntimeLoggerProviderImpl.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/KnowledgeRuntimeLoggerProviderImpl.java index a1fb575a8c2..45df95d173e 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/KnowledgeRuntimeLoggerProviderImpl.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/KnowledgeRuntimeLoggerProviderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.audit; import org.drools.core.impl.AbstractRuntime; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/LogEvent.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/LogEvent.java index fc24fd85835..ea753f2059e 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/LogEvent.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/LogEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.IOException; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ObjectLogEvent.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ObjectLogEvent.java index 11b085c1e4d..ee21d53c8aa 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ObjectLogEvent.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ObjectLogEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.IOException; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleBaseLogEvent.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleBaseLogEvent.java index 86375351be3..6029becf13e 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleBaseLogEvent.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleBaseLogEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.IOException; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowGroupLogEvent.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowGroupLogEvent.java index 03da37b6c4f..544937dc353 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowGroupLogEvent.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowGroupLogEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.IOException; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowLogEvent.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowLogEvent.java index 9d875ac1f4d..30420598014 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowLogEvent.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowLogEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.IOException; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowNodeLogEvent.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowNodeLogEvent.java index 38303aaa910..dc3a257f662 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowNodeLogEvent.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowNodeLogEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.IOException; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowVariableLogEvent.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowVariableLogEvent.java index 17bdd03d897..7089da721a0 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowVariableLogEvent.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/RuleFlowVariableLogEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.IOException; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ThreadedWorkingMemoryFileLogger.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ThreadedWorkingMemoryFileLogger.java index 1e9a782cf21..77d85551f21 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/ThreadedWorkingMemoryFileLogger.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/ThreadedWorkingMemoryFileLogger.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.audit; import org.drools.core.WorkingMemory; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryConsoleLogger.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryConsoleLogger.java index 8f16b3c208c..cca1eadf7bb 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryConsoleLogger.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryConsoleLogger.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.audit; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryFileLogger.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryFileLogger.java index 5cb6ff84b4f..ed3bec9c4f4 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryFileLogger.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryFileLogger.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.FileNotFoundException; @@ -27,7 +29,7 @@ import java.util.List; import org.drools.core.WorkingMemory; -import org.drools.core.base.XMLSupport; +import org.drools.base.base.XMLSupport; import org.drools.util.IoUtils; import org.kie.api.event.KieRuntimeEventManager; import org.kie.api.logger.KieRuntimeLogger; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLog.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLog.java index e6c0a562d9e..c9d7566d354 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLog.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLog.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession.audit; import java.util.List; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLogEventFilter.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLogEventFilter.java index 2ed0710b159..8356122b8e8 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLogEventFilter.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLogEventFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; /** diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLogger.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLogger.java index f1f181b3651..608431be193 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLogger.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/WorkingMemoryLogger.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession.audit; import java.io.IOException; @@ -28,8 +30,8 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.RuleFlowGroup; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Declaration; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.runtime.process.InternalProcessRuntime; import org.drools.core.reteoo.Tuple; @@ -319,7 +321,7 @@ private String extractDeclarations(Match match) { String declaration = declarations.get(i); Declaration decl = declsMap.get(declaration); - InternalFactHandle handle = ( (Tuple) match ).get( decl ); + FactHandle handle = ( (Tuple) match ).get( decl ); if (!handle.isValid()) { continue; } @@ -341,12 +343,12 @@ private String extractDeclarations(Match match) { } private String extractFactHandleIds(InternalMatch internalMatch) { - InternalFactHandle activatingFact = internalMatch.getPropagationContext().getFactHandle(); + FactHandle activatingFact = internalMatch.getPropagationContext().getFactHandle(); StringBuilder sb = new StringBuilder(); if (activatingFact != null) { sb.append(activatingFact.getId()); } - InternalFactHandle[] factHandles = internalMatch.getTuple().toFactHandles(); + FactHandle[] factHandles = internalMatch.getTuple().toFactHandles(); for (int i = 0; i < factHandles.length; i++) { if (activatingFact != null) { if (activatingFact.getId() == factHandles[i].getId()) { diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/audit/package-info.java b/drools-kiesession/src/main/java/org/drools/kiesession/audit/package-info.java index 26430daa5a5..b41f7c547ee 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/audit/package-info.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/audit/package-info.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - /** * * This is a utility for providing audit trails/explanations of rule actions. diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/consequence/DefaultKnowledgeHelper.java b/drools-kiesession/src/main/java/org/drools/kiesession/consequence/DefaultKnowledgeHelper.java index 849f0dc5d2b..2b53bd0b948 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/consequence/DefaultKnowledgeHelper.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/consequence/DefaultKnowledgeHelper.java @@ -1,49 +1,43 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.consequence; -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.util.Collection; -import java.util.Collections; -import java.util.Map; - +import org.drools.base.beliefsystem.Mode; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.Declaration; import org.drools.core.RuleBaseConfiguration; import org.drools.core.WorkingMemory; -import org.drools.core.beliefsystem.Mode; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalRuleFlowGroup; import org.drools.core.common.InternalWorkingMemoryEntryPoint; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.core.process.AbstractProcessContext; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Declaration; -import org.drools.core.process.AbstractProcessContext; +import org.drools.core.reteoo.Tuple; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.reteoo.Tuple; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.kie.api.runtime.Channel; @@ -57,8 +51,16 @@ import org.kie.api.runtime.rule.FactHandle; import org.kie.api.runtime.rule.Match; -import static org.drools.core.reteoo.PropertySpecificUtil.allSetButTraitBitMask; -import static org.drools.core.reteoo.PropertySpecificUtil.onlyTraitBitSetMask; +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.util.Collection; +import java.util.Collections; +import java.util.Map; + +import static org.drools.base.reteoo.PropertySpecificUtil.allSetButTraitBitMask; +import static org.drools.base.reteoo.PropertySpecificUtil.onlyTraitBitSetMask; public class DefaultKnowledgeHelper implements KnowledgeHelper, Externalizable { @@ -70,6 +72,8 @@ public class DefaultKnowledgeHelper implements KnowledgeHelper, Externalizable { protected ReteEvaluator reteEvaluator; private StatefulKnowledgeSessionForRHS wrappedEvaluator; + private KnowledgeHelper tmsKnowledgeHelper; + public DefaultKnowledgeHelper() { } public DefaultKnowledgeHelper(ReteEvaluator reteEvaluator) { @@ -104,60 +108,70 @@ public void reset() { } public void blockMatch(Match act) { - TruthMaintenanceSystemFactory.throwExceptionForMissingTms(); + executeOnTMS().blockMatch(act); } public void unblockAllMatches(Match act) { - TruthMaintenanceSystemFactory.throwExceptionForMissingTms(); + executeOnTMS().unblockAllMatches(act); } public FactHandle insertAsync( final Object object ) { return toStatefulKnowledgeSession().insertAsync( object ); } - public InternalFactHandle insert(final Object object) { + public FactHandle insert(final Object object) { return insert( object, false ); } - public InternalFactHandle insert(final Object object, final boolean dynamic) { - return (InternalFactHandle) ((InternalWorkingMemoryEntryPoint) this.reteEvaluator.getDefaultEntryPoint()) + public FactHandle insert(final Object object, final boolean dynamic) { + return ((InternalWorkingMemoryEntryPoint) this.reteEvaluator.getDefaultEntryPoint()) .insert(object, dynamic, this.internalMatch.getRule(), this.internalMatch.getTuple().getTupleSink()); } @Override - public InternalFactHandle insertLogical(Object object, Mode belief) { + public FactHandle insertLogical(Object object, Mode belief) { return insertLogical( object, belief ); } @Override - public InternalFactHandle insertLogical(Object object, Mode... beliefs) { + public FactHandle insertLogical(Object object, Mode... beliefs) { return insertLogical( object, beliefs ); } @Override - public InternalFactHandle insertLogical(final Object object) { + public FactHandle insertLogical(final Object object) { return insertLogical( object, (Object) null ); } @Override - public InternalFactHandle insertLogical(Object object, Object value) { - TruthMaintenanceSystemFactory.throwExceptionForMissingTms(); - return null; + public FactHandle insertLogical(Object object, Object value) { + return executeOnTMS().insertLogical(object, value); } @Override - public InternalFactHandle insertLogical(EntryPoint ep, Object object) { - TruthMaintenanceSystemFactory.throwExceptionForMissingTms(); - return null; + public FactHandle insertLogical(EntryPoint ep, Object object) { + return executeOnTMS().insertLogical(ep, object); } - public InternalFactHandle bolster( final Object object ) { + public FactHandle bolster( final Object object ) { return bolster( object, null ); } - public InternalFactHandle bolster( final Object object, final Object value ) { - TruthMaintenanceSystemFactory.throwExceptionForMissingTms(); - return null; + public FactHandle bolster( final Object object, final Object value ) { + return executeOnTMS().bolster(object, value); + } + + private KnowledgeHelper executeOnTMS() { + if (!TruthMaintenanceSystemFactory.present()) { + TruthMaintenanceSystemFactory.throwExceptionForMissingTms(); + } + if (tmsKnowledgeHelper != null) { + return tmsKnowledgeHelper; + } + reteEvaluator.enableTMS(); + tmsKnowledgeHelper = reteEvaluator.createKnowledgeHelper(); + tmsKnowledgeHelper.setActivation(internalMatch); + return tmsKnowledgeHelper; } public void cancelMatch(Match act) { @@ -165,15 +179,15 @@ public void cancelMatch(Match act) { ((RuleTerminalNode)match.getTerminalNode()).cancelMatch( match, reteEvaluator); } - public InternalFactHandle getFactHandle(Object object) { - InternalFactHandle handle = getFactHandleFromWM( object ); + public FactHandle getFactHandle(Object object) { + FactHandle handle = getFactHandleFromWM( object ); if ( handle == null ) { if ( object instanceof CoreWrapper ) { handle = getFactHandleFromWM( ((CoreWrapper) object).getCore() ); } if ( handle == null && reteEvaluator.getKnowledgeBase().getRuleBaseConfiguration().getAssertBehaviour() == RuleBaseConfiguration.AssertBehaviour.EQUALITY ) { - InternalFactHandle modifiedFh = tuple.getFactHandle(); + FactHandle modifiedFh = tuple.getFactHandle(); while (modifiedFh == null || modifiedFh.getObject() != object) { tuple = tuple.getParent(); modifiedFh = tuple.getFactHandle(); @@ -187,8 +201,8 @@ public InternalFactHandle getFactHandle(Object object) { return handle; } - public InternalFactHandle getFactHandle(InternalFactHandle handle) { - InternalFactHandle handleFromWM = getFactHandleFromWM( handle.getObject() ); + public FactHandle getFactHandle(FactHandle handle) { + FactHandle handleFromWM = getFactHandleFromWM( handle.getObject() ); return handleFromWM != null ? handleFromWM : handle; } @@ -268,6 +282,11 @@ public Tuple getTuple() { return this.tuple; } + @Override + public Declaration[] getRequiredDeclarations() { + return ((RuleTerminalNode)this.tuple.getTupleSink()).getRequiredDeclarations(); + } + public WorkingMemory getWorkingMemory() { return toStatefulKnowledgeSession(); } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/consequence/StatefulKnowledgeSessionForRHS.java b/drools-kiesession/src/main/java/org/drools/kiesession/consequence/StatefulKnowledgeSessionForRHS.java index f95507d1461..4d6c832b9e1 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/consequence/StatefulKnowledgeSessionForRHS.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/consequence/StatefulKnowledgeSessionForRHS.java @@ -1,18 +1,33 @@ +/** + * 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. + */ package org.drools.kiesession.consequence; -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.util.Collection; -import java.util.Iterator; -import java.util.Map; -import java.util.concurrent.locks.Lock; - +import org.drools.base.RuleBase; +import org.drools.base.beliefsystem.Mode; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.accessor.GlobalResolver; import org.drools.core.RuleSessionConfiguration; import org.drools.core.SessionConfiguration; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.beliefsystem.Mode; import org.drools.core.common.ActivationsManager; import org.drools.core.common.EndOperationListener; import org.drools.core.common.EventSupport; @@ -26,22 +41,17 @@ import org.drools.core.common.ObjectStore; import org.drools.core.common.ObjectTypeConfigurationRegistry; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.event.AgendaEventSupport; import org.drools.core.event.RuleEventListenerSupport; import org.drools.core.event.RuleRuntimeEventSupport; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitableBean; import org.drools.core.phreak.PropagationEntry; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; +import org.drools.core.rule.accessor.FactHandleFactory; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.runtime.process.InternalProcessRuntime; -import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.rule.accessor.GlobalResolver; import org.drools.core.time.TimerService; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.kie.api.KieBase; @@ -71,6 +81,15 @@ import org.kie.internal.event.rule.RuleEventListener; import org.kie.internal.process.CorrelationKey; +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.util.Collection; +import java.util.Iterator; +import java.util.Map; +import java.util.concurrent.locks.Lock; + /** * Wrapper of ReteEvaluator so to intercept call from RHS internal Drools execution and proxy or delegate method call as appropriate. */ @@ -267,6 +286,16 @@ public void addEventListener(KieBaseEventListener listener) { delegate.addEventListener(listener); } + @Override + public void enableTMS() { + delegate.enableTMS(); + } + + @Override + public boolean isTMSEnabled() { + return delegate.isTMSEnabled(); + } + public FactHandle insert(Object object) { return delegate.insert(object); } @@ -577,6 +606,16 @@ public Collection getObjects(ObjectFilter filter) { return delegate.getObjects(filter); } + @Override + public long getCurrentTime() { + return this.delegate.getCurrentTime(); + } + + @Override + public RuleBase getRuleBase() { + return delegate.getRuleBase(); + } + public long getIdleTime() { return delegate.getIdleTime(); } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/AbstractNetworkNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/AbstractNetworkNodeVisitor.java index c5c9f91d006..8fc0974e5b4 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/AbstractNetworkNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/AbstractNetworkNodeVisitor.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; import java.util.Collection; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; public abstract class AbstractNetworkNodeVisitor implements diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/AccumulateNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/AccumulateNodeVisitor.java index 20139283e3d..a064377db23 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/AccumulateNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/AccumulateNodeVisitor.java @@ -1,24 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; -import java.util.Collection; - -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.reteoo.AccumulateNode; import org.drools.core.reteoo.AccumulateNode.AccumulateContext; import org.drools.core.reteoo.AccumulateNode.AccumulateMemory; @@ -26,6 +26,8 @@ import org.drools.core.reteoo.Tuple; import org.drools.core.util.FastIterator; +import java.util.Collection; + public class AccumulateNodeVisitor extends AbstractNetworkNodeVisitor { public static final AccumulateNodeVisitor INSTANCE = new AccumulateNodeVisitor(); @@ -41,8 +43,6 @@ protected void doVisit(NetworkNode node, DefaultNodeInfo ni = info.getNodeInfo( node ); final AccumulateMemory memory = (AccumulateMemory) info.getSession().getNodeMemory( an ); - ni.setMemoryEnabled( true ); - if( an.isObjectMemoryEnabled() ) { ni.setFactMemorySize( memory.getBetaMemory().getRightTupleMemory().size() ); } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/AlphaNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/AlphaNodeVisitor.java index 9be562af00c..98f014af90b 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/AlphaNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/AlphaNodeVisitor.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; -import java.util.Collection; +import org.drools.base.common.NetworkNode; -import org.drools.core.common.NetworkNode; +import java.util.Collection; public class AlphaNodeVisitor extends AbstractNetworkNodeVisitor { @@ -32,7 +34,6 @@ protected void doVisit(NetworkNode node, Collection nodeStack, StatefulKnowledgeSessionInfo info) { DefaultNodeInfo ni = info.getNodeInfo(node); - ni.setMemoryEnabled( false ); } } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/BetaNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/BetaNodeVisitor.java index bb5388dc0b3..077a861b916 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/BetaNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/BetaNodeVisitor.java @@ -1,27 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; -import java.util.Collection; - -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.BetaNode; +import java.util.Collection; + public class BetaNodeVisitor extends AbstractNetworkNodeVisitor { public static final BetaNodeVisitor INSTANCE = new BetaNodeVisitor(); @@ -37,8 +39,6 @@ protected void doVisit(NetworkNode node, DefaultNodeInfo ni = info.getNodeInfo(node); final BetaMemory memory = (BetaMemory) info.getSession().getNodeMemory( bn ); - ni.setMemoryEnabled( true ); - if( bn.isObjectMemoryEnabled() ) { ni.setFactMemorySize( memory.getRightTupleMemory().size() ); } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/DefaultNetworkNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/DefaultNetworkNodeVisitor.java index 67570200d6c..f81c4fe51dc 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/DefaultNetworkNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/DefaultNetworkNodeVisitor.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; import java.util.Collection; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; public class DefaultNetworkNodeVisitor extends AbstractNetworkNodeVisitor { diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/DefaultNodeInfo.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/DefaultNodeInfo.java index e9a962a0c32..4fec326e692 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/DefaultNodeInfo.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/DefaultNodeInfo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; import java.util.ArrayList; @@ -23,9 +25,9 @@ import java.util.List; import java.util.Set; -import org.drools.core.common.NetworkNode; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.common.NetworkNode; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.LeftTupleSource; @@ -40,7 +42,6 @@ public class DefaultNodeInfo private NetworkNode node; private Set rules; - private boolean memoryEnabled = false; private long tupleMemorySize = -1; private long factMemorySize = -1; private long createdFactHandles = -1; @@ -103,14 +104,6 @@ public NetworkNode getNode() { return node; } - public boolean isMemoryEnabled() { - return memoryEnabled; - } - - public void setMemoryEnabled(boolean memoryEnabled) { - this.memoryEnabled = memoryEnabled; - } - public Collection getSinkList() { if ( node instanceof Rete ) { Rete rete = (Rete) node; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/EvalConditionNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/EvalConditionNodeVisitor.java index 700160cc636..015c15bd06b 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/EvalConditionNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/EvalConditionNodeVisitor.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; -import java.util.Collection; +import org.drools.base.common.NetworkNode; -import org.drools.core.common.NetworkNode; +import java.util.Collection; public class EvalConditionNodeVisitor extends AbstractNetworkNodeVisitor { @@ -32,7 +34,6 @@ protected void doVisit(NetworkNode node, Collection nodeStack, StatefulKnowledgeSessionInfo info) { DefaultNodeInfo ni = info.getNodeInfo(node); - ni.setMemoryEnabled( false ); } } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/FromNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/FromNodeVisitor.java index b2b91d60b43..2b1e64effbe 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/FromNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/FromNodeVisitor.java @@ -1,28 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; -import java.util.Collection; - -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.reteoo.FromNode; import org.drools.core.reteoo.FromNode.FromMemory; import org.drools.core.reteoo.LeftTuple; +import java.util.Collection; + public class FromNodeVisitor extends AbstractNetworkNodeVisitor { public static final FromNodeVisitor INSTANCE = new FromNodeVisitor(); @@ -38,8 +40,6 @@ protected void doVisit(NetworkNode node, DefaultNodeInfo ni = info.getNodeInfo( node ); final FromMemory memory = (FromMemory) info.getSession().getNodeMemory( fn ); - ni.setMemoryEnabled( true ); - if( fn.isLeftTupleMemoryEnabled() ) { ni.setTupleMemorySize( memory.getBetaMemory().getLeftTupleMemory().size() ); diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/LeftInputAdapterNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/LeftInputAdapterNodeVisitor.java index 5b3ee7c2bac..8d0accda358 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/LeftInputAdapterNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/LeftInputAdapterNodeVisitor.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; -import java.util.Collection; - -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.reteoo.LeftInputAdapterNode; +import java.util.Collection; + public class LeftInputAdapterNodeVisitor extends AbstractNetworkNodeVisitor { public static final LeftInputAdapterNodeVisitor INSTANCE = new LeftInputAdapterNodeVisitor(); @@ -34,7 +36,6 @@ protected void doVisit(NetworkNode node, StatefulKnowledgeSessionInfo info) { LeftInputAdapterNode an = (LeftInputAdapterNode) node; DefaultNodeInfo ni = info.getNodeInfo(node); - ni.setMemoryEnabled( false ); } } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/LeftMemorySizeComparator.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/LeftMemorySizeComparator.java index 1d653e74308..25dd7c121ad 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/LeftMemorySizeComparator.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/LeftMemorySizeComparator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; import java.util.Comparator; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/NetworkNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/NetworkNodeVisitor.java index a726a32e866..ede9eb66447 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/NetworkNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/NetworkNodeVisitor.java @@ -1,24 +1,26 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; import java.util.Collection; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; public interface NetworkNodeVisitor { diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/NodeInfo.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/NodeInfo.java index 12fb1e7291f..648205df7b3 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/NodeInfo.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/NodeInfo.java @@ -1,78 +1,74 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; +import org.drools.base.common.NetworkNode; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.rule.impl.RuleImpl; + import java.util.Collection; import java.util.Set; -import org.drools.core.common.NetworkNode; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.definitions.rule.impl.RuleImpl; - public interface NodeInfo { /** * Returns this node ID * @return */ - public int getId(); + int getId(); /** * Returns the partition ID this node belongs to * @return */ - public RuleBasePartitionId getPartitionId(); + RuleBasePartitionId getPartitionId(); /** * Returns the set of rules this node belongs to * @return */ - public Set getRules(); + Set getRules(); /** * Returns the actual node * @return */ - public NetworkNode getNode(); + NetworkNode getNode(); - /** - * Returns true if memory is enabled for this node - * @return - */ - public boolean isMemoryEnabled(); - /** * Returns the number of tuples in the tuple memory * @return */ - public long getTupleMemorySize(); + long getTupleMemorySize(); /** * Returns the number of facts in the fact memory * @return */ - public long getFactMemorySize(); + long getFactMemorySize(); /** * Returns the number of infered fact handles created in this node * @return */ - public long getCreatedFactHandles(); + long getCreatedFactHandles(); - public Collection getSinkList(); + Collection getSinkList(); } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/ObjectTypeNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/ObjectTypeNodeVisitor.java index e2292608d56..f47c2d84d04 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/ObjectTypeNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/ObjectTypeNodeVisitor.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; -import java.util.Collection; - -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.reteoo.ObjectTypeNode; +import java.util.Collection; + public class ObjectTypeNodeVisitor extends AbstractNetworkNodeVisitor { public static final ObjectTypeNodeVisitor INSTANCE = new ObjectTypeNodeVisitor(); @@ -34,7 +36,6 @@ protected void doVisit(NetworkNode node, StatefulKnowledgeSessionInfo info) { ObjectTypeNode otn = (ObjectTypeNode) node; DefaultNodeInfo ni = info.getNodeInfo(node); - ni.setMemoryEnabled( otn.isObjectMemoryEnabled() ); } } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/QueryTerminalNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/QueryTerminalNodeVisitor.java index 0c4eb6483cb..601f0f2ea0a 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/QueryTerminalNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/QueryTerminalNodeVisitor.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; import java.util.Collection; -import org.drools.core.common.NetworkNode; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.common.NetworkNode; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.QueryTerminalNode; public class QueryTerminalNodeVisitor extends AbstractNetworkNodeVisitor { diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/RightInputAdapterNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/RightInputAdapterNodeVisitor.java index 8ac614fccee..7bcd7ac9027 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/RightInputAdapterNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/RightInputAdapterNodeVisitor.java @@ -1,31 +1,33 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; -import java.util.Collection; - +import org.drools.base.common.NetworkNode; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.Memory; -import org.drools.core.common.NetworkNode; import org.drools.core.reteoo.AccumulateNode.AccumulateMemory; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.BetaNode; -import org.drools.core.reteoo.NodeTypeEnums; import org.drools.core.reteoo.RightInputAdapterNode; +import java.util.Collection; + public class RightInputAdapterNodeVisitor extends AbstractNetworkNodeVisitor { public static final RightInputAdapterNodeVisitor INSTANCE = new RightInputAdapterNodeVisitor(); @@ -51,7 +53,6 @@ protected void doVisit(NetworkNode node, bm = (BetaMemory) childMemory; } - ni.setMemoryEnabled( true ); ni.setTupleMemorySize( bm.getRightTupleMemory().size() ); ni.setCreatedFactHandles( bm.getRightTupleMemory().size() ); } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/RightMemorySizeComparator.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/RightMemorySizeComparator.java index 79333a0a061..4b68dd2b985 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/RightMemorySizeComparator.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/RightMemorySizeComparator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; import java.util.Comparator; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/RuleTerminalNodeVisitor.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/RuleTerminalNodeVisitor.java index 288538c3575..b8357cc40db 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/RuleTerminalNodeVisitor.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/RuleTerminalNodeVisitor.java @@ -1,27 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; -import java.util.Collection; - -import org.drools.core.common.NetworkNode; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.common.NetworkNode; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.RuleTerminalNode; +import java.util.Collection; + public class RuleTerminalNodeVisitor extends AbstractNetworkNodeVisitor { public static final RuleTerminalNodeVisitor INSTANCE = new RuleTerminalNodeVisitor(); @@ -39,10 +41,6 @@ protected void doVisit(NetworkNode node, for( NetworkNode snode : nodeStack ) { info.assign( snode, rule ); } - - final DefaultNodeInfo ni = info.getNodeInfo(node); - ni.setMemoryEnabled( false ); - } } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/SessionInspector.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/SessionInspector.java index 6c4cbbbb396..f97713c16f4 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/SessionInspector.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/SessionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; import java.util.ArrayDeque; @@ -23,12 +25,12 @@ import java.util.Set; import org.drools.core.WorkingMemory; -import org.drools.core.common.NetworkNode; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.common.NetworkNode; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectSink; import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.ObjectTypeNode; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/debug/StatefulKnowledgeSessionInfo.java b/drools-kiesession/src/main/java/org/drools/kiesession/debug/StatefulKnowledgeSessionInfo.java index 27bbf7e88c4..5fc977a6714 100755 --- a/drools-kiesession/src/main/java/org/drools/kiesession/debug/StatefulKnowledgeSessionInfo.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/debug/StatefulKnowledgeSessionInfo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.debug; import java.text.SimpleDateFormat; @@ -24,9 +26,9 @@ import java.util.Map; import java.util.TreeMap; -import org.drools.core.common.NetworkNode; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.common.NetworkNode; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; public class StatefulKnowledgeSessionInfo { diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/DisconnectedWorkingMemoryEntryPoint.java b/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/DisconnectedWorkingMemoryEntryPoint.java index f8e15a07d46..8dbb7ea3975 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/DisconnectedWorkingMemoryEntryPoint.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/DisconnectedWorkingMemoryEntryPoint.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession.entrypoints; import java.io.Serializable; @@ -22,14 +25,14 @@ import org.drools.core.common.ObjectStore; import org.drools.core.common.ObjectTypeConfigurationRegistry; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.kie.api.runtime.ObjectFilter; import org.kie.api.runtime.rule.FactHandle; @@ -126,7 +129,7 @@ public ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry() { } @Override - public RuleBase getKnowledgeBase() { + public InternalRuleBase getKnowledgeBase() { return null; } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPoint.java b/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPoint.java index 5a3a1f54300..1c7acdaab1f 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPoint.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPoint.java @@ -1,40 +1,36 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.entrypoints; -import java.beans.PropertyChangeEvent; -import java.beans.PropertyChangeListener; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Set; -import java.util.concurrent.locks.ReentrantLock; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.facttemplates.Fact; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.TypeDeclaration; import org.drools.core.RuleBaseConfiguration; import org.drools.core.base.TraitHelper; import org.drools.core.common.ClassAwareObjectStore; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.EqualityKey; -import org.drools.core.common.EventFactHandle; import org.drools.core.common.IdentityObjectStore; import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.InternalWorkingMemoryEntryPoint; import org.drools.core.common.ObjectStore; import org.drools.core.common.ObjectStoreWrapper; @@ -43,28 +39,36 @@ import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.facttemplates.Fact; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.TypeDeclaration; import org.drools.core.rule.accessor.FactHandleFactory; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.BitMask; import org.kie.api.conf.KieBaseMutabilityOption; import org.kie.api.runtime.rule.FactHandle; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyChangeListener; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Set; +import java.util.concurrent.locks.ReentrantLock; + import static java.util.Arrays.asList; -import static org.drools.core.reteoo.PropertySpecificUtil.allSetBitMask; -import static org.drools.core.reteoo.PropertySpecificUtil.calculatePositiveMask; +import static org.drools.base.reteoo.PropertySpecificUtil.allSetBitMask; +import static org.drools.base.reteoo.PropertySpecificUtil.calculatePositiveMask; public class NamedEntryPoint implements InternalWorkingMemoryEntryPoint, PropertyChangeListener { @@ -77,7 +81,7 @@ public class NamedEntryPoint implements InternalWorkingMemoryEntryPoint, Propert private ObjectStore objectStore; - protected transient RuleBase ruleBase; + protected transient InternalRuleBase ruleBase; protected EntryPointId entryPoint; protected EntryPointNode entryPointNode; @@ -292,7 +296,7 @@ public void update(FactHandle handle, Object object, String... modifiedPropertie update( (InternalFactHandle) handle, object, mask, object.getClass(), null); } - public static BitMask calculateUpdateBitMask(RuleBase ruleBase, Object object, String[] modifiedProperties) { + public static BitMask calculateUpdateBitMask(InternalRuleBase ruleBase, Object object, String[] modifiedProperties) { String modifiedTypeName; List accessibleProperties; boolean isPropertyReactive; @@ -353,7 +357,7 @@ public InternalFactHandle update(InternalFactHandle handle, if (handle.isExpired()) { // let an expired event potentially (re)enters the objectStore, but make sure that it will be clear at the end of the inference cycle - ((EventFactHandle)handle).setPendingRemoveFromStore(true); + ((DefaultEventHandle)handle).setPendingRemoveFromStore(true); } final ObjectTypeConf typeConf = changedObject ? @@ -477,7 +481,7 @@ private void deleteStated( RuleImpl rule, TerminalNode terminalNode, InternalFac removePropertyChangeListener( handle, true ); } - PropagationContext propagationContext = delete( handle, object, typeConf, rule, null, terminalNode ); + PropagationContext propagationContext = delete( handle, object, typeConf, rule, terminalNode ); deleteFromTMS( handle, key, typeConf, propagationContext ); @@ -500,16 +504,26 @@ private void deleteLogical(EqualityKey key) { } } - public PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, InternalMatch internalMatch) { - return delete(handle, object, typeConf, rule, internalMatch, internalMatch == null ? null : internalMatch.getTuple().getTupleSink()); + @Override + public PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, TerminalNode terminalNode) { + return delete(handle, object, typeConf, rule, terminalNode, false); } - public PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, InternalMatch internalMatch, TerminalNode terminalNode) { + @Override + public PropagationContext immediateDelete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, TerminalNode terminalNode) { + return delete(handle, object, typeConf, rule, terminalNode, true); + } + + private PropagationContext delete(InternalFactHandle handle, Object object, ObjectTypeConf typeConf, RuleImpl rule, TerminalNode terminalNode, boolean immediate) { final PropagationContext propagationContext = pctxFactory.createPropagationContext( this.reteEvaluator.getNextPropagationIdCounter(), PropagationContext.Type.DELETION, rule, terminalNode, handle, this.entryPoint ); - this.entryPointNode.retractObject( handle, propagationContext, typeConf, this.reteEvaluator ); + if (immediate) { + this.entryPointNode.immediateDeleteObject( handle, propagationContext, typeConf, this.reteEvaluator ); + } else { + this.entryPointNode.retractObject( handle, propagationContext, typeConf, this.reteEvaluator ); + } afterRetract(handle, rule, terminalNode); @@ -597,7 +611,7 @@ public ObjectTypeConfigurationRegistry getObjectTypeConfigurationRegistry() { return entryPointNode.getTypeConfReg(); } - public RuleBase getKnowledgeBase() { + public InternalRuleBase getKnowledgeBase() { return ruleBase; } @@ -678,7 +692,7 @@ public void dispose() { // even if they were also asserted into higher level OTNs as well ObjectTypeNode otn = conf.getConcreteObjectTypeNode(); if (otn != null) { - Iterator it = this.reteEvaluator.getNodeMemory(otn).iterator(); + Iterator it = otn.getFactHandlesIterator((InternalWorkingMemory) reteEvaluator); while (it.hasNext()) { removePropertyChangeListener(it.next(), false); } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPointFactory.java b/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPointFactory.java index 164ab0adb1a..9adaa48006d 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPointFactory.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPointFactory.java @@ -1,25 +1,27 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.entrypoints; import org.drools.core.common.EntryPointFactory; import org.drools.core.common.ReteEvaluator; import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; public class NamedEntryPointFactory implements EntryPointFactory { diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPointsManager.java b/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPointsManager.java index 1b88bf769e0..994e3dafe8f 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPointsManager.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/entrypoints/NamedEntryPointsManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.entrypoints; import java.util.Collection; @@ -24,15 +26,15 @@ import org.drools.core.common.InternalWorkingMemoryEntryPoint; import org.drools.core.common.ReteEvaluator; import org.drools.core.EntryPointsManager; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.RuntimeComponentFactory; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; public class NamedEntryPointsManager implements EntryPointsManager { private final ReteEvaluator reteEvaluator; - private final RuleBase ruleBase; + private final InternalRuleBase ruleBase; InternalWorkingMemoryEntryPoint defaultEntryPoint; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/factory/KnowledgeHelperFactory.java b/drools-kiesession/src/main/java/org/drools/kiesession/factory/KnowledgeHelperFactory.java index 24a66068207..13860f21401 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/factory/KnowledgeHelperFactory.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/factory/KnowledgeHelperFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.factory; import org.drools.core.common.ReteEvaluator; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/factory/PhreakWorkingMemoryFactory.java b/drools-kiesession/src/main/java/org/drools/kiesession/factory/PhreakWorkingMemoryFactory.java index 4c715541000..202931daff8 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/factory/PhreakWorkingMemoryFactory.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/factory/PhreakWorkingMemoryFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession.factory; import java.io.Serializable; @@ -37,7 +40,7 @@ public InternalWorkingMemory createWorkingMemory(long id, InternalKnowledgeBase return new StatefulKnowledgeSessionImpl( id, kBase, true, config, environment); } - public InternalWorkingMemory createWorkingMemory(long id, InternalKnowledgeBase kBase, FactHandleFactory handleFactory, long propagationContext, SessionConfiguration config, InternalAgenda agenda, Environment environment) { - return new StatefulKnowledgeSessionImpl(id, kBase, handleFactory, propagationContext, config, agenda, environment); + public InternalWorkingMemory createWorkingMemory(long id, InternalKnowledgeBase kBase, FactHandleFactory handleFactory, long propagationContext, SessionConfiguration config, Environment environment) { + return new StatefulKnowledgeSessionImpl(id, kBase, handleFactory, propagationContext, config, environment); } } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/factory/RuntimeComponentFactoryImpl.java b/drools-kiesession/src/main/java/org/drools/kiesession/factory/RuntimeComponentFactoryImpl.java index 653faf9e152..c428b85d8a5 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/factory/RuntimeComponentFactoryImpl.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/factory/RuntimeComponentFactoryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.factory; import java.io.Serializable; @@ -28,13 +30,12 @@ import org.drools.core.common.PriorityQueueAgendaGroupFactory; import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.factmodel.traits.TraitFactory; -import org.drools.core.impl.RuleBase; +import org.drools.base.factmodel.traits.TraitFactory; import org.drools.core.management.DroolsManagementAgent; import org.drools.core.reteoo.ReteooFactHandleFactory; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.rule.accessor.GlobalResolver; +import org.drools.base.rule.accessor.GlobalResolver; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.core.time.TimerService; import org.drools.kiesession.agenda.DefaultAgendaFactory; @@ -45,6 +46,7 @@ import org.drools.kiesession.session.KieSessionsPoolImpl; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.drools.kiesession.session.StatelessKnowledgeSessionImpl; +import org.drools.base.RuleBase; import org.kie.api.runtime.Environment; import org.kie.api.runtime.EnvironmentName; import org.kie.api.runtime.Globals; @@ -120,7 +122,7 @@ private StatefulKnowledgeSessionImpl internalInitSession( InternalKnowledgeBase } public StatelessKieSession createStatelessSession(RuleBase ruleBase, KieSessionConfiguration conf) { - return new StatelessKnowledgeSessionImpl( (InternalKnowledgeBase) ruleBase, conf ); + return new StatelessKnowledgeSessionImpl((InternalKnowledgeBase) ruleBase, conf ); } public KieSessionsPool createSessionsPool(RuleBase ruleBase, int initialSize) { diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/factory/WorkingMemoryFactory.java b/drools-kiesession/src/main/java/org/drools/kiesession/factory/WorkingMemoryFactory.java index 26f2c510fb3..dca4ffe0413 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/factory/WorkingMemoryFactory.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/factory/WorkingMemoryFactory.java @@ -1,22 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession.factory; import org.drools.core.SessionConfiguration; -import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.rule.accessor.FactHandleFactory; import org.drools.kiesession.rulebase.InternalKnowledgeBase; @@ -33,7 +35,6 @@ InternalWorkingMemory createWorkingMemory(final long id, final FactHandleFactory handleFactory, final long propagationContext, final SessionConfiguration config, - final InternalAgenda agenda, final Environment environment); } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/management/KieSessionMonitoringImpl.java b/drools-kiesession/src/main/java/org/drools/kiesession/management/KieSessionMonitoringImpl.java index caa6b3e792c..3a747bdef5b 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/management/KieSessionMonitoringImpl.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/management/KieSessionMonitoringImpl.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.kiesession.management; import javax.management.ObjectName; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/management/StatelessKieSessionMonitoringImpl.java b/drools-kiesession/src/main/java/org/drools/kiesession/management/StatelessKieSessionMonitoringImpl.java index c24ad7b32c7..fbdf2ba1d89 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/management/StatelessKieSessionMonitoringImpl.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/management/StatelessKieSessionMonitoringImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.management; import java.util.Date; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/InternalKnowledgeBase.java b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/InternalKnowledgeBase.java index 97575a2762b..93c6d5bd99b 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/InternalKnowledgeBase.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/InternalKnowledgeBase.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession.rulebase; import java.util.Collection; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.impl.InternalKieContainer; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.kie.api.KieBase; import org.kie.api.runtime.Environment; import org.kie.api.runtime.KieSession; @@ -27,7 +30,7 @@ import org.kie.api.runtime.KieSessionsPool; import org.kie.api.runtime.StatelessKieSession; -public interface InternalKnowledgeBase extends RuleBase, KieBase { +public interface InternalKnowledgeBase extends InternalRuleBase, KieBase { KieSession newKieSession(KieSessionConfiguration conf, Environment environment ); KieSession newKieSession(); diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KieBaseEventSupport.java b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KieBaseEventSupport.java index 21cee20c1b4..a1396ab97be 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KieBaseEventSupport.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KieBaseEventSupport.java @@ -1,23 +1,25 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.rulebase; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.event.AbstractEventSupport; import org.drools.core.event.knowlegebase.impl.AfterFunctionRemovedEventImpl; import org.drools.core.event.knowlegebase.impl.AfterKiePackageAddedEventImpl; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KnowledgeBaseFactory.java b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KnowledgeBaseFactory.java index cc9ea189f45..e46556d34d8 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KnowledgeBaseFactory.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/KnowledgeBaseFactory.java @@ -1,8 +1,25 @@ +/** + * 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. + */ package org.drools.kiesession.rulebase; -import org.drools.core.RuleBaseConfiguration; import org.drools.core.impl.KnowledgeBaseImpl; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.kie.api.KieBaseConfiguration; import org.kie.internal.conf.CompositeBaseConfiguration; @@ -17,10 +34,10 @@ public static InternalKnowledgeBase newKnowledgeBase(KieBaseConfiguration kbaseC } public static InternalKnowledgeBase newKnowledgeBase(String kbaseId, KieBaseConfiguration conf) { - return newKnowledgeBase(new KnowledgeBaseImpl( kbaseId, (CompositeBaseConfiguration) conf)); + return newKnowledgeBase(new KnowledgeBaseImpl(kbaseId, (CompositeBaseConfiguration) conf)); } - public static InternalKnowledgeBase newKnowledgeBase(RuleBase delegate) { + public static InternalKnowledgeBase newKnowledgeBase(InternalRuleBase delegate) { return new SessionsAwareKnowledgeBase(delegate); } } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/SessionsAwareKnowledgeBase.java b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/SessionsAwareKnowledgeBase.java index f005b2e24a0..ff12cfc7369 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/SessionsAwareKnowledgeBase.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/rulebase/SessionsAwareKnowledgeBase.java @@ -1,51 +1,40 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.rulebase; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.List; -import java.util.Map; -import java.util.Queue; -import java.util.Set; -import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.Future; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicInteger; - +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.InvalidPatternException; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.ruleunit.RuleUnitDescriptionRegistry; import org.drools.core.KieBaseConfigurationImpl; import org.drools.core.RuleBaseConfiguration; import org.drools.core.SessionConfiguration; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.impl.EnvironmentFactory; import org.drools.core.impl.InternalKieContainer; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.impl.KieBaseUpdate; import org.drools.core.impl.KnowledgeBaseImpl; -import org.drools.core.impl.RuleBase; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.management.DroolsManagementAgent; import org.drools.core.reteoo.AsyncReceiveNode; @@ -57,10 +46,7 @@ import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.reteoo.SegmentMemory; import org.drools.core.reteoo.SegmentMemory.SegmentPrototype; -import org.drools.core.rule.InvalidPatternException; -import org.drools.core.rule.TypeDeclaration; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.ruleunit.RuleUnitDescriptionRegistry; import org.kie.api.KieBaseConfiguration; import org.kie.api.builder.ReleaseId; import org.kie.api.definition.KiePackage; @@ -76,6 +62,22 @@ import org.kie.api.runtime.KieSessionsPool; import org.kie.api.runtime.StatelessKieSession; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; +import java.util.Map; +import java.util.Queue; +import java.util.Set; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.Future; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; + public class SessionsAwareKnowledgeBase implements InternalKnowledgeBase { private final KnowledgeBaseImpl delegate; @@ -106,7 +108,7 @@ public SessionsAwareKnowledgeBase(KieBaseConfiguration kbaseConfiguration) { this(RuleBaseFactory.newRuleBase(kbaseConfiguration)); } - public SessionsAwareKnowledgeBase(RuleBase delegate) { + public SessionsAwareKnowledgeBase(InternalRuleBase delegate) { this.delegate = (KnowledgeBaseImpl) delegate; if (this.delegate.getRuleBaseConfiguration().getSessionPoolSize() > 0) { @@ -761,6 +763,16 @@ public RuleBasePartitionId createNewPartitionId() { return delegate.createNewPartitionId(); } + @Override + public boolean isPartitioned() { + return delegate.isPartitioned(); + } + + @Override + public int getParallelEvaluationSlotsCount() { + return delegate.getParallelEvaluationSlotsCount(); + } + @Override public FactType getFactType(String packageName, String typeName) { return delegate.getFactType(packageName, typeName); diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/session/AbstractKieSessionsPool.java b/drools-kiesession/src/main/java/org/drools/kiesession/session/AbstractKieSessionsPool.java index e010e46f92d..f519e8ccf4c 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/session/AbstractKieSessionsPool.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/session/AbstractKieSessionsPool.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.session; import java.util.Map; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/session/KieSessionsPoolImpl.java b/drools-kiesession/src/main/java/org/drools/kiesession/session/KieSessionsPoolImpl.java index 570eff89634..042554ff4f6 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/session/KieSessionsPoolImpl.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/session/KieSessionsPoolImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.session; import org.drools.core.SessionConfiguration; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/session/ProcessRuntimeFactory.java b/drools-kiesession/src/main/java/org/drools/kiesession/session/ProcessRuntimeFactory.java index 9c9f713796d..25d4006d50a 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/session/ProcessRuntimeFactory.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/session/ProcessRuntimeFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession.session; import org.drools.core.runtime.process.InternalProcessRuntime; diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/session/StatefulKnowledgeSessionImpl.java b/drools-kiesession/src/main/java/org/drools/kiesession/session/StatefulKnowledgeSessionImpl.java index cc6763c0c56..01cc6574fad 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/session/StatefulKnowledgeSessionImpl.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/session/StatefulKnowledgeSessionImpl.java @@ -1,42 +1,31 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.session; -import java.io.ByteArrayOutputStream; -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.atomic.AtomicLong; -import java.util.concurrent.locks.Lock; -import java.util.concurrent.locks.ReentrantLock; -import java.util.function.Consumer; - +import org.drools.base.RuleBase; +import org.drools.base.beliefsystem.Mode; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.accessor.GlobalResolver; import org.drools.core.FlowSessionConfiguration; import org.drools.core.QueryResultsImpl; import org.drools.core.RuleBaseConfiguration; @@ -44,12 +33,11 @@ import org.drools.core.SessionConfiguration; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.base.CalendarsImpl; -import org.drools.core.base.DroolsQuery; +import org.drools.core.base.DroolsQueryImpl; import org.drools.core.base.InternalViewChangedEventListener; import org.drools.core.base.NonCloningQueryViewListener; import org.drools.core.base.QueryRowWithSubruleIndex; import org.drools.core.base.StandardQueryViewChangedEventListener; -import org.drools.core.beliefsystem.Mode; import org.drools.core.common.ActivationsManager; import org.drools.core.common.ConcurrentNodeMemories; import org.drools.core.common.EndOperationListener; @@ -67,12 +55,9 @@ import org.drools.core.common.PropagationContext; import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.event.AgendaEventSupport; import org.drools.core.event.RuleEventListenerSupport; import org.drools.core.event.RuleRuntimeEventSupport; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitableBean; import org.drools.core.impl.AbstractRuntime; import org.drools.core.impl.EnvironmentFactory; import org.drools.core.management.DroolsManagementAgent; @@ -89,16 +74,13 @@ import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.reteoo.SegmentMemory; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EntryPointId; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.rule.accessor.GlobalResolver; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.runtime.process.InternalProcessRuntime; import org.drools.core.runtime.rule.impl.LiveQueryImpl; import org.drools.core.runtime.rule.impl.OpenQueryViewChangedEventListenerAdapter; import org.drools.core.time.TimerService; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.kiesession.entrypoints.NamedEntryPointsManager; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.kie.api.KieBase; @@ -138,9 +120,30 @@ import org.kie.internal.process.CorrelationKey; import org.kie.internal.runtime.StatefulKnowledgeSession; +import java.io.ByteArrayOutputStream; +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.AtomicLong; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; +import java.util.function.Consumer; + import static java.util.stream.Collectors.toList; -import static org.drools.core.base.ClassObjectType.InitialFact_ObjectType; -import static org.drools.core.reteoo.PropertySpecificUtil.allSetButTraitBitMask; +import static org.drools.base.base.ClassObjectType.InitialFact_ObjectType; +import static org.drools.base.reteoo.PropertySpecificUtil.allSetButTraitBitMask; import static org.drools.util.ClassUtils.rawType; public class StatefulKnowledgeSessionImpl extends AbstractRuntime @@ -242,6 +245,8 @@ public class StatefulKnowledgeSessionImpl extends AbstractRuntime private Consumer workingMemoryActionListener; + private boolean tmsEnabled; + // ------------------------------------------------------------ // Constructors // ------------------------------------------------------------ @@ -274,8 +279,7 @@ public StatefulKnowledgeSessionImpl(final long id, environment, new RuleRuntimeEventSupport(), new AgendaEventSupport(), - new RuleEventListenerSupport(), - null); + new RuleEventListenerSupport()); } public StatefulKnowledgeSessionImpl(final long id, @@ -283,7 +287,6 @@ public StatefulKnowledgeSessionImpl(final long id, final FactHandleFactory handleFactory, final long propagationContext, final SessionConfiguration config, - final InternalAgenda agenda, final Environment environment) { this(id, kBase, @@ -294,8 +297,7 @@ public StatefulKnowledgeSessionImpl(final long id, environment, new RuleRuntimeEventSupport(), new AgendaEventSupport(), - new RuleEventListenerSupport(), - agenda); + new RuleEventListenerSupport()); } @@ -308,8 +310,7 @@ private StatefulKnowledgeSessionImpl(final long id, final Environment environment, final RuleRuntimeEventSupport workingMemoryEventSupport, final AgendaEventSupport agendaEventSupport, - final RuleEventListenerSupport ruleEventListenerSupport, - final InternalAgenda agenda) { + final RuleEventListenerSupport ruleEventListenerSupport) { this.id = id; this.kBase = kBase; this.handleFactory = handleFactory; @@ -335,8 +336,7 @@ private StatefulKnowledgeSessionImpl(final long id, RuleBaseConfiguration conf = kBase.getRuleBaseConfiguration(); this.pctxFactory = RuntimeComponentFactory.get().getPropagationContextFactory(); - this.agenda = agenda != null ? agenda : RuntimeComponentFactory.get().getAgendaFactory( config ).createAgenda(kBase); - this.agenda.setWorkingMemory(this); + this.agenda = RuntimeComponentFactory.get().getAgendaFactory( config ).createAgenda(this); this.entryPointsManager = (NamedEntryPointsManager) RuntimeComponentFactory.get().getEntryPointFactory().createEntryPointsManager(this); @@ -632,10 +632,10 @@ protected QueryResultsImpl internalGetQueryResult(boolean calledFromRHS, String agenda.executeFlush(); } - DroolsQuery queryObject = new DroolsQuery( queryName, - arguments, - getQueryListenerInstance(), - false ); + DroolsQueryImpl queryObject = new DroolsQueryImpl(queryName, + arguments, + getQueryListenerInstance(), + false ); InternalFactHandle handle = this.handleFactory.newFactHandle( queryObject, null, @@ -688,10 +688,10 @@ public LiveQuery openLiveQuery(final String query, this.kBase.executeQueuedActions(); agenda.executeFlush(); - DroolsQuery queryObject = new DroolsQuery( query, - arguments, - new OpenQueryViewChangedEventListenerAdapter( listener ), - true); + DroolsQueryImpl queryObject = new DroolsQueryImpl(query, + arguments, + new OpenQueryViewChangedEventListenerAdapter( listener ), + true); InternalFactHandle handle = this.handleFactory.newFactHandle(queryObject, null, this, @@ -709,7 +709,7 @@ public LiveQuery openLiveQuery(final String query, } } - private QueryTerminalNode[] evalQuery(final String queryName, final DroolsQuery queryObject, final InternalFactHandle handle, final PropagationContext pCtx, final boolean isCalledFromRHS) { + private QueryTerminalNode[] evalQuery(final String queryName, final DroolsQueryImpl queryObject, final InternalFactHandle handle, final PropagationContext pCtx, final boolean isCalledFromRHS) { PropagationEntry.ExecuteQuery executeQuery = new PropagationEntry.ExecuteQuery( queryName, queryObject, handle, pCtx, isCalledFromRHS); addPropagation( executeQuery ); return executeQuery.getResult(); @@ -737,7 +737,7 @@ private ExecuteCloseLiveQuery( InternalFactHandle factHandle ) { @Override public void internalExecute(ReteEvaluator reteEvaluator ) { - LeftInputAdapterNode lian = factHandle.getFirstLeftTuple().getTupleSource(); + LeftInputAdapterNode lian = (LeftInputAdapterNode) factHandle.getFirstLeftTuple().getTupleSource(); LeftInputAdapterNode.LiaNodeMemory lmem = getNodeMemory(lian); SegmentMemory lsmem = lmem.getSegmentMemory(); @@ -1203,6 +1203,17 @@ public FactHandle insertAsync(final Object object) { return entryPointsManager.getDefaultEntryPoint().insertAsync( object ); } + @Override + public void enableTMS() { + tmsEnabled = true; + agenda.resetKnowledgeHelper(); + } + + @Override + public boolean isTMSEnabled() { + return tmsEnabled; + } + /** * @see org.drools.core.WorkingMemory */ @@ -1540,6 +1551,16 @@ public void endOperation(InternalOperationType operationType) { } } + @Override + public long getCurrentTime() { + return this.getTimerService().getCurrentTime(); + } + + @Override + public RuleBase getRuleBase() { + return kBase; + } + /** * Returns the number of time units (usually ms) that the engine is idle * according to the session clock or -1 if it is not idle. diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/session/StatefulSessionPool.java b/drools-kiesession/src/main/java/org/drools/kiesession/session/StatefulSessionPool.java index 32982ae6ecc..8b5b87c8f7f 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/session/StatefulSessionPool.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/session/StatefulSessionPool.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.session; import java.util.function.Supplier; @@ -26,7 +28,7 @@ public class StatefulSessionPool { private final InternalKnowledgeBase kbase; private final ScalablePool pool; - public StatefulSessionPool( InternalKnowledgeBase kbase, int initialSize, Supplier supplier ) { + public StatefulSessionPool(InternalKnowledgeBase kbase, int initialSize, Supplier supplier) { this.kbase = kbase; this.pool = new ScalablePool<>(initialSize, supplier, s -> s.reset(), s -> s.fromPool(null).dispose()); } diff --git a/drools-kiesession/src/main/java/org/drools/kiesession/session/StatelessKnowledgeSessionImpl.java b/drools-kiesession/src/main/java/org/drools/kiesession/session/StatelessKnowledgeSessionImpl.java index 6feff178448..7ed4aaab000 100644 --- a/drools-kiesession/src/main/java/org/drools/kiesession/session/StatelessKnowledgeSessionImpl.java +++ b/drools-kiesession/src/main/java/org/drools/kiesession/session/StatelessKnowledgeSessionImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession.session; import java.util.ArrayList; diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/AddRemoveTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/AddRemoveTest.java index e85ec049fe9..c07a6b9a9a4 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/AddRemoveTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/AddRemoveTest.java @@ -1,24 +1,26 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession; import java.util.Collections; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.MockObjectSink; diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/CrossProductTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/CrossProductTest.java index b31335d5528..e36af3b1881 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/CrossProductTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/CrossProductTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession; import java.io.IOException; @@ -22,16 +24,16 @@ import java.util.ArrayList; import java.util.List; -import org.drools.core.base.ClassObjectType; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.junit.Before; @@ -67,12 +69,12 @@ public void setUp() throws Exception { this.values = new ArrayList(); - rule.setConsequence( new Consequence() { + rule.setConsequence( new Consequence() { private static final long serialVersionUID = 510l; public void evaluate(final KnowledgeHelper knowledgeHelper, - final ReteEvaluator reteEvaluator) throws Exception { + final ValueResolver valueResolver) throws Exception { final String s1 = (String) knowledgeHelper.get( s1Declaration ); final String s2 = (String) knowledgeHelper.get( s2Declaration ); CrossProductTest.this.values.add( new String[]{s1, s2} ); diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/RuleBaseConfigurationTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/InternalRuleBaseConfigurationTest.java similarity index 81% rename from drools-kiesession/src/test/java/org/drools/kiesession/RuleBaseConfigurationTest.java rename to drools-kiesession/src/test/java/org/drools/kiesession/InternalRuleBaseConfigurationTest.java index 0297f315e88..b984e51f806 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/RuleBaseConfigurationTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/InternalRuleBaseConfigurationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession; import java.util.Properties; @@ -29,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat; -public class RuleBaseConfigurationTest { +public class InternalRuleBaseConfigurationTest { public RuleBaseConfiguration getRuleBaseConfiguration(Properties props) { RuleBaseConfiguration brconf = new RuleBaseConfiguration(new CompositeConfiguration<>(ChainedProperties.getChainedProperties(null).addProperties(props), null)); diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/MockInternalMatch.java b/drools-kiesession/src/test/java/org/drools/kiesession/MockInternalMatch.java index 833e82cb42d..2bfe946570f 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/MockInternalMatch.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/MockInternalMatch.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession; import java.util.List; @@ -23,13 +26,12 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalRuleFlowGroup; import org.drools.core.common.PhreakPropagationContext; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.RuleAgendaItem; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.GroupElement; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.common.PropagationContext; import org.drools.core.util.LinkedList; import org.kie.api.runtime.rule.FactHandle; diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/NodeSegmentUnlinkingTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/NodeSegmentUnlinkingTest.java index 523d4bd8e0a..49916e18385 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/NodeSegmentUnlinkingTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/NodeSegmentUnlinkingTest.java @@ -1,31 +1,34 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession; import java.util.Arrays; import java.util.Collections; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.EmptyBetaConstraints; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.PhreakPropagationContextFactory; import org.drools.core.common.PropagationContextFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.BuildtimeSegmentUtilities; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.SegmentMemory.SegmentPrototype; diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/ProcessContextTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/ProcessContextTest.java index edd5871b85d..3820ecf1590 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/ProcessContextTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/ProcessContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession; import java.io.IOException; diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/PropertyChangeListenerTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/PropertyChangeListenerTest.java index 638eb84382a..8038fb61f05 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/PropertyChangeListenerTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/PropertyChangeListenerTest.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession; import java.beans.PropertyChangeSupport; import java.util.Collections; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.MockObjectSink; diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/QueryElementNodeTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/QueryElementNodeTest.java index dceb455ffc5..52cff7781e6 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/QueryElementNodeTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/QueryElementNodeTest.java @@ -1,32 +1,34 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession; import java.util.Collections; import org.drools.core.common.PhreakPropagationContextFactory; import org.drools.core.common.PropagationContextFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.MockTupleSource; import org.drools.core.reteoo.QueryElementNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.QueryArgument; -import org.drools.core.rule.QueryElement; +import org.drools.base.rule.QueryArgument; +import org.drools.base.rule.QueryElement; import org.drools.core.common.PropagationContext; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; @@ -78,7 +80,7 @@ public void testAttach() throws Exception { public static class InstrumentedWorkingMemory extends StatefulKnowledgeSessionImpl { public InstrumentedWorkingMemory( final int id, - final InternalKnowledgeBase kBase ) { + final InternalKnowledgeBase kBase) { super( new Long( id ), kBase ); } diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/ReteTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/ReteTest.java index f9082f4f9d7..f9e927484dd 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/ReteTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/ReteTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession; import java.util.ArrayList; @@ -24,7 +26,7 @@ import java.util.Properties; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.PhreakPropagationContextFactory; import org.drools.core.common.PropagationContextFactory; @@ -37,7 +39,7 @@ import org.drools.core.reteoo.Rete; import org.drools.core.reteoo.ReteooBuilder.IdGenerator; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.core.common.PropagationContext; import org.drools.core.test.model.Cheese; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/ReteooRuleBaseMultiThreadedTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/ReteooRuleBaseMultiThreadedTest.java index 277ccc84d6b..68509629fbb 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/ReteooRuleBaseMultiThreadedTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/ReteooRuleBaseMultiThreadedTest.java @@ -1,27 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.kiesession; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; @@ -56,8 +58,8 @@ public void setUp() { // while removing rules from a package when said package is removed from the rulebase rule = new RuleImpl("Test"); rule.setDialect("java"); - rule.setConsequence(new Consequence() { - public void evaluate(KnowledgeHelper knowledgeHelper, ReteEvaluator reteEvaluator) throws Exception { + rule.setConsequence(new Consequence() { + public void evaluate(KnowledgeHelper knowledgeHelper, ValueResolver valueResolver) throws Exception { } diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/ReteooWorkingMemoryTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/ReteooWorkingMemoryTest.java index f43cc9704bc..c59f1f773ac 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/ReteooWorkingMemoryTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/ReteooWorkingMemoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession; import java.util.HashMap; @@ -24,7 +26,7 @@ import org.drools.core.common.EqualityKey; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.common.TruthMaintenanceSystem; import org.drools.core.common.TruthMaintenanceSystemFactory; import org.drools.core.common.WorkingMemoryAction; @@ -33,8 +35,8 @@ import org.drools.core.reteoo.Rete; import org.drools.core.reteoo.builder.NodeFactory; import org.drools.core.reteoo.builder.PhreakNodeFactory; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.accessor.GlobalResolver; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.accessor.GlobalResolver; import org.drools.core.test.model.Cheese; import org.drools.core.test.model.Person; import org.drools.kiesession.rulebase.InternalKnowledgeBase; @@ -167,7 +169,6 @@ public void testDifferentEntryPointsOnSameFact() { NodeFactory nFacotry = new PhreakNodeFactory(); EntryPointNode epn = nFacotry.buildEntryPointNode( kBase.getReteooBuilder().getNodeIdsGenerator().getNextId(), RuleBasePartitionId.MAIN_PARTITION, - kBase.getRuleBaseConfiguration().isMultithreadEvaluation(), rete, new EntryPointId( "xxx" ) ); diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/RuleRuntimeEventSupportTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/RuleRuntimeEventSupportTest.java index 8b302e4f357..d3395665cc5 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/RuleRuntimeEventSupportTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/RuleRuntimeEventSupportTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.kiesession; import java.io.Serializable; diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/RuleUnlinkingTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/RuleUnlinkingTest.java index 2aab59828b8..1b004504e59 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/RuleUnlinkingTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/RuleUnlinkingTest.java @@ -1,31 +1,34 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession; import java.util.Collections; import java.util.List; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.EmptyBetaConstraints; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.PhreakPropagationContextFactory; import org.drools.core.common.PropagationContextFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.BuildtimeSegmentUtilities; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.TerminalNode; @@ -39,14 +42,14 @@ import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.MockObjectSource; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.PathMemory; import org.drools.core.reteoo.RuleTerminalNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElement.Type; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElement.Type; import org.drools.core.common.PropagationContext; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; diff --git a/drools-kiesession/src/test/java/org/drools/kiesession/RuleUnlinkingWithSegmentMemoryTest.java b/drools-kiesession/src/test/java/org/drools/kiesession/RuleUnlinkingWithSegmentMemoryTest.java index 6af30d9c60d..dc771a961f0 100644 --- a/drools-kiesession/src/test/java/org/drools/kiesession/RuleUnlinkingWithSegmentMemoryTest.java +++ b/drools-kiesession/src/test/java/org/drools/kiesession/RuleUnlinkingWithSegmentMemoryTest.java @@ -1,30 +1,33 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.kiesession; import java.util.Collections; import java.util.List; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.EmptyBetaConstraints; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.PhreakPropagationContextFactory; import org.drools.core.common.PropagationContextFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.phreak.RuntimeSegmentUtilities; import org.drools.core.phreak.BuildtimeSegmentUtilities; @@ -36,7 +39,7 @@ import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.MockObjectSource; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.PathEndNode; @@ -44,8 +47,8 @@ import org.drools.core.reteoo.RuleTerminalNode; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElement.Type; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElement.Type; import org.drools.core.common.PropagationContext; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; diff --git a/drools-legacy-test-util/pom.xml b/drools-legacy-test-util/pom.xml index 36b86e85852..ea166eb7e66 100644 --- a/drools-legacy-test-util/pom.xml +++ b/drools-legacy-test-util/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -18,6 +38,7 @@ Drools :: Legacy Test Util + org.drools.legacytestutil 2 diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/CommonTestMethodBase.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/CommonTestMethodBase.java index 8af0aaba078..9a662471249 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/CommonTestMethodBase.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/CommonTestMethodBase.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.ByteArrayInputStream; @@ -19,7 +23,6 @@ import java.util.Collection; import java.util.function.Predicate; -import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.kie.builder.impl.InternalKieModule; import org.drools.drl.ast.descr.PackageDescr; import org.drools.core.common.InternalAgenda; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Address.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Address.java index 2c08c1b7ce3..2a62a69f1e7 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Address.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Address.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Alarm.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Alarm.java index 893445fdcbe..cb7c25f3b49 100755 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Alarm.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Alarm.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cell.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cell.java index 228f683d06d..b828b020c11 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cell.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cell.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cheese.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cheese.java index a1dc0b496f3..6002a3915ec 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cheese.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cheese.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/CheeseEqual.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/CheeseEqual.java index b5ca29c7435..a1bb7916820 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/CheeseEqual.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/CheeseEqual.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cheesery.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cheesery.java index f905e0b3acd..97ad2d12574 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cheesery.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Cheesery.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Externalizable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/EmergencyTeam.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/EmergencyTeam.java index e3029ecbff9..30d818352eb 100755 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/EmergencyTeam.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/EmergencyTeam.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class EmergencyTeam { diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactA.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactA.java index b9bb38eb04e..30ebc6d1d77 100755 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactA.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactA.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactB.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactB.java index 7ad9fff471c..dba6b85e10c 100755 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactB.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactB.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactC.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactC.java index 70a221b6783..f6b7a52c544 100755 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactC.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/FactC.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Message.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Message.java index d9cf7d714ea..fdc16e4ac04 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Message.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Message.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java index 5a84459c4d3..64eb8809ad9 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Person.java @@ -1,22 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/PersonInterface.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/PersonInterface.java index e0544fc4baa..9f7ca9cf9db 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/PersonInterface.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/PersonInterface.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.math.BigDecimal; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Pet.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Pet.java index 761889f9457..0bac2215ba0 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Pet.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Pet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.util.HashMap; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Primitives.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Primitives.java index a7f5154c05c..086802fcdd8 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Primitives.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Primitives.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Sensor.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Sensor.java index 756c0506d03..4dacdc99df8 100755 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Sensor.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/Sensor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StaticMethods.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StaticMethods.java index 39c12c0dd04..fcb83d7e3b3 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StaticMethods.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StaticMethods.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; public class StaticMethods { diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StaticMethods2.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StaticMethods2.java index c976c5160fd..5b9b1cdc3f9 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StaticMethods2.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StaticMethods2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; public class StaticMethods2 { diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StockTick.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StockTick.java index e91bef06430..8abd049eb69 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StockTick.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StockTick.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StockTickInterface.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StockTickInterface.java index 71a7a372dba..e337bcd18d8 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StockTickInterface.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/StockTickInterface.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.util.Date; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/TestEnum.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/TestEnum.java index 5b009f51a5f..7528fe6df04 100755 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/TestEnum.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/TestEnum.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public enum TestEnum { diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/TestUtil.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/TestUtil.java index 60538c8ed64..77de70006c9 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/TestUtil.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/TestUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import org.drools.compiler.kie.builder.impl.DrlProject; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/command/MoreBatchExecutionTest.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/command/MoreBatchExecutionTest.java index 1e70c90c407..82805ece038 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/command/MoreBatchExecutionTest.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/command/MoreBatchExecutionTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat Inc. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler.command; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/command/SimpleBatchExecutionTest.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/command/SimpleBatchExecutionTest.java index 6601491d767..7bda60daf17 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/command/SimpleBatchExecutionTest.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/compiler/command/SimpleBatchExecutionTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat Inc. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler.command; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java index f938158679a..697e8808d74 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-legacy-test-util/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java b/drools-legacy-test-util/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java index 4ca8c2af912..15d7e6e0edd 100644 --- a/drools-legacy-test-util/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java +++ b/drools-legacy-test-util/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.IOException; diff --git a/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml b/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml index ef384a6d20f..ba432d56502 100644 --- a/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml +++ b/drools-legacy-test-util/src/test/resources/META-INF/kmodule.xml @@ -1,17 +1,24 @@ + + 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. + +--> diff --git a/drools-legacy-test-util/src/test/resources/logback-test.xml b/drools-legacy-test-util/src/test/resources/logback-test.xml index da8b2472a9a..cc8bcf9a586 100644 --- a/drools-legacy-test-util/src/test/resources/logback-test.xml +++ b/drools-legacy-test-util/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-metric/pom.xml b/drools-metric/pom.xml index 56a46660e39..b309eb91868 100644 --- a/drools-metric/pom.xml +++ b/drools-metric/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-metric/src/main/java/org/drools/metric/common/DefaultBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/DefaultBetaConstraintsMetric.java index cb6c984bbe1..0c336e3639d 100644 --- a/drools-metric/src/main/java/org/drools/metric/common/DefaultBetaConstraintsMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/common/DefaultBetaConstraintsMetric.java @@ -1,29 +1,31 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.common; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.DefaultBetaConstraints; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.reteoo.Tuple; import org.drools.metric.util.MetricLogUtils; +import org.kie.api.runtime.rule.FactHandle; public class DefaultBetaConstraintsMetric extends DefaultBetaConstraints { @@ -62,7 +64,7 @@ public DefaultBetaConstraintsMetric cloneIfInUse() { @Override public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { MetricLogUtils.getInstance().incrementEvalCount(); return super.isAllowedCachedLeft(context, handle); } diff --git a/drools-metric/src/main/java/org/drools/metric/common/DoubleBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/DoubleBetaConstraintsMetric.java index fc886b36ce6..032e845cc54 100644 --- a/drools-metric/src/main/java/org/drools/metric/common/DoubleBetaConstraintsMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/common/DoubleBetaConstraintsMetric.java @@ -1,29 +1,31 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.common; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.DoubleBetaConstraints; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.reteoo.Tuple; import org.drools.metric.util.MetricLogUtils; +import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.conf.IndexPrecedenceOption; public class DoubleBetaConstraintsMetric extends DoubleBetaConstraints { @@ -65,7 +67,7 @@ public DoubleBetaConstraintsMetric cloneIfInUse() { @Override public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { MetricLogUtils.getInstance().incrementEvalCount(); return super.isAllowedCachedLeft(context, handle); } diff --git a/drools-metric/src/main/java/org/drools/metric/common/QuadroupleBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/QuadroupleBetaConstraintsMetric.java index 1fc16114a95..61a16e82439 100644 --- a/drools-metric/src/main/java/org/drools/metric/common/QuadroupleBetaConstraintsMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/common/QuadroupleBetaConstraintsMetric.java @@ -1,29 +1,31 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.common; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.common.InternalFactHandle; import org.drools.core.common.QuadroupleBetaConstraints; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.reteoo.Tuple; import org.drools.metric.util.MetricLogUtils; +import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.conf.IndexPrecedenceOption; public class QuadroupleBetaConstraintsMetric extends QuadroupleBetaConstraints { @@ -65,7 +67,7 @@ public QuadroupleBetaConstraintsMetric cloneIfInUse() { @Override public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { MetricLogUtils.getInstance().incrementEvalCount(); return super.isAllowedCachedLeft(context, handle); } diff --git a/drools-metric/src/main/java/org/drools/metric/common/SingleBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/SingleBetaConstraintsMetric.java index 06570c4a37b..21f6acd77e3 100644 --- a/drools-metric/src/main/java/org/drools/metric/common/SingleBetaConstraintsMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/common/SingleBetaConstraintsMetric.java @@ -1,29 +1,31 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.common; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.common.InternalFactHandle; import org.drools.core.common.SingleBetaConstraints; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.reteoo.Tuple; import org.drools.metric.util.MetricLogUtils; +import org.kie.api.runtime.rule.FactHandle; public class SingleBetaConstraintsMetric extends SingleBetaConstraints { @@ -59,7 +61,7 @@ public SingleBetaConstraintsMetric cloneIfInUse() { @Override public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { MetricLogUtils.getInstance().incrementEvalCount(); return super.isAllowedCachedLeft(context, handle); } diff --git a/drools-metric/src/main/java/org/drools/metric/common/TripleBetaConstraintsMetric.java b/drools-metric/src/main/java/org/drools/metric/common/TripleBetaConstraintsMetric.java index 2d76d3183c7..6dc2cf63ba1 100644 --- a/drools-metric/src/main/java/org/drools/metric/common/TripleBetaConstraintsMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/common/TripleBetaConstraintsMetric.java @@ -1,29 +1,31 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.common; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.common.InternalFactHandle; import org.drools.core.common.TripleBetaConstraints; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.reteoo.Tuple; import org.drools.metric.util.MetricLogUtils; +import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.conf.IndexPrecedenceOption; public class TripleBetaConstraintsMetric extends TripleBetaConstraints { @@ -65,7 +67,7 @@ public TripleBetaConstraintsMetric cloneIfInUse() { @Override public boolean isAllowedCachedLeft(final ContextEntry[] context, - final InternalFactHandle handle) { + final FactHandle handle) { MetricLogUtils.getInstance().incrementEvalCount(); return super.isAllowedCachedLeft(context, handle); } diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/MetricPhreakNetworkNodeFactoryImpl.java b/drools-metric/src/main/java/org/drools/metric/phreak/MetricPhreakNetworkNodeFactoryImpl.java index b999fcd7fe1..c71d6b9e837 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/MetricPhreakNetworkNodeFactoryImpl.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/MetricPhreakNetworkNodeFactoryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.phreak; import org.drools.core.phreak.PhreakAccumulateNode; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAccumulateNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAccumulateNodeMetric.java index 822bed35d08..b3340b045ad 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAccumulateNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAccumulateNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAsyncReceiveNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAsyncReceiveNodeMetric.java index e398ee81f5e..c1b155402b8 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAsyncReceiveNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAsyncReceiveNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAsyncSendNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAsyncSendNodeMetric.java index a959801b372..1c5d7621643 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAsyncSendNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakAsyncSendNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakBranchNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakBranchNodeMetric.java index 12c431bd759..80b4c13d5d3 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakBranchNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakBranchNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ActivationsManager; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakEvalNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakEvalNodeMetric.java index aad283de185..a04845b6ca3 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakEvalNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakEvalNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakExistsNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakExistsNodeMetric.java index e0d2cf0f302..087263e75fd 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakExistsNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakExistsNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakFromNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakFromNodeMetric.java index 35a9a6754e3..1c890274bb0 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakFromNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakFromNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakGroupByNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakGroupByNodeMetric.java index fab00c2a71a..dc102f826f2 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakGroupByNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakGroupByNodeMetric.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakJoinNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakJoinNodeMetric.java index 8fd190f5f2c..5e1e8e8181b 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakJoinNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakJoinNodeMetric.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakNotNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakNotNodeMetric.java index 96742027850..2a1ba6d5aad 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakNotNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakNotNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakQueryNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakQueryNodeMetric.java index 61fe01eb045..0eb0d33331f 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakQueryNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakQueryNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakQueryTerminalNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakQueryTerminalNodeMetric.java index 448f6c39bdd..bd3e131a58c 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakQueryTerminalNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakQueryTerminalNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ActivationsManager; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakReactiveFromNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakReactiveFromNodeMetric.java index ad372cc22c6..1a6d994107e 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakReactiveFromNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakReactiveFromNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ReteEvaluator; diff --git a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakTimerNodeMetric.java b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakTimerNodeMetric.java index 2d943c831cc..541bc0f372a 100644 --- a/drools-metric/src/main/java/org/drools/metric/phreak/PhreakTimerNodeMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/phreak/PhreakTimerNodeMetric.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.metric.phreak; import org.drools.core.common.ActivationsManager; diff --git a/drools-metric/src/main/java/org/drools/metric/reteoo/builder/MetricBetaNodeConstraintFactoryImpl.java b/drools-metric/src/main/java/org/drools/metric/reteoo/builder/MetricBetaNodeConstraintFactoryImpl.java index 8de009f1a45..cde7b6577ba 100644 --- a/drools-metric/src/main/java/org/drools/metric/reteoo/builder/MetricBetaNodeConstraintFactoryImpl.java +++ b/drools-metric/src/main/java/org/drools/metric/reteoo/builder/MetricBetaNodeConstraintFactoryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.reteoo.builder; import org.drools.core.RuleBaseConfiguration; @@ -23,7 +25,7 @@ import org.drools.core.common.SingleBetaConstraints; import org.drools.core.common.TripleBetaConstraints; import org.drools.core.reteoo.builder.BetaNodeConstraintFactory; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.metric.common.DefaultBetaConstraintsMetric; import org.drools.metric.common.DoubleBetaConstraintsMetric; import org.drools.metric.common.QuadroupleBetaConstraintsMetric; diff --git a/drools-metric/src/main/java/org/drools/metric/rule/EvalConditionMetric.java b/drools-metric/src/main/java/org/drools/metric/rule/EvalConditionMetric.java index 8e949d15c69..e3950cd3410 100644 --- a/drools-metric/src/main/java/org/drools/metric/rule/EvalConditionMetric.java +++ b/drools-metric/src/main/java/org/drools/metric/rule/EvalConditionMetric.java @@ -1,29 +1,31 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.rule; import java.util.ArrayList; import java.util.Collections; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.accessor.EvalExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.accessor.EvalExpression; import org.drools.metric.util.MetricLogUtils; public class EvalConditionMetric extends EvalCondition { @@ -41,11 +43,11 @@ public EvalConditionMetric(final EvalExpression eval, } @Override - public boolean isAllowed(final Tuple tuple, - final ReteEvaluator reteEvaluator, + public boolean isAllowed(final BaseTuple tuple, + final ValueResolver valueResolver, final Object context) { MetricLogUtils.getInstance().incrementEvalCount(); - return super.isAllowed(tuple, reteEvaluator, context); + return super.isAllowed(tuple, valueResolver, context); } @Override diff --git a/drools-metric/src/main/java/org/drools/metric/rule/MetricEvalConditionFactoryImpl.java b/drools-metric/src/main/java/org/drools/metric/rule/MetricEvalConditionFactoryImpl.java index 3154aa86941..53194715f58 100644 --- a/drools-metric/src/main/java/org/drools/metric/rule/MetricEvalConditionFactoryImpl.java +++ b/drools-metric/src/main/java/org/drools/metric/rule/MetricEvalConditionFactoryImpl.java @@ -1,24 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.rule; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.EvalConditionFactory; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.EvalConditionFactory; import org.drools.metric.util.MetricLogUtils; public class MetricEvalConditionFactoryImpl implements EvalConditionFactory { diff --git a/drools-metric/src/main/java/org/drools/metric/util/MetricLogUtils.java b/drools-metric/src/main/java/org/drools/metric/util/MetricLogUtils.java index 1bc418fa50e..5eef523bf5b 100644 --- a/drools-metric/src/main/java/org/drools/metric/util/MetricLogUtils.java +++ b/drools-metric/src/main/java/org/drools/metric/util/MetricLogUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.util; import org.drools.core.common.BaseNode; diff --git a/drools-metric/src/main/java/org/drools/metric/util/MicrometerUtils.java b/drools-metric/src/main/java/org/drools/metric/util/MicrometerUtils.java index 424ab9626d7..d17d408a8af 100644 --- a/drools-metric/src/main/java/org/drools/metric/util/MicrometerUtils.java +++ b/drools-metric/src/main/java/org/drools/metric/util/MicrometerUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.metric.util; import java.time.Duration; diff --git a/drools-metric/src/main/java/org/drools/metric/util/NodeStats.java b/drools-metric/src/main/java/org/drools/metric/util/NodeStats.java index 069fe2bb7d5..78cad7476af 100644 --- a/drools-metric/src/main/java/org/drools/metric/util/NodeStats.java +++ b/drools-metric/src/main/java/org/drools/metric/util/NodeStats.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric.util; import java.lang.ref.WeakReference; diff --git a/drools-metric/src/main/resources/META-INF/services/org.drools.core.rule.EvalConditionFactory b/drools-metric/src/main/resources/META-INF/services/org.drools.base.rule.EvalConditionFactory similarity index 100% rename from drools-metric/src/main/resources/META-INF/services/org.drools.core.rule.EvalConditionFactory rename to drools-metric/src/main/resources/META-INF/services/org.drools.base.rule.EvalConditionFactory diff --git a/drools-metric/src/test/java/org/drools/metric/AbstractMetricTest.java b/drools-metric/src/test/java/org/drools/metric/AbstractMetricTest.java index 0646977be3d..e09541f5ec3 100644 --- a/drools-metric/src/test/java/org/drools/metric/AbstractMetricTest.java +++ b/drools-metric/src/test/java/org/drools/metric/AbstractMetricTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.metric; import io.micrometer.core.instrument.MeterRegistry; diff --git a/drools-metric/src/test/java/org/drools/metric/CloneTest.java b/drools-metric/src/test/java/org/drools/metric/CloneTest.java index bf0044024e3..7ac097eaadd 100644 --- a/drools-metric/src/test/java/org/drools/metric/CloneTest.java +++ b/drools-metric/src/test/java/org/drools/metric/CloneTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric; import org.junit.Test; diff --git a/drools-metric/src/test/java/org/drools/metric/ConstraintsTest.java b/drools-metric/src/test/java/org/drools/metric/ConstraintsTest.java index f04821f1d11..4c7a8c25d7f 100644 --- a/drools-metric/src/test/java/org/drools/metric/ConstraintsTest.java +++ b/drools-metric/src/test/java/org/drools/metric/ConstraintsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric; import java.util.ArrayList; diff --git a/drools-metric/src/test/java/org/drools/metric/MetricLogUtilsTest.java b/drools-metric/src/test/java/org/drools/metric/MetricLogUtilsTest.java index ff566e6810f..fc9c9edd275 100644 --- a/drools-metric/src/test/java/org/drools/metric/MetricLogUtilsTest.java +++ b/drools-metric/src/test/java/org/drools/metric/MetricLogUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.metric; import java.util.Collection; diff --git a/drools-metric/src/test/resources/logback-test.xml b/drools-metric/src/test/resources/logback-test.xml index 195f740cad7..87319242399 100644 --- a/drools-metric/src/test/resources/logback-test.xml +++ b/drools-metric/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-model/drools-canonical-model/pom.xml b/drools-model/drools-canonical-model/pom.xml index 5d68c82c670..bf5edab4f4b 100644 --- a/drools-model/drools-canonical-model/pom.xml +++ b/drools-model/drools-canonical-model/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.drools drools-model - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: Canonical Model diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/AccumulatePattern.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/AccumulatePattern.java index 628f635423f..cbead6177dd 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/AccumulatePattern.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/AccumulatePattern.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.accumulate.AccumulateFunction; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/AlphaIndex.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/AlphaIndex.java index 0649fd1ca4e..10f240770ee 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/AlphaIndex.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/AlphaIndex.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface AlphaIndex extends Index { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/AnnotationValue.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/AnnotationValue.java index 4e71562f8ac..93ddd6f2ffb 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/AnnotationValue.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/AnnotationValue.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface AnnotationValue { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Argument.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Argument.java index 1d5f8c1d98c..b8fc1305155 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Argument.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Argument.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Argument { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex.java index 47cca40d7a7..7ff188d7bfe 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function1; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex2.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex2.java index b0f28c4af4c..cd7c07951ca 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex2.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex2.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function2; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex3.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex3.java index 6c395f4ed46..6b33e4be56b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex3.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex3.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function3; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex4.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex4.java index 7152a03c49c..79012ac197e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex4.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndex4.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function4; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndexN.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndexN.java index 28d3d1be324..8dba2099c98 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndexN.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BetaIndexN.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface BetaIndexN extends Index { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Binding.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Binding.java index 65b73851e61..4a7962dd19c 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Binding.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Binding.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function1; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BitMask.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BitMask.java index fe631368cc5..ec22fbaba06 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/BitMask.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/BitMask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Channel.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Channel.java index cca4445994a..d588f5cd53b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Channel.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Channel.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model; public interface Channel { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Condition.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Condition.java index 1a59024d8ab..4b43d425cce 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Condition.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Condition.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.Collections; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/ConditionalConsequence.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/ConditionalConsequence.java index c65e3cbd998..58828d50074 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/ConditionalConsequence.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/ConditionalConsequence.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.ExprViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Consequence.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Consequence.java index d1675e254f9..0ada55d22da 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Consequence.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Consequence.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.BlockN; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Constraint.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Constraint.java index 8ae7f072f17..cfb0e2ef533 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Constraint.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Constraint.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.List; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/ConstraintOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/ConstraintOperator.java index fbb0a2f19d3..6f216edd448 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/ConstraintOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/ConstraintOperator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.function.BiPredicate; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DSL.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DSL.java index b1f8d695c32..a32da127bd2 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DSL.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DSL.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.lang.reflect.InvocationTargetException; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DataSourceDefinition.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DataSourceDefinition.java index 0e7d4ddaae4..6f410c0610f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DataSourceDefinition.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DataSourceDefinition.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface DataSourceDefinition { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Declaration.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Declaration.java index 39d552f7792..39386db4fc1 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Declaration.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Declaration.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Declaration extends Variable { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DeclarationSource.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DeclarationSource.java index 908a14938a2..8bccb538439 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DeclarationSource.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DeclarationSource.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface DeclarationSource { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DomainClassMetadata.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DomainClassMetadata.java index 5c7ed3f5ee8..df6cfe72c51 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DomainClassMetadata.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DomainClassMetadata.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface DomainClassMetadata { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Drools.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Drools.java index 8948781ec99..f57623c4963 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Drools.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Drools.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Drools extends DroolsEntryPoint { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DroolsEntryPoint.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DroolsEntryPoint.java index 1b14b8fa716..a56a585fb8d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DroolsEntryPoint.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DroolsEntryPoint.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface DroolsEntryPoint { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DynamicValueSupplier.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DynamicValueSupplier.java index 82d5307d81a..261b77bb084 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/DynamicValueSupplier.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/DynamicValueSupplier.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function0; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/EntryPoint.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/EntryPoint.java index 48d098642c0..8e3826a993e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/EntryPoint.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/EntryPoint.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface EntryPoint extends DeclarationSource { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From.java index 0daa113fd66..86f2347c378 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface From extends DeclarationSource { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From0.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From0.java index e000c0acbc7..7abb7a4278f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From0.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From0.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function0; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From1.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From1.java index 1d4e439223f..fac959f1e32 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From1.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From1.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function1; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From2.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From2.java index 6da80337977..a863a1b7d6b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From2.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From2.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function2; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From3.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From3.java index a621f38d1a8..6f6c1820304 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From3.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From3.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function3; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From4.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From4.java index bc8dee19b91..f6821d345c3 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/From4.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/From4.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Function4; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Global.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Global.java index 09ac091baaf..9f631682fd6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Global.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Global.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Global extends Variable, NamedModelItem { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/GroupByPattern.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/GroupByPattern.java index 162da3ddcab..eeddddf0166 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/GroupByPattern.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/GroupByPattern.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.FunctionN; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Handle.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Handle.java index 635593bf275..eb1afff612e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Handle.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Handle.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Handle { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Index.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Index.java index a0cbb83cb1b..100fe84a626 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Index.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Index.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.math.BigDecimal; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerMultiValuePattern.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerMultiValuePattern.java index 506047c8f64..ac49f2bc7af 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerMultiValuePattern.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerMultiValuePattern.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.FunctionN; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerPattern.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerPattern.java index 8f88eed2f54..4192d8663ca 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerPattern.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerPattern.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface InvokerPattern extends Pattern { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerSingleValuePattern.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerSingleValuePattern.java index cc1ee1fe48f..6c93215f1c9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerSingleValuePattern.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/InvokerSingleValuePattern.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.FunctionN; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Model.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Model.java index f650bb870d2..c872bab1b93 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Model.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Model.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.List; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/NamedModelItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/NamedModelItem.java index 4c932c0956f..96a0eed65d4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/NamedModelItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/NamedModelItem.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface NamedModelItem { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Pattern.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Pattern.java index 61a1d20eda3..0b350fd97db 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Pattern.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Pattern.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.Collection; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PatternDSL.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PatternDSL.java index 43398fc34e6..5ff49d80b45 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PatternDSL.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PatternDSL.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.ArrayList; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Prototype.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Prototype.java index a3bf2dfd3b4..4c214662f4a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Prototype.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Prototype.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.Collection; @@ -22,7 +23,7 @@ public interface Prototype extends NamedModelItem { - Object UNDEFINED_VALUE = new Object(); + Object UNDEFINED_VALUE = UndefinedValue.INSTANCE; Collection getFieldNames(); @@ -48,4 +49,26 @@ interface Field { Class getType(); } + + class UndefinedValue { + static final UndefinedValue INSTANCE = new UndefinedValue(); + + static final UnsupportedOperationException HASHCODE_EXCEPTION = new UnsupportedOperationException(); + + @Override + public int hashCode() { + // throw an Exception to avoid indexing of an undefined value + throw HASHCODE_EXCEPTION; + } + + @Override + public boolean equals(Object obj) { + return false; + } + + @Override + public String toString() { + return "$UndefinedValue$"; + } + } } diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeDSL.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeDSL.java index 702c2b004f8..c9443cd4794 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeDSL.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeDSL.java @@ -1,27 +1,23 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ package org.drools.model; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; -import java.util.function.Function; - import org.drools.model.functions.Function1; import org.drools.model.functions.Predicate1; import org.drools.model.functions.Predicate2; @@ -30,8 +26,16 @@ import org.drools.model.impl.PrototypeImpl; import org.drools.model.impl.PrototypeVariableImpl; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import java.util.function.Function; + import static java.util.UUID.randomUUID; import static org.drools.model.PatternDSL.alphaIndexedBy; +import static org.drools.model.PatternDSL.betaIndexedBy; import static org.drools.model.PatternDSL.reactOn; import static org.drools.model.PrototypeExpression.prototypeArrayItem; import static org.drools.model.PrototypeExpression.prototypeField; @@ -129,37 +133,39 @@ public PrototypePatternDef expr(PrototypeExpression left, ConstraintOperator ope } Prototype prototype = getPrototype(); - Function1 leftExtractor; - AlphaIndex alphaIndex = null; - if (left instanceof PrototypeExpression.PrototypeFieldValue && right instanceof PrototypeExpression.FixedValue && operator instanceof Index.ConstraintType) { - String fieldName = ((PrototypeExpression.PrototypeFieldValue) left).getFieldName(); - Index.ConstraintType constraintType = (Index.ConstraintType) operator; - Prototype.Field field = prototype.getField(fieldName); - Object value = ((PrototypeExpression.FixedValue) right).getValue(); - - leftExtractor = getFieldValueExtractor(prototype, fieldName); - int fieldIndex = field != null ? prototype.getFieldIndex(fieldName) : Math.abs(fieldName.hashCode()); - - Class fieldClass = (Class) (field != null && field.isTyped() ? field.getType() : value != null ? value.getClass() : null); - if (fieldClass != null) { - alphaIndex = alphaIndexedBy(fieldClass, constraintType, fieldIndex, leftExtractor, value); - } - } else { - leftExtractor = left.asFunction(prototype); - } + Function1 leftExtractor = left.asFunction(prototype); Set reactOnFields = new HashSet<>(); reactOnFields.addAll(left.getImpactedFields()); reactOnFields.addAll(right.getImpactedFields()); - expr("expr:" + left + ":" + operator + ":" + right, + expr(createExprId(left, operator, right), asPredicate1(leftExtractor, operator, right.asFunction(prototype)), - alphaIndex, + createAlphaIndex(left, operator, right, prototype, leftExtractor), reactOn( reactOnFields.toArray(new String[reactOnFields.size()])) ); return this; } + private static AlphaIndex createAlphaIndex(PrototypeExpression left, ConstraintOperator operator, PrototypeExpression right, Prototype prototype, Function1 leftExtractor) { + if (left.getIndexingKey().isPresent() && right instanceof PrototypeExpression.FixedValue && operator instanceof Index.ConstraintType) { + String fieldName = left.getIndexingKey().get(); + Index.ConstraintType constraintType = (Index.ConstraintType) operator; + Prototype.Field field = prototype.getField(fieldName); + Object value = ((PrototypeExpression.FixedValue) right).getValue(); + + Class fieldClass = (Class) (field != null && field.isTyped() ? field.getType() : value != null ? value.getClass() : null); + if (fieldClass != null) { + return alphaIndexedBy(fieldClass, constraintType, getFieldIndex(prototype, fieldName, field), leftExtractor, value); + } + } + return null; + } + + private static int getFieldIndex(Prototype prototype, String fieldName, Prototype.Field field) { + return field != null ? prototype.getFieldIndex(fieldName) : Math.abs(fieldName.hashCode()); + } + @Override public PrototypePatternDef expr(String fieldName, ConstraintOperator operator, PrototypeVariable other, String otherFieldName) { return expr(fieldName2PrototypeExpression(fieldName), operator, other, fieldName2PrototypeExpression(otherFieldName)); @@ -174,13 +180,34 @@ public PrototypePatternDef expr(PrototypeExpression left, ConstraintOperator ope reactOnFields.addAll(left.getImpactedFields()); reactOnFields.addAll(right.getImpactedFields()); - expr("expr:" + left + ":" + operator + ":" + right, + expr(createExprId(left, operator, right), other, asPredicate2(left.asFunction(prototype), operator, right.asFunction(otherPrototype)), + createBetaIndex(left, operator, right, prototype, otherPrototype), reactOn( reactOnFields.toArray(new String[reactOnFields.size()])) ); return this; } + private static String createExprId(PrototypeExpression left, ConstraintOperator operator, PrototypeExpression right) { + Object leftId = left.getIndexingKey().orElse(left.toString()); + Object rightId = right instanceof PrototypeExpression.FixedValue ? ((PrototypeExpression.FixedValue) right).getValue() : right; + return "expr:" + leftId + ":" + operator + ":" + rightId; + } + + private BetaIndex createBetaIndex(PrototypeExpression left, ConstraintOperator operator, PrototypeExpression right, Prototype prototype, Prototype otherPrototype) { + if (left.getIndexingKey().isPresent() && operator instanceof Index.ConstraintType && right.getIndexingKey().isPresent()) { + String fieldName = left.getIndexingKey().get(); + Index.ConstraintType constraintType = (Index.ConstraintType) operator; + Prototype.Field field = prototype.getField(fieldName); + Function1 extractor = left.asFunction(prototype); + Function1 otherExtractor = right.asFunction(otherPrototype); + + Class fieldClass = (Class) (field != null && field.isTyped() ? field.getType() : Object.class); + return betaIndexedBy( fieldClass, constraintType, getFieldIndex(prototype, fieldName, field), extractor, otherExtractor ); + } + return null; + } + @Override public PrototypePatternDef expr(TemporalPredicate temporalPredicate, PrototypeVariable other) { expr( randomUUID().toString(), other, temporalPredicate ); @@ -252,10 +279,6 @@ private PrototypeVariable[] findRightPrototypeVariables(PrototypeExpression righ private static boolean evaluateConstraint(Object leftValue, ConstraintOperator operator, Object rightValue) { return leftValue != Prototype.UNDEFINED_VALUE && rightValue != Prototype.UNDEFINED_VALUE && operator.asPredicate().test(leftValue, rightValue); } - - private Function1 getFieldValueExtractor(Prototype prototype, String fieldName) { - return prototype.getFieldValueExtractor(fieldName)::apply; - } } public static class PrototypeSubPatternDefImpl extends PrototypePatternDefImpl { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeExpression.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeExpression.java index da0192a9d74..4071ed05a74 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeExpression.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeExpression.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ package org.drools.model; @@ -21,6 +24,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Optional; import java.util.Set; import org.drools.model.functions.Function1; @@ -35,6 +39,13 @@ interface EvaluableExpression { Function1 asFunction(Prototype prototype); Collection getImpactedFields(); + + /** + * if indexable, return a key for alpha/beta indexing + */ + default Optional getIndexingKey() { + return Optional.empty(); + } static PrototypeExpression fixedValue(Object value) { return new FixedValue(value); @@ -150,8 +161,9 @@ public Function1 asFunction(Prototype prototype) { return prototype.getFieldValueExtractor(fieldName)::apply; } - public String getFieldName() { - return fieldName; + @Override + public Optional getIndexingKey() { + return Optional.of(fieldName); } @Override @@ -189,12 +201,12 @@ public Collection getPrototypeVariables() { @Override public Object evaluate(Map factsMap) { - return protoVar.getPrototype().getFieldValueExtractor(getFieldName()).apply(factsMap.get(protoVar)); + return protoVar.getPrototype().getFieldValueExtractor(getIndexingKey().get()).apply(factsMap.get(protoVar)); } @Override public String toString() { - return "PrototypeFieldValue{" + getFieldName() + " on " + protoVar + "}"; + return "PrototypeFieldValue{" + getIndexingKey() + " on " + protoVar + "}"; } } diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeFact.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeFact.java index 98dbdf2b571..6b025519886 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeFact.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeFact.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface PrototypeFact { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeFactFactory.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeFactFactory.java index 3f7cfd95772..0843ccb4b1f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeFactFactory.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeFactFactory.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model; import java.util.Map; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeVariable.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeVariable.java index 4b21eb9bc11..9bba12c0a88 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeVariable.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/PrototypeVariable.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface PrototypeVariable extends Variable { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query.java index 9554f8d4694..a8ea9e0db74 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Query extends NamedModelItem { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query0Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query0Def.java index 1348b13f259..8e32fa90e72 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query0Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query0Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query10Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query10Def.java index 35592ced6a7..6839d86ec2d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query10Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query10Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query1Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query1Def.java index 1672ebf8a13..354e1b3174d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query1Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query1Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query2Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query2Def.java index cff2986ad81..02845f03c33 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query2Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query2Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query3Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query3Def.java index 5ad45da20f2..2fbfb571710 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query3Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query3Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query4Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query4Def.java index 0a0efc0e8a8..cb1841bbd19 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query4Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query4Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query5Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query5Def.java index e7f90984491..46713ca2399 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query5Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query5Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query6Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query6Def.java index 40b3a413e87..facdf1b068b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query6Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query6Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query7Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query7Def.java index 3053688b9d4..dc65225b5d8 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query7Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query7Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query8Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query8Def.java index 9d659a33f24..6e25b07eb7f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query8Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query8Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query9Def.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query9Def.java index 28e6e608b1b..d6846b9e18f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query9Def.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Query9Def.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.view.QueryCallViewItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/QueryDef.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/QueryDef.java index 46b9d02a425..a5b5f1c6131 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/QueryDef.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/QueryDef.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.Arrays; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Rule.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Rule.java index 216140f6957..0883c7d05e6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Rule.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Rule.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.Calendar; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/RuleItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/RuleItem.java index d2d68bbf50b..ee3aac942fa 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/RuleItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/RuleItem.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface RuleItem { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/RuleItemBuilder.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/RuleItemBuilder.java index f477e9710b5..97d9428ec8f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/RuleItemBuilder.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/RuleItemBuilder.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface RuleItemBuilder { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/RulesSupplier.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/RulesSupplier.java index 433e21081ec..2523784dfd8 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/RulesSupplier.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/RulesSupplier.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.List; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/SingleConstraint.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/SingleConstraint.java index aa18ab662bf..ddebc3b423a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/SingleConstraint.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/SingleConstraint.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.constraints.AbstractSingleConstraint; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Tuple.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Tuple.java index 45425c607a9..652138ac8b4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Tuple.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Tuple.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Tuple { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/TupleHandle.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/TupleHandle.java index b2a3ebd7901..d3f7e37d980 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/TupleHandle.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/TupleHandle.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface TupleHandle extends Tuple, Handle { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeMetaData.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeMetaData.java index 97b8335c82a..bd1a8ee5225 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeMetaData.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeMetaData.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import java.util.Map; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeReference.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeReference.java index e6eeccb4113..9d70700f396 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeReference.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeReference.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.model; public class TypeReference { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/UnitData.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/UnitData.java index ee0eff55f59..bc42ef8e0c6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/UnitData.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/UnitData.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface UnitData extends Global, DeclarationSource { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Value.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Value.java index 414a8c2073b..12a2e11a2a6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Value.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Value.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Value extends Argument { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Variable.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Variable.java index 3d3d906d2c7..efb0b28af50 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Variable.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Variable.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Variable extends Argument { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/View.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/View.java index 11c4871004c..10fd3bff28d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/View.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/View.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; // view is the result diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Window.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Window.java index 3f7ad1179a6..63da8d80156 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/Window.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/Window.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface Window extends WindowDefinition { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/WindowDefinition.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/WindowDefinition.java index c8605858f67..70c0b946e0c 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/WindowDefinition.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/WindowDefinition.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; public interface WindowDefinition { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/WindowReference.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/WindowReference.java index c61b9fbceed..e06867488d8 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/WindowReference.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/WindowReference.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model; import org.drools.model.functions.Predicate1; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetBitMask.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetBitMask.java index 9c47c7f8f6d..e0059b0c63f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetBitMask.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetBitMask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model.bitmask; import org.drools.model.BitMask; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetButLastBitMask.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetButLastBitMask.java index 994e6446a6f..ec9d854aaa5 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetButLastBitMask.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetButLastBitMask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model.bitmask; import org.drools.model.BitMask; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetMask.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetMask.java index 82cab68fb76..5a2b52a6be9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetMask.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/AllSetMask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model.bitmask; public interface AllSetMask { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/BitMaskUtil.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/BitMaskUtil.java index adc50a07b7d..f286a24fd7e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/BitMaskUtil.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/BitMaskUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.bitmask; import java.util.List; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyBitMask.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyBitMask.java index 2653333841a..35e631baa24 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyBitMask.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyBitMask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model.bitmask; import org.drools.model.BitMask; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyButLastBitMask.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyButLastBitMask.java index 6613756d7a4..ccbc3fc0a7d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyButLastBitMask.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyButLastBitMask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model.bitmask; import org.drools.model.BitMask; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyMask.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyMask.java index 5bb0c16d5d7..ed3be4125ae 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyMask.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/EmptyMask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model.bitmask; public interface EmptyMask { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/LongBitMask.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/LongBitMask.java index 9428e26dd7c..e7ebe336146 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/LongBitMask.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/LongBitMask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model.bitmask; import org.drools.model.BitMask; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/OpenBitSet.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/OpenBitSet.java index 84f45ec0eae..12c718a72be 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/OpenBitSet.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/OpenBitSet.java @@ -1,21 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.model.bitmask; import java.lang.reflect.Field; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/SingleLongBitMask.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/SingleLongBitMask.java index 02c848032e0..472c2cbd980 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/SingleLongBitMask.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/bitmask/SingleLongBitMask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model.bitmask; import org.drools.model.BitMask; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalConsequenceBuilder.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalConsequenceBuilder.java index d7c130c2c7e..243872e6590 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalConsequenceBuilder.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalConsequenceBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.consequences; import org.drools.model.ConditionalConsequence; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalConsequenceImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalConsequenceImpl.java index 9bb9790b243..d8106fc75cc 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalConsequenceImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalConsequenceImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.consequences; import org.drools.model.ConditionalConsequence; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalNamedConsequenceImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalNamedConsequenceImpl.java index 8f963c8bb3e..6b2d2f50f5f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalNamedConsequenceImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConditionalNamedConsequenceImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.consequences; import org.drools.model.Condition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConsequenceBuilder.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConsequenceBuilder.java index 6969c7bf6e7..67e312dd505 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConsequenceBuilder.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConsequenceBuilder.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.consequences; import org.drools.model.Consequence; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConsequenceImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConsequenceImpl.java index 656eda8a0cd..42902a7fd16 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConsequenceImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/ConsequenceImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.consequences; import java.util.Arrays; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/NamedConsequenceImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/NamedConsequenceImpl.java index 58dc88c514c..4dff5a02f63 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/NamedConsequenceImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/consequences/NamedConsequenceImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.consequences; import org.drools.model.Condition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AbstractConstraint.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AbstractConstraint.java index ac99bd298ad..310874bd74a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AbstractConstraint.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AbstractConstraint.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Constraint; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AbstractSingleConstraint.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AbstractSingleConstraint.java index fb288eeec4e..44a5ee990f4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AbstractSingleConstraint.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AbstractSingleConstraint.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import java.util.Collections; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AndConstraints.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AndConstraints.java index 51269f4b3be..321b14cc329 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AndConstraints.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/AndConstraints.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import java.util.ArrayList; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/FixedTemporalConstraint.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/FixedTemporalConstraint.java index 343f12a3610..35fd75ff3c2 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/FixedTemporalConstraint.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/FixedTemporalConstraint.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/MultipleConstraints.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/MultipleConstraints.java index 411fb4568e5..70555369565 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/MultipleConstraints.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/MultipleConstraints.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import java.util.ArrayList; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/OrConstraints.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/OrConstraints.java index 18bf51dbf90..3a500f97162 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/OrConstraints.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/OrConstraints.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import java.util.ArrayList; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/ReactivitySpecs.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/ReactivitySpecs.java index ac2377a5cfb..98c1d712906 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/ReactivitySpecs.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/ReactivitySpecs.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.BitMask; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint1.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint1.java index aaac88ee0c5..f00f5811a5d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint1.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint1.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint10.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint10.java index da2548a9b61..bb7ad98032e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint10.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint10.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint11.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint11.java index 3a510f80f5d..8dc64a86ed5 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint11.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint11.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint12.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint12.java index dfcc70a4131..2b961611265 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint12.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint12.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint13.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint13.java index 0c22a28b741..4af99bf95af 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint13.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint13.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint2.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint2.java index 3525f685428..d97f7d6ad0d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint2.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint2.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint3.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint3.java index 92652621622..9eb3e76a252 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint3.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint3.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint4.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint4.java index e73485d2b9d..6b3731502e7 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint4.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint4.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint5.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint5.java index f258eaa6895..fb6f5150553 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint5.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint5.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint6.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint6.java index e1d867cc51e..f40ed936a72 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint6.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint6.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint7.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint7.java index 21aa92fba9d..827ac4d00ce 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint7.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint7.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint8.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint8.java index 20cfa6e6d93..191da84a425 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint8.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint8.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint9.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint9.java index 2165a97b4d7..2591125851d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint9.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/SingleConstraint9.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/TemporalConstraint.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/TemporalConstraint.java index 812c385e314..8f64dd37cee 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/TemporalConstraint.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/TemporalConstraint.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/VariableTemporalConstraint.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/VariableTemporalConstraint.java index 3a3fc540bb4..c284009f4e9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/VariableTemporalConstraint.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/constraints/VariableTemporalConstraint.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.constraints; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block0.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block0.java index e1e575b402d..646e9dad83b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block0.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block0.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block1.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block1.java index 6ae06b44cd2..df7b75f0b2d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block1.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block1.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block10.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block10.java index 1e1341b5d85..bc2ff00fa7f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block10.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block10.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block11.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block11.java index bd929bd3f9c..8f0a0dc49c9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block11.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block11.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block12.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block12.java index fa324eaeb87..4352475fb98 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block12.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block12.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block13.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block13.java index 5e69d803608..2c7af1bc915 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block13.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block13.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block14.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block14.java index 698c5a512a2..24b78e4fd06 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block14.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block14.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block15.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block15.java index 2270e117aaa..fe219da18c6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block15.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block15.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block16.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block16.java index 97a1db66d7d..49a23408157 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block16.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block16.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block17.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block17.java index 9ed2b2f6ad6..a2c82852df8 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block17.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block17.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block18.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block18.java index 5672fcaaa79..605b2707c11 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block18.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block18.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block19.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block19.java index 698f789fdd0..156bda4ae44 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block19.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block19.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block2.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block2.java index 3e926183b54..631dca8f133 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block2.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block2.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block20.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block20.java index 8f024f61efe..9816adc5401 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block20.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block20.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block21.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block21.java index d6fc7a4c6cb..f0c5d95e35c 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block21.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block21.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block22.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block22.java index 5586ad8b764..06e3340e8c7 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block22.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block22.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block23.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block23.java index 232469dde4e..8350e083be2 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block23.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block23.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block24.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block24.java index 60580094a57..de737028f1f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block24.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block24.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block25.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block25.java index 320cb199213..ea2c3c8d79a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block25.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block25.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block3.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block3.java index 2fc71f63f4a..d29cc113e0b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block3.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block3.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block4.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block4.java index 0e61694379c..99003edba4b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block4.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block4.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block5.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block5.java index ab94ab49208..3bd79c8fe3f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block5.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block5.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block6.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block6.java index ca79f8ed93c..20bf19a91c6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block6.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block6.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block7.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block7.java index 20b1409c2d3..867d763a087 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block7.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block7.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block8.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block8.java index e2ac594d215..47066f48835 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block8.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block8.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block9.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block9.java index 4f8b5fac35c..941da248894 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block9.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Block9.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/BlockN.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/BlockN.java index acedfbc0660..d5a756e52fe 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/BlockN.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/BlockN.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function0.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function0.java index 51ac6d0abe0..8d2a03293a9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function0.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function0.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function1.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function1.java index a48d965c819..ae2ee16446a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function1.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function1.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function2.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function2.java index 5a0b4321217..d7a19d410e3 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function2.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function2.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function3.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function3.java index 93096b44e55..43acac9860d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function3.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function3.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function4.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function4.java index 7e9090a8ff6..c30ddfc15cd 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function4.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function4.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function5.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function5.java index 6d09da2743c..d16499acce1 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function5.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function5.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function6.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function6.java index 61aeda6d69c..7d8c69e5a8b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function6.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Function6.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/FunctionN.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/FunctionN.java index 2818aad516b..b3b99733ea4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/FunctionN.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/FunctionN.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/FunctionUtils.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/FunctionUtils.java index 205998c92f1..e8715857c70 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/FunctionUtils.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/FunctionUtils.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; public final class FunctionUtils { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/HashedExpression.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/HashedExpression.java index 490c32ff1e0..a8ab8e8c71f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/HashedExpression.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/HashedExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.model.functions; /** diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/IntrospectableLambda.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/IntrospectableLambda.java index fe5c03a458e..afb4b81122f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/IntrospectableLambda.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/IntrospectableLambda.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.util.function.Supplier; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/LambdaPrinter.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/LambdaPrinter.java index 706c55fabcf..d46cdd73b3f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/LambdaPrinter.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/LambdaPrinter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.lang.reflect.Field; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Operator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Operator.java index e915b7ba28b..41e1aad370b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Operator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Operator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.util.Collection; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate1.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate1.java index 97397e8e070..344150ac04b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate1.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate1.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate10.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate10.java index 751d4f52dd5..6c3e05adcc0 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate10.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate10.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate11.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate11.java index e5e65c8b599..989c80fbb23 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate11.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate11.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate12.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate12.java index 65fd82ef4a5..73a04b74c62 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate12.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate12.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate13.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate13.java index 0a251864542..cc6f3fd06f0 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate13.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate13.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate2.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate2.java index 63091ba5440..434eb9a33b2 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate2.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate2.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate3.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate3.java index c5ea67d3438..56346ffdd34 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate3.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate3.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate4.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate4.java index 67ff143406a..959ec51ded3 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate4.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate4.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate5.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate5.java index 055195749c7..eb16573c15e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate5.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate5.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate6.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate6.java index d4f6acbb073..a83c1489b4c 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate6.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate6.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate7.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate7.java index bbadcd0ade5..08fec256b27 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate7.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate7.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate8.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate8.java index 4d693456bb5..3e00d7c27cb 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate8.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate8.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate9.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate9.java index b078a9b6e2e..f7694fe181a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate9.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/Predicate9.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/PredicateInformation.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/PredicateInformation.java index d7ab70c8cae..0fe2587d26a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/PredicateInformation.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/PredicateInformation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.model.functions; import java.util.HashMap; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/PredicateN.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/PredicateN.java index 380d8dd8666..f34ab201c7e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/PredicateN.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/PredicateN.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/ScriptBlock.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/ScriptBlock.java index 39472de2acf..3e5d4f4c167 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/ScriptBlock.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/ScriptBlock.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; public class ScriptBlock implements BlockN { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/accumulate/AccumulateFunction.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/accumulate/AccumulateFunction.java index e02ee42fe8f..51d9057eae3 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/accumulate/AccumulateFunction.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/accumulate/AccumulateFunction.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.accumulate; import java.util.function.Supplier; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/accumulate/GroupKey.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/accumulate/GroupKey.java index 33e1df3df92..3116fdd3485 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/accumulate/GroupKey.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/accumulate/GroupKey.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.functions.accumulate; import java.util.Objects; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/AbstractTemporalPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/AbstractTemporalPredicate.java index 53f6089c2b5..2bee4569e8a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/AbstractTemporalPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/AbstractTemporalPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import org.drools.model.impl.ModelComponent; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/AfterPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/AfterPredicate.java index 997eb294930..cef9b4b5398 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/AfterPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/AfterPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/BeforePredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/BeforePredicate.java index 1fb9779d182..8066314a020 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/BeforePredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/BeforePredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/CoincidesPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/CoincidesPredicate.java index 04c537a803d..2583f56b41a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/CoincidesPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/CoincidesPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/DuringPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/DuringPredicate.java index 3b6ff42cffc..618e7fa7e23 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/DuringPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/DuringPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/FinishedbyPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/FinishedbyPredicate.java index ce8bc66a4e7..5935bfd34d4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/FinishedbyPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/FinishedbyPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/FinishesPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/FinishesPredicate.java index f5d3b1d8dc8..ad622ed54b9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/FinishesPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/FinishesPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/IncludesPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/IncludesPredicate.java index 84ba2429fd6..8f5475a2767 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/IncludesPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/IncludesPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/Interval.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/Interval.java index 3d6ff3e0e84..621c782f756 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/Interval.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/Interval.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/MeetsPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/MeetsPredicate.java index 2970566e434..cf259c1e57e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/MeetsPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/MeetsPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/MetbyPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/MetbyPredicate.java index 0e3768c2efb..1847894f3af 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/MetbyPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/MetbyPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/OverlappedbyPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/OverlappedbyPredicate.java index c748d732565..ba350b82fcc 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/OverlappedbyPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/OverlappedbyPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/OverlapsPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/OverlapsPredicate.java index 60b4d4d539a..6ceba3e4511 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/OverlapsPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/OverlapsPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/StartedbyPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/StartedbyPredicate.java index 576b9f23bfe..8f60fc7dedf 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/StartedbyPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/StartedbyPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/StartsPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/StartsPredicate.java index 2c3adc3ab4b..6241999ce55 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/StartsPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/StartsPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/TemporalPredicate.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/TemporalPredicate.java index 037a515d52d..3bffa138881 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/TemporalPredicate.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/TemporalPredicate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; public interface TemporalPredicate { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/TimeUtil.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/TimeUtil.java index 4aa96f34c35..1e4ffc3ff3e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/TimeUtil.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/functions/temporal/TimeUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions.temporal; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/AbstractWindow.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/AbstractWindow.java index 123019b54d8..3f8656d96b9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/AbstractWindow.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/AbstractWindow.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/AnnotationValueImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/AnnotationValueImpl.java index b795fd0f9a3..6a74cf02896 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/AnnotationValueImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/AnnotationValueImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.AnnotationValue; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/DataSourceDefinitionImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/DataSourceDefinitionImpl.java index f217e8d0d7a..11787945671 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/DataSourceDefinitionImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/DataSourceDefinitionImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.DataSourceDefinition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/DeclarationImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/DeclarationImpl.java index c5512caea99..509b3692993 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/DeclarationImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/DeclarationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Declaration; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/EntryPointImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/EntryPointImpl.java index 8bc4494e3cc..d5caa49ffa2 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/EntryPointImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/EntryPointImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.EntryPoint; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Exchange.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Exchange.java index dfc01d968aa..2a7678f9689 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Exchange.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Exchange.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.functions.Function0; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From0Impl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From0Impl.java index 696f68b25df..aff8709d76a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From0Impl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From0Impl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.From0; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From1Impl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From1Impl.java index d3f96da3c98..3dddc5fc001 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From1Impl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From1Impl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.From1; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From2Impl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From2Impl.java index fda70234801..e03fcce67f4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From2Impl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From2Impl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.From2; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From3Impl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From3Impl.java index 63876713718..d21d0037f96 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From3Impl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From3Impl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.From3; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From4Impl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From4Impl.java index 6f3bc883665..b49c90b7fcb 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From4Impl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/From4Impl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.From4; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/GlobalImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/GlobalImpl.java index 3553dde5827..48a3621e260 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/GlobalImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/GlobalImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Global; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ModelComponent.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ModelComponent.java index f5ade0a5a82..6bb84b56064 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ModelComponent.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ModelComponent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.List; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ModelImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ModelImpl.java index 5548d7f8b26..c0f2163306b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ModelImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ModelImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.ArrayList; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/NamesGenerator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/NamesGenerator.java index 7ba861c8d11..3680e712a0f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/NamesGenerator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/NamesGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.concurrent.atomic.AtomicInteger; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/PrototypeImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/PrototypeImpl.java index 7dcdf8da34e..002e2c3acfc 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/PrototypeImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/PrototypeImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ package org.drools.model.impl; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/PrototypeVariableImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/PrototypeVariableImpl.java index b8b373ce757..f1ca5d4a18d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/PrototypeVariableImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/PrototypeVariableImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Prototype; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query0DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query0DefImpl.java index d093671c813..1a829dc3818 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query0DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query0DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Query0Def; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query10DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query10DefImpl.java index c9bdc1cf366..b7b8e8d5d1f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query10DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query10DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query1DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query1DefImpl.java index d8547c64c54..c17bc928d6d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query1DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query1DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query2DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query2DefImpl.java index e11775b9dba..c6262252afb 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query2DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query2DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query3DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query3DefImpl.java index d7d2a306562..11c3044a7fc 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query3DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query3DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query4DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query4DefImpl.java index 782ecbbf294..b34eb17e2ae 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query4DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query4DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query5DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query5DefImpl.java index 689093680da..e1fb4105d23 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query5DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query5DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query6DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query6DefImpl.java index bd91f1781b4..93623f3761c 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query6DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query6DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query7DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query7DefImpl.java index 258c20711f7..85777804e49 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query7DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query7DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query8DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query8DefImpl.java index badfb2a53f7..89cd99e5b0f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query8DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query8DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query9DefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query9DefImpl.java index 4350ffbbea1..8a47767e86c 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query9DefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/Query9DefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/QueryDefImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/QueryDefImpl.java index 97131783db5..b1209208104 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/QueryDefImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/QueryDefImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Query; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/QueryImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/QueryImpl.java index 5c08b8904f0..e0834501f3b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/QueryImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/QueryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Query; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/RuleBuilder.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/RuleBuilder.java index cd40cab5100..5ddcaa6fe74 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/RuleBuilder.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/RuleBuilder.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.HashMap; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/RuleImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/RuleImpl.java index 8688e15b84a..ac1857edf0a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/RuleImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/RuleImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.Collections; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/TupleHandleImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/TupleHandleImpl.java index 72d5449fa1f..ccabc417fcd 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/TupleHandleImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/TupleHandleImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Tuple; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/TypeMetaDataImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/TypeMetaDataImpl.java index b6f6cadbb0d..b727022f7c9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/TypeMetaDataImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/TypeMetaDataImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.lang.reflect.Field; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/UnitDataImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/UnitDataImpl.java index bce3336fb37..8f4ad657608 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/UnitDataImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/UnitDataImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.UnitData; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ValueImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ValueImpl.java index cd940f2ec5c..eab33b27347 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ValueImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ValueImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Value; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/VariableImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/VariableImpl.java index f27a3d84db6..3bee7c2571a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/VariableImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/VariableImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ViewBuilder.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ViewBuilder.java index 2678642ce32..1654ae468ac 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ViewBuilder.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ViewBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.function.Function; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ViewPatternBuilder.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ViewPatternBuilder.java index 975b77736b6..cf8ccea2b59 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ViewPatternBuilder.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/ViewPatternBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.ArrayList; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/WindowImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/WindowImpl.java index bde85ad4435..b3022dca438 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/WindowImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/WindowImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/WindowReferenceImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/WindowReferenceImpl.java index c369314ea1f..0b94159f5ce 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/WindowReferenceImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/impl/WindowReferenceImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.impl; import java.util.Arrays; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AbstractBetaIndex.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AbstractBetaIndex.java index c00f3795555..d26afb5506c 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AbstractBetaIndex.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AbstractBetaIndex.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.index; import org.drools.model.BetaIndexN; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AbstractIndex.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AbstractIndex.java index 5fe29368c94..e72cf9a2650 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AbstractIndex.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AbstractIndex.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.index; import org.drools.model.Index; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AlphaIndexImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AlphaIndexImpl.java index e4fadf819d5..06e0106cd0f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AlphaIndexImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/AlphaIndexImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.index; import org.drools.model.AlphaIndex; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex2Impl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex2Impl.java index 07f0d95cbd4..859bec43ea8 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex2Impl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex2Impl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.index; import org.drools.model.BetaIndex2; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex3Impl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex3Impl.java index fae06131a03..7ae7ad2412d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex3Impl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex3Impl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.index; import org.drools.model.BetaIndex3; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex4Impl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex4Impl.java index af9df3abb19..3840ce7e585 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex4Impl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndex4Impl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.index; import org.drools.model.BetaIndex4; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndexImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndexImpl.java index 3a06f689317..b7f6e5c47a4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndexImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/index/BetaIndexImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.index; import org.drools.model.BetaIndex; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/ContainsOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/ContainsOperator.java index 56bcd6b7a7c..5fa46950d79 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/ContainsOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/ContainsOperator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.operators; import java.util.Collection; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/ExcludesOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/ExcludesOperator.java index b38642d43a7..c21f5faa8d3 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/ExcludesOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/ExcludesOperator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.operators; import org.drools.model.functions.Operator; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/InOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/InOperator.java index ba51c69598e..adbc42970c8 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/InOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/InOperator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.operators; import org.drools.model.functions.Operator; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/MatchesOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/MatchesOperator.java index 758e9c79628..880748db1ec 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/MatchesOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/MatchesOperator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.operators; import org.drools.model.functions.Operator; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/MemberOfOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/MemberOfOperator.java index 5aa9e0b5126..5a2aea68cfd 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/MemberOfOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/MemberOfOperator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.operators; import org.drools.model.functions.Operator; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/SoundsLikeOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/SoundsLikeOperator.java index 004608dd2e7..1f0d09b6d1d 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/SoundsLikeOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/SoundsLikeOperator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.operators; import org.drools.model.functions.Operator; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringEndsWithOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringEndsWithOperator.java index bcefbb95418..a23c2da4c21 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringEndsWithOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringEndsWithOperator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.operators; import org.drools.model.functions.Operator; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringLengthWithOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringLengthWithOperator.java index 183749781a1..76b9cd054d4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringLengthWithOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringLengthWithOperator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.operators; import org.drools.model.functions.Operator; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringStartsWithOperator.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringStartsWithOperator.java index 424cbd1b142..91022eb23eb 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringStartsWithOperator.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/operators/StringStartsWithOperator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.operators; import org.drools.model.functions.Operator; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/AbstractSinglePattern.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/AbstractSinglePattern.java index 145e1734b1d..664b976595f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/AbstractSinglePattern.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/AbstractSinglePattern.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.patterns; import org.drools.model.Condition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/AccumulatePatternImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/AccumulatePatternImpl.java index 574787e14ad..e91e75725dc 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/AccumulatePatternImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/AccumulatePatternImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.patterns; import java.util.Arrays; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/CompositePatterns.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/CompositePatterns.java index 9d80b719d11..cfe48763183 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/CompositePatterns.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/CompositePatterns.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.patterns; import java.util.HashMap; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/EvalImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/EvalImpl.java index 92f576c3cff..bcd28d0fdf3 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/EvalImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/EvalImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.patterns; import org.drools.model.Condition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/ExistentialPatternImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/ExistentialPatternImpl.java index bd932a500c4..9036a1ae3c2 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/ExistentialPatternImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/ExistentialPatternImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.patterns; import java.util.Collections; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/GroupByPatternImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/GroupByPatternImpl.java index 2415bddbc72..d9f69dc7ec5 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/GroupByPatternImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/GroupByPatternImpl.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.patterns; import org.drools.model.Condition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/PatternBuilder.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/PatternBuilder.java index d0fdcc33607..db03750bf0c 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/PatternBuilder.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/PatternBuilder.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.patterns; import org.drools.model.Constraint; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/PatternImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/PatternImpl.java index 0fc71dfdb25..790e0bc53b8 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/PatternImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/PatternImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.patterns; import java.util.ArrayList; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/QueryCallPattern.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/QueryCallPattern.java index 4eb23c014c5..67f5af5543e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/QueryCallPattern.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/patterns/QueryCallPattern.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.patterns; import java.util.Arrays; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/util/OperatorUtils.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/util/OperatorUtils.java index 325b9e61a5b..769ce5699a4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/util/OperatorUtils.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/util/OperatorUtils.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.util; import java.math.BigDecimal; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/AbstractExprViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/AbstractExprViewItem.java index 0d192164cf6..71716ec8e7f 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/AbstractExprViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/AbstractExprViewItem.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Declaration; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/AccumulateExprViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/AccumulateExprViewItem.java index 20f4a2a8a76..a005e8ab2ec 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/AccumulateExprViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/AccumulateExprViewItem.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem1.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem1.java index 10be0e5f82d..cd0929c36dd 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem1.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem1.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import java.util.Arrays; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem2.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem2.java index 2bf26414d49..c6b59f791c9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem2.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem2.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import java.util.Arrays; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem3.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem3.java index 5a592cb61b8..1ed0bd48967 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem3.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem3.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import java.util.Arrays; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem4.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem4.java index a794f482ccb..90754e4e3bb 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem4.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/BindViewItem4.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import java.util.Arrays; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/CombinedExprViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/CombinedExprViewItem.java index 233cfc7c217..c3a55effad5 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/CombinedExprViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/CombinedExprViewItem.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import java.util.stream.Stream; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExistentialExprViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExistentialExprViewItem.java index 7adac259c8f..a2a5a01a6db 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExistentialExprViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExistentialExprViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr10ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr10ViewItemImpl.java index f7a71fb0b8e..01d656396a0 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr10ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr10ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition.Type; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr11ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr11ViewItemImpl.java index 6c7e4c2659f..19da8fe0834 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr11ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr11ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition.Type; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr12ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr12ViewItemImpl.java index 903b1981c1f..eaec8f1f2f4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr12ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr12ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition.Type; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr13ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr13ViewItemImpl.java index 16d2e7db3cd..055eeb7f795 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr13ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr13ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition.Type; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr1ViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr1ViewItem.java index 7ee302bcbfc..9aee268070e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr1ViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr1ViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Index; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr1ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr1ViewItemImpl.java index 5a767aa978b..0502db887f4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr1ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr1ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.AlphaIndex; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr2ViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr2ViewItem.java index 33a0f295f7e..c82191571d6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr2ViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr2ViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Index; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr2ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr2ViewItemImpl.java index f06341d4929..ca223eaf570 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr2ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr2ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.BetaIndex; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr3ViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr3ViewItem.java index ebe177d28f9..e41537c6f9a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr3ViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr3ViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Index; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr3ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr3ViewItemImpl.java index 20f3ee7f2ef..f4d8d98e282 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr3ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr3ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.BetaIndex2; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr4ViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr4ViewItem.java index 4d918c7ca6b..3962a5c1f53 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr4ViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr4ViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Index; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr4ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr4ViewItemImpl.java index 2e704ca516d..3eb792eab69 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr4ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr4ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.BetaIndex3; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr5ViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr5ViewItem.java index 78b8d48b98b..a7b2b74b3e1 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr5ViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr5ViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Index; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr5ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr5ViewItemImpl.java index 24ccfb10c09..c8e31469ae3 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr5ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr5ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.BetaIndex4; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr6ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr6ViewItemImpl.java index fddd0e8bde0..ad96301327a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr6ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr6ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition.Type; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr7ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr7ViewItemImpl.java index 1f29431f051..e80d1ac9842 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr7ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr7ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition.Type; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr8ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr8ViewItemImpl.java index fe59cc06b06..9166bad67e7 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr8ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr8ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition.Type; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr9ViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr9ViewItemImpl.java index 2301659ada5..410839a8026 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr9ViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/Expr9ViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition.Type; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExprNViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExprNViewItem.java index d24aaed9338..ad5346d461b 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExprNViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExprNViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; public interface ExprNViewItem extends ExprViewItem { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExprViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExprViewItem.java index 66bc67ae1a7..690eae19bc6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExprViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ExprViewItem.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/FixedTemporalExprViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/FixedTemporalExprViewItem.java index 7a34df434fd..59fe2697a2a 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/FixedTemporalExprViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/FixedTemporalExprViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/FixedValueItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/FixedValueItem.java index feeca4a32e5..e1443fb6ec6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/FixedValueItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/FixedValueItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/GroupByExprViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/GroupByExprViewItem.java index eec653931b1..4573c8605ad 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/GroupByExprViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/GroupByExprViewItem.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/InputViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/InputViewItem.java index 6e3806d1ad0..b361f676fa4 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/InputViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/InputViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; public interface InputViewItem extends ViewItem { diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/InputViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/InputViewItemImpl.java index a7dc5d7269a..1f601d0a950 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/InputViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/InputViewItemImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/QueryCallViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/QueryCallViewItem.java index a81bd7396ca..1629a8f5aea 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/QueryCallViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/QueryCallViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/QueryCallViewItemImpl.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/QueryCallViewItemImpl.java index 1f124ce2bf3..0208fad0dfd 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/QueryCallViewItemImpl.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/QueryCallViewItemImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Argument; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/SelfPatternBiding.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/SelfPatternBiding.java index f5d6a27762a..89cd5678b9e 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/SelfPatternBiding.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/SelfPatternBiding.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/TemporalExprViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/TemporalExprViewItem.java index e0213473178..6b4d4ba68e6 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/TemporalExprViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/TemporalExprViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Condition.Type; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/VariableTemporalExprViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/VariableTemporalExprViewItem.java index 79947787a5a..2c662c4efd9 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/VariableTemporalExprViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/VariableTemporalExprViewItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.Variable; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ViewItem.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ViewItem.java index 096e800a29c..0a9615ab949 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ViewItem.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ViewItem.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.RuleItem; diff --git a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ViewItemBuilder.java b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ViewItemBuilder.java index c30899a10e0..48be559c620 100644 --- a/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ViewItemBuilder.java +++ b/drools-model/drools-canonical-model/src/main/java/org/drools/model/view/ViewItemBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.view; import org.drools.model.RuleItemBuilder; diff --git a/drools-model/drools-canonical-model/src/test/java/org/drools/model/util/OperatorUtilsTest.java b/drools-model/drools-canonical-model/src/test/java/org/drools/model/util/OperatorUtilsTest.java index 0300ad27883..9a42b767312 100644 --- a/drools-model/drools-canonical-model/src/test/java/org/drools/model/util/OperatorUtilsTest.java +++ b/drools-model/drools-canonical-model/src/test/java/org/drools/model/util/OperatorUtilsTest.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.util; import java.math.BigDecimal; diff --git a/drools-model/drools-codegen-common/pom.xml b/drools-model/drools-codegen-common/pom.xml index 025094eae2e..b230f530523 100644 --- a/drools-model/drools-codegen-common/pom.xml +++ b/drools-model/drools-codegen-common/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.drools drools-model - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT org.drools diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/AppPaths.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/AppPaths.java index fe9bf19618f..98655143bdd 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/AppPaths.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/AppPaths.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.codegen.common; diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/DroolsModelApplicationPropertyProvider.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/DroolsModelApplicationPropertyProvider.java index e09edf4ed83..dfc6e8893b5 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/DroolsModelApplicationPropertyProvider.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/DroolsModelApplicationPropertyProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.codegen.common; import java.util.Collection; diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/DroolsModelBuildContext.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/DroolsModelBuildContext.java index bed864cbbdf..82612be3351 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/DroolsModelBuildContext.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/DroolsModelBuildContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.codegen.common; diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFile.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFile.java index ee542d09012..2d8af79e849 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFile.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFile.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.codegen.common; diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFileType.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFileType.java index 58bc367a891..9952a818693 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFileType.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFileType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.codegen.common; diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/AbstractDroolsModelBuildContext.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/AbstractDroolsModelBuildContext.java index e8a464fb349..64aa3be22d3 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/AbstractDroolsModelBuildContext.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/AbstractDroolsModelBuildContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.codegen.common.context; diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/JavaDroolsModelBuildContext.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/JavaDroolsModelBuildContext.java index a4ddca87a5a..db6f1f433dd 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/JavaDroolsModelBuildContext.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/JavaDroolsModelBuildContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.codegen.common.context; diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java index 45f736f73a9..362f1deea54 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/QuarkusDroolsModelBuildContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.codegen.common.context; diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/SpringBootDroolsModelBuildContext.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/SpringBootDroolsModelBuildContext.java index 8b60401472d..f81f63ad415 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/SpringBootDroolsModelBuildContext.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/context/SpringBootDroolsModelBuildContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.codegen.common.context; diff --git a/drools-model/drools-model-codegen/pom.xml b/drools-model/drools-model-codegen/pom.xml index a1d7ceef275..35579358bfd 100644 --- a/drools-model/drools-model-codegen/pom.xml +++ b/drools-model/drools-model-codegen/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.drools drools-model - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT org.drools diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/ExecutableModelProject.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/ExecutableModelProject.java index 3b7e3bc8845..6dedf286c10 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/ExecutableModelProject.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/ExecutableModelProject.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen; import java.util.function.BiFunction; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/AccumulateClassWriter.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/AccumulateClassWriter.java index 6ba53090c4a..03e2edfe1ce 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/AccumulateClassWriter.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/AccumulateClassWriter.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import com.github.javaparser.ast.body.TypeDeclaration; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CanonicalModelBuildContext.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CanonicalModelBuildContext.java index 2d763a0a9fb..ddf51f164ad 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CanonicalModelBuildContext.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CanonicalModelBuildContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CanonicalModelKieProject.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CanonicalModelKieProject.java index 6faf14e99f0..9a7f3c85416 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CanonicalModelKieProject.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CanonicalModelKieProject.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CompositePackageManager.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CompositePackageManager.java index cf6ab343c83..c5bf4d3b489 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CompositePackageManager.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/CompositePackageManager.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.drools.compiler.lang.descr.CompositePackageDescr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/DeclaredTypeWriter.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/DeclaredTypeWriter.java index f231600a767..7e1c6075a2c 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/DeclaredTypeWriter.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/DeclaredTypeWriter.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import com.github.javaparser.ast.body.TypeDeclaration; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/GeneratedClassWithPackage.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/GeneratedClassWithPackage.java index 702aba4a2aa..cb6a4029017 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/GeneratedClassWithPackage.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/GeneratedClassWithPackage.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/GeneratedFile.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/GeneratedFile.java index 4702b40f2f9..9090214c731 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/GeneratedFile.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/GeneratedFile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.nio.charset.StandardCharsets; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/JavaParserCompiler.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/JavaParserCompiler.java index 6b7cd74231b..47a0729ae31 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/JavaParserCompiler.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/JavaParserCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.security.AccessController; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelBuilderImpl.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelBuilderImpl.java index 5d2ad937328..6c9df9af3fd 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelBuilderImpl.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; @@ -22,7 +24,7 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.kie.builder.impl.BuildContext; import org.drools.compiler.lang.descr.CompositePackageDescr; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.drl.ast.descr.GlobalDescr; import org.drools.drl.ast.descr.ImportDescr; import org.drools.drl.ast.descr.PackageDescr; @@ -39,7 +41,7 @@ import java.util.function.Function; import static java.util.Arrays.asList; -import static org.drools.core.util.Drools.hasMvel; +import static org.drools.base.util.Drools.hasMvel; public class ModelBuilderImpl extends KnowledgeBuilderImpl { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelSourceClass.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelSourceClass.java index 1ad5d200297..164eb57f9e7 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelSourceClass.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelSourceClass.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import java.util.Collection; @@ -17,7 +35,7 @@ import com.github.javaparser.ast.expr.VariableDeclarationExpr; import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.type.ClassOrInterfaceType; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import org.drools.model.Model; import org.drools.modelcompiler.CanonicalKieModule; import org.drools.modelcompiler.CanonicalKieModuleModel; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelWriter.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelWriter.java index 8553fb72671..af46901cd68 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelWriter.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/ModelWriter.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; @@ -24,7 +25,7 @@ import java.util.stream.Collectors; import org.drools.compiler.compiler.io.memory.MemoryFileSystem; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import org.kie.api.builder.ReleaseId; import org.drools.util.PortablePath; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModel.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModel.java index 493718727af..0f5a065330d 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModel.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.lang.reflect.Method; @@ -65,8 +67,8 @@ import org.drools.compiler.builder.impl.TypeDeclarationUtils; import org.drools.compiler.compiler.DialectCompiletimeRegistry; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.factmodel.ClassDefinition; import org.drools.drl.ast.descr.EntryPointDeclarationDescr; import org.drools.drl.ast.descr.PackageDescr; import org.drools.model.DomainClassMetadata; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModelManager.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModelManager.java index 4938830574e..fccb080e0d6 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModelManager.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModelManager.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModelWriter.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModelWriter.java index 9b94b5facc7..b414bffe51d 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModelWriter.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageModelWriter.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageSourceManager.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageSourceManager.java index 36ae052e733..5867ed1c1cc 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageSourceManager.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageSourceManager.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageSources.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageSources.java index c827178f485..13c912e325b 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageSources.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/PackageSources.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/QueryModel.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/QueryModel.java index 64d81d25ca9..f32bfb38cb3 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/QueryModel.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/QueryModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Arrays; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleDescrImpl.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleDescrImpl.java index 291ec5ad0ea..622e736aedc 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleDescrImpl.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleDescrImpl.java @@ -1,24 +1,25 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.drools.drl.ast.descr.RuleDescr; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; public class RuleDescrImpl { private RuleDescr descr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleUnitWriter.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleUnitWriter.java index 4c6d1f60683..dac585dc3a6 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleUnitWriter.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleUnitWriter.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.io.IOException; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleWriter.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleWriter.java index c458db4a900..e622e4b83ab 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleWriter.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleWriter.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxAssembler.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxAssembler.java index 213057dffd5..f6fad9090de 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxAssembler.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxAssembler.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.drlx; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxCompiler.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxCompiler.java index fc939378f95..2e7e424c459 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxCompiler.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxCompiler.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.drlx; import com.github.javaparser.ParseResult; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxVisitor.java index 907ef670e1a..7a53f96bfcc 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/drlx/DrlxVisitor.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.drlx; import java.util.ArrayDeque; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/CompilationProblemErrorResult.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/CompilationProblemErrorResult.java index 85eeeecc387..9a4b716822c 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/CompilationProblemErrorResult.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/CompilationProblemErrorResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ConsequenceRewriteException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ConsequenceRewriteException.java index 24fd4092756..2ea795a3f67 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ConsequenceRewriteException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ConsequenceRewriteException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; public class ConsequenceRewriteException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/DuplicatedDeclarationError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/DuplicatedDeclarationError.java index e6d4e13d49f..f794fe1edb3 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/DuplicatedDeclarationError.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/DuplicatedDeclarationError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/GetterOverloadWarning.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/GetterOverloadWarning.java index 5907a42d9bf..c8d67ddf968 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/GetterOverloadWarning.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/GetterOverloadWarning.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/IncompatibleGetterOverloadError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/IncompatibleGetterOverloadError.java index 70a4a331859..cdf406f90ec 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/IncompatibleGetterOverloadError.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/IncompatibleGetterOverloadError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/InvalidExpressionErrorResult.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/InvalidExpressionErrorResult.java index 703ad81ad55..c956e13eda7 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/InvalidExpressionErrorResult.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/InvalidExpressionErrorResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import java.util.Optional; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/MvelCompilationError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/MvelCompilationError.java index e449eb70e11..19e3bddfb3a 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/MvelCompilationError.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/MvelCompilationError.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import org.drools.mvelcompiler.MvelCompilerException; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ParseExpressionErrorResult.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ParseExpressionErrorResult.java index 30f92300e6d..b08c306ed19 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ParseExpressionErrorResult.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/ParseExpressionErrorResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import java.util.Optional; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationError.java index 97514437d5f..4dbc2608776 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationError.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationException.java index 22c73d913da..7d36118ab9c 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownDeclarationException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; public class UnknownDeclarationException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownRuleUnitException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownRuleUnitException.java index 49cb08901e3..6043135c408 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownRuleUnitException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnknownRuleUnitException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; public class UnknownRuleUnitException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnsupportedFeatureError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnsupportedFeatureError.java index e701c6d54e9..8137f93b315 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnsupportedFeatureError.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/UnsupportedFeatureError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/VariableUsedInBindingError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/VariableUsedInBindingError.java index 951fe5f5eda..745863980e8 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/VariableUsedInBindingError.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/errors/VariableUsedInBindingError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.errors; import org.drools.drl.parser.DroolsError; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/AggregateKey.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/AggregateKey.java index a3870769374..0ee30f6f907 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/AggregateKey.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/AggregateKey.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.util.Objects; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/BoxedParameters.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/BoxedParameters.java index 12a4b12b0e3..d76cc757a23 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/BoxedParameters.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/BoxedParameters.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/Consequence.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/Consequence.java index 6d5dd3dd8bf..bdd82825538 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/Consequence.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/Consequence.java @@ -1,25 +1,25 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.util.ArrayList; import java.util.Collection; -import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; @@ -50,7 +50,7 @@ import com.github.javaparser.ast.type.Type; import org.drools.compiler.compiler.MissingDependencyError; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.factmodel.ClassDefinition; import org.drools.model.BitMask; import org.drools.model.bitmask.AllSetButLastBitMask; import org.drools.model.codegen.execmodel.PackageModel; @@ -65,7 +65,6 @@ import org.drools.util.StringUtils; import static com.github.javaparser.StaticJavaParser.parseExpression; -import static com.github.javaparser.ast.NodeList.nodeList; import static java.util.stream.Collectors.toSet; import static org.drools.model.codegen.execmodel.PackageModel.DOMAIN_CLASSESS_METADATA_FILE_NAME; import static org.drools.model.codegen.execmodel.PackageModel.DOMAIN_CLASS_METADATA_INSTANCE; @@ -165,7 +164,7 @@ public MethodCallExpr createCall(String consequenceString, BlockStmt ruleVariabl switch (context.getRuleDialect()) { case JAVA: rewriteReassignedDeclarations(ruleConsequence, usedDeclarationInRHS); - executeCall = executeCall(ruleVariablesBlock, ruleConsequence, usedDeclarationInRHS, onCall, Collections.emptySet()); + executeCall = executeCall(ruleVariablesBlock, ruleConsequence, usedDeclarationInRHS, onCall); break; case MVEL: executeCall = createExecuteCallMvel(consequenceString, ruleVariablesBlock, usedDeclarationInRHS, onCall); @@ -221,9 +220,9 @@ private MethodCallExpr createExecuteCallMvel(String consequenceString, BlockStmt return executeCall(ruleVariablesBlock, compile.statementResults(), usedDeclarationInRHS, - onCall, - compile.getUsedBindings()); + onCall); } + private BlockStmt rewriteConsequence(String consequence) { try { String ruleConsequenceAsBlock = preprocessConsequence(consequence.trim()); @@ -279,15 +278,7 @@ public static boolean containsWord(String word, String body) { return p.matcher(bodyWithDollarReplaced).find(); } - private MethodCallExpr executeCall(BlockStmt ruleVariablesBlock, BlockStmt ruleConsequence, Collection verifiedDeclUsedInRHS, MethodCallExpr onCall, Set modifyProperties) { - - for (String modifiedProperty : modifyProperties) { - NodeList arguments = nodeList(new NameExpr(modifiedProperty)); - MethodCallExpr update = new MethodCallExpr(new NameExpr("drools"), "update", arguments); - ruleConsequence.getStatements().add(new ExpressionStmt(update)); - } - - + private MethodCallExpr executeCall(BlockStmt ruleVariablesBlock, BlockStmt ruleConsequence, Collection verifiedDeclUsedInRHS, MethodCallExpr onCall) { boolean requireDrools = rewriteRHS(ruleVariablesBlock, ruleConsequence); MethodCallExpr executeCall = new MethodCallExpr(onCall != null ? onCall : new NameExpr("D"), EXECUTE_CALL); LambdaExpr executeLambda = new LambdaExpr(); @@ -401,7 +392,7 @@ private void addUpdateBitMask(BlockStmt ruleBlock, List methodCa if (context.isPropertyReactive(updatedClass)) { if ( !initializedBitmaskFields.contains( updatedVar ) ) { - Set modifiedProps = findModifiedProperties(methodCallExprs, updateExpr, updatedVar, updatedClass ); + Set modifiedProps = findModifiedProperties(methodCallExprs, updatedVar, updatedClass ); modifiedProps.addAll(findModifiedPropertiesFromAssignment(assignExprs, updatedVar)); MethodCallExpr bitMaskCreation = createBitMaskInitialization( updatedClass, modifiedProps ); AssignExpr bitMaskAssign = createBitMaskField(updatedVar, bitMaskCreation); @@ -454,9 +445,9 @@ private AssignExpr createBitMaskField(String updatedVar, MethodCallExpr bitMaskC return new AssignExpr(bitMaskVar, bitMaskCreation, AssignExpr.Operator.ASSIGN); } - private Set findModifiedProperties( List methodCallExprs, MethodCallExpr updateExpr, String updatedVar, Class updatedClass ) { + private Set findModifiedProperties( List methodCallExprs, String updatedVar, Class updatedClass ) { Set modifiedProps = new HashSet<>(); - for (MethodCallExpr methodCall : methodCallExprs.subList(0, methodCallExprs.indexOf(updateExpr))) { + for (MethodCallExpr methodCall : methodCallExprs) { if (!isDirectExpression(methodCall)) { continue; // don't evaluate a method which is a part of other expression } diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/ConstraintUtil.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/ConstraintUtil.java index 82f910e6922..32f36e8703a 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/ConstraintUtil.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/ConstraintUtil.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.generator; import java.util.Optional; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DRLIdGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DRLIdGenerator.java index 036a8cda45e..a15d061924a 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DRLIdGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DRLIdGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.util.Map; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DeclarationSpec.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DeclarationSpec.java index 1bb9293a9a9..f8d01f49b15 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DeclarationSpec.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DeclarationSpec.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.lang.reflect.ParameterizedType; @@ -25,9 +26,9 @@ import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.MethodCallExpr; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.PatternExtractor; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.PatternExtractor; import org.drools.drl.ast.descr.BehaviorDescr; import org.drools.drl.ast.descr.EntryPointDescr; import org.drools.drl.ast.descr.PatternDescr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DrlxParseUtil.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DrlxParseUtil.java index b13bc1d6c1f..86c96ac5059 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DrlxParseUtil.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DrlxParseUtil.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.lang.reflect.Field; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DslMethodNames.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DslMethodNames.java index a18db9969b4..f457cec38e8 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DslMethodNames.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DslMethodNames.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import com.github.javaparser.ast.NodeList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/FunctionGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/FunctionGenerator.java index 3e9ef5123b9..ae28f28ac41 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/FunctionGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/FunctionGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/ModelGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/ModelGenerator.java index 4640c1694af..b932598ca28 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/ModelGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/ModelGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.util.ArrayList; @@ -44,12 +46,12 @@ import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; import org.drools.compiler.builder.impl.TypeDeclarationContext; import org.drools.compiler.compiler.DescrBuildError; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.AnnotationDefinition; -import org.drools.core.rule.Behavior; -import org.drools.core.time.TimeUtils; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.AnnotationDefinition; +import org.drools.core.rule.BehaviorRuntime; +import org.drools.base.time.TimeUtils; import org.drools.drl.ast.descr.AndDescr; import org.drools.drl.ast.descr.AnnotationDescr; import org.drools.drl.ast.descr.AttributeDescr; @@ -528,11 +530,11 @@ private static void addVariable(BlockStmt ruleBlock, DeclarationSpec declaration } ); for ( BehaviorDescr behaviorDescr : declaration.getBehaviors() ) { MethodCallExpr windowCall = createDslTopLevelMethod(WINDOW_CALL); - if ( Behavior.BehaviorType.TIME_WINDOW.matches(behaviorDescr.getSubType() ) ) { + if ( BehaviorRuntime.BehaviorType.TIME_WINDOW.matches(behaviorDescr.getSubType()) ) { windowCall.addArgument( "org.drools.model.Window.Type.TIME" ); windowCall.addArgument( "" + TimeUtils.parseTimeString(behaviorDescr.getParameters().get(0 ) ) ); } - if ( Behavior.BehaviorType.LENGTH_WINDOW.matches( behaviorDescr.getSubType() ) ) { + if ( BehaviorRuntime.BehaviorType.LENGTH_WINDOW.matches(behaviorDescr.getSubType()) ) { windowCall.addArgument( "org.drools.model.Window.Type.LENGTH" ); windowCall.addArgument( "" + Integer.valueOf( behaviorDescr.getParameters().get( 0 ) ) ); } diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/OOPathExprGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/OOPathExprGenerator.java index 9d6b00d56e9..4c845e06fef 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/OOPathExprGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/OOPathExprGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.lang.reflect.ParameterizedType; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/QueryGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/QueryGenerator.java index 54d2ab9237c..458e1c9e925 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/QueryGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/QueryGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.util.HashMap; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/QueryParameter.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/QueryParameter.java index 546480500fa..9dfc43f612e 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/QueryParameter.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/QueryParameter.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; public class QueryParameter { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/RuleContext.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/RuleContext.java index 7c67ce8009b..737d68a3e2a 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/RuleContext.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/RuleContext.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.lang.reflect.Method; @@ -45,7 +46,7 @@ import org.drools.compiler.builder.impl.KnowledgeBuilderRulesConfigurationImpl; import org.drools.compiler.builder.impl.TypeDeclarationContext; import org.drools.compiler.rule.builder.EvaluatorDefinition; -import org.drools.core.ruleunit.RuleUnitDescriptionLoader; +import org.drools.base.ruleunit.RuleUnitDescriptionLoader; import org.drools.core.util.Bag; import org.drools.drl.ast.descr.AndDescr; import org.drools.drl.ast.descr.AttributeDescr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/TypedExpression.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/TypedExpression.java index b5b3f3c6c92..0920578bd88 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/TypedExpression.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/TypedExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.lang.reflect.Type; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/UnificationTypedExpression.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/UnificationTypedExpression.java index f943eebf28e..35c0844fba8 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/UnificationTypedExpression.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/UnificationTypedExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.lang.reflect.Type; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/WindowReferenceGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/WindowReferenceGenerator.java index 17d0ca429f5..20eddb98adc 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/WindowReferenceGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/WindowReferenceGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import com.github.javaparser.ast.expr.ClassExpr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/BlockGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/BlockGenerator.java index 68225ee31c3..882371f216e 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/BlockGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/BlockGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.consequence; import java.io.IOException; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/ConsequenceDSLGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/ConsequenceDSLGenerator.java index 4ed083fa218..b5b3bb9f5b6 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/ConsequenceDSLGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/ConsequenceDSLGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.consequence; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/ConsequenceGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/ConsequenceGenerator.java index 14a6938ff2a..4b0173814e8 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/ConsequenceGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/consequence/ConsequenceGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.consequence; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/AccessibleMethod.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/AccessibleMethod.java index cbce9e6f285..9f37bb18eae 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/AccessibleMethod.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/AccessibleMethod.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype; import java.lang.reflect.Method; @@ -27,7 +29,7 @@ import com.github.javaparser.ast.stmt.Statement; import com.github.javaparser.ast.stmt.SwitchEntry; import com.github.javaparser.ast.stmt.SwitchStmt; -import org.drools.core.factmodel.AccessibleFact; +import org.drools.base.factmodel.AccessibleFact; import org.drools.model.codegen.execmodel.generator.declaredtype.api.MethodDefinition; import org.drools.model.codegen.execmodel.generator.declaredtype.api.MethodWithStringBody; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrAnnotationDefinition.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrAnnotationDefinition.java index 563dbd5f13b..7c9075549b2 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrAnnotationDefinition.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrAnnotationDefinition.java @@ -1,20 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype; import java.util.Collections; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrFieldDefinition.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrFieldDefinition.java index 11ea8918e50..8e172c01647 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrFieldDefinition.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrFieldDefinition.java @@ -1,20 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype; import java.util.Arrays; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrTypeDefinition.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrTypeDefinition.java index 0e8d8addb48..23cae82b022 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrTypeDefinition.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/DescrTypeDefinition.java @@ -1,20 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/EnumGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/EnumGenerator.java index 21edb30e229..09e29a189e8 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/EnumGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/EnumGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/POJOGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/POJOGenerator.java index ce556dd91b2..0df256a318a 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/POJOGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/POJOGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype; import java.util.Arrays; @@ -37,9 +38,9 @@ import org.drools.drl.ast.descr.TypeDeclarationDescr; import org.drools.compiler.rule.builder.ConstraintBuilder; import org.drools.util.TypeResolver; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.factmodel.AccessibleFact; -import org.drools.core.factmodel.GeneratedFact; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.factmodel.AccessibleFact; +import org.drools.base.factmodel.GeneratedFact; import org.drools.model.codegen.execmodel.GeneratedClassWithPackage; import org.drools.model.codegen.execmodel.PackageModel; import org.drools.model.codegen.execmodel.errors.DuplicatedDeclarationError; @@ -47,7 +48,7 @@ import org.drools.model.codegen.execmodel.generator.declaredtype.generator.GeneratedClassDeclaration; import org.kie.internal.builder.KnowledgeBuilderResult; -import static org.drools.core.util.Drools.hasMvel; +import static org.drools.base.util.Drools.hasMvel; import static org.drools.model.codegen.execmodel.JavaParserCompiler.compileAll; import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.toStringLiteral; import static org.drools.model.codegen.execmodel.generator.DslMethodNames.ADD_ANNOTATION_CALL; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/UnknownKeysInAnnotation.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/UnknownKeysInAnnotation.java index 69096307e38..cb5d147a3e5 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/UnknownKeysInAnnotation.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/UnknownKeysInAnnotation.java @@ -1,20 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/UnkownAnnotationClassException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/UnkownAnnotationClassException.java index c63e957d9cb..a2b30ab01d3 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/UnkownAnnotationClassException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/UnkownAnnotationClassException.java @@ -1,20 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype; public class UnkownAnnotationClassException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/AnnotationDefinition.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/AnnotationDefinition.java index 2610c051b5f..a24d6c4ad37 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/AnnotationDefinition.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/AnnotationDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.api; import java.util.Map; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/FieldDefinition.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/FieldDefinition.java index ae096296278..19b97fa9578 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/FieldDefinition.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/FieldDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.api; import java.util.Collections; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodDefinition.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodDefinition.java index ef0336227d3..477d96146cc 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodDefinition.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.api; import java.util.Collections; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodParameter.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodParameter.java index cb138de17bc..e85f331ce35 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodParameter.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodParameter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.api; public class MethodParameter { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodWithStringBody.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodWithStringBody.java index fa1b38ecbe6..bd043d2d66f 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodWithStringBody.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/MethodWithStringBody.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.api; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/SimpleAnnotationDefinition.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/SimpleAnnotationDefinition.java index a8b7878fe33..f43bd2c55d6 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/SimpleAnnotationDefinition.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/SimpleAnnotationDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.api; import java.util.HashMap; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/TypeDefinition.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/TypeDefinition.java index 231268b6b1f..cf714fdeb18 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/TypeDefinition.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/TypeDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.api; import java.util.Collections; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/TypeResolver.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/TypeResolver.java index bf87707003e..169f64d6d09 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/TypeResolver.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/api/TypeResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.api; import java.util.Optional; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedClassDeclaration.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedClassDeclaration.java index 0c2d3fe14f8..a26987c46ad 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedClassDeclaration.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedClassDeclaration.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.generator; import java.io.Serializable; @@ -105,7 +106,7 @@ private ClassOrInterfaceDeclaration createBasicDeclaredClass(String generatedCla , false , generatedClassName); - basicDeclaredClass.addImplementedType(Serializable.class.getName()); // Ref: {@link org.drools.core.factmodel.DefaultBeanClassBuilder} by default always receive is Serializable. + basicDeclaredClass.addImplementedType(Serializable.class.getName()); // Ref: {@link org.drools.base.factmodel.DefaultBeanClassBuilder} by default always receive is Serializable. markerInterfaceAnnotations.stream().map(Class::getCanonicalName).forEach(basicDeclaredClass::addImplementedType); basicDeclaredClass.addConstructor(Modifier.publicModifier().getKeyword()); // No-args ctor diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedConstructor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedConstructor.java index d979431a8f0..351ba540e05 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedConstructor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedConstructor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.generator; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedEqualsMethod.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedEqualsMethod.java index a215a3aa358..6e1f8f6c59d 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedEqualsMethod.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedEqualsMethod.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.generator; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedHashcode.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedHashcode.java index c20d026146c..5660de71d3a 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedHashcode.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedHashcode.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.generator; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedToString.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedToString.java index cb1b81e7b73..2872d4f3d57 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedToString.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/declaredtype/generator/GeneratedToString.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.declaredtype.generator; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/AbstractDrlxParseSuccess.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/AbstractDrlxParseSuccess.java index d27133fce47..d56fc66b027 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/AbstractDrlxParseSuccess.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/AbstractDrlxParseSuccess.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ArithmeticCoercedExpression.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ArithmeticCoercedExpression.java index 89d7d77b9c7..3cdea08ab37 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ArithmeticCoercedExpression.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ArithmeticCoercedExpression.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/CoercedExpression.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/CoercedExpression.java index 562c8740b95..4bbd12d9630 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/CoercedExpression.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/CoercedExpression.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import java.io.Serializable; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintExpression.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintExpression.java index b73448415f6..0563c0340ca 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintExpression.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import java.lang.reflect.Field; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParser.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParser.java index 4ecb56c73fd..50f95366c16 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParser.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParser.java @@ -1,26 +1,28 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import java.lang.reflect.Type; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Optional; @@ -71,6 +73,8 @@ import org.drools.mvel.parser.printer.PrintUtil; import org.drools.mvelcompiler.CompiledExpressionResult; import org.drools.mvelcompiler.ConstraintCompiler; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import static com.github.javaparser.ast.expr.BinaryExpr.Operator.AND; import static com.github.javaparser.ast.expr.BinaryExpr.Operator.DIVIDE; @@ -117,6 +121,8 @@ */ public class ConstraintParser { + private static final Logger LOG = LoggerFactory.getLogger(ConstraintParser.class); + private static final List ARITHMETIC_OPERATORS = asList(PLUS, MINUS, MULTIPLY, DIVIDE, REMAINDER); private final RuleContext context; private final PackageModel packageModel; @@ -169,9 +175,27 @@ public DrlxParseResult drlxParse(Class patternType, String bindingId, Constra } }); + logWarnIfNoReactOnCausedByVariableFromDifferentPattern(drlxParseResult); + return drlxParseResult; } + private void logWarnIfNoReactOnCausedByVariableFromDifferentPattern(DrlxParseResult drlxParseResult) { + if (drlxParseResult instanceof DrlxParseFail) { + return; + } + if (drlxParseResult instanceof MultipleDrlxParseSuccess) { + Arrays.asList(((MultipleDrlxParseSuccess) drlxParseResult).getResults()).forEach(this::logWarnIfNoReactOnCausedByVariableFromDifferentPattern); + return; + } + SingleDrlxParseSuccess result = (SingleDrlxParseSuccess) drlxParseResult; + if (context.getCurrentConstraintDescr().isPresent() && !result.getVariablesFromDifferentPattern().isEmpty() && result.getReactOnProperties().isEmpty()) { + LOG.warn("{} is not relevant to this pattern, so it causes class reactivity. " + + "Consider placing this constraint in the original pattern if possible : {}", + result.getVariablesFromDifferentPattern(), result.getOriginalDrlConstraint()); + } + } + private void addDeclaration(DrlxExpression drlx, SingleDrlxParseSuccess singleResult, String bindId) { DeclarationSpec decl = context.addDeclaration( bindId, singleResult.getLeftExprTypeBeforeCoercion() ); if (drlx.getExpr() instanceof NameExpr) { @@ -323,6 +347,7 @@ private DrlxParseResult compileToJavaRecursive(Class patternType, return new SingleDrlxParseSuccess(patternType, bindingId, combo, exprType) .setReactOnProperties( expressionTyperContext.getReactOnProperties() ) + .setVariablesFromDifferentPattern(expressionTyperContext.getVariablesFromDifferentPattern()) .setUsedDeclarations( expressionTyperContext.getUsedDeclarations() ) .setImplicitCastExpression( expressionTyperContext.getInlineCastExpression() ) .setNullSafeExpressions(expressionTyperContext.getNullSafeExpressions()) @@ -676,6 +701,7 @@ private DrlxParseResult parseBinaryExpr(BinaryExpr binaryExpr, Class patternT .setUsedDeclarationsOnLeft( usedDeclarationsOnLeft ) .setUnification( constraint.isUnification() ) .setReactOnProperties( expressionTyperContext.getReactOnProperties() ) + .setVariablesFromDifferentPattern(expressionTyperContext.getVariablesFromDifferentPattern()) .setLeft( left ) .setRight( right ) .setBetaConstraint(isBetaConstraint) diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseFail.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseFail.java index 4c34b0eb4d1..0ce8df353ef 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseFail.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseFail.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import com.github.javaparser.ast.expr.BinaryExpr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseResult.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseResult.java index 3069e5ad20e..bb9c5abdf1b 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseResult.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseResult.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import com.github.javaparser.ast.expr.BinaryExpr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseSuccess.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseSuccess.java index 6429f837fa0..976fd19afd3 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseSuccess.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/DrlxParseSuccess.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/MultipleDrlxParseSuccess.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/MultipleDrlxParseSuccess.java index 5180a5c46a8..6d0ba807d6f 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/MultipleDrlxParseSuccess.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/MultipleDrlxParseSuccess.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ParseResultVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ParseResultVisitor.java index 00a78ff4767..370aa10a60a 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ParseResultVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ParseResultVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; public interface ParseResultVisitor { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ParseResultVoidVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ParseResultVoidVisitor.java index 4a2db80bd68..d3c3eb1644c 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ParseResultVoidVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/ParseResultVoidVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; @FunctionalInterface diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/SingleDrlxParseSuccess.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/SingleDrlxParseSuccess.java index ef6e6ef3e0c..d0557abdb54 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/SingleDrlxParseSuccess.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/SingleDrlxParseSuccess.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import java.lang.reflect.Type; @@ -78,6 +80,8 @@ public class SingleDrlxParseSuccess extends AbstractDrlxParseSuccess { private Optional implicitCastExpression = Optional.empty(); private List nullSafeExpressions = new ArrayList<>(); + private Set variablesFromDifferentPattern = new HashSet<>(); + public SingleDrlxParseSuccess(Class patternType, String patternBinding, Expression expr, Type exprType) { this.patternType = patternType; this.patternBinding = patternBinding; @@ -110,6 +114,7 @@ public SingleDrlxParseSuccess(SingleDrlxParseSuccess drlx) { this.combined = drlx.isCombined(); this.implicitCastExpression = drlx.getImplicitCastExpression(); this.nullSafeExpressions = drlx.getNullSafeExpressions(); + this.variablesFromDifferentPattern = drlx.getVariablesFromDifferentPattern(); this.watchedProperties = drlx.getWatchedProperties(); } @@ -479,6 +484,15 @@ public SingleDrlxParseSuccess setNullSafeExpressions(List nullSafeEx return this; } + public Set getVariablesFromDifferentPattern() { + return variablesFromDifferentPattern; + } + + public SingleDrlxParseSuccess setVariablesFromDifferentPattern(Set variablesFromDifferentPattern) { + this.variablesFromDifferentPattern = variablesFromDifferentPattern; + return this; + } + @Override public String toString() { return originalDrlConstraint; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/SpecialComparisonCase.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/SpecialComparisonCase.java index 8c5227bcb4c..7e935b37b12 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/SpecialComparisonCase.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/drlxparse/SpecialComparisonCase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.drlxparse; import java.lang.reflect.Type; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/AbstractExpressionBuilder.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/AbstractExpressionBuilder.java index c24ce42fecb..0bd0ebcb8a4 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/AbstractExpressionBuilder.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/AbstractExpressionBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.expression; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/EvalExpressionBuilder.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/EvalExpressionBuilder.java index 97926a38a79..8c3a6adceee 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/EvalExpressionBuilder.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/EvalExpressionBuilder.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.expression; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/PatternExpressionBuilder.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/PatternExpressionBuilder.java index c8008f9f7f0..b0f3f0bf8fd 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/PatternExpressionBuilder.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expression/PatternExpressionBuilder.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.expression; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/CannotTypeExpressionException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/CannotTypeExpressionException.java index 02ae74373e8..1dd0192ecf1 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/CannotTypeExpressionException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/CannotTypeExpressionException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.expressiontyper; public class CannotTypeExpressionException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyper.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyper.java index 0d661c858f5..9b5dd94561e 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyper.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyper.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.expressiontyper; import java.lang.reflect.Field; @@ -630,7 +631,14 @@ private void addReactOnPropertyForArgument( Node arg ) { String name = ((NameExpr) arg).getNameAsString(); ruleContext.getDeclarationById(name) .filter(decl -> decl.getBelongingPatternDescr().isPresent()) - .filter(decl -> decl.getBelongingPatternDescr().equals(ruleContext.getCurrentPatternDescr())) + .filter(decl -> { + if (decl.getBelongingPatternDescr().equals(ruleContext.getCurrentPatternDescr())) { + return true; + } else { + context.addVariableFromDifferentPattern(name); + return false; + } + }) .flatMap(decl -> decl.getBoundVariable()) .ifPresent(context::addReactOnProperties); return; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyperContext.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyperContext.java index 8a4c88b493b..49ae26d2005 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyperContext.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/ExpressionTyperContext.java @@ -1,24 +1,26 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.expressiontyper; import java.util.ArrayList; import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.List; import java.util.Optional; import java.util.Set; @@ -29,7 +31,7 @@ public class ExpressionTyperContext { - private List usedDeclarations = new ArrayList<>(); + private Set usedDeclarations = new LinkedHashSet<>(); private Set reactOnProperties = new HashSet<>(); private List prefixExpresssions = new ArrayList<>(); private Expression originalExpression; @@ -39,11 +41,13 @@ public class ExpressionTyperContext { private Optional inlineCastExpression = Optional.empty(); private List nullSafeExpressions = new ArrayList<>(); + private Set variablesFromDifferentPattern = new HashSet<>(); + public void addUsedDeclarations(String name) { usedDeclarations.add(name); } - public List getUsedDeclarations() { + public Set getUsedDeclarations() { return usedDeclarations; } @@ -100,4 +104,12 @@ public Expression getOriginalExpression() { public void setOriginalExpression(Expression originalExpression) { this.originalExpression = originalExpression; } + + public Set getVariablesFromDifferentPattern() { + return variablesFromDifferentPattern; + } + + public void addVariableFromDifferentPattern(String variable) { + variablesFromDifferentPattern.add(variable); + } } diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/FlattenScope.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/FlattenScope.java index 84d625c23c9..bfb3b267798 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/FlattenScope.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/FlattenScope.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.expressiontyper; import java.util.ArrayDeque; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/TypedExpressionResult.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/TypedExpressionResult.java index 4a8b9c1f114..95f4d3f5fcb 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/TypedExpressionResult.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/expressiontyper/TypedExpressionResult.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.expressiontyper; import java.util.List; @@ -43,7 +44,7 @@ public TypedExpression typedExpressionOrException() { String.format("Cannot type expression: %s", expressionTyperContext.getOriginalExpression()))); } - public List getUsedDeclarations() { + public Set getUsedDeclarations() { return expressionTyperContext.getUsedDeclarations(); } diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/CustomOperatorSpec.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/CustomOperatorSpec.java index c45159e6ce8..d484855c230 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/CustomOperatorSpec.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/CustomOperatorSpec.java @@ -1,23 +1,24 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.operatorspec; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import com.github.javaparser.ast.expr.MethodCallExpr; import org.drools.model.functions.Operator; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/CustomOperatorWrapper.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/CustomOperatorWrapper.java index 5fa50dddb83..1bea9a15093 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/CustomOperatorWrapper.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/CustomOperatorWrapper.java @@ -1,22 +1,24 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.operatorspec; -import org.drools.core.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.Evaluator; import org.drools.model.functions.Operator; import static org.drools.core.common.InternalFactHandle.dummyFactHandleOf; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/NativeOperatorSpec.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/NativeOperatorSpec.java index b9c366828f1..164fbf73b11 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/NativeOperatorSpec.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/NativeOperatorSpec.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.operatorspec; import java.util.Optional; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/OperatorSpec.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/OperatorSpec.java index c81aca0728b..4de6fa3fa5b 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/OperatorSpec.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/OperatorSpec.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.operatorspec; import org.drools.mvel.parser.ast.expr.PointFreeExpr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/TemporalOperatorSpec.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/TemporalOperatorSpec.java index d59b76994c6..32cd4d95093 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/TemporalOperatorSpec.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/operatorspec/TemporalOperatorSpec.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.operatorspec; import org.drools.mvel.parser.ast.expr.PointFreeExpr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/FlowDSLQueryGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/FlowDSLQueryGenerator.java index f6fcb1c49ce..489ab6b01bc 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/FlowDSLQueryGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/FlowDSLQueryGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.query; import com.github.javaparser.ast.Modifier; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/Generator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/Generator.java index 7f0f5d066de..fc443dd76a0 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/Generator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/Generator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.query; import java.util.stream.IntStream; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/PatternDSLQueryGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/PatternDSLQueryGenerator.java index dd454f3767d..77b55a9f98e 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/PatternDSLQueryGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/PatternDSLQueryGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.query; import com.github.javaparser.ast.Modifier; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryDefGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryDefGenerator.java index 90b69c31e6a..7d93c784d0d 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryDefGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryDefGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.query; import com.github.javaparser.ast.CompilationUnit; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryDefImplGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryDefImplGenerator.java index 3f9e7f3d5f6..f007b0c27dd 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryDefImplGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryDefImplGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.query; import com.github.javaparser.ast.CompilationUnit; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryGenerator.java index e5fe6f2a906..4dabab83c79 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/query/QueryGenerator.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.query; import java.nio.file.Files; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/AndVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/AndVisitor.java index 69773e7070e..b938e5aba59 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/AndVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/AndVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor; import org.drools.drl.ast.descr.AndDescr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/ConditionalElementVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/ConditionalElementVisitor.java index 6a7eed9517c..819e5ee1156 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/ConditionalElementVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/ConditionalElementVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/DSLNode.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/DSLNode.java index 45bd529d4d4..d6caee507f5 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/DSLNode.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/DSLNode.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor; public interface DSLNode { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/EvalVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/EvalVisitor.java index 0cfd713a564..cc57b1f6839 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/EvalVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/EvalVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor; import java.util.Optional; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/FromCollectVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/FromCollectVisitor.java index 9a0d1e4c7fa..78611e2feff 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/FromCollectVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/FromCollectVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor; import org.drools.drl.ast.descr.AccumulateDescr; @@ -24,28 +25,46 @@ public class FromCollectVisitor { + public static final String GENERIC_COLLECT = "genericCollect"; + private final ModelGeneratorVisitor parentVisitor; public FromCollectVisitor(ModelGeneratorVisitor parentVisitor) { this.parentVisitor = parentVisitor; } - public void trasformFromCollectToCollectList(PatternDescr pattern, CollectDescr collectDescr) { + public void transformFromCollectToCollectList(PatternDescr pattern, CollectDescr collectDescr) { // The inner pattern of the "from collect" needs to be processed to have the binding final PatternDescr collectDescrInputPattern = collectDescr.getInputPattern(); if (!parentVisitor.initPattern( collectDescrInputPattern )) { return; } + String collectTarget = pattern.getObjectType(); + final AccumulateDescr accumulateDescr = new AccumulateDescr(); accumulateDescr.setInputPattern(collectDescrInputPattern); - accumulateDescr.addFunction("collectList", null, false, new String[]{collectDescrInputPattern.getIdentifier()}); + accumulateDescr.addFunction(getCollectFunction(collectTarget), null, false, new String[]{collectDescrInputPattern.getIdentifier()}); - final PatternDescr transformedPatternDescr = new PatternDescr(pattern.getObjectType(), pattern.getIdentifier()); + final PatternDescr transformedPatternDescr = new PatternDescr(collectTarget, pattern.getIdentifier()); for (BaseDescr o : pattern.getConstraint().getDescrs()) { transformedPatternDescr.addConstraint(o); } transformedPatternDescr.setSource(accumulateDescr); transformedPatternDescr.accept(parentVisitor); } + + private static String getCollectFunction(String collectTarget) { + switch (collectTarget) { + case "Collection": + case "java.util.Collection": + case "List": + case "java.util.List": + return "collectList"; + case "Set": + case "java.util.Set": + return "collectSet"; + default: return GENERIC_COLLECT; + } + } } diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/FromVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/FromVisitor.java index 96e19c1557c..0e04eacedde 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/FromVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/FromVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor; import java.util.ArrayList; @@ -50,7 +51,7 @@ import static java.util.Optional.of; import static java.util.Optional.ofNullable; -import static org.drools.core.rule.Pattern.isCompatibleWithFromReturnType; +import static org.drools.base.rule.Pattern.isCompatibleWithFromReturnType; import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.findViaScopeWithPredicate; import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.generateLambdaWithoutParameters; import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.toStringLiteral; @@ -217,7 +218,7 @@ private String addFromArgument( Expression methodCallExpr, MethodCallExpr fromCa // Avoid re-add preexisting arguments private void addArgumentWithPreexistingCheck(MethodCallExpr fromCall, Collection args) { args.stream() - .filter(a -> fromCall.findAll(NameExpr.class, fa -> fa.toString().equals(toVar(a))).isEmpty()) + .filter(a -> fromCall.findAll(NameExpr.class, fa -> fa.toString().equals(toVar(a)) || fa.toString().equals(context.getVarExpr(a).toString())).isEmpty()) .map(context::getVarExpr) .forEach(fromCall::addArgument); } @@ -286,7 +287,6 @@ private Expression createArg(String expression, String bindingId, MethodCallExpr if (newExpr instanceof LambdaExpr) { context.getPackageModel().registerLambdaReturnType((LambdaExpr)newExpr, singleResult.getExprType()); } - addArgumentWithPreexistingCheck(fromCall, singleResult.getUsedDeclarations()); return newExpr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/ModelGeneratorVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/ModelGeneratorVisitor.java index e9213030dc8..9a0e1ca57ea 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/ModelGeneratorVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/ModelGeneratorVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor; import org.drools.drl.ast.descr.AccumulateDescr; @@ -113,7 +114,7 @@ public void visit(ConditionalBranchDescr descr) { public void visit(PatternDescr descr) { final PatternSourceDescr patternSource = descr.getSource(); if (patternSource instanceof CollectDescr) { - new FromCollectVisitor(this).trasformFromCollectToCollectList(descr, (CollectDescr) patternSource); + new FromCollectVisitor(this).transformFromCollectToCollectList(descr, (CollectDescr) patternSource); } else if (patternSource instanceof GroupByDescr) { new GroupByVisitor(this, context, packageModel).visit((GroupByDescr) patternSource, descr); new PatternVisitor(context, packageModel).visit(descr).buildPattern(); diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/NamedConsequenceVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/NamedConsequenceVisitor.java index 59022f9b4f8..f8531c3c266 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/NamedConsequenceVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/NamedConsequenceVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/OrVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/OrVisitor.java index dd08648b8e9..e8a4e737d60 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/OrVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/OrVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateInline.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateInline.java index a1e523786d7..2034e4220cd 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateInline.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateInline.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.accumulate; import java.io.IOException; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateInlineVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateInlineVisitor.java index ca20432470c..39b44a49d6f 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateInlineVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateInlineVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.accumulate; import java.util.Collection; @@ -32,7 +33,7 @@ import org.drools.model.codegen.execmodel.errors.InvalidExpressionErrorResult; import org.drools.model.codegen.execmodel.generator.RuleContext; -import static org.drools.core.util.Drools.hasMvel; +import static org.drools.base.util.Drools.hasMvel; import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.addSemicolon; import static org.drools.model.codegen.execmodel.generator.visitor.accumulate.AccumulateVisitor.collectNamesInBlock; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateVisitor.java index 3e1b1bc1eed..746722bb7c0 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/AccumulateVisitor.java @@ -1,31 +1,23 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.accumulate; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import java.util.Set; - import com.github.javaparser.ast.Node; import com.github.javaparser.ast.NodeList; import com.github.javaparser.ast.body.Parameter; @@ -36,17 +28,20 @@ import com.github.javaparser.ast.expr.MethodCallExpr; import com.github.javaparser.ast.expr.MethodReferenceExpr; import com.github.javaparser.ast.expr.NameExpr; +import com.github.javaparser.ast.expr.ObjectCreationExpr; +import com.github.javaparser.ast.expr.StringLiteralExpr; import com.github.javaparser.ast.stmt.BlockStmt; import com.github.javaparser.ast.stmt.ExpressionStmt; -import org.drools.drl.ast.descr.AccumulateDescr; -import org.drools.drl.ast.descr.AndDescr; -import org.drools.drl.ast.descr.BaseDescr; -import org.drools.drl.ast.descr.PatternDescr; +import com.github.javaparser.ast.type.ClassOrInterfaceType; +import org.drools.base.rule.Pattern; import org.drools.compiler.rule.builder.util.AccumulateUtil; import org.drools.core.base.accumulators.CollectAccumulator; import org.drools.core.base.accumulators.CollectListAccumulateFunction; import org.drools.core.base.accumulators.CollectSetAccumulateFunction; -import org.drools.core.rule.Pattern; +import org.drools.drl.ast.descr.AccumulateDescr; +import org.drools.drl.ast.descr.AndDescr; +import org.drools.drl.ast.descr.BaseDescr; +import org.drools.drl.ast.descr.PatternDescr; import org.drools.model.codegen.execmodel.PackageModel; import org.drools.model.codegen.execmodel.errors.InvalidExpressionErrorResult; import org.drools.model.codegen.execmodel.generator.DeclarationSpec; @@ -65,23 +60,33 @@ import org.drools.model.codegen.execmodel.generator.expressiontyper.ExpressionTyperContext; import org.drools.model.codegen.execmodel.generator.visitor.ModelGeneratorVisitor; import org.drools.model.codegen.execmodel.util.LambdaUtil; +import org.drools.modelcompiler.constraints.GenericCollectAccumulator; import org.drools.mvel.parser.ast.expr.DrlNameExpr; import org.kie.api.runtime.rule.AccumulateFunction; import org.kie.internal.builder.conf.AccumulateFunctionOption; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.Set; + import static java.util.Optional.ofNullable; import static java.util.stream.Collectors.toList; - import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.getLiteralExpressionType; import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.validateDuplicateBindings; import static org.drools.model.codegen.execmodel.generator.DslMethodNames.ACCUMULATE_CALL; import static org.drools.model.codegen.execmodel.generator.DslMethodNames.ACC_FUNCTION_CALL; import static org.drools.model.codegen.execmodel.generator.DslMethodNames.AND_CALL; -import static org.drools.model.codegen.execmodel.generator.DslMethodNames.BIND_CALL; import static org.drools.model.codegen.execmodel.generator.DslMethodNames.BIND_AS_CALL; -import static org.drools.model.codegen.execmodel.generator.DslMethodNames.VALUE_OF_CALL; +import static org.drools.model.codegen.execmodel.generator.DslMethodNames.BIND_CALL; import static org.drools.model.codegen.execmodel.generator.DslMethodNames.REACT_ON_CALL; +import static org.drools.model.codegen.execmodel.generator.DslMethodNames.VALUE_OF_CALL; import static org.drools.model.codegen.execmodel.generator.DslMethodNames.createDslTopLevelMethod; +import static org.drools.model.codegen.execmodel.generator.visitor.FromCollectVisitor.GENERIC_COLLECT; import static org.drools.model.codegen.execmodel.util.lambdareplace.ReplaceTypeInLambda.replaceTypeInExprLambdaAndIndex; import static org.drools.mvel.parser.printer.PrintUtil.printNode; @@ -228,7 +233,7 @@ private void literalExprParameter(PatternDescr basePattern, AccumulateDescr.Accu functionDSL.addArgument(createAccSupplierExpr(accumulateFunction)); functionDSL.addArgument(createDslTopLevelMethod(VALUE_OF_CALL, NodeList.nodeList(accumulateFunctionParameter))); - addBindingAsDeclaration(context, bindingId, accumulateFunction); + addBindingAsDeclaration(context, bindingId, accumulateFunction.getResultType()); } private void nameExprParameter(PatternDescr basePattern, AccumulateDescr.AccumulateFunctionCallDescr function, MethodCallExpr functionDSL, String bindingId, Expression accumulateFunctionParameter) { @@ -244,13 +249,22 @@ private void nameExprParameter(PatternDescr basePattern, AccumulateDescr.Accumul } } - AccumulateFunction accumulateFunction = getAccumulateFunction(function, declaration.get().getDeclarationClass()); + DeclarationSpec decSpec = declaration.get(); + String accumulateFunctionName = AccumulateUtil.getFunctionName(() -> decSpec.getDeclarationClass(), function.getFunction()); + if (GENERIC_COLLECT.equals(accumulateFunctionName)) { + String collectorType = basePattern.getObjectType(); + MethodReferenceExpr collectorSupplierExpr = new MethodReferenceExpr(new NameExpr(collectorType), new NodeList<>(), "new"); + ObjectCreationExpr accumulatorConstructor = new ObjectCreationExpr(null, new ClassOrInterfaceType(null, GenericCollectAccumulator.class.getCanonicalName()), NodeList.nodeList(collectorSupplierExpr)); + functionDSL.addArgument(new LambdaExpr(new NodeList<>(), accumulatorConstructor)); + functionDSL.addArgument(context.getVarExpr(nameExpr)); + return; + } + AccumulateFunction accumulateFunction = getAccumulateFunction(accumulateFunctionName, function); validateAccFunctionTypeAgainstPatternType(context, basePattern, accumulateFunction); functionDSL.addArgument(createAccSupplierExpr(accumulateFunction)); functionDSL.addArgument(context.getVarExpr(nameExpr)); - - addBindingAsDeclaration(context, bindingId, accumulateFunction); + addBindingAsDeclaration(context, bindingId, accumulateFunction.getResultType()); } private Optional methodCallExprParameter(PatternDescr basePattern, BaseDescr input, AccumulateDescr.AccumulateFunctionCallDescr function, MethodCallExpr functionDSL, String bindingId, Expression accumulateFunctionParameter) { @@ -470,9 +484,8 @@ private void addNonExistingFunctionError(RuleContext context, AccumulateDescr.Ac context.addCompilationError(new InvalidExpressionErrorResult(String.format("Unknown accumulate function: '%s' on rule '%s'.", function.getFunction(), context.getRuleDescr().getName()), Optional.of(context.getRuleDescr()))); } - private void addBindingAsDeclaration(RuleContext context, String bindingId, AccumulateFunction accumulateFunction) { + private void addBindingAsDeclaration(RuleContext context, String bindingId, Class accumulateFunctionResultType) { if (bindingId != null) { - Class accumulateFunctionResultType = accumulateFunction.getResultType(); context.addDeclarationReplacing(new DeclarationSpec(bindingId, accumulateFunctionResultType)); if (context.getExpressions().size() > 1) { // replace the type of the lambda with the one resulting from the accumulate operation only in the pattern immediately before it @@ -483,6 +496,10 @@ private void addBindingAsDeclaration(RuleContext context, String bindingId, Accu private AccumulateFunction getAccumulateFunction(AccumulateDescr.AccumulateFunctionCallDescr function, Class methodCallExprType) { final String accumulateFunctionName = AccumulateUtil.getFunctionName(() -> methodCallExprType, function.getFunction()); + return getAccumulateFunction(accumulateFunctionName, function); + } + + private AccumulateFunction getAccumulateFunction(String accumulateFunctionName, AccumulateDescr.AccumulateFunctionCallDescr function) { final Optional bundledAccumulateFunction = ofNullable(packageModel.getConfiguration().getOption(AccumulateFunctionOption.KEY, accumulateFunctionName).getFunction()); final Optional importedAccumulateFunction = ofNullable(packageModel.getAccumulateFunctions().get(accumulateFunctionName)); diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/GroupByVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/GroupByVisitor.java index f325758827d..c093a232fa5 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/GroupByVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/GroupByVisitor.java @@ -1,24 +1,23 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.accumulate; -import java.util.Optional; - import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.MethodCallExpr; import org.drools.drl.ast.descr.AccumulateDescr; @@ -34,10 +33,12 @@ import org.drools.model.codegen.execmodel.generator.expressiontyper.TypedExpressionResult; import org.drools.model.codegen.execmodel.generator.visitor.ModelGeneratorVisitor; +import java.util.Optional; + import static com.github.javaparser.StaticJavaParser.parseExpression; -import static org.drools.util.StringUtils.generateUUID; import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.toVar; import static org.drools.model.codegen.execmodel.generator.DslMethodNames.GROUP_BY_CALL; +import static org.drools.util.StringUtils.generateUUID; public class GroupByVisitor extends AccumulateVisitor { public GroupByVisitor(ModelGeneratorVisitor modelGeneratorVisitor, RuleContext context, PackageModel packageModel) { @@ -64,7 +65,8 @@ protected void processAccumulateFunctions(AccumulateDescr descr, PatternDescr ba TypedExpression typedExpression = optResult.get(); String groupingKey = groupByDescr.getGroupingKey() != null ? groupByDescr.getGroupingKey() : generateUUID(); - context.addDeclaration(new DeclarationSpec(groupingKey, typedExpression.getRawClass())); + context.addDeclarationReplacing(new DeclarationSpec(groupingKey, typedExpression.getRawClass())); + accumulateDSL.addArgument(toVar(groupingKey)); accumulateDSL.addArgument( buildConstraintExpression(typedExpression.getExpression(), result.getUsedDeclarations()) ); diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/InvalidInlineTemplateException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/InvalidInlineTemplateException.java index db0a630fcd7..07fe8928d9a 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/InvalidInlineTemplateException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/InvalidInlineTemplateException.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.accumulate; public class InvalidInlineTemplateException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/LegacyAccumulate.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/LegacyAccumulate.java index 2e9213f40cb..212d1c0f705 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/LegacyAccumulate.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/LegacyAccumulate.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.accumulate; import java.lang.reflect.Type; @@ -27,7 +28,6 @@ import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.NodeList; -import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.MethodCallExpr; import com.github.javaparser.ast.expr.MethodReferenceExpr; @@ -37,13 +37,13 @@ import org.drools.compiler.rule.builder.JavaRuleClassBuilder; import org.drools.compiler.rule.builder.PatternBuilder; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import org.drools.drl.ast.descr.AccumulateDescr; import org.drools.drl.ast.descr.PatternDescr; import org.drools.drl.ast.descr.RuleDescr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/MissingSemicolonInlineAccumulateException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/MissingSemicolonInlineAccumulateException.java index a767e182aa7..b179d318c0d 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/MissingSemicolonInlineAccumulateException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/MissingSemicolonInlineAccumulateException.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.accumulate; public class MissingSemicolonInlineAccumulateException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/PatternToReplace.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/PatternToReplace.java index 88ce09a24cc..da7d1aaae72 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/PatternToReplace.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/PatternToReplace.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.generator.visitor.accumulate; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/UnsupportedInlineAccumulate.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/UnsupportedInlineAccumulate.java index 09c78480b42..3241ce50224 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/UnsupportedInlineAccumulate.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/accumulate/UnsupportedInlineAccumulate.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.accumulate; public class UnsupportedInlineAccumulate extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/ConstraintOOPath.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/ConstraintOOPath.java index 3f26107366e..984fe1a948f 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/ConstraintOOPath.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/ConstraintOOPath.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.pattern; import java.util.Optional; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternAccumulateConstraint.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternAccumulateConstraint.java index 1b943286fcb..31739dbcb18 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternAccumulateConstraint.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternAccumulateConstraint.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.pattern; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternConstraintParseResult.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternConstraintParseResult.java index 12a6e0c4525..1af3b3396cb 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternConstraintParseResult.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternConstraintParseResult.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.pattern; import org.drools.model.codegen.execmodel.generator.drlxparse.DrlxParseResult; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSL.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSL.java index 304d4f914a7..6e1ec9d698b 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSL.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSL.java @@ -1,36 +1,27 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.pattern; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import java.util.Set; -import java.util.stream.Collectors; - import com.github.javaparser.ast.expr.Expression; import com.github.javaparser.ast.expr.MethodCallExpr; +import org.drools.base.util.PropertyReactivityUtil; import org.drools.compiler.compiler.DescrBuildError; -import org.drools.core.util.PropertyReactivityUtil; import org.drools.drl.ast.descr.AccumulateDescr; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.ExprConstraintDescr; @@ -56,6 +47,16 @@ import org.drools.model.codegen.execmodel.generator.visitor.FromVisitor; import org.kie.api.definition.rule.Watch; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.Set; +import java.util.stream.Collectors; + import static org.drools.compiler.rule.builder.PatternBuilder.lookAheadFieldsOfIdentifier; import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.getPatternListenedProperties; import static org.drools.model.codegen.execmodel.generator.DrlxParseUtil.validateDuplicateBindings; @@ -108,12 +109,16 @@ private Optional buildFromDeclaration(PatternDescr pattern) { } private void generatePatternIdentifierIfMissing() { - if (pattern.getIdentifier() == null) { - final String generatedName = generateName("pattern_" + patternType.getSimpleName()); - final String patternNameAggregated = findFirstInnerBinding(constraintDescrs, patternType) - .map(ib -> context.getAggregatePatternMap().putIfAbsent(new AggregateKey(ib, patternType), generatedName)) - .orElse(generatedName); - pattern.setIdentifier( GENERATED_VARIABLE_PREFIX + patternNameAggregated); + // the PatternDescr can be shared by multiple rules in case of rules inheritance, so its identifier has to + // be set atomically when rule generation is performed in parallel + synchronized (pattern) { + if (pattern.getIdentifier() == null) { + final String generatedName = generateName("pattern_" + patternType.getSimpleName()); + final String patternNameAggregated = findFirstInnerBinding(constraintDescrs, patternType) + .map(ib -> context.getAggregatePatternMap().putIfAbsent(new AggregateKey(ib, patternType), generatedName)) + .orElse(generatedName); + pattern.setIdentifier(GENERATED_VARIABLE_PREFIX + patternNameAggregated); + } } } diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSLPattern.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSLPattern.java index 82905c12782..556b870e2b5 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSLPattern.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSLPattern.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.pattern; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSLSimpleConstraint.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSLSimpleConstraint.java index 2b380f2e834..1f9dc810adf 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSLSimpleConstraint.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternDSLSimpleConstraint.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.pattern; import org.drools.drl.ast.descr.PatternDescr; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternVisitor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternVisitor.java index 43d8120aeac..8fd6e2c59b2 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternVisitor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/PatternVisitor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.pattern; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/Query.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/Query.java index ab8085356d9..62fdc043180 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/Query.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/Query.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.pattern; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/QueryCall.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/QueryCall.java index 5146a1c513f..a0457efab4b 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/QueryCall.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/QueryCall.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator.visitor.pattern; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeCompilationPhase.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeCompilationPhase.java index 28d41c4f402..2d0afcf712b 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeCompilationPhase.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeCompilationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.processors; import org.drools.compiler.builder.PackageRegistryManager; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeDeregistrationPhase.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeDeregistrationPhase.java index 87965e99df5..d6ebefc0f91 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeDeregistrationPhase.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeDeregistrationPhase.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.processors; import org.drools.compiler.builder.PackageRegistryManager; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeRegistrationPhase.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeRegistrationPhase.java index b18985b7d63..408d809fb45 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeRegistrationPhase.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/DeclaredTypeRegistrationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.processors; import org.drools.compiler.builder.PackageRegistryManager; @@ -22,8 +23,8 @@ import org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase; import org.drools.compiler.builder.impl.processors.AnnotationNormalizer; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.TypeDeclaration; import org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr; import org.drools.drl.ast.descr.AnnotatedBaseDescr; import org.drools.drl.ast.descr.EnumDeclarationDescr; @@ -33,7 +34,7 @@ import org.drools.util.TypeResolver; import static org.drools.compiler.builder.impl.ClassDefinitionFactory.createClassDefinition; -import static org.drools.core.util.Drools.hasMvel; +import static org.drools.base.util.Drools.hasMvel; public class DeclaredTypeRegistrationPhase extends AbstractPackageCompilationPhase { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/GeneratedPojoCompilationPhase.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/GeneratedPojoCompilationPhase.java index 78f15e4c81e..98463e11b18 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/GeneratedPojoCompilationPhase.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/GeneratedPojoCompilationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.processors; import org.drools.compiler.builder.impl.BuildResultCollector; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/ModelGeneratorPhase.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/ModelGeneratorPhase.java index b1696310839..16bfee695f8 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/ModelGeneratorPhase.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/ModelGeneratorPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.processors; import org.drools.compiler.builder.impl.BuildResultCollectorImpl; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/ModelMainCompilationPhase.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/ModelMainCompilationPhase.java index 0e38dd89fb3..5c93e29685e 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/ModelMainCompilationPhase.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/ModelMainCompilationPhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.processors; import org.drools.compiler.builder.PackageRegistryManager; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/PojoStoragePhase.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/PojoStoragePhase.java index cf75d476746..1ecfb46292f 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/PojoStoragePhase.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/PojoStoragePhase.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.processors; import java.util.Collection; @@ -25,8 +26,8 @@ import org.drools.compiler.builder.PackageRegistryManager; import org.drools.compiler.builder.impl.processors.CompilationPhase; import org.drools.compiler.lang.descr.CompositePackageDescr; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.ImportDeclaration; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.ImportDeclaration; import org.drools.model.codegen.execmodel.CanonicalModelBuildContext; import org.drools.model.codegen.execmodel.GeneratedClassWithPackage; import org.drools.util.TypeResolver; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/SourceCodeGenerationPhase.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/SourceCodeGenerationPhase.java index f74d9d7e1a3..e2afb6a5b1d 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/SourceCodeGenerationPhase.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/processors/SourceCodeGenerationPhase.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.processors; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/LambdaUtil.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/LambdaUtil.java index a7dc426f72f..93d4e9256fb 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/LambdaUtil.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/LambdaUtil.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util; import com.github.javaparser.ast.expr.Expression; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/PatternUtil.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/PatternUtil.java index 41ed0b9d341..cc041675c3b 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/PatternUtil.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/PatternUtil.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util; import java.util.Optional; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/CreatedClass.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/CreatedClass.java index e4cf949fcce..5a97feccc85 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/CreatedClass.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/CreatedClass.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import java.util.Objects; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/DoNotConvertLambdaException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/DoNotConvertLambdaException.java index eb33dc66df9..9667de8babe 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/DoNotConvertLambdaException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/DoNotConvertLambdaException.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; public abstract class DoNotConvertLambdaException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/DroolsNeededInConsequenceException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/DroolsNeededInConsequenceException.java index 17112c638d1..28a721db727 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/DroolsNeededInConsequenceException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/DroolsNeededInConsequenceException.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; class DroolsNeededInConsequenceException extends DoNotConvertLambdaException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/ExecModelLambdaPostProcessor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/ExecModelLambdaPostProcessor.java index 792578c4320..2a0cb522449 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/ExecModelLambdaPostProcessor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/ExecModelLambdaPostProcessor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import java.lang.reflect.ParameterizedType; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/LambdaTypeNeededException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/LambdaTypeNeededException.java index c1e3bb51501..00307436a3a 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/LambdaTypeNeededException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/LambdaTypeNeededException.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; public class LambdaTypeNeededException extends DoNotConvertLambdaException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambda.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambda.java index 2d271dbdb36..5ff22bd3ed2 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambda.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambda.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaConsequence.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaConsequence.java index d4db4113d45..a0d30867cb7 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaConsequence.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaConsequence.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaExtractor.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaExtractor.java index f35909b128b..19055d6f7f2 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaExtractor.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaExtractor.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import com.github.javaparser.ast.Modifier; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaPredicate.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaPredicate.java index 7066c900c70..cb3499055f5 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaPredicate.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaPredicate.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import com.github.javaparser.ast.Modifier; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/NonExternalisedLambdaFoundException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/NonExternalisedLambdaFoundException.java index 1971e98d5ad..f787a5b76ea 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/NonExternalisedLambdaFoundException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/NonExternalisedLambdaFoundException.java @@ -1,20 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; public class NonExternalisedLambdaFoundException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/NotLambdaException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/NotLambdaException.java index ed6fd8ab162..3374a8198c5 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/NotLambdaException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/NotLambdaException.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; public class NotLambdaException extends RuntimeException { diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/ReplaceTypeInLambda.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/ReplaceTypeInLambda.java index 46067248421..ad85aab686f 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/ReplaceTypeInLambda.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/util/lambdareplace/ReplaceTypeInLambda.java @@ -1,20 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/CodegenPackageSources.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/CodegenPackageSources.java index 4d13bdc1361..86498da0e7e 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/CodegenPackageSources.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/CodegenPackageSources.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/DroolsModelBuilder.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/DroolsModelBuilder.java index e79e340b50c..3b19c1ed5da 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/DroolsModelBuilder.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/DroolsModelBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KieModuleModelWrapper.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KieModuleModelWrapper.java index 9a9006f26e5..3904773cd9b 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KieModuleModelWrapper.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KieModuleModelWrapper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KieSessionModelBuilder.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KieSessionModelBuilder.java index 0f4b3e46e38..fe20cf8bc21 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KieSessionModelBuilder.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KieSessionModelBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KogitoKnowledgeBuilderConfigurationImpl.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KogitoKnowledgeBuilderConfigurationImpl.java index 464e1f19531..d5e331094ce 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KogitoKnowledgeBuilderConfigurationImpl.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/KogitoKnowledgeBuilderConfigurationImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/MissingDecisionTableDependencyError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/MissingDecisionTableDependencyError.java index 0a7ee55a566..9740f3071cb 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/MissingDecisionTableDependencyError.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/MissingDecisionTableDependencyError.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/ProjectRuntimeGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/ProjectRuntimeGenerator.java index f9ccdf9b3f3..053a3161c39 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/ProjectRuntimeGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/ProjectRuntimeGenerator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/RuleCodegen.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/RuleCodegen.java index 5aba9bfe360..f6b371aaed1 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/RuleCodegen.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/RuleCodegen.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/RuleCodegenError.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/RuleCodegenError.java index b0490e33492..3ef682680ab 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/RuleCodegenError.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/RuleCodegenError.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/InvalidTemplateException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/InvalidTemplateException.java index 6f133e7772b..2aba006b0e6 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/InvalidTemplateException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/InvalidTemplateException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project.template; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/TemplateInstantiationException.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/TemplateInstantiationException.java index 4dd63fa0870..1dc29831d92 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/TemplateInstantiationException.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/TemplateInstantiationException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project.template; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/TemplatedGenerator.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/TemplatedGenerator.java index 1707c05674d..757b6fe838e 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/TemplatedGenerator.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/project/template/TemplatedGenerator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.model.codegen.project.template; diff --git a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/tool/ExplicitCanonicalModelCompiler.java b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/tool/ExplicitCanonicalModelCompiler.java index dfb22aaba1f..6eb5c1ab06e 100644 --- a/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/tool/ExplicitCanonicalModelCompiler.java +++ b/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/tool/ExplicitCanonicalModelCompiler.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.tool; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/main/resources/AccumulateInlineTemplate.java b/drools-model/drools-model-codegen/src/main/resources/AccumulateInlineTemplate.java index e9aaa83fe58..e9ad5b0c372 100644 --- a/drools-model/drools-model-codegen/src/main/resources/AccumulateInlineTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/AccumulateInlineTemplate.java @@ -1,3 +1,21 @@ +/** + * 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. + */ public class AccumulateInlineFunction implements org.kie.api.runtime.rule.AccumulateFunction { public static class ContextData implements java.io.Serializable { diff --git a/drools-model/drools-model-codegen/src/main/resources/BlockTemplate.java b/drools-model/drools-model-codegen/src/main/resources/BlockTemplate.java index 7bc875504d2..6b93533d436 100644 --- a/drools-model/drools-model-codegen/src/main/resources/BlockTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/BlockTemplate.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.functions; import java.io.Serializable; diff --git a/drools-model/drools-model-codegen/src/main/resources/ConsequenceBuilderTemplate.java b/drools-model/drools-model-codegen/src/main/resources/ConsequenceBuilderTemplate.java index 9f5e4e4bec2..a46ceda9fa9 100644 --- a/drools-model/drools-model-codegen/src/main/resources/ConsequenceBuilderTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/ConsequenceBuilderTemplate.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.consequences; import org.drools.model.Consequence; diff --git a/drools-model/drools-model-codegen/src/main/resources/RuleUnitInstanceTemplate.java b/drools-model/drools-model-codegen/src/main/resources/RuleUnitInstanceTemplate.java index 390c2cbb540..fb1a53f4036 100644 --- a/drools-model/drools-model-codegen/src/main/resources/RuleUnitInstanceTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/RuleUnitInstanceTemplate.java @@ -1,3 +1,21 @@ +/** + * 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. + */ import org.drools.core.common.ReteEvaluator; import org.drools.ruleunits.api.RuleUnit; import org.drools.ruleunits.api.conf.RuleConfig; diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigJavaTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigJavaTemplate.java index ac1c7bac56c..07ede002b3c 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigJavaTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigJavaTemplate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package $Package$; diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java index 0cfb0ca4b69..b9850908b87 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigQuarkusTemplate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package $Package$; diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigSpringTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigSpringTemplate.java index 90badb458db..8bcb97f245f 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigSpringTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/config/RuleConfigSpringTemplate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package $Package$; diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeJavaTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeJavaTemplate.java index 6cb29e47bcc..90edc28323a 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeJavaTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeJavaTemplate.java @@ -1,22 +1,26 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.project.model; import java.util.concurrent.ConcurrentHashMap; +import org.drools.base.util.Drools; import org.drools.core.SessionConfiguration; import org.kie.api.KieBase; import org.kie.api.runtime.KieSession; @@ -32,7 +36,7 @@ public class ProjectRuntime implements KieRuntimeBuilder { private static java.util.Map initKieBases() { java.util.Map kbaseMap = new ConcurrentHashMap<>(); - if (org.drools.core.util.Drools.isNativeImage()) { + if (Drools.isNativeImage()) { } return kbaseMap; } diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java index 86624b74e39..6bad1995aa1 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeQuarkusTemplate.java @@ -1,22 +1,26 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.project.model; import java.util.concurrent.ConcurrentHashMap; +import org.drools.base.util.Drools; import org.drools.core.SessionConfiguration; import org.kie.api.KieBase; import org.kie.api.runtime.KieSession; @@ -33,7 +37,7 @@ public class ProjectRuntime implements KieRuntimeBuilder { private static java.util.Map initKieBases() { java.util.Map kbaseMap = new ConcurrentHashMap<>(); - if (org.drools.core.util.Drools.isNativeImage()) { + if (Drools.isNativeImage()) { } return kbaseMap; } diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeSpringTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeSpringTemplate.java index 28c42f1fd74..3bb8b500842 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeSpringTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/rules/ProjectRuntimeSpringTemplate.java @@ -1,22 +1,26 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.project.model; import java.util.concurrent.ConcurrentHashMap; +import org.drools.base.util.Drools; import org.drools.core.SessionConfiguration; import org.kie.api.KieBase; import org.kie.api.runtime.KieSession; @@ -33,7 +37,7 @@ public class ProjectRuntime implements KieRuntimeBuilder { private static java.util.Map initKieBases() { java.util.Map kbaseMap = new ConcurrentHashMap<>(); - if (org.drools.core.util.Drools.isNativeImage()) { + if (Drools.isNativeImage()) { } return kbaseMap; } diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitJavaTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitJavaTemplate.java index bd33a523afc..f9ddedcb732 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitJavaTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitJavaTemplate.java @@ -1,8 +1,24 @@ -import java.util.function.Function; - +/** + * 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. + */ import org.drools.core.SessionConfiguration; import org.drools.core.common.ReteEvaluator; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.modelcompiler.KieBaseBuilder; import org.drools.ruleunits.api.RuleUnit; import org.drools.ruleunits.api.conf.RuleConfig; @@ -11,11 +27,10 @@ import org.drools.ruleunits.impl.factory.AbstractRuleUnits; import org.drools.ruleunits.impl.ReteEvaluatorBasedRuleUnitInstance; import org.drools.ruleunits.impl.sessions.RuleUnitExecutorImpl; -import org.kie.api.runtime.conf.ClockTypeOption; public class CLASS_NAME extends AbstractRuleUnit { - private static final RuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel( new RULE_UNIT_MODEL(), $KieBaseOptions$ ); + private static final InternalRuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel(new RULE_UNIT_MODEL(), $KieBaseOptions$); private static final SessionConfiguration sessionConfiguration = ruleBase.getSessionConfiguration().as(SessionConfiguration.KEY); diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java index cadcf7fad90..faf8610793a 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitQuarkusTemplate.java @@ -1,8 +1,24 @@ -import java.util.function.Function; - +/** + * 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. + */ import org.drools.core.SessionConfiguration; import org.drools.core.common.ReteEvaluator; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.modelcompiler.KieBaseBuilder; import org.drools.ruleunits.api.RuleUnit; import org.drools.ruleunits.api.conf.RuleConfig; @@ -15,7 +31,7 @@ @javax.enterprise.context.ApplicationScoped public class CLASS_NAME extends AbstractRuleUnit { - private static final RuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel( new RULE_UNIT_MODEL(), $KieBaseOptions$ ); + private static final InternalRuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel(new RULE_UNIT_MODEL(), $KieBaseOptions$); private static final SessionConfiguration sessionConfiguration = ruleBase.getSessionConfiguration().as(SessionConfiguration.KEY); diff --git a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitSpringTemplate.java b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitSpringTemplate.java index 7dbf8ab052d..832668572ec 100644 --- a/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitSpringTemplate.java +++ b/drools-model/drools-model-codegen/src/main/resources/class-templates/ruleunits/RuleUnitSpringTemplate.java @@ -1,8 +1,24 @@ -import java.util.function.Function; - +/** + * 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. + */ import org.drools.core.SessionConfiguration; import org.drools.core.common.ReteEvaluator; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.modelcompiler.KieBaseBuilder; import org.drools.ruleunits.api.RuleUnit; import org.drools.ruleunits.api.conf.RuleConfig; @@ -15,7 +31,7 @@ @org.springframework.stereotype.Component public class CLASS_NAME extends AbstractRuleUnit { - private static final RuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel( new RULE_UNIT_MODEL(), $KieBaseOptions$ ); + private static final InternalRuleBase ruleBase = KieBaseBuilder.createKieBaseFromModel(new RULE_UNIT_MODEL(), $KieBaseOptions$); private static final SessionConfiguration sessionConfiguration = ruleBase.getSessionConfiguration().as(SessionConfiguration.KEY); diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/compiler/rule/builder/util/ConstraintTestUtil.java b/drools-model/drools-model-codegen/src/test/java/org/drools/compiler/rule/builder/util/ConstraintTestUtil.java index a2420112000..9e7d3c015aa 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/compiler/rule/builder/util/ConstraintTestUtil.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/compiler/rule/builder/util/ConstraintTestUtil.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.rule.builder.util; public class ConstraintTestUtil { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/AccumulateTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/AccumulateTest.java index 098a8bac7a8..09352efff22 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/AccumulateTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/AccumulateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.io.IOException; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ArithmeticCoecionTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ArithmeticCoecionTest.java index 8123d6ec26c..012a2532add 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ArithmeticCoecionTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ArithmeticCoecionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BaseModelTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BaseModelTest.java index 89048358891..5c5e4bd5c58 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BaseModelTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BaseModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.List; @@ -217,7 +219,7 @@ private KieModuleModel getKieModuleModelWithAlphaNetworkCompiler() { } protected ObjectTypeNode getObjectTypeNodeForClass( KieSession ksession, Class clazz ) { - EntryPointNode epn = (( InternalKnowledgeBase ) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); + EntryPointNode epn = ((InternalKnowledgeBase) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); for (ObjectTypeNode otn : epn.getObjectTypeNodes().values()) { if (otn.getObjectType().isAssignableFrom( clazz )) { return otn; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BetaConditionTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BetaConditionTest.java index 0c69bfe8a87..03ba9de14c8 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BetaConditionTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BetaConditionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BigPojoExecModelGenerationTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BigPojoExecModelGenerationTest.java index b535f1fbc85..2611f306c22 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BigPojoExecModelGenerationTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BigPojoExecModelGenerationTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2023. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.UUID; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BindingTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BindingTest.java index 0477ec5c439..7ecf142262d 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BindingTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BindingTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BuildFromDescrTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BuildFromDescrTest.java index 96d7290f9fb..2a1f216cf96 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BuildFromDescrTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BuildFromDescrTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BuildFromKJarTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BuildFromKJarTest.java index 5b0ba9ed229..865a9384474 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BuildFromKJarTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/BuildFromKJarTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CepTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CepTest.java index ebc1be5cf6d..f1a4080f8b5 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CepTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CepTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.sql.Timestamp; @@ -29,7 +31,7 @@ import java.util.concurrent.atomic.AtomicInteger; import org.drools.core.ClockType; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.time.impl.PseudoClockScheduler; import org.drools.model.codegen.execmodel.domain.DateTimeHolder; import org.drools.model.codegen.execmodel.domain.StockFact; @@ -44,7 +46,6 @@ import org.kie.api.runtime.conf.ClockTypeOption; import org.kie.api.runtime.rule.EntryPoint; import org.kie.api.time.Calendar; -import org.kie.api.time.SessionClock; import org.kie.api.time.SessionPseudoClock; import static org.assertj.core.api.Assertions.assertThat; @@ -719,7 +720,7 @@ public void testComplexTimestamp() { props.put("duration", 52); msg.setProperties(props); - final EventFactHandle efh = (EventFactHandle) ksession.insert(msg); + final DefaultEventHandle efh = (DefaultEventHandle) ksession.insert(msg); assertThat(efh.getStartTimestamp()).isEqualTo(98); assertThat(efh.getDuration()).isEqualTo(53); } finally { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ChannelTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ChannelTest.java index efcf24e6dc9..a14a545717d 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ChannelTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ChannelTest.java @@ -1,20 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CompilationFailuresTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CompilationFailuresTest.java index fa48957aaaf..398ff751800 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CompilationFailuresTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CompilationFailuresTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CompilerTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CompilerTest.java index 322a2d3a8f1..8badee9adeb 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CompilerTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/CompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ComplexRulesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ComplexRulesTest.java index e4412f4637b..7853acecf99 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ComplexRulesTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ComplexRulesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.time.LocalDateTime; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ConstraintNormalizationTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ConstraintNormalizationTest.java index 0d9be6fc09e..939722b9bee 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ConstraintNormalizationTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ConstraintNormalizationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DataType.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DataType.java index f021a552c4c..af60b36b058 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DataType.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DataType.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import java.util.Date; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DeclaredTypeDifferentKJarIncludesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DeclaredTypeDifferentKJarIncludesTest.java index ffc379f1142..a51146f0c5b 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DeclaredTypeDifferentKJarIncludesTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DeclaredTypeDifferentKJarIncludesTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import org.drools.compiler.kie.builder.impl.DrlProject; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DeclaredTypesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DeclaredTypesTest.java index c89645dce10..664ae7534ed 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DeclaredTypesTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DeclaredTypesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.lang.reflect.Constructor; @@ -25,12 +27,12 @@ import java.util.List; import java.util.Locale; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.model.codegen.execmodel.domain.Person; import org.drools.model.codegen.execmodel.domain.Result; import org.junit.Test; @@ -394,7 +396,7 @@ public void testFactType() throws Exception { assertThat(results.size()).isEqualTo(1); assertThat(results.iterator().next()).isEqualTo("Mario"); - EntryPointNode epn = ((RuleBase) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); + EntryPointNode epn = ((InternalRuleBase) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); Iterator otns = epn.getObjectTypeNodes().values().iterator(); ObjectTypeNode otn = otns.next(); if (otn.toString().contains( "InitialFact" )) { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DowncastTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DowncastTest.java index 7a45d1b8b60..477e120af45 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DowncastTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DowncastTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DroolsContextTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DroolsContextTest.java index 566fe94b7c5..7a29973489d 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DroolsContextTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/DroolsContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/EnumTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/EnumTest.java index 6881aabe8bc..12be270f641 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/EnumTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/EnumTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.junit.Test; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/EvalTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/EvalTest.java index d0f9a7427d5..95562316462 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/EvalTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/EvalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ExisistentialTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ExisistentialTest.java index 23272e5480b..38cc55ca3fa 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ExisistentialTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ExisistentialTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ExternalisedLambdaTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ExternalisedLambdaTest.java index daccaa6f756..b0a31db75dc 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ExternalisedLambdaTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ExternalisedLambdaTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 JBoss Inc - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FactTemplateTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FactTemplateTest.java index f78faf8ea41..6bdde3cf2df 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FactTemplateTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FactTemplateTest.java @@ -1,33 +1,27 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ package org.drools.model.codegen.execmodel; -import java.math.BigDecimal; -import java.util.Arrays; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import java.util.function.BiPredicate; -import java.util.stream.Collectors; - +import org.drools.base.facttemplates.Event; +import org.drools.base.facttemplates.Fact; +import org.drools.base.facttemplates.FactTemplateObjectType; import org.drools.core.ClockType; -import org.drools.core.facttemplates.Event; -import org.drools.core.facttemplates.Fact; -import org.drools.core.facttemplates.FactTemplateObjectType; import org.drools.core.reteoo.CompositeObjectSinkAdapter; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeNode; @@ -37,6 +31,7 @@ import org.drools.model.Index; import org.drools.model.Model; import org.drools.model.Prototype; +import org.drools.model.PrototypeExpression; import org.drools.model.PrototypeFact; import org.drools.model.PrototypeVariable; import org.drools.model.Query; @@ -44,6 +39,7 @@ import org.drools.model.Variable; import org.drools.model.codegen.execmodel.domain.Person; import org.drools.model.codegen.execmodel.domain.Result; +import org.drools.model.functions.Function1; import org.drools.model.impl.ModelImpl; import org.drools.modelcompiler.KieBaseBuilder; import org.junit.Test; @@ -58,6 +54,17 @@ import org.kie.api.runtime.rule.ViewChangedEventListener; import org.kie.api.time.SessionPseudoClock; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.concurrent.TimeUnit; +import java.util.function.BiPredicate; +import java.util.stream.Collectors; + import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; import static org.drools.model.DSL.accFunction; @@ -396,7 +403,7 @@ private boolean hasFactTemplateObjectType( KieSession ksession, String name ) { } private ObjectTypeNode getFactTemplateObjectTypeNode( KieSession ksession, String name ) { - EntryPointNode epn = (( InternalKnowledgeBase ) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); + EntryPointNode epn = ((InternalKnowledgeBase) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); for (ObjectTypeNode otn : epn.getObjectTypeNodes().values()) { if (otn.getObjectType() instanceof FactTemplateObjectType && (( FactTemplateObjectType ) otn.getObjectType()).getFactTemplate().getName().equals( name )) { return otn; @@ -1455,4 +1462,83 @@ public void bigDecimalEqualityWithDifferentScale_shouldBeEqual() { Collection results = getObjectsIntoList(ksession, Result.class); assertThat(results).contains(new Result("Mark")); } + + @Test + public void testMixFieldNameAndPrototypeExpr() { + // DROOLS-7517 + Prototype personFact = prototype( "org.drools.FactPerson", "name", "age" ); + + PrototypeVariable markV = variable( personFact ); + + Rule r1 = rule( "R1" ) + .build( + protoPattern(markV) + .expr( "name", Index.ConstraintType.EQUAL, "Mark" ), + on(markV).execute((drools, p) -> + drools.insert(new Result("R1")) + ) + ); + + Rule r2 = rule( "R2" ) + .build( + protoPattern(markV) + .expr( "name", Index.ConstraintType.EQUAL, "Mario" ), + on(markV).execute((drools, p) -> + drools.insert(new Result("R2")) + ) + ); + + Rule r3 = rule( "R3" ) + .build( + protoPattern(markV) + .expr( new MyFieldExpression("name"), Index.ConstraintType.EQUAL, fixedValue("Mark") ), + on(markV).execute((drools, p) -> + drools.insert(new Result("R3")) + ) + ); + + Model model = new ModelImpl().addRule( r1 ).addRule( r2 ).addRule( r3 ); + KieBase kieBase = KieBaseBuilder.createKieBaseFromModel( model ); + + KieSession ksession = kieBase.newKieSession(); + + Fact mark = createMapBasedFact(personFact); + mark.set( "name", "Mark" ); + mark.set( "age", 40 ); + + FactHandle fh = ksession.insert( mark ); + assertThat(ksession.fireAllRules()).isEqualTo(2); + + Collection results = getObjectsIntoList(ksession, Result.class); + assertThat(results).containsExactlyInAnyOrder(new Result("R1"), new Result("R3")); + } + + class MyFieldExpression implements PrototypeExpression { + + private final String fieldName; + + MyFieldExpression(String fieldName) { + this.fieldName = fieldName; + } + + @Override + public Function1 asFunction(Prototype prototype) { + return prototype.getFieldValueExtractor(fieldName)::apply; + } + + @Override + public Optional getIndexingKey() { + return Optional.of(fieldName); + } + + @Override + public String toString() { + return "MyFieldExpression{" + fieldName + "}"; + } + + @Override + public Collection getImpactedFields() { + return Collections.singletonList(fieldName); + } + } } diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FromTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FromTest.java index 353d26db680..23f4b42e582 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FromTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FromTest.java @@ -1,33 +1,23 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; -import java.util.AbstractMap; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import java.util.Set; - import org.drools.model.codegen.execmodel.FunctionsTest.Pojo; import org.drools.model.codegen.execmodel.domain.Address; import org.drools.model.codegen.execmodel.domain.Adult; @@ -46,6 +36,20 @@ import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.builder.conf.PropertySpecificOption; +import java.util.AbstractMap; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.Set; +import java.util.concurrent.atomic.AtomicInteger; + import static org.assertj.core.api.Assertions.assertThat; public class FromTest extends BaseModelTest { @@ -710,6 +714,47 @@ public void testFromCollect() { assertThat(ksession.fireAllRules()).isEqualTo(1); } + @Test + public void testFromCollectCustomSet() { + // DROOLS-7534 + String str = + "package org.drools.compiler.test \n" + + "import " + Person.class.getCanonicalName() + "\n" + + "import " + MyHashSet.class.getCanonicalName() + "\n" + + "import " + FromTest.class.getCanonicalName() + "\n" + + "rule R\n" + + "when\n" + + " $set : MyHashSet (size == 2) from collect (Person (age >= 30))\n" + + "then\n" + + " FromTest.printPersons($set);" + + "end \n"; + + KieSession ksession = getKieSession(str); + + Person p1 = new Person("John", 32); + Person p1a = new Person("John", 32); + Person p2 = new Person("Paul", 30); + Person p3 = new Person("George", 29); + + ksession.insert(p1); + ksession.insert(p1a); + ksession.insert(p2); + ksession.insert(p3); + + assertThat(ksession.fireAllRules()).isEqualTo(1); + } + + public static void printPersons(MyHashSet persons) { + System.out.println("persons found: " + persons); + } + + public static class MyHashSet extends HashSet { + + public MyHashSet() { + super(); + } + } + @Test public void testThisArray() { // This test verifies the behavior when ArrayType is used as "_this" (which $childrenA is converted to) in from clause. @@ -1495,4 +1540,61 @@ public void setStrValue(String strValue) { } } + + @Test + public void testFromGlobalWithDuplicates() { + String str = + "import java.util.concurrent.atomic.AtomicInteger;\n" + + "import " + NamedPerson.class.getCanonicalName() + ";\n" + + "global java.util.List list \n" + + "rule R when \n" + + " $i : AtomicInteger()\n" + + " $o : NamedPerson(age > $i.get()) from list\n" + + "then \n" + + " insert($o); \n" + + "end "; + + KieSession ksession = getKieSession(str); + + List strings = Arrays.asList(new NamedPerson("Mario", 1), new NamedPerson("Mario", 2)); + + ksession.setGlobal("list", strings); + + AtomicInteger i = new AtomicInteger(0); + FactHandle fh = ksession.insert(i); + + assertThat(ksession.fireAllRules()).isEqualTo(2); + + i.incrementAndGet(); + ksession.update(fh, i); + + assertThat(ksession.fireAllRules()).isEqualTo(1); + } + + public static class NamedPerson { + private final String name; + private final int age; + + public NamedPerson(String name, int age) { + this.name = name; + this.age = age; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + NamedPerson myPerson = (NamedPerson) o; + return Objects.equals(name, myPerson.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + public int getAge() { + return age; + } + } } diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FunctionsTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FunctionsTest.java index d3dcf3c41d5..04af90eab76 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FunctionsTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/FunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Arrays; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GeneratedClassNamesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GeneratedClassNamesTest.java index b92cbf52844..97e765af554 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GeneratedClassNamesTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GeneratedClassNamesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Set; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GenericsTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GenericsTest.java index 6eb87af4a59..6fe607e47a3 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GenericsTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GenericsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GetterOverloadingTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GetterOverloadingTest.java index d153d603781..0eb78b22b49 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GetterOverloadingTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GetterOverloadingTest.java @@ -1,20 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GlobalTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GlobalTest.java index e58922c4d29..190a6bc792a 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GlobalTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GlobalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.lang.reflect.Method; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GroupByTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GroupByTest.java index e5f5dd41dbf..020cbce685e 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GroupByTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/GroupByTest.java @@ -1,52 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.apache.commons.math3.util.Pair; -import org.drools.core.base.accumulators.CollectListAccumulateFunction; -import org.drools.core.base.accumulators.CountAccumulateFunction; -import org.drools.core.base.accumulators.IntegerMaxAccumulateFunction; -import org.drools.core.base.accumulators.IntegerSumAccumulateFunction; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.model.DSL; -import org.drools.model.Global; -import org.drools.model.Index; -import org.drools.model.Model; -import org.drools.model.PatternDSL; -import org.drools.model.Rule; -import org.drools.model.Variable; import org.drools.model.codegen.execmodel.domain.Child; import org.drools.model.codegen.execmodel.domain.Parent; import org.drools.model.codegen.execmodel.domain.Person; -import org.drools.model.consequences.ConsequenceBuilder; -import org.drools.model.functions.Function1; import org.drools.model.functions.accumulate.GroupKey; -import org.drools.model.impl.ModelImpl; -import org.drools.model.view.ExprViewItem; -import org.drools.model.view.ViewItem; -import org.drools.modelcompiler.KieBaseBuilder; -import org.drools.modelcompiler.dsl.pattern.D; -import org.drools.modelcompiler.util.EvaluationUtil; -import org.junit.Ignore; import org.junit.Test; -import org.kie.api.KieBase; import org.kie.api.runtime.KieSession; import org.kie.api.runtime.rule.FactHandle; import org.kie.api.runtime.rule.Match; @@ -63,322 +42,209 @@ import java.util.Objects; import java.util.Set; import java.util.concurrent.atomic.AtomicInteger; -import java.util.function.ToIntFunction; +import java.util.function.Consumer; import static org.assertj.core.api.Assertions.assertThat; -import static org.drools.model.DSL.from; - -public class GroupByTest { - - @Test - public void providedInstance() throws Exception { - Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - Variable var_$key = D.declarationOf(String.class); - Variable var_$p = D.declarationOf(Person.class); - Variable var_$sumOfAges = D.declarationOf(Integer.class); - - // groupby( $p: Person () by $key : $p.getName().substring(0, 1); $sumOfAges : sum($p.getAge()) ) - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.pattern(var_$p).watch("age"), - // Grouping Function - var_$p, var_$key, person -> person.getName().substring(0, 1), - // Accumulate Result (can be more than one) - D.accFunction(() -> sumA(Person::getAge)).as(var_$sumOfAges)), - // FilterIntegerSumAccumulateFunction - D.pattern(var_$sumOfAges) - .expr($sumOfAges -> EvaluationUtil.greaterThanNumbers($sumOfAges, 36)), - // Consequence - D.on(var_$key, var_results, var_$sumOfAges) - .execute(($key, results, $sumOfAges) -> results.put($key, $sumOfAges)) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Map results = new HashMap(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edson", 38)); - FactHandle meFH = ksession.insert(new Person("Mario", 45)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edoardo", 33)); - FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("E")).isEqualTo(71); - assertThat(results.get("M")).isEqualTo(126); - results.clear(); +import static org.junit.jupiter.api.Assertions.assertAll; - ksession.delete( meFH ); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(1); - assertThat(results.get("M")).isEqualTo(81); - results.clear(); +public class GroupByTest extends BaseModelTest { - ksession.update(geoffreyFH, new Person("Geoffrey", 40)); - ksession.insert(new Person("Matteo", 38)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("G")).isEqualTo(40); - assertThat(results.get("M")).isEqualTo(119); + public GroupByTest( RUN_TYPE testRunType ) { + super( testRunType ); } - public static SumAccumulator sumA(ToIntFunction func) { - return new SumAccumulator(func); - } - - public static class SumAccumulator implements Accumulator { //extends AbstractAccumulateFunction { - //UniConstraintCollector collector; - private ToIntFunction func; - - public SumAccumulator(ToIntFunction func) { - this.func = func; - } - - @Override public Object createWorkingMemoryContext() { - return null; - } - - @Override public Object createContext() { - return new int[1]; - } - - @Override public Object init(Object workingMemoryContext, Object context, Tuple leftTuple, Declaration[] declarations, ReteEvaluator reteEvaluator) { - ((int[])context)[0] = 0; - return context; - } - - @Override public Object accumulate(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, ReteEvaluator reteEvaluator) { - int[] ctx = (int[]) context; - - int v = func.applyAsInt(handle.getObject()); - ctx[0] += v; - - Runnable undo = () -> ctx[0] -= v; - - return undo; - } - - @Override public boolean supportsReverse() { - return true; - } - - @Override public boolean tryReverse(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, Object value, Declaration[] declarations, Declaration[] innerDeclarations, ReteEvaluator reteEvaluator) { - if (value!=null) { - ((Runnable) value).run(); - } - return true; - } - - @Override public Object getResult(Object workingMemoryContext, Object context, Tuple leftTuple, Declaration[] declarations, ReteEvaluator reteEvaluator) { - int[] ctx = (int[]) context; - return ctx[0]; + public void assertSessionHasProperties(String ruleString, Consumer kieSessionConsumer) { + if (testRunType.isExecutableModel()) { + KieSession ksession = getKieSession( ruleString ); + kieSessionConsumer.accept(ksession); + } else { + assertAll(() -> { + KieSession ksession = getKieSession( "dialect \"java\";\n" + ruleString); + kieSessionConsumer.accept(ksession); + }, + () -> { + KieSession ksession = getKieSession( "dialect \"mvel\";\n" + ruleString); + kieSessionConsumer.accept(ksession); + }); } } - @Test - public void testSumPersonAgeGroupByInitialWithAcc() throws Exception { - final Variable var_GENERATED_$pattern_Person$4$ = D.declarationOf(Person.class); - final Variable var_$initial = D.declarationOf(String.class); - final Variable var_sCoPe3_GENERATED_$pattern_GroupKey$3$ = D.declarationOf(GroupKey.class); - - Rule rule1 = D.rule("R1").build( - D.pattern(var_GENERATED_$pattern_Person$4$) - .bind(var_$initial, (Person _this) -> _this.getName().substring(0, 1)), - D.not(D.pattern(var_sCoPe3_GENERATED_$pattern_GroupKey$3$).expr("FF3B1999B2904B3324A471615B8760C9", - var_$initial, - (GroupKey _this, java.lang.String $initial) -> EvaluationUtil.areNullSafeEquals(_this.getKey(), $initial), - D.reactOn("key"))), - D.on(var_$initial).execute((org.drools.model.Drools drools, java.lang.String $initial) -> { - { - drools.insert(new GroupKey("a", $initial)); - } - })); - - final Variable var_$k = D.declarationOf(GroupKey.class); - final Variable var_$key = D.declarationOf(Object.class); - final Variable var_sCoPe4_GENERATED_$pattern_Person$5$ = D.declarationOf(Person.class); - - Rule rule2 = D.rule("R2").build( - D.pattern(var_$k).expr("8313F8B6FD1C0612B7758BFDB93F0DE4", (GroupKey _this) -> EvaluationUtil.areNullSafeEquals(_this.getTopic(), "a"), - D.reactOn("topic")) - .bind(var_$key, (GroupKey _this) -> _this.getKey(), - D.reactOn("key")), - D.not(D.pattern(var_sCoPe4_GENERATED_$pattern_Person$5$).expr("AFBC8D66DD9165C71D89004BBF5B0F9C", - var_$key, - (Person _this, Object $key) -> EvaluationUtil.areNullSafeEquals(_this.getName().substring(0, 1), $key.toString()), - D.reactOn("name"))), - D.on(var_$k).execute((org.drools.model.Drools drools, GroupKey $k) -> { - { - drools.delete($k); - } - })); - - final Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - final Variable var_GENERATED_$pattern_GroupKey$4$ = D.declarationOf(GroupKey.class); - final Variable var_GENERATED_$pattern_Person$6$ = D.declarationOf(Person.class); - final Variable var_$age = D.declarationOf(Integer.class); - final Variable var_$sumOfAges = D.declarationOf(java.lang.Integer.class); - - Rule rule3 = D.rule("R3").build( - D.pattern(var_GENERATED_$pattern_GroupKey$4$).expr("8313F8B6FD1C0612B7758BFDB93F0DE4", ( GroupKey _this) -> EvaluationUtil.areNullSafeEquals(_this.getTopic(), "a"), - D.reactOn("topic")).bind(var_$key, - (GroupKey _this) -> _this.getKey(), - D.reactOn("key")), - D.accumulate(D.pattern(var_GENERATED_$pattern_Person$6$) - .bind(var_$age, (Person _this) -> _this.getAge(), D.reactOn("age")) - .expr("AFBC8D66DD9165C71D89004BBF5B0F9C", - var_$key, - (Person _this, Object $key) -> EvaluationUtil.areNullSafeEquals(_this.getName().substring(0, 1), $key), - D.reactOn("name")), - D.accFunction(org.drools.core.base.accumulators.IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges)), - D.pattern(var_$sumOfAges).expr("00DE1D5962263283D8D799CF83F1A729", - (java.lang.Integer $sumOfAges) -> EvaluationUtil.greaterThanNumbers($sumOfAges, 10)), - D.on(var_$key, - var_results, - var_$sumOfAges).execute((Object $key, Map results, Integer $sumOfAges) -> { - { - results.put($key, $sumOfAges); - } - })); - - Model model = new ModelImpl().addRule( rule1 ).addRule( rule2 ).addRule( rule3 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Map results = new HashMap(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edson", 38)); - FactHandle meFH = ksession.insert(new Person("Mario", 45)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edoardo", 33)); - FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(3); - assertThat(results.get("G")).isEqualTo(35); - assertThat(results.get("E")).isEqualTo(71); - assertThat(results.get("M")).isEqualTo(126); - results.clear(); - - ksession.delete( meFH ); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(1); - assertThat(results.get("M")).isEqualTo(81); - results.clear(); - - ksession.update(geoffreyFH, new Person("Geoffrey", 40)); - ksession.insert(new Person("Matteo", 38)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("G")).isEqualTo(40); - assertThat(results.get("M")).isEqualTo(119); - + public void providedInstance() { + String str = "import " + Person.class.getCanonicalName() + ";\n" + + "import " + Map.class.getCanonicalName() + ";\n" + + "global Map results;\n" + + "rule X when\n" + + "groupby( $p: Person (); " + + "$key : $p.getName().substring(0, 1); " + + "$sumOfAges : sum($p.getAge()); " + + "$sumOfAges > 36)" + + "then\n" + + " results.put($key, $sumOfAges);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + Map results = new HashMap(); + ksession.setGlobal( "results", results ); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + FactHandle meFH = ksession.insert(new Person("Mario", 45)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edoardo", 33)); + FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("E")).isEqualTo(71); + assertThat(results.get("M")).isEqualTo(126); + results.clear(); + + ksession.delete( meFH ); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(1); + assertThat(results.get("M")).isEqualTo(81); + results.clear(); + + ksession.update(geoffreyFH, new Person("Geoffrey", 40)); + ksession.insert(new Person("Matteo", 38)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("G")).isEqualTo(40); + assertThat(results.get("M")).isEqualTo(119); + }); } @Test - public void testGroupPersonsInitial() throws Exception { - Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - Variable var_$key = D.declarationOf(String.class); - Variable var_$p = D.declarationOf(Person.class); - Variable var_$list = D.declarationOf(List.class); - - // groupby( $p: Person (); $key : $p.getName().substring(0, 1) ) - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.pattern(var_$p), - // Grouping Function - var_$p, var_$key, person -> person.getName().substring(0, 1) - ), - // Consequence - D.on(var_$key,var_results) - .execute(($key,results) -> { - results.add($key); - //System.out.println($key + ": " + $list); - }) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - List results = new ArrayList(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edson", 38)); - FactHandle meFH = ksession.insert(new Person("Mario", 45)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edoardo", 33)); - FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(3); - assertThat(results) - .containsExactlyInAnyOrder("G", "E", "M"); - results.clear(); - - ksession.delete( meFH ); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(1); - assertThat(results) - .containsExactlyInAnyOrder("M"); - results.clear(); - - ksession.update(geoffreyFH, new Person("Geoffrey", 40)); - ksession.insert(new Person("Matteo", 38)); - ksession.fireAllRules(); + public void testSumPersonAgeGroupByInitialWithAcc() { + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + GroupKey.class.getCanonicalName() + ";" + + "import " + Map.class.getCanonicalName() + ";" + + "import " + org.drools.core.base.accumulators.IntegerSumAccumulateFunction.class.getCanonicalName() + ";" + + "\n" + + "global Map results\n" + + "rule R1 when\n" + + " Person($initial: name.substring(0,1))" + + " not GroupKey(key == $initial)" + + "then\n" + + " insert(new GroupKey(\"a\", $initial));\n" + + "end" + + "\n" + + "rule R2 when\n" + + " $k: GroupKey(topic == \"a\", $key: key)" + + " not Person($key == name.substring(0, 1))" + + "then\n" + + " delete($k);\n" + + "end\n" + + "rule R3 when\n" + + " GroupKey(topic == \"a\", $key: key)" + + " accumulate($p: Person($age: age, $key == name.substring(0, 1)); $sumOfAges: sum($age); $sumOfAges > 10)" + + "then\n" + + " results.put($key, $sumOfAges);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + Map results = new HashMap(); + ksession.setGlobal( "results", results ); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + FactHandle meFH = ksession.insert(new Person("Mario", 45)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edoardo", 33)); + FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(3); + assertThat(results.get("G")).isEqualTo(35); + assertThat(results.get("E")).isEqualTo(71); + assertThat(results.get("M")).isEqualTo(126); + results.clear(); + + ksession.delete( meFH ); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(1); + assertThat(results.get("M")).isEqualTo(81); + results.clear(); + + ksession.update(geoffreyFH, new Person("Geoffrey", 40)); + ksession.insert(new Person("Matteo", 38)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("G")).isEqualTo(40); + assertThat(results.get("M")).isEqualTo(119); + }); + } - assertThat(results.size()).isEqualTo(2); - assertThat(results) - .containsExactlyInAnyOrder("G", "M"); + @Test + public void testGroupPersonsInitial() { + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "\n" + + "global List results\n" + + "rule R1 when\n" + + " groupby( $p: Person(); $key : $p.getName().substring(0, 1); count() )\n" + + "then\n" + + " results.add($key);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + List results = new ArrayList<>(); + ksession.setGlobal( "results", results ); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + FactHandle meFH = ksession.insert(new Person("Mario", 45)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edoardo", 33)); + FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(3); + assertThat(results) + .containsExactlyInAnyOrder("G", "E", "M"); + results.clear(); + + ksession.delete( meFH ); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(1); + assertThat(results) + .containsExactlyInAnyOrder("M"); + results.clear(); + + ksession.update(geoffreyFH, new Person("Geoffrey", 40)); + ksession.insert(new Person("Matteo", 38)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results) + .containsExactlyInAnyOrder("G", "M"); + }); } @Test - public void testSumPersonAgeGroupByInitial() throws Exception { - Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - Variable var_$key = D.declarationOf(String.class); - Variable var_$p = D.declarationOf(Person.class); - Variable var_$age = D.declarationOf(Integer.class); - Variable var_$sumOfAges = D.declarationOf(Integer.class); - - // groupby ( $p : Person ( $age : age ); $key : $p.name.substring(0, 1); $sum : sum( $age ) ) - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.pattern(var_$p).bind(var_$age, person -> person.getAge(), D.reactOn("age")), - // Grouping Function - var_$p, var_$key, person -> person.getName().substring(0, 1), - // Accumulate Result (can be more than one) - D.accFunction(org.drools.core.base.accumulators.IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges)), - // Filter - D.pattern(var_$sumOfAges) - .expr($sumOfAges -> EvaluationUtil.greaterThanNumbers($sumOfAges, 36)), - // Consequence - D.on(var_$key, var_results, var_$sumOfAges) - .execute(($key, results, $sumOfAges) -> results.put($key, $sumOfAges)) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); + public void testSumPersonAgeGroupByInitial() { + // Note: this appears to be a duplicate of providedInstance + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Map.class.getCanonicalName() + ";" + + "global Map results;\n" + + "rule X when\n" + + "groupby( $p: Person (); " + + "$key : $p.getName().substring(0, 1); " + + "$sumOfAges : sum($p.getAge()); " + + "$sumOfAges > 36)" + + "then\n" + + " results.put($key, $sumOfAges);\n" + + "end"; + assertSessionHasProperties(str, ksession -> { Map results = new HashMap(); ksession.setGlobal( "results", results ); @@ -410,473 +276,386 @@ public void testSumPersonAgeGroupByInitial() throws Exception { assertThat(results.size()).isEqualTo(2); assertThat(results.get("G")).isEqualTo(40); assertThat(results.get("M")).isEqualTo(119); + }); } @Test - public void testSumPersonAgeGroupByInitialWithBetaFilter() throws Exception { - Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - Variable var_$key = D.declarationOf(String.class); - Variable var_$p = D.declarationOf(Person.class); - Variable var_$age = D.declarationOf(Integer.class); - Variable var_$sumOfAges = D.declarationOf(Integer.class); - - // groupby ( $p : Person ( $age : age ); $key : $p.name.substring(0, 1); $sum : sum( $age ); $sum > $key.length() ) - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.pattern(var_$p).bind(var_$age, person -> person.getAge(), D.reactOn("age")), - // Grouping Function - var_$p, var_$key, person -> person.getName().substring(0, 1), - // Accumulate Result (can be more than one) - D.accFunction(org.drools.core.base.accumulators.IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges)), - // Filter - D.pattern(var_$sumOfAges) - .expr(var_$key, ($sumOfAges, $key) -> EvaluationUtil.greaterThanNumbers($sumOfAges, $key.length())), - // Consequence - D.on(var_$key, var_results, var_$sumOfAges) - .execute(($key, results, $sumOfAges) -> results.put($key, $sumOfAges)) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Map results = new HashMap(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edson", 38)); - FactHandle meFH = ksession.insert(new Person("Mario", 45)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edoardo", 33)); - FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(3); - assertThat(results.get("G")).isEqualTo(35); - assertThat(results.get("E")).isEqualTo(71); - assertThat(results.get("M")).isEqualTo(126); - results.clear(); - - ksession.delete( meFH ); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(1); - assertThat(results.get("M")).isEqualTo(81); - results.clear(); - - ksession.update(geoffreyFH, new Person("Geoffrey", 40)); - ksession.insert(new Person("Matteo", 38)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("G")).isEqualTo(40); - assertThat(results.get("M")).isEqualTo(119); + public void testSumPersonAgeGroupByInitialWithBetaFilter() { + // TODO: For some reason, the compiled class expression thinks $p should be an integer? + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Map.class.getCanonicalName() + ";" + + "global Map results;\n" + + "rule X when\n" + + "groupby( $p: Person ( $age: age ); " + + "$key : $p.getName().substring(0, 1); " + + "$sum : sum($age); " + + "$sum > $key.length())" + + "then\n" + + " results.put($key, $sum);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + Map results = new HashMap(); + ksession.setGlobal("results", results); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + FactHandle meFH = ksession.insert(new Person("Mario", 45)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edoardo", 33)); + FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(3); + assertThat(results.get("G")).isEqualTo(35); + assertThat(results.get("E")).isEqualTo(71); + assertThat(results.get("M")).isEqualTo(126); + results.clear(); + + ksession.delete(meFH); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(1); + assertThat(results.get("M")).isEqualTo(81); + results.clear(); + + ksession.update(geoffreyFH, new Person("Geoffrey", 40)); + ksession.insert(new Person("Matteo", 38)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("G")).isEqualTo(40); + assertThat(results.get("M")).isEqualTo(119); + }); } @Test - public void testSumPersonAgeGroupByInitialWithExists() throws Exception { - final Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - final Variable var_$key = D.declarationOf(String.class); - final Variable var_$string = D.declarationOf(String.class); - final Variable var_$initial = D.declarationOf(String.class); - final Variable var_$p = D.declarationOf(Person.class); - final Variable var_$age = D.declarationOf(Integer.class); - final Variable var_$sumOfAges = D.declarationOf(Integer.class); - - // groupby ( $p : Person ( $age : age, $initial : getName().substring(0, 1) ) and exists( String( this == $initial ) ); - // $key : $p.name.substring(0, 1); - // $sum : sum( $age ); $sum > 10 ) - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.and( - D.pattern(var_$p) - .bind(var_$age, person -> person.getAge(), D.reactOn("age")) - .bind(var_$initial, person -> person.getName().substring(0, 1)), - D.exists(D.pattern(var_$string).expr(var_$initial, (_this, $initial) -> EvaluationUtil.areNullSafeEquals(_this, $initial))) - ), - // Grouping Function - var_$p, var_$key, person -> person.getName().substring(0, 1), - // Accumulate Result (can be more than one) - D.accFunction(org.drools.core.base.accumulators.IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges)), - // Filter - D.pattern(var_$sumOfAges).expr($sumOfAges -> EvaluationUtil.greaterThanNumbers($sumOfAges, 10)), - // Consequence - D.on(var_$key, var_results, var_$sumOfAges) - .execute(($key, results, $sumOfAges) -> results.put($key, $sumOfAges)) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Map results = new HashMap(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edson", 38)); - FactHandle meFH = ksession.insert(new Person("Mario", 45)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edoardo", 33)); - FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); - - ksession.insert( "G" ); - ksession.insert( "M" ); - ksession.insert( "X" ); - - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("G")).isEqualTo(35); - assertThat(results.get("E")).isNull(); - assertThat(results.get("M")).isEqualTo(126); - results.clear(); - - ksession.delete( meFH ); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(1); - assertThat(results.get("M")).isEqualTo(81); - results.clear(); - - ksession.update(geoffreyFH, new Person("Geoffrey", 40)); - ksession.insert(new Person("Matteo", 38)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("G")).isEqualTo(40); - assertThat(results.get("M")).isEqualTo(119); + public void testSumPersonAgeGroupByInitialWithExists() { + // TODO: For some reason, the compiled class expression thinks $p should be an integer? + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Map.class.getCanonicalName() + ";" + + "global Map results;\n" + + "rule X when\n" + + "groupby( $p: Person ( $age : age, $initial : getName().substring(0, 1) ) " + + "and exists( String( this == $initial ) ); " + + "$key : $p.getName().substring(0, 1); " + + "$sum : sum($age); " + + "$sum > 10)" + + "then\n" + + " results.put($key, $sum);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + Map results = new HashMap(); + ksession.setGlobal("results", results); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + FactHandle meFH = ksession.insert(new Person("Mario", 45)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edoardo", 33)); + FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); + + ksession.insert("G"); + ksession.insert("M"); + ksession.insert("X"); + + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("G")).isEqualTo(35); + assertThat(results.get("E")).isNull(); + assertThat(results.get("M")).isEqualTo(126); + results.clear(); + + ksession.delete(meFH); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(1); + assertThat(results.get("M")).isEqualTo(81); + results.clear(); + + ksession.update(geoffreyFH, new Person("Geoffrey", 40)); + ksession.insert(new Person("Matteo", 38)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("G")).isEqualTo(40); + assertThat(results.get("M")).isEqualTo(119); + }); } - private static final class MyType { + public static final class MyType { + private final AtomicInteger counter; private final MyType nested; - public MyType(MyType nested) { + public MyType(AtomicInteger counter, MyType nested) { + this.counter = counter; this.nested = nested; } public MyType getNested() { + counter.getAndIncrement(); return nested; } } @Test public void testWithNull() { - Variable var = D.declarationOf(MyType.class); - Variable groupKey = D.declarationOf(MyType.class); - Variable count = D.declarationOf(Long.class); - - AtomicInteger mappingFunctionCallCounter = new AtomicInteger(0); - Function1 mappingFunction = ( a) -> { - mappingFunctionCallCounter.incrementAndGet(); - return a.getNested(); - }; - D.PatternDef onlyOnesWithNested = D.pattern(var) - .expr(myType -> myType.getNested() != null); - ExprViewItem groupBy = D.groupBy(onlyOnesWithNested, var, groupKey, mappingFunction, - D.accFunction( CountAccumulateFunction::new).as(count)); - - List result = new ArrayList<>(); - - Rule rule = D.rule("R") - .build(groupBy, - D.on(groupKey, count) - .execute((drools, key, acc) -> result.add(key))); - - Model model = new ModelImpl().addRule( rule ); - KieBase kieBase = KieBaseBuilder.createKieBaseFromModel( model ); - - MyType objectWithoutNestedObject = new MyType(null); - MyType objectWithNestedObject = new MyType(objectWithoutNestedObject); - KieSession ksession = kieBase.newKieSession(); - ksession.insert(objectWithNestedObject); - ksession.insert(objectWithoutNestedObject); - ksession.fireAllRules(); - - // Side issue: this number is unusually high. Perhaps we should try to implement some cache for this? - System.out.println("GroupKey mapping function was called " + mappingFunctionCallCounter.get() + " times."); - - assertThat(result).containsOnly(objectWithoutNestedObject); + String str = + "import " + MyType.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "import " + AtomicInteger.class.getCanonicalName() + ";" + + "global List result;\n" + + "global AtomicInteger mappingFunctionCallCounter;\n" + + "rule X when\n" + + "groupby( $p: MyType ( nested != null ) ;" + + "$key : $p.getNested(); " + + "$count : count())" + + "then\n" + + " result.add($key);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + AtomicInteger mappingFunctionCallCounter = new AtomicInteger(); + List result = new ArrayList<>(); + ksession.setGlobal("mappingFunctionCallCounter", mappingFunctionCallCounter); + ksession.setGlobal("result", result); + + MyType objectWithoutNestedObject = new MyType(mappingFunctionCallCounter, null); + MyType objectWithNestedObject = new MyType(mappingFunctionCallCounter, objectWithoutNestedObject); + ksession.insert(objectWithNestedObject); + ksession.insert(objectWithoutNestedObject); + ksession.fireAllRules(); + + // Side issue: this number is unusually high. Perhaps we should try to implement some cache for this? + System.out.println("GroupKey mapping function was called " + mappingFunctionCallCounter.get() + " times."); + + assertThat(result).containsOnly(objectWithoutNestedObject); + }); } @Test public void testWithGroupByAfterExists() { - Global groupResultVar = D.globalOf(Map.class, "defaultPkg", "glob"); - - Variable patternVar = D.declarationOf(Integer.class); - Variable existsVar = D.declarationOf(String.class); - Variable keyVar = D.declarationOf(Integer.class); - Variable resultVar = D.declarationOf(Long.class); - - D.PatternDef pattern = D.pattern(patternVar); - D.PatternDef exist = D.pattern(existsVar); - ViewItem patternAndExists = D.and( - pattern, - D.exists(exist)); - - ViewItem groupBy = D.groupBy(patternAndExists, patternVar, keyVar, Math::abs, - DSL.accFunction(CountAccumulateFunction::new).as(resultVar)); - ConsequenceBuilder._3 consequence = D.on(keyVar, resultVar, groupResultVar) - .execute((key, count, result) -> { - result.put(key, count.intValue()); - }); - - Rule rule = D.rule("R").build(groupBy, consequence); - - Model model = new ModelImpl().addRule(rule).addGlobal( groupResultVar ); - KieBase kieBase = KieBaseBuilder.createKieBaseFromModel(model); - KieSession session = kieBase.newKieSession(); - Map global = new HashMap<>(); - session.setGlobal("glob", global); - - session.insert("Something"); - session.insert(-1); - session.insert(1); - session.insert(2); - session.fireAllRules(); - - assertThat(global.size()).isEqualTo(2); - assertThat((int) global.get(1)).isEqualTo(2); // -1 and 1 will map to the same key, and count twice. - assertThat((int) global.get(2)).isEqualTo(1); // 2 maps to a key, and counts once. + String str = + "import " + Map.class.getCanonicalName() + ";" + + "import " + Math.class.getCanonicalName() + ";" + + "global Map glob;\n" + + "rule X when\n" + + "groupby($i: Integer() and exists String();\n" + + "$key : Math.abs($i); " + + "$count : count())" + + "then\n" + + " glob.put($key, $count.intValue());\n" + + "end"; + + assertSessionHasProperties(str, session -> { + Map global = new HashMap<>(); + session.setGlobal("glob", global); + + session.insert("Something"); + session.insert(-1); + session.insert(1); + session.insert(2); + session.fireAllRules(); + + assertThat(global.size()).isEqualTo(2); + assertThat((int) global.get(1)).isEqualTo(2); // -1 and 1 will map to the same key, and count twice. + assertThat((int) global.get(2)).isEqualTo(1); // 2 maps to a key, and counts once. + }); } @Test public void testWithGroupByAfterExistsWithFrom() { - Global groupResultVar = D.globalOf(Map.class, "defaultPkg", "glob"); - - Variable patternVar = D.declarationOf(Integer.class); - Variable existsVar = D.declarationOf(String.class); - Variable keyVar = D.declarationOf(Integer.class); - Variable resultVar = D.declarationOf(Long.class); - Variable mappedResultVar = D.declarationOf(Integer.class); - - D.PatternDef pattern = D.pattern(patternVar); - D.PatternDef exist = D.pattern(existsVar); - ViewItem patternAndExists = D.and( pattern, D.exists(exist) ); - - ViewItem groupBy = D.groupBy(patternAndExists, patternVar, keyVar, Math::abs, - DSL.accFunction(CountAccumulateFunction::new).as(resultVar)); - PatternDSL.PatternDef mappedResult = D.pattern(resultVar).bind(mappedResultVar, Long::intValue); - ConsequenceBuilder._3 consequence = D.on(keyVar, mappedResultVar, groupResultVar) - .execute((key, count, result) -> { - result.put(key, count); - }); - - Rule rule = D.rule("R").build(groupBy, mappedResult, consequence); - - Model model = new ModelImpl().addRule(rule).addGlobal( groupResultVar ); - KieBase kieBase = KieBaseBuilder.createKieBaseFromModel(model); - KieSession session = kieBase.newKieSession(); - Map global = new HashMap<>(); - session.setGlobal("glob", global); - - session.insert("Something"); - session.insert(-1); - session.insert(1); - session.insert(2); - session.fireAllRules(); - - assertThat(global.size()).isEqualTo(2); - assertThat((int) global.get(1)).isEqualTo(2); // -1 and 1 will map to the same key, and count twice. - assertThat((int) global.get(2)).isEqualTo(1); // 2 maps to a key, and counts once. + // Note: this looks exactly the same as testWithGroupByAfterExists + String str = + "import " + Map.class.getCanonicalName() + ";" + + "import " + Math.class.getCanonicalName() + ";" + + "global Map glob;\n" + + "rule X when\n" + + "groupby($i: Integer() and exists String();\n" + + "$key : Math.abs($i); " + + "$count : count())" + + "then\n" + + " glob.put($key, $count.intValue());\n" + + "end"; + + assertSessionHasProperties(str, session -> { + Map global = new HashMap<>(); + session.setGlobal("glob", global); + + session.insert("Something"); + session.insert(-1); + session.insert(1); + session.insert(2); + session.fireAllRules(); + + assertThat(global.size()).isEqualTo(2); + assertThat((int) global.get(1)).isEqualTo(2); // -1 and 1 will map to the same key, and count twice. + assertThat((int) global.get(2)).isEqualTo(1); // 2 maps to a key, and counts once. + }); } @Test public void testGroupBy2Vars() { - final Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - final Variable var_$key = D.declarationOf(String.class); - final Variable var_$p = D.declarationOf(Person.class); - final Variable var_$age = D.declarationOf(Integer.class); - final Variable var_$s = D.declarationOf(String.class); - final Variable var_$l = D.declarationOf(Integer.class); - final Variable var_$sumOfAges = D.declarationOf(Integer.class); - - // groupby ( $p : Person ( $age : age ) and $s : String( $l : length ); - // $key : $p.name.substring(0, 1) + $l; - // $sum : sum( $age ); $sum > 10 ) - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.and( - D.pattern(var_$p).bind(var_$age, Person::getAge, D.reactOn("age")), - D.pattern(var_$s).bind(var_$l, String::length, D.reactOn("length")) - ), - // Grouping Function - var_$p, var_$s, var_$key, (person, string) -> person.getName().substring(0, 1) + string.length(), - // Accumulate Result (can be more than one) - D.accFunction(org.drools.core.base.accumulators.IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges)), - // Filter - D.pattern(var_$sumOfAges).expr($sumOfAges -> EvaluationUtil.greaterThanNumbers($sumOfAges, 10)), - // Consequence - D.on(var_$key, var_results, var_$sumOfAges) - .execute(($key, results, $sumOfAges) -> results.put($key, $sumOfAges)) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Map results = new HashMap(); - ksession.setGlobal( "results", results ); - - ksession.insert( "test" ); - ksession.insert( "check" ); - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edson", 38)); - FactHandle meFH = ksession.insert(new Person("Mario", 45)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edoardo", 33)); - FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(6); - assertThat(results.get("G4")).isEqualTo(35); - assertThat(results.get("E4")).isEqualTo(71); - assertThat(results.get("M4")).isEqualTo(126); - assertThat(results.get("G5")).isEqualTo(35); - assertThat(results.get("E5")).isEqualTo(71); - assertThat(results.get("M5")).isEqualTo(126); - results.clear(); - - ksession.delete( meFH ); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("M4")).isEqualTo(81); - assertThat(results.get("M5")).isEqualTo(81); - results.clear(); - - ksession.update(geoffreyFH, new Person("Geoffrey", 40)); - ksession.insert(new Person("Matteo", 38)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(4); - assertThat(results.get("G4")).isEqualTo(40); - assertThat(results.get("M4")).isEqualTo(119); - assertThat(results.get("G5")).isEqualTo(40); - assertThat(results.get("M5")).isEqualTo(119); + // TODO: For some reason, the compiled class expression thinks $p should be an integer? + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Map.class.getCanonicalName() + ";" + + "global Map results;\n" + + "rule X when\n" + + "groupby ( $p : Person ( $age : age ) and $s : String( $l : length );\n" + + " $key : $p.getName().substring(0, 1) + $l;\n" + + " $sum : sum( $age ); $sum > 10 )" + + "then\n" + + " results.put($key, $sum);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + Map results = new HashMap(); + ksession.setGlobal("results", results); + + ksession.insert("test"); + ksession.insert("check"); + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + FactHandle meFH = ksession.insert(new Person("Mario", 45)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edoardo", 33)); + FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(6); + assertThat(results.get("G4")).isEqualTo(35); + assertThat(results.get("E4")).isEqualTo(71); + assertThat(results.get("M4")).isEqualTo(126); + assertThat(results.get("G5")).isEqualTo(35); + assertThat(results.get("E5")).isEqualTo(71); + assertThat(results.get("M5")).isEqualTo(126); + results.clear(); + + ksession.delete(meFH); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("M4")).isEqualTo(81); + assertThat(results.get("M5")).isEqualTo(81); + results.clear(); + + ksession.update(geoffreyFH, new Person("Geoffrey", 40)); + ksession.insert(new Person("Matteo", 38)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(4); + assertThat(results.get("G4")).isEqualTo(40); + assertThat(results.get("M4")).isEqualTo(119); + assertThat(results.get("G5")).isEqualTo(40); + assertThat(results.get("M5")).isEqualTo(119); + }); } @Test public void testUnexpectedRuleMatch() { - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - // $a: Parent() - Variable patternVar = D.declarationOf(Parent.class); - PatternDSL.PatternDef pattern = D.pattern(patternVar); - - // exists Child($a.getChild() == this) - Variable existsPatternVar = D.declarationOf(Child.class); - PatternDSL.PatternDef existsPattern = D.pattern(existsPatternVar) - .expr(patternVar, (child, parent) -> Objects.equals(parent.getChild(), child)); - - // count(Parent::getChild) - Variable groupKeyVar = D.declarationOf(Child.class); - Variable accumulateResult = D.declarationOf(Long.class); - ExprViewItem groupBy = PatternDSL.groupBy(D.and(pattern, D.exists(existsPattern)), - patternVar, groupKeyVar, Parent::getChild, - DSL.accFunction(CountAccumulateFunction::new).as(accumulateResult)); - - Rule rule1 = D.rule("R1").build(groupBy, - D.on(var_results, groupKeyVar, accumulateResult) - .execute((results, $child, $count) -> results.add(Arrays.asList($child, $count)))); - - Model model = new ModelImpl().addRule(rule1).addGlobal(var_results); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - List results = new ArrayList(); - ksession.setGlobal( "results", results ); - - Child child1 = new Child("Child1", 1); - Parent parent1 = new Parent("Parent1", child1); - Child child2 = new Child("Child2", 2); - Parent parent2 = new Parent("Parent2", child2); - - ksession.insert(parent1); - ksession.insert(parent2); - FactHandle toRemove = ksession.insert(child1); - ksession.insert(child2); - - // Remove child1, therefore it does not exist, therefore there should be no groupBy matches for the child. - ksession.delete(toRemove); - - // Yet, we still get (Child1, 0). - ksession.fireAllRules(); - assertThat(results) - .containsOnly(Arrays.asList(child2, 1L)); + String str = + "import " + Parent.class.getCanonicalName() + ";" + + "import " + Child.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "import " + Arrays.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule X when\n" + + " groupby(" + + " $a: Parent() and exists Child($a.getChild() == this);" + + " $child: $a.getChild();" + + " $count: count()" + + " )" + + "then\n" + + " results.add(Arrays.asList($child, $count));\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + List results = new ArrayList(); + ksession.setGlobal("results", results); + + Child child1 = new Child("Child1", 1); + Parent parent1 = new Parent("Parent1", child1); + Child child2 = new Child("Child2", 2); + Parent parent2 = new Parent("Parent2", child2); + + ksession.insert(parent1); + ksession.insert(parent2); + FactHandle toRemove = ksession.insert(child1); + ksession.insert(child2); + + // Remove child1, therefore it does not exist, therefore there should be no groupBy matches for the child. + ksession.delete(toRemove); + + // Yet, we still get (Child1, 0). + ksession.fireAllRules(); + assertThat(results) + .containsOnly(Arrays.asList(child2, 1L)); + }); } @Test public void testCompositeKey() { - Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - Variable var_$key = D.declarationOf(CompositeKey.class); - Variable var_$p = D.declarationOf(Person.class); - Variable var_$age = D.declarationOf(Integer.class); - Variable var_$sumOfAges = D.declarationOf(Integer.class); - - // Define key1 with from - Variable var_$key1 = D.declarationOf( Object.class ); - - // groupby ( $p : Person ( $age : age ); $key : new CompositeKey( $p.getName().substring(0, 1), 1 ); $sum : sum( $age ); $sum > 10 ) - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.pattern(var_$p).bind(var_$age, person -> person.getAge(), D.reactOn("age")), - // Grouping Function - var_$p, var_$key, person -> new CompositeKey( person.getName().substring(0, 1), 1 ), - // Accumulate Result (can be more than one) - D.accFunction(org.drools.core.base.accumulators.IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges)), - // Filter - D.pattern(var_$sumOfAges) - .expr($sumOfAges -> EvaluationUtil.greaterThanNumbers($sumOfAges, 10)), - // Bind key1 - D.pattern( var_$key).bind(var_$key1, CompositeKey::getKey1), - // Consequence - D.on(var_$key1, var_results, var_$sumOfAges) - .execute(($key1, results, $sumOfAges) -> results.put($key1, $sumOfAges)) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Map results = new HashMap(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edson", 38)); - FactHandle meFH = ksession.insert(new Person("Mario", 45)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edoardo", 33)); - FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(3); - assertThat(results.get("G")).isEqualTo(35); - assertThat(results.get("E")).isEqualTo(71); - assertThat(results.get("M")).isEqualTo(126); - results.clear(); - - ksession.delete( meFH ); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(1); - assertThat(results.get("M")).isEqualTo(81); - results.clear(); - - ksession.update(geoffreyFH, new Person("Geoffrey", 40)); - ksession.insert(new Person("Matteo", 38)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("G")).isEqualTo(40); - assertThat(results.get("M")).isEqualTo(119); + // TODO: For some reason, the compiled class expression thinks $p should be an integer? + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + CompositeKey.class.getCanonicalName() + ";" + + "import " + Map.class.getCanonicalName() + ";" + + "global Map results;\n" + + "rule X when\n" + + " groupby(" + + " $p : Person ( $age : age );" + + " $key : new CompositeKey( $p.getName().substring(0, 1), 1 );" + + " $sum : sum( $age );" + + " $sum > 10" + + " )\n" + + " $key1: Object() from $key.getKey1()" + + "then\n" + + " results.put($key1, $sum);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + Map results = new HashMap(); + ksession.setGlobal("results", results); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + FactHandle meFH = ksession.insert(new Person("Mario", 45)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edoardo", 33)); + FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(3); + assertThat(results.get("G")).isEqualTo(35); + assertThat(results.get("E")).isEqualTo(71); + assertThat(results.get("M")).isEqualTo(126); + results.clear(); + + ksession.delete(meFH); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(1); + assertThat(results.get("M")).isEqualTo(81); + results.clear(); + + ksession.update(geoffreyFH, new Person("Geoffrey", 40)); + ksession.insert(new Person("Matteo", 38)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("G")).isEqualTo(40); + assertThat(results.get("M")).isEqualTo(119); + }); } public static class CompositeKey { @@ -902,7 +681,7 @@ public boolean equals( Object o ) { if ( o == null || getClass() != o.getClass() ) return false; CompositeKey that = ( CompositeKey ) o; return Objects.equals( key1, that.key1 ) && - Objects.equals( key2, that.key2 ); + Objects.equals( key2, that.key2 ); } @Override @@ -913,438 +692,383 @@ public int hashCode() { @Override public String toString() { return "CompositeKey{" + - "key1=" + key1 + - ", key2=" + key2 + - '}'; + "key1=" + key1 + + ", key2=" + key2 + + '}'; } } @Test public void testTwoExpressionsOnSecondPattern() { // DROOLS-5704 - Global var_results = D.globalOf(Set.class, "defaultpkg", "results"); - - Variable var_$p1 = D.declarationOf(Person.class); - Variable var_$p2 = D.declarationOf(Person.class); - Variable var_$key = D.declarationOf(Integer.class); - Variable var_$join = D.declarationOf(Integer.class); - - PatternDSL.PatternDef p1pattern = D.pattern(var_$p1) - .bind(var_$join, Person::getAge); - PatternDSL.PatternDef p2pattern = D.pattern(var_$p2) - .expr(p -> true) - .expr("Age less than", var_$join, (p1, age) -> p1.getAge() > age, - D.betaIndexedBy(Integer.class, Index.ConstraintType.LESS_THAN, 0, Person::getAge, age -> age)); - - Rule rule1 = D.rule("R1").build( - D.groupBy( - D.and(p1pattern, p2pattern), - var_$p1, - var_$p2, - var_$key, - (p1, p2) -> p1.getAge() + p2.getAge()), - D.on(var_results, var_$key) - .execute(Set::add) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Set results = new LinkedHashSet<>(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edson", 38)); - ksession.insert(new Person("Edoardo", 33)); - ksession.fireAllRules(); - - assertThat(results).contains(80, 75, 71); + // TODO: For some reason, the compiled class expression thinks $p should be an integer? + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Set.class.getCanonicalName() + ";" + + "global Set results;\n" + + "rule X when\n" + + " groupby(" + + " $p1 : Person ( $age1 : age ) and $p2 : Person ( $age2 : age, $age1 > $age2);" + + " $key : $age1 + $age2;" + + " count()" + + " )\n" + + "then\n" + + " results.add($key);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + Set results = new LinkedHashSet<>(); + ksession.setGlobal("results", results); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + ksession.insert(new Person("Edoardo", 33)); + ksession.fireAllRules(); + + assertThat(results).contains(80, 75, 71); + }); } @Test public void testFromAfterGroupBy() { - Global var_results = D.globalOf( Set.class, "defaultpkg", "results" ); - - Variable var_$p1 = D.declarationOf( Person.class ); - Variable var_$key = D.declarationOf( String.class ); - Variable var_$count = D.declarationOf( Long.class ); - Variable var_$remapped1 = D.declarationOf( Object.class, from( var_$key ) ); - Variable var_$remapped2 = D.declarationOf( Long.class, from( var_$count ) ); - - PatternDSL.PatternDef p1pattern = D.pattern( var_$p1 ) - .expr( p -> (( Person ) p).getName() != null ); - - Rule rule1 = D.rule( "R1" ).build( - D.groupBy( - p1pattern, - var_$p1, - var_$key, - Person::getName, - DSL.accFunction( CountAccumulateFunction::new, var_$p1 ).as( var_$count ) ), - D.pattern( var_$remapped1 ), - D.pattern( var_$remapped2 ), - D.on( var_$remapped1, var_$remapped2 ) - .execute( ( ctx, name, count ) -> { - if ( !(name instanceof String) ) { - throw new IllegalStateException( "Name not String, but " + name.getClass() ); - } - } ) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Set results = new LinkedHashSet<>(); - ksession.setGlobal( "results", results ); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Set.class.getCanonicalName() + ";" + + "import " + Consumer.class.getCanonicalName() + ";" + + "global Set results;\n" + + "global Consumer typeChecker;\n" + + "rule X when\n" + + " groupby(" + + " $p : Person ( name != null );" + + " $key : $p.getName();" + + " $count : count()" + + " )\n" + + " $remappedKey: Object() from $key\n" + + " $remappedCount: Long() from $count\n" + + "then\n" + + " typeChecker.accept($remappedKey);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + Set results = new LinkedHashSet<>(); + ksession.setGlobal("results", results); + ksession.setGlobal("typeChecker", (Consumer) ($remappedKey -> { + if (!($remappedKey instanceof String)) { + throw new IllegalStateException( "Name not String, but " + $remappedKey.getClass() ); + } + })); - ksession.insert( new Person( "Mark", 42 ) ); - ksession.insert( new Person( "Edson", 38 ) ); - ksession.insert( new Person( "Edoardo", 33 ) ); - int fireCount = ksession.fireAllRules(); - assertThat( fireCount ).isGreaterThan( 0 ); + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + ksession.insert(new Person("Edoardo", 33)); + int fireCount = ksession.fireAllRules(); + assertThat(fireCount).isGreaterThan(0); + }); } @Test public void testBindingRemappedAfterGroupBy() { - Global var_results = D.globalOf( Set.class, "defaultpkg", "results" ); - - Variable var_$p1 = D.declarationOf( Person.class ); - Variable var_$key = D.declarationOf( String.class ); - Variable var_$count = D.declarationOf( Long.class ); - Variable var_$remapped1 = D.declarationOf( Object.class); - Variable var_$remapped2 = D.declarationOf( Long.class); - - PatternDSL.PatternDef p1pattern = D.pattern( var_$p1 ) - .expr( p -> (( Person ) p).getName() != null ); - - Rule rule1 = D.rule( "R1" ).build( - D.groupBy( - p1pattern, - var_$p1, - var_$key, - Person::getName, - DSL.accFunction( CountAccumulateFunction::new, var_$p1 ).as( var_$count ) ), - D.pattern( var_$key).bind(var_$remapped1, o -> o), - D.pattern( var_$count).bind(var_$remapped2, o -> o), - D.on( var_$remapped1, var_$remapped2 ) - .execute( ( ctx, name, count ) -> { - if ( !(name instanceof String) ) { - throw new IllegalStateException( "Name not String, but " + name.getClass() ); - } - } ) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Set results = new LinkedHashSet<>(); - ksession.setGlobal( "results", results ); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Set.class.getCanonicalName() + ";" + + "import " + Consumer.class.getCanonicalName() + ";" + + "global Set results;\n" + + "global Consumer typeChecker;\n" + + "rule X when\n" + + " groupby(" + + " $p : Person ( name != null );" + + " $key : $p.getName();" + + " $count : count()" + + " )\n" + + " $remappedKey: Object() from $key\n" + + " $remappedCount: Long() from $count\n" + + "then\n" + + " typeChecker.accept($remappedKey);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + Set results = new LinkedHashSet<>(); + ksession.setGlobal("results", results); + ksession.setGlobal("typeChecker", (Consumer) ($remappedKey -> { + if (!($remappedKey instanceof String)) { + throw new IllegalStateException( "Name not String, but " + $remappedKey.getClass() ); + } + })); - ksession.insert( new Person( "Mark", 42 ) ); - ksession.insert( new Person( "Edson", 38 ) ); - ksession.insert( new Person( "Edoardo", 33 ) ); - int fireCount = ksession.fireAllRules(); - assertThat( fireCount ).isGreaterThan( 0 ); + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + ksession.insert(new Person("Edoardo", 33)); + int fireCount = ksession.fireAllRules(); + assertThat(fireCount).isGreaterThan(0); + }); } @Test - public void testGroupByUpdatingKey() throws Exception { - Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - Variable var_$key = D.declarationOf(String.class); - Variable var_$p = D.declarationOf(Person.class); - Variable var_$age = D.declarationOf(Integer.class); - Variable var_$sumOfAges = D.declarationOf(Integer.class); - Variable var_$countOfPersons = D.declarationOf(Long.class); - - // groupby( $p: Person (); - // $key : $p.getName().substring(0, 1); - // $sumOfAges : sum($p.getAge()), $countOfPersons : count(); - // $sumOfAges > 10 ) - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.pattern(var_$p).bind(var_$age, person -> person.getAge(), D.reactOn("age")), - // Grouping Function - var_$p, var_$key, person -> person.getName().substring(0, 1), - // Accumulate Result (can be more than one) - D.accFunction(org.drools.core.base.accumulators.IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges), - D.accFunction(org.drools.core.base.accumulators.CountAccumulateFunction::new).as(var_$countOfPersons)), - // Filter - D.pattern(var_$sumOfAges) - .expr($sumOfAges -> EvaluationUtil.greaterThanNumbers($sumOfAges, 10)), - // Consequence - D.on(var_$key, var_results, var_$sumOfAges, var_$countOfPersons) - .execute(($key, results, $sumOfAges, $countOfPersons) -> results.put($key, $sumOfAges + $countOfPersons.intValue())) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Map results = new HashMap(); - ksession.setGlobal( "results", results ); - - Person me = new Person("Mario", 45); - FactHandle meFH = ksession.insert(me); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edson", 38)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edoardo", 33)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("E")).isEqualTo(73); - assertThat(results.get("M")).isEqualTo(129); - results.clear(); - - me.setName("EMario"); - ksession.update(meFH, me); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(2); - assertThat(results.get("E")).isEqualTo(119); - assertThat(results.get("M")).isEqualTo(83); + public void testGroupByUpdatingKey() { + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Map.class.getCanonicalName() + ";" + + "global Map results;\n" + + "rule X when\n" + + " groupby(" + + " $p : Person ();" + + " $key : $p.getName().substring(0, 1);" + + " $sumOfAges : sum($p.getAge()), $countOfPersons : count();" + + " $sumOfAges > 10" + + " )\n" + + "then\n" + + " results.put($key, $sumOfAges + $countOfPersons.intValue());" + + "end"; + + assertSessionHasProperties(str, ksession -> { + Map results = new HashMap(); + ksession.setGlobal("results", results); + + Person me = new Person("Mario", 45); + FactHandle meFH = ksession.insert(me); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edoardo", 33)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("E")).isEqualTo(73); + assertThat(results.get("M")).isEqualTo(129); + results.clear(); + + me.setName("EMario"); + ksession.update(meFH, me); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(2); + assertThat(results.get("E")).isEqualTo(119); + assertThat(results.get("M")).isEqualTo(83); + }); } @Test public void doesNotRemoveProperly() { - Global var_results = D.globalOf( Set.class, "defaultpkg", "results" ); - - Variable var_$p1 = D.declarationOf( Person.class ); - Variable var_$key = D.declarationOf( Integer.class ); - - PatternDSL.PatternDef p1pattern = D.pattern( var_$p1 ) - .expr( p -> p.getName() != null ); - - Set results = new LinkedHashSet<>(); - Rule rule1 = D.rule( "R1" ).build( - D.groupBy( - p1pattern, - var_$p1, - var_$key, - Person::getAge), - D.on( var_$key ) - .execute( ( ctx, key ) -> { - results.add(key); - } ) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - (( RuleEventManager ) ksession).addEventListener( new RuleEventListener() { - @Override - public void onDeleteMatch( Match match) { - if (!match.getRule().getName().equals( "R1" )) { - return; + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Set.class.getCanonicalName() + ";" + + "global Set results;\n" + + "rule R1 when\n" + + " groupby(" + + " $p : Person (name != null);" + + " $key : $p.getAge();" + + " count()" + + " )\n" + + "then\n" + + " results.add($key);" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + Set results = new LinkedHashSet<>(); + + ((RuleEventManager) ksession).addEventListener(new RuleEventListener() { + @Override + public void onDeleteMatch(Match match) { + if (!match.getRule().getName().equals("R1")) { + return; + } + RuleTerminalNodeLeftTuple tuple = (RuleTerminalNodeLeftTuple) match; + InternalFactHandle handle = tuple.getFactHandle(); + Object[] array = (Object[]) handle.getObject(); + results.remove(array[array.length - 1]); } - RuleTerminalNodeLeftTuple tuple = (RuleTerminalNodeLeftTuple) match; - InternalFactHandle handle = tuple.getFactHandle(); - Object[] array = (Object[]) handle.getObject(); - results.remove( array[array.length-1] ); - } - - @Override - public void onUpdateMatch(Match match) { - onDeleteMatch(match); - } - }); - ksession.setGlobal( "results", results ); - ksession.insert( new Person( "Mark", 42 ) ); - ksession.insert( new Person( "Edson", 38 ) ); - int edoardoAge = 33; - FactHandle fh1 = ksession.insert( new Person( "Edoardo", edoardoAge ) ); - FactHandle fh2 = ksession.insert( new Person( "Edoardo's clone", edoardoAge ) ); - ksession.fireAllRules(); - assertThat( results ).contains(edoardoAge); - - // Remove first Edoardo. Nothing should happen, because age 33 is still present. - ksession.delete(fh1); - ksession.fireAllRules(); - assertThat( results ).contains(edoardoAge); - - // Remove Edoardo's clone. The group for age 33 should be undone. - ksession.delete(fh2); - ksession.fireAllRules(); - System.out.println(results); - assertThat( results ).doesNotContain(edoardoAge); + @Override + public void onUpdateMatch(Match match) { + onDeleteMatch(match); + } + }); + ksession.setGlobal("results", results); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edson", 38)); + int edoardoAge = 33; + FactHandle fh1 = ksession.insert(new Person("Edoardo", edoardoAge)); + FactHandle fh2 = ksession.insert(new Person("Edoardo's clone", edoardoAge)); + ksession.fireAllRules(); + assertThat(results).contains(edoardoAge); + + // Remove first Edoardo. Nothing should happen, because age 33 is still present. + ksession.delete(fh1); + ksession.fireAllRules(); + assertThat(results).contains(edoardoAge); + + // Remove Edoardo's clone. The group for age 33 should be undone. + ksession.delete(fh2); + ksession.fireAllRules(); + System.out.println(results); + assertThat(results).doesNotContain(edoardoAge); + }); } @Test public void testTwoGroupBy() { // DROOLS-5697 - Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - Variable var_$key_1 = D.declarationOf(String.class); - Variable var_$p = D.declarationOf(Person.class); - Variable var_$age = D.declarationOf(Integer.class); - Variable var_$sumOfAges = D.declarationOf(Integer.class); - Variable var_$g1 = D.declarationOf(Group.class, "$g1", D.from(var_$key_1, var_$sumOfAges, ($k, $v) -> new Group($k, $v))); - Variable var_$g1_value = D.declarationOf(Integer.class); - Variable var_$key_2 = D.declarationOf(String.class); - Variable var_$maxOfValues = D.declarationOf(Integer.class); - - Rule rule1 = D.rule("R1").build( - D.groupBy( - D.and( - D.groupBy( - D.pattern(var_$p).bind(var_$age, person -> person.getAge()), - var_$p, var_$key_1, person -> person.getName().substring(0, 3), - D.accFunction( IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges)), - D.pattern(var_$g1).bind(var_$g1_value, group -> (Integer) group.getValue()) ), - var_$g1, var_$key_2, groupResult -> ((String)groupResult.getKey()).substring(0, 2), - D.accFunction( IntegerMaxAccumulateFunction::new, var_$g1_value).as(var_$maxOfValues)), - D.on(var_$key_2, var_results, var_$maxOfValues) - .execute(($key, results, $maxOfValues) -> { - System.out.println($key + " -> " + $maxOfValues); - results.put($key, $maxOfValues); - }) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Map results = new HashMap(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edoardo", 33)); - FactHandle meFH = ksession.insert(new Person("Mario", 45)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edson", 38)); - FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); - ksession.fireAllRules(); - System.out.println("-----"); - - /* - * In the first groupBy: - * Mark+Mario become "(Mar, 87)" - * Maciej becomes "(Mac, 39)" - * Geoffrey becomes "(Geo, 35)" - * Edson becomes "(Eds, 38)" - * Edoardo becomes "(Edo, 33)" - * - * Then in the second groupBy: - * "(Mar, 87)" and "(Mac, 39)" become "(Ma, 87)" - * "(Eds, 38)" and "(Edo, 33)" become "(Ed, 38)" - * "(Geo, 35)" becomes "(Ge, 35)" - */ - - assertThat(results.size()).isEqualTo(3); - assertThat(results.get("Ma")).isEqualTo(87); - assertThat(results.get("Ed")).isEqualTo(38); - assertThat(results.get("Ge")).isEqualTo(35); - results.clear(); - - ksession.delete( meFH ); - ksession.fireAllRules(); - System.out.println("-----"); - - // No Mario anymore, so "(Mar, 42)" instead of "(Mar, 87)". - // Therefore "(Ma, 42)". - assertThat(results.size()).isEqualTo(1); - assertThat(results.get("Ma")).isEqualTo(42); - results.clear(); - - // "(Geo, 35)" is gone. - // "(Mat, 38)" is added, but Mark still wins, so "(Ma, 42)" stays. - ksession.delete(geoffreyFH); - ksession.insert(new Person("Matteo", 38)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(1); - assertThat(results.get("Ma")).isEqualTo(42); + // TODO: For some reason, the compiled class expression thinks $p should be an integer? + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Group.class.getCanonicalName() + ";" + + "import " + Map.class.getCanonicalName() + ";" + + "global Map results;\n" + + "rule X when\n" + + " groupby(" + + " groupby(" + + " $p : Person ($age: age);" + + " $key1 : $p.getName().substring(0, 3);" + + " $sumOfAges : sum($age)" + + " ) and $g1: Group() from new Group($key1, $sumOfAges) and " + + " $g1SumOfAges: Integer() from $g1.getValue();" + + " $key : ((String) ($g1.getKey())).substring(0, 2);" + + " $maxOfValues : max($g1SumOfAges)" + + " )\n" + + "then\n" + + " System.out.println($key + \" -> \" + $maxOfValues);\n" + + " results.put($key, $maxOfValues);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + Map results = new HashMap(); + ksession.setGlobal("results", results); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edoardo", 33)); + FactHandle meFH = ksession.insert(new Person("Mario", 45)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edson", 38)); + FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); + ksession.fireAllRules(); + System.out.println("-----"); + + /* + * In the first groupBy: + * Mark+Mario become "(Mar, 87)" + * Maciej becomes "(Mac, 39)" + * Geoffrey becomes "(Geo, 35)" + * Edson becomes "(Eds, 38)" + * Edoardo becomes "(Edo, 33)" + * + * Then in the second groupBy: + * "(Mar, 87)" and "(Mac, 39)" become "(Ma, 87)" + * "(Eds, 38)" and "(Edo, 33)" become "(Ed, 38)" + * "(Geo, 35)" becomes "(Ge, 35)" + */ + + assertThat(results.size()).isEqualTo(3); + assertThat(results.get("Ma")).isEqualTo(87); + assertThat(results.get("Ed")).isEqualTo(38); + assertThat(results.get("Ge")).isEqualTo(35); + results.clear(); + + ksession.delete(meFH); + ksession.fireAllRules(); + System.out.println("-----"); + + // No Mario anymore, so "(Mar, 42)" instead of "(Mar, 87)". + // Therefore "(Ma, 42)". + assertThat(results.size()).isEqualTo(1); + assertThat(results.get("Ma")).isEqualTo(42); + results.clear(); + + // "(Geo, 35)" is gone. + // "(Mat, 38)" is added, but Mark still wins, so "(Ma, 42)" stays. + ksession.delete(geoffreyFH); + ksession.insert(new Person("Matteo", 38)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(1); + assertThat(results.get("Ma")).isEqualTo(42); + }); } @Test - @Ignore // FIXME This does not work, because Declaration only works with function1 public void testTwoGroupByUsingBindings() { // DROOLS-5697 - Global var_results = D.globalOf(Map.class, "defaultpkg", "results"); - - Variable var_$key_1 = D.declarationOf(String.class); - Variable var_$p = D.declarationOf(Person.class); - Variable var_$age = D.declarationOf(Integer.class); - Variable var_$sumOfAges = D.declarationOf(Integer.class); - Variable var_$g1 = D.declarationOf(Group.class); // "$g1", D.from(var_$key_1, var_$sumOfAges, ($k, $v) -> new Group($k, $v))); - Variable var_$g1_value = D.declarationOf(Integer.class); - Variable var_$key_2 = D.declarationOf(String.class); - Variable var_$maxOfValues = D.declarationOf(Integer.class); - - Rule rule1 = D.rule("R1").build( - D.groupBy( - D.and( - D.groupBy( - D.pattern(var_$p).bind(var_$age, person -> person.getAge()), - var_$p, var_$key_1, person -> person.getName().substring(0, 3), - D.accFunction( IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges)), - D.pattern(var_$key_1).bind(var_$g1, var_$sumOfAges, ($k, $v) -> new Group($k, $v)), // Currently this does not work - D.pattern(var_$g1).bind(var_$g1_value, group -> (Integer) group.getValue()) ), - var_$g1, var_$key_2, groupResult -> ((String)groupResult.getKey()).substring(0, 2), - D.accFunction( IntegerMaxAccumulateFunction::new, var_$g1_value).as(var_$maxOfValues)), - D.on(var_$key_2, var_results, var_$maxOfValues) - .execute(($key, results, $maxOfValues) -> { - System.out.println($key + " -> " + $maxOfValues); - results.put($key, $maxOfValues); - }) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - Map results = new HashMap(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - ksession.insert(new Person("Edoardo", 33)); - FactHandle meFH = ksession.insert(new Person("Mario", 45)); - ksession.insert(new Person("Maciej", 39)); - ksession.insert(new Person("Edson", 38)); - FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); - ksession.fireAllRules(); - System.out.println("-----"); - - /* - * In the first groupBy: - * Mark+Mario become "(Mar, 87)" - * Maciej becomes "(Mac, 39)" - * Geoffrey becomes "(Geo, 35)" - * Edson becomes "(Eds, 38)" - * Edoardo becomes "(Edo, 33)" - * - * Then in the second groupBy: - * "(Mar, 87)" and "(Mac, 39)" become "(Ma, 87)" - * "(Eds, 38)" and "(Edo, 33)" become "(Ed, 38)" - * "(Geo, 35)" becomes "(Ge, 35)" - */ - - assertThat(results.size()).isEqualTo(3); - assertThat(results.get("Ma")).isEqualTo(87); - assertThat(results.get("Ed")).isEqualTo(38); - assertThat(results.get("Ge")).isEqualTo(35); - results.clear(); - - ksession.delete( meFH ); - ksession.fireAllRules(); - System.out.println("-----"); - - // No Mario anymore, so "(Mar, 42)" instead of "(Mar, 87)". - // Therefore "(Ma, 42)". - assertThat(results.size()).isEqualTo(1); - assertThat(results.get("Ma")).isEqualTo(42); - results.clear(); - - // "(Geo, 35)" is gone. - // "(Mat, 38)" is added, but Mark still wins, so "(Ma, 42)" stays. - ksession.delete(geoffreyFH); - ksession.insert(new Person("Matteo", 38)); - ksession.fireAllRules(); - - assertThat(results.size()).isEqualTo(1); - assertThat(results.get("Ma")).isEqualTo(42); + // TODO: For some reason, the compiled class expression thinks $p should be an integer? + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Group.class.getCanonicalName() + ";" + + "import " + Map.class.getCanonicalName() + ";" + + "global Map results;\n" + + "rule R1 when\n" + + " groupby(" + + " groupby(" + + " $p : Person ($age: age);" + + " $key1 : $p.getName().substring(0, 3);" + + " $sumOfAges : sum($age)" + + " ) and $g1: Group() from new Group($key1, $sumOfAges) and " + + " $g1SumOfAges: Integer() from $g1.getValue();" + + " $key : ((String) ($g1.getKey())).substring(0, 2);" + + " $maxOfValues : max($g1SumOfAges)" + + " )\n" + + "then\n" + + " System.out.println($key + \" -> \" + $maxOfValues);\n" + + " results.put($key, $maxOfValues);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + Map results = new HashMap(); + ksession.setGlobal("results", results); + + ksession.insert(new Person("Mark", 42)); + ksession.insert(new Person("Edoardo", 33)); + FactHandle meFH = ksession.insert(new Person("Mario", 45)); + ksession.insert(new Person("Maciej", 39)); + ksession.insert(new Person("Edson", 38)); + FactHandle geoffreyFH = ksession.insert(new Person("Geoffrey", 35)); + ksession.fireAllRules(); + System.out.println("-----"); + + /* + * In the first groupBy: + * Mark+Mario become "(Mar, 87)" + * Maciej becomes "(Mac, 39)" + * Geoffrey becomes "(Geo, 35)" + * Edson becomes "(Eds, 38)" + * Edoardo becomes "(Edo, 33)" + * + * Then in the second groupBy: + * "(Mar, 87)" and "(Mac, 39)" become "(Ma, 87)" + * "(Eds, 38)" and "(Edo, 33)" become "(Ed, 38)" + * "(Geo, 35)" becomes "(Ge, 35)" + */ + + assertThat(results.size()).isEqualTo(3); + assertThat(results.get("Ma")).isEqualTo(87); + assertThat(results.get("Ed")).isEqualTo(38); + assertThat(results.get("Ge")).isEqualTo(35); + results.clear(); + + ksession.delete(meFH); + ksession.fireAllRules(); + System.out.println("-----"); + + // No Mario anymore, so "(Mar, 42)" instead of "(Mar, 87)". + // Therefore "(Ma, 42)". + assertThat(results.size()).isEqualTo(1); + assertThat(results.get("Ma")).isEqualTo(42); + results.clear(); + + // "(Geo, 35)" is gone. + // "(Mat, 38)" is added, but Mark still wins, so "(Ma, 42)" stays. + ksession.delete(geoffreyFH); + ksession.insert(new Person("Matteo", 38)); + ksession.fireAllRules(); + + assertThat(results.size()).isEqualTo(1); + assertThat(results.get("Ma")).isEqualTo(42); + }); } public static class Group { @@ -1366,507 +1090,371 @@ public Object getValue() { } @Test - public void testEmptyPatternOnGroupByKey() throws Exception { + public void testEmptyPatternOnGroupByKey() { // DROOLS-6031 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable var_$key = D.declarationOf(String.class); - final Variable var_$p = D.declarationOf(Person.class); - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.pattern(var_$p), - // Grouping Function - var_$p, var_$key, person -> person.getName().substring(0, 1)), - // Filter - D.pattern(var_$key), - // Consequence - D.on(var_$key, var_results) - .execute(($key, results) -> results.add($key)) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - List results = new ArrayList(); - ksession.setGlobal( "results", results ); - - ksession.insert( "A" ); - ksession.insert( "test" ); - ksession.insert(new Person("Mark", 42)); - - assertThat(ksession.fireAllRules()).isEqualTo(1); - assertThat(results.size()).isEqualTo(1); - assertThat(results.get(0)).isEqualTo("M"); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule R1 when\n" + + " groupby(" + + " $p : Person ();" + + " $key : $p.getName().substring(0, 1);" + + " count()" + + " )\n" + + " String() from $key\n" + + "then\n" + + " results.add($key);" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + List results = new ArrayList(); + ksession.setGlobal("results", results); + + ksession.insert("A"); + ksession.insert("test"); + ksession.insert(new Person("Mark", 42)); + + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(results.size()).isEqualTo(1); + assertThat(results.get(0)).isEqualTo("M"); + }); } @Test - public void testFilterOnGroupByKey() throws Exception { + public void testFilterOnGroupByKey() { // DROOLS-6031 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable var_$key = D.declarationOf(String.class); - final Variable var_$p = D.declarationOf(Person.class); - - Rule rule1 = D.rule("R1").build( - D.groupBy( - // Patterns - D.pattern(var_$p), - // Grouping Function - var_$p, var_$key, person -> person.getName().substring(0, 1)), - // Filter - D.pattern(var_$key).expr(s -> s.length() > 0).expr(s -> s.length() < 2), - // Consequence - D.on(var_$key, var_results) - .execute(($key, results) -> results.add($key)) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - List results = new ArrayList(); - ksession.setGlobal( "results", results ); - - ksession.insert( "A" ); - ksession.insert( "test" ); - ksession.insert(new Person("Mark", 42)); - - assertThat(ksession.fireAllRules()).isEqualTo(1); - assertThat(results.size()).isEqualTo(1); - assertThat(results.get(0)).isEqualTo("M"); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule R1 when\n" + + " groupby(" + + " $p : Person ();" + + " $key : $p.getName().substring(0, 1);" + + " count()" + + " )\n" + + " eval($key.length() > 0)\n" + + " eval($key.length() < 2)\n" + + "then\n" + + " results.add($key);" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + List results = new ArrayList(); + ksession.setGlobal("results", results); + + ksession.insert("A"); + ksession.insert("test"); + ksession.insert(new Person("Mark", 42)); + + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(results.size()).isEqualTo(1); + assertThat(results.get(0)).isEqualTo("M"); + }); } @Test - public void testDecomposedGroupByKey() throws Exception { + public void testDecomposedGroupByKey() { // DROOLS-6031 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable> var_$key = (Variable) D.declarationOf(Pair.class); - final Variable var_$p = D.declarationOf(Person.class); - - final Variable var_$subkeyA = D.declarationOf(String.class); - final Variable var_$subkeyB = D.declarationOf(String.class); - - final Rule rule1 = PatternDSL.rule("R1").build( - D.groupBy( - // Patterns - PatternDSL.pattern(var_$p), - // Grouping Function - var_$p, var_$key, person -> Pair.create( - person.getName().substring(0, 1), - person.getName().substring(1, 2))), - // Bindings - D.pattern(var_$key) - .bind(var_$subkeyA, Pair::getKey) - .bind(var_$subkeyB, Pair::getValue), - // Consequence - D.on(var_$subkeyA, var_$subkeyB, var_results) - .execute(($a, $b, results) -> { - results.add($a); - results.add($b); - }) - ); - - final Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - final KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - final List results = new ArrayList<>(); - ksession.setGlobal( "results", results ); - - ksession.insert( "A" ); - ksession.insert( "test" ); - ksession.insert(new Person("Mark", 42)); - assertThat(ksession.fireAllRules()).isEqualTo(1); - assertThat(results.size()).isEqualTo(2); - assertThat(results.get(0)).isEqualTo("M"); - assertThat(results.get(1)).isEqualTo("a"); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "import " + Pair.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule R1 when\n" + + " groupby(" + + " $p : Person ();" + + " $key : Pair.create($p.getName().substring(0, 1), $p.getName().substring(1, 2));" + + " count()" + + " )\n" + + " $subkeyA: String() from $key.getKey()\n" + + " $subkeyB: String() from $key.getValue()\n" + + "then\n" + + " results.add($subkeyA);" + + " results.add($subkeyB);" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + final List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + ksession.insert("A"); + ksession.insert("test"); + ksession.insert(new Person("Mark", 42)); + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(results.size()).isEqualTo(2); + assertThat(results.get(0)).isEqualTo("M"); + assertThat(results.get(1)).isEqualTo("a"); + }); } @Test - public void testDecomposedGroupByKeyAndAccumulate() throws Exception { + public void testDecomposedGroupByKeyAndAccumulate() { // DROOLS-6031 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable> var_$key = (Variable) D.declarationOf(Pair.class); - final Variable var_$p = D.declarationOf(Person.class); - - final Variable var_$subkeyA = D.declarationOf(String.class); - final Variable var_$subkeyB = D.declarationOf(String.class); - final Variable var_$accresult = D.declarationOf(Long.class); - - final Rule rule1 = PatternDSL.rule("R1").build( - D.groupBy( - // Patterns - PatternDSL.pattern(var_$p), - // Grouping Function - var_$p, var_$key, person -> Pair.create( - person.getName().substring(0, 1), - person.getName().substring(1, 2)), - D.accFunction(CountAccumulateFunction::new).as(var_$accresult)), - // Bindings - D.pattern(var_$key) - .bind(var_$subkeyA, Pair::getKey) - .bind(var_$subkeyB, Pair::getValue), - D.pattern(var_$accresult).expr( l -> l > 0 ), - // Consequence - D.on(var_$subkeyA, var_$subkeyB, var_$accresult, var_results) - .execute(($a, $b, $accresult, results) -> { - results.add($a); - results.add($b); - results.add($accresult); - }) - ); - - final Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - final KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - final List results = new ArrayList<>(); - ksession.setGlobal( "results", results ); - - ksession.insert( "A" ); - ksession.insert( "test" ); - ksession.insert(new Person("Mark", 42)); - assertThat(ksession.fireAllRules()).isEqualTo(1); - assertThat(results.size()).isEqualTo(3); - assertThat(results.get(0)).isEqualTo("M"); - assertThat(results.get(1)).isEqualTo("a"); - assertThat(results.get(2)).isEqualTo(1L); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Pair.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule X when\n" + + " groupby(" + + " $p : Person ();" + + " $key : Pair.create($p.getName().substring(0, 1), $p.getName().substring(1, 2));" + + " $accresult : count()" + + " )\n" + + " $subkeyA : Object() from $key.getKey()\n" + + " $subkeyB : Object() from $key.getValue()\n" + + " eval($accresult > 0)" + + "then\n" + + " results.add($subkeyA);\n" + + " results.add($subkeyB);\n" + + " results.add($accresult);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + final List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + ksession.insert("A"); + ksession.insert("test"); + ksession.insert(new Person("Mark", 42)); + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(results.size()).isEqualTo(3); + assertThat(results.get(0)).isEqualTo("M"); + assertThat(results.get(1)).isEqualTo("a"); + assertThat(results.get(2)).isEqualTo(1L); + }); } @Test - public void testDecomposedGroupByKeyAnd2Accumulates() throws Exception { + public void testDecomposedGroupByKeyAnd2Accumulates() { // DROOLS-6031 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable> var_$key = (Variable) D.declarationOf(Pair.class); - final Variable var_$accumulate = D.declarationOf(Pair.class); - final Variable var_$p = D.declarationOf(Person.class); - final Variable var_$p2 = D.declarationOf(Person.class); - - final Variable var_$subkeyA = D.declarationOf(String.class); - final Variable var_$subkeyB = D.declarationOf(String.class); - final Variable var_$accresult = D.declarationOf(List.class); - final Variable var_$accresult2 = D.declarationOf(List.class); - - final Rule rule1 = PatternDSL.rule("R1").build( - D.groupBy( - // Patterns - D.and( - D.pattern(var_$p), - D.pattern(var_$p2) - .bind(var_$accumulate, var_$p, Pair::create) - ), - // Grouping Function - var_$p, var_$key, person -> Pair.create( - person.getName().substring(0, 1), - person.getName().substring(1, 2)), - D.accFunction(CollectListAccumulateFunction::new, var_$accumulate).as(var_$accresult), - D.accFunction(CollectListAccumulateFunction::new, var_$accumulate).as(var_$accresult2)), - // Bindings - D.pattern(var_$key) - .bind(var_$subkeyA, Pair::getKey) - .bind(var_$subkeyB, Pair::getValue), - D.pattern(var_$accresult), - // Consequence - D.on(var_$subkeyA, var_$subkeyB, var_$accresult, var_results) - .execute(($a, $b, $accresult, results) -> { - results.add($a); - results.add($b); - results.add($accresult); - }) - ); - - final Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - final KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - final List results = new ArrayList<>(); - ksession.setGlobal( "results", results ); - - ksession.insert( "A" ); - ksession.insert( "test" ); - ksession.insert(new Person("Mark", 42)); - assertThat(ksession.fireAllRules()).isEqualTo(1); - assertThat(results.size()).isEqualTo(3); - assertThat(results.get(0)).isEqualTo("M"); - assertThat(results.get(1)).isEqualTo("a"); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Pair.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule X when\n" + + " groupby(" + + " $p : Person () and $p2 : Person () and $accumulate : Pair() from Pair.create($p, $p2);" + + " $key : Pair.create($p.getName().substring(0, 1), $p.getName().substring(1, 2));" + + " $accresult : collectList(), $accresult2 : collectList()" + + " )\n" + + " $subkeyA : Object() from $key.getKey()\n" + + " $subkeyB : Object() from $key.getValue()\n" + + " eval($accresult != null)" + + "then\n" + + " results.add($subkeyA);\n" + + " results.add($subkeyB);\n" + + " results.add($accresult);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + final List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + ksession.insert("A"); + ksession.insert("test"); + ksession.insert(new Person("Mark", 42)); + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(results.size()).isEqualTo(3); + assertThat(results.get(0)).isEqualTo("M"); + assertThat(results.get(1)).isEqualTo("a"); + }); } @Test - public void testDecomposedGroupByKeyAnd2AccumulatesInConsequence() throws Exception { + public void testDecomposedGroupByKeyAnd2AccumulatesInConsequence() { // DROOLS-6031 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable> var_$key = (Variable) D.declarationOf(Pair.class); - final Variable var_$accumulate = D.declarationOf(Pair.class); - final Variable var_$p = D.declarationOf(Person.class); - final Variable var_$p2 = D.declarationOf(Person.class); - - final Variable var_$subkeyA = D.declarationOf(String.class); - final Variable var_$subkeyB = D.declarationOf(String.class); - final Variable var_$accresult = D.declarationOf(List.class); - final Variable var_$accresult2 = D.declarationOf(List.class); - - final Rule rule1 = PatternDSL.rule("R1").build( - D.groupBy( - // Patterns - D.and( - D.pattern(var_$p), - D.pattern(var_$p2) - .bind(var_$accumulate, var_$p, Pair::create) - ), - // Grouping Function - var_$p, var_$key, person -> Pair.create( - person.getName().substring(0, 1), - person.getName().substring(1, 2)), - D.accFunction(CollectListAccumulateFunction::new, var_$accumulate).as(var_$accresult), - D.accFunction(CollectListAccumulateFunction::new, var_$accumulate).as(var_$accresult2)), - // Bindings - D.pattern(var_$accresult2), - // Consequence - D.on(var_$key, var_$accresult, var_$accresult2, var_results) - .execute(($key, $accresult, $accresult2, results) -> { - results.add($key); - }) - ); - - final Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - final KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - final List results = new ArrayList<>(); - ksession.setGlobal( "results", results ); - - ksession.insert( "A" ); - ksession.insert( "test" ); - ksession.insert(new Person("Mark", 42)); - assertThat(ksession.fireAllRules()).isEqualTo(1); - assertThat(results.size()).isEqualTo(1); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Pair.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule X when\n" + + " groupby(" + + " $p : Person () and $p2 : Person () and $accumulate : Pair() from Pair.create($p, $p2);" + + " $key : Pair.create($p.getName().substring(0, 1), $p.getName().substring(1, 2));" + + " $accresult : collectList(), $accresult2 : collectList()" + + " )\n" + + " eval($accresult2 != null)" + + "then\n" + + " results.add($key);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + final List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + ksession.insert("A"); + ksession.insert("test"); + ksession.insert(new Person("Mark", 42)); + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(results.size()).isEqualTo(1); + }); } @Test - public void testNestedGroupBy1a() throws Exception { + public void testNestedGroupBy1a() { // DROOLS-6045 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable var_$key = D.declarationOf(Object.class); - final Variable var_$p = D.declarationOf(Person.class); - final Variable var_$accresult = D.declarationOf(Object.class); - - final Rule rule1 = PatternDSL.rule("R1").build( - D.accumulate( - D.and( - D.groupBy( - // Patterns - D.pattern(var_$p), - // Grouping Function - var_$p, var_$key, Person::getAge), - // Bindings - D.pattern(var_$key) - .expr(k -> ((Integer)k) > 0) - ), - D.accFunction(CollectListAccumulateFunction::new, var_$key).as(var_$accresult) - ), - // Consequence - D.on(var_$accresult, var_results) - .execute(($accresult, results) -> { - results.add($accresult); - }) - ); - - final Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - final KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - final List results = new ArrayList<>(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - assertThat(ksession.fireAllRules()).isEqualTo(1); - System.out.println(results); - assertThat(results).containsOnly(Collections.singletonList(42)); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule X when\n" + + " accumulate(" + + " groupby($p: Person (); $key: $p.getAge(); count()) and eval($key > 0);" + + " $accresult : collectList($key)" + + " )\n" + + "then\n" + + " results.add($accresult);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + final List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + ksession.insert(new Person("Mark", 42)); + assertThat(ksession.fireAllRules()).isEqualTo(1); + System.out.println(results); + assertThat(results).containsOnly(Collections.singletonList(42)); + }); } @Test - public void testNestedGroupBy1b() throws Exception { + public void testNestedGroupBy1b() { // DROOLS-6045 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable var_$key = D.declarationOf(Object.class); - final Variable var_$p = D.declarationOf(Person.class); - final Variable var_$accresult = D.declarationOf(Object.class); - - final Rule rule1 = PatternDSL.rule("R1").build( - D.accumulate( - D.and( - D.groupBy( - // Patterns - D.pattern(var_$p), - // Grouping Function - var_$p, var_$key, Person::getAge), - // Bindings - D.pattern(var_$key) - ), - D.accFunction(CollectListAccumulateFunction::new, var_$key).as(var_$accresult) - ), - // Consequence - D.on(var_$accresult, var_results) - .execute(($accresult, results) -> { - results.add($accresult); - }) - ); - - final Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - final KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - final List results = new ArrayList<>(); - ksession.setGlobal( "results", results ); - - ksession.insert(new Person("Mark", 42)); - assertThat(ksession.fireAllRules()).isEqualTo(1); - assertThat(results).containsOnly(Collections.singletonList(42)); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule R1 when\n" + + " accumulate(" + + " groupby($p: Person (); $key: $p.getAge(); count()) and Integer() from $key;" + + " $accresult : collectList($key)" + + " )\n" + + "then\n" + + " results.add($accresult);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + final List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + ksession.insert(new Person("Mark", 42)); + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(results).containsOnly(Collections.singletonList(42)); + }); } @Test - public void testNestedGroupBy2() throws Exception { + public void testNestedGroupBy2() { // DROOLS-6045 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable var_$key = D.declarationOf(Object.class); - final Variable var_$keyOuter = D.declarationOf(Object.class); - final Variable var_$p = D.declarationOf(Person.class); - final Variable var_$accresult = D.declarationOf(Object.class); - - final Rule rule1 = PatternDSL.rule("R1").build( - D.groupBy( - D.and( - D.groupBy( - // Patterns - D.pattern(var_$p), - // Grouping Function - var_$p, var_$key, Person::getAge), - // Bindings - D.pattern(var_$key) - .expr(k -> ((Integer)k) > 0) - ), - var_$key, var_$keyOuter, k -> ((Integer)k) * 2, - D.accFunction(CollectListAccumulateFunction::new, var_$keyOuter).as(var_$accresult) - ), - // Consequence - D.on(var_$keyOuter, var_$accresult, var_results) - .execute(($outerKey, $accresult, results) -> { - results.add($accresult); - }) - ); - - final Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - final KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - final List results = new ArrayList<>(); - ksession.setGlobal( "results", results ); - - ksession.insert( "A" ); - ksession.insert( "test" ); - ksession.insert(new Person("Mark", 42)); - assertThat(ksession.fireAllRules()).isEqualTo(1); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule R1 when\n" + + " groupby(" + + " groupby($p: Person (); $key: $p.getAge(); count()) and eval($key > 0);" + + " $keyOuter: (int)($key * 2);" + // MVEL thinks type(int * 2) == Double, + // meaning we need to cast for it to get the + // correct type + " $accresult : collectList($keyOuter)" + + " )\n" + + "then\n" + + " results.add($accresult);\n" + + "end"; + assertSessionHasProperties(str, ksession -> { + + final List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + ksession.insert("A"); + ksession.insert("test"); + ksession.insert(new Person("Mark", 42)); + assertThat(ksession.fireAllRules()).isEqualTo(1); + }); } @Test public void testNestedGroupBy3() { // DROOLS-6045 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable var_$key = D.declarationOf(Object.class); - final Variable var_$keyOuter = D.declarationOf(Object.class); - final Variable var_$p = D.declarationOf(Person.class); - final Variable var_$accresult = D.declarationOf(Object.class); - - final Rule rule1 = PatternDSL.rule("R1").build( - D.groupBy( - D.and( - D.groupBy( - // Patterns - D.pattern(var_$p), - // Grouping Function - var_$p, var_$key, Person::getName, - D.accFunction(CountAccumulateFunction::new).as(var_$accresult)), - // Bindings - D.pattern(var_$accresult) - .expr(c -> ((Long)c) > 0) - ), - var_$key, var_$accresult, var_$keyOuter, Pair::create - ), - // Consequence - D.on(var_$keyOuter, var_results) - .execute(($outerKey, results) -> { - results.add($outerKey); - }) - ); - - final Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - final KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - final List results = new ArrayList<>(); - ksession.setGlobal( "results", results ); - - ksession.insert( "A" ); - ksession.insert( "test" ); - ksession.insert(new Person("Mark", 42)); - assertThat(ksession.fireAllRules()).isEqualTo(1); - assertThat(results).containsOnly(Pair.create("Mark", 1L)); + // TODO: For some reason, the compiled class expression thinks $p should be an integer? + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Pair.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule R1 when\n" + + " groupby(" + + " groupby($p: Person (); $key: $p.getName(); $accresult: count()) and eval($accresult > 0);" + + " $keyOuter: Pair.create($key, $accresult);" + + " count()" + + " )\n" + + "then\n" + + " results.add($keyOuter);\n" + + "end"; + assertSessionHasProperties(str, ksession -> { + + final List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + ksession.insert("A"); + ksession.insert("test"); + ksession.insert(new Person("Mark", 42)); + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(results).containsOnly(Pair.create("Mark", 1L)); + }); } @Test - public void testFilterOnAccumulateResultWithDecomposedGroupByKey() throws Exception { + public void testFilterOnAccumulateResultWithDecomposedGroupByKey() { // DROOLS-6045 - final Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - final Variable> var_$key = (Variable) D.declarationOf(Pair.class); - final Variable var_$p = D.declarationOf(Person.class); - final Variable var_$pAge = D.declarationOf(Integer.class); - - final Variable var_$subkeyA = D.declarationOf(Object.class); - final Variable var_$subkeyB = D.declarationOf(Object.class); - final Variable var_$accresult = D.declarationOf(Integer.class); - - final Rule rule1 = PatternDSL.rule("R1").build( - D.groupBy( - // Patterns - PatternDSL.pattern(var_$p) - .bind(var_$pAge, Person::getAge) - .expr(Objects::nonNull), - // Grouping Function - var_$p, var_$key, person -> Pair.create( - person.getName().substring(0, 1), - person.getName().substring(1, 2)), - D.accFunction( IntegerSumAccumulateFunction::new, var_$pAge).as(var_$accresult)), - // Bindings - D.pattern(var_$key) - .bind(var_$subkeyA, Pair::getKey) - .bind(var_$subkeyB, Pair::getValue), - D.pattern(var_$accresult) - .expr("Some expr", var_$subkeyA, var_$subkeyB, (a, b, c) -> true), - // Consequence - D.on(var_$subkeyA, var_$subkeyB, var_$accresult, var_results) - .execute(($a, $b, $accResult, results) -> { - results.add($a); - results.add($b); - results.add($accResult); - }) - ); - - final Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - final KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - final List results = new ArrayList<>(); - ksession.setGlobal( "results", results ); - - ksession.insert( "A" ); - ksession.insert( "test" ); - ksession.insert(new Person("Mark", 42)); - assertThat(ksession.fireAllRules()).isEqualTo(1); - assertThat(results.size()).isEqualTo(3); - assertThat(results.get(0)).isEqualTo("M"); - assertThat(results.get(1)).isEqualTo("a"); - assertThat(results.get(2)).isEqualTo(42); + // TODO: For some reason, the compiled class expression thinks $p should be an integer? + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Pair.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "rule X when\n" + + " groupby(" + + " $p : Person ($age: age, this != null);" + + " $key : Pair.create($p.getName().substring(0, 1), $p.getName().substring(1, 2));" + + " $accresult : sum($age)" + + " )\n" + + " $subkeyA : Object() from $key.getKey()\n" + + " $subkeyB : Object() from $key.getValue()\n" + + " eval($accresult != null && $subkeyA != null && $subkeyB != null)" + + "then\n" + + " results.add($subkeyA);\n" + + " results.add($subkeyB);\n" + + " results.add($accresult);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + final List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + ksession.insert("A"); + ksession.insert("test"); + ksession.insert(new Person("Mark", 42)); + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(results.size()).isEqualTo(3); + assertThat(results.get(0)).isEqualTo("M"); + assertThat(results.get(1)).isEqualTo("a"); + assertThat(results.get(2)).isEqualTo(42); + }); } // These two test are commented out, until we figure out the correct way to do this and limitations. // If no correct way can be found, the tests can be deleted. @@ -1939,51 +1527,44 @@ public void testFilterOnAccumulateResultWithDecomposedGroupByKey() throws Except @Test public void testNestedRewrite() { // DROOLS-5697 - Global var_results = D.globalOf(List.class, "defaultpkg", "results"); - - Variable var_$p = D.declarationOf(Person.class); - Variable var_$age = D.declarationOf(Integer.class); - Variable var_$sumOfAges = D.declarationOf(Integer.class); - Variable var_$g1 = D.declarationOf(Integer.class); - Variable var_$maxOfValues = D.declarationOf(Integer.class); - - Rule rule1 = D.rule("R1").build( - D.accumulate( - D.and( - D.accumulate( - D.pattern(var_$p).bind(var_$age, person -> person.getAge()), - D.accFunction( IntegerSumAccumulateFunction::new, var_$age).as(var_$sumOfAges)), - D.pattern(var_$sumOfAges).bind(var_$g1, (s) -> s+1)), - D.accFunction( IntegerMaxAccumulateFunction::new, var_$g1).as(var_$maxOfValues)), - D.on(var_results, var_$maxOfValues) - .execute((results, $maxOfValues) -> { - System.out.println($maxOfValues); - results.add($maxOfValues); - }) - ); - - Model model = new ModelImpl().addRule( rule1 ).addGlobal( var_results ); - KieSession ksession = KieBaseBuilder.createKieBaseFromModel( model ).newKieSession(); - - List results = new ArrayList(); - ksession.setGlobal( "results", results ); - - FactHandle fhMark = ksession.insert(new Person("Mark", 42)); - FactHandle fhEdoardo = ksession.insert(new Person("Edoardo", 33)); - ksession.fireAllRules(); - assertThat(results.contains(76)).isTrue(); - - ksession.insert(new Person("Edson", 38)); - ksession.fireAllRules(); - assertThat(results.contains(114)).isTrue(); - - ksession.delete(fhEdoardo); - ksession.fireAllRules(); - assertThat(results.contains(81)).isTrue(); - - ksession.update(fhMark, new Person("Mark", 45)); - ksession.fireAllRules(); - assertThat(results.contains(84)).isTrue(); + String str = + "import " + Person.class.getCanonicalName() + ";" + + "import " + Pair.class.getCanonicalName() + ";" + + "import " + List.class.getCanonicalName() + ";" + + "global List results;\n" + + "function Integer eval( Integer value ){ return value; }\n" + + "rule R1 when\n" + + " accumulate(" + + " accumulate($p : Person ($age : age); $sumOfAges : sum($age)) " + + " and $g1 : Integer() from eval($sumOfAges + 1) ;" + + " $maxOfValues : max($g1)" + + " )\n" + + "then\n" + + " System.out.println($maxOfValues);\n" + + " results.add($maxOfValues);\n" + + "end"; + + assertSessionHasProperties(str, ksession -> { + + List results = new ArrayList(); + ksession.setGlobal("results", results); + + FactHandle fhMark = ksession.insert(new Person("Mark", 42)); + FactHandle fhEdoardo = ksession.insert(new Person("Edoardo", 33)); + ksession.fireAllRules(); + assertThat(results.contains(76)).isTrue(); + + ksession.insert(new Person("Edson", 38)); + ksession.fireAllRules(); + assertThat(results.contains(114)).isTrue(); + + ksession.delete(fhEdoardo); + ksession.fireAllRules(); + assertThat(results.contains(81)).isTrue(); + + ksession.update(fhMark, new Person("Mark", 45)); + ksession.fireAllRules(); + assertThat(results.contains(84)).isTrue(); + }); } } - diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/HalfBinaryTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/HalfBinaryTest.java index dac2c983c9c..f4514a36bde 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/HalfBinaryTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/HalfBinaryTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/HierarchyRulesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/HierarchyRulesTest.java new file mode 100644 index 00000000000..173f3c1fdbf --- /dev/null +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/HierarchyRulesTest.java @@ -0,0 +1,111 @@ +/** + * 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. + */ +package org.drools.model.codegen.execmodel; + +import org.junit.Test; +import org.kie.api.runtime.KieSession; + +import static org.assertj.core.api.Assertions.assertThat; + +public class HierarchyRulesTest extends BaseModelTest { + + public HierarchyRulesTest(RUN_TYPE testRunType ) { + super( testRunType ); + } + + @Test + public void test() { + // DROOLS-7470 + String str = + "rule R1 when \n" + + " $a : Boolean() from true\n" + + "then\n" + + "end\n" + + "\n" + + "rule R2 extends R1 when\n" + + " $b: Boolean() from ($a == true)\n" + + "then\n" + + "end\n" + + "\n" + + "rule R3 extends R2 when\n" + + " Boolean(this==false) from $b\n" + + "then\n" + + "end\n" + + "\n" + + "rule R4 extends R2 when\n" + + " Boolean(this==true) from $b\n" + + " $c: Boolean() from true\n" + + "then\n" + + "end\n" + + "\n" + + "rule R5 extends R4 when\n" + + " Boolean(this==true) from $c\n" + + "then\n" + + "end\n" + + "\n" + + "rule R6 extends R4 when\n" + + " Boolean(this==false) from $c\n" + + " $d: Boolean() from ($a == true)\n" + + "then\n" + + "end\n" + + "\n" + + "rule R7 extends R6 when\n" + + " Boolean(this==false) from $d\n" + + "then\n" + + "end\n" + + "\n" + + "rule R8 extends R6 when\n" + + " Boolean(this==true) from $d\n" + + " $data: Boolean() from true\n" + + " $f: Boolean() from true\n" + + "then\n" + + "end\n" + + "\n" + + "rule R9 extends R8 when\n" + + " Boolean(this==true) from $f\n" + + " $h : Boolean() from ($a == true)\n" + + "then\n" + + "end\n" + + "\n" + + "rule R11 extends R9 when\n" + + " Boolean(this==true) from $h\n" + + "then\n" + + "end\n" + + "\n" + + "rule R12 extends R9 when\n" + + " Boolean(this==false) from $h\n" + + "then\n" + + "end\n" + + "\n" + + "rule R10 extends R8 when\n" + + " Boolean(this==false) from $f\n" + + " $i: Boolean() from ($data == true)\n" + + " $g: Boolean() from true\n" + + "then\n" + + "end\n" + + "\n" + + "rule R13 extends R10 when\n" + + " Boolean(this==false) from $g\n" + + "then\n" + + "end\n"; + + KieSession ksession = getKieSession( str ); + assertThat( ksession.fireAllRules() ).isEqualTo(4); + } +} diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/InTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/InTest.java index 8e2a1d38d0b..04cf9c53038 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/InTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/InTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IncrementalCompilationTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IncrementalCompilationTest.java index fafc43638bc..0908ce636fa 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IncrementalCompilationTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IncrementalCompilationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.io.Serializable; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IndexTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IndexTest.java index 8c7c8181019..daf93b0ed47 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IndexTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/IndexTest.java @@ -1,33 +1,34 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.List; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.CompositeObjectSinkAdapter; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectSink; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.util.index.IndexUtil; -import org.drools.core.util.index.IndexUtil.ConstraintType; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.model.codegen.execmodel.domain.Person; import org.drools.util.DateUtils; @@ -148,9 +149,9 @@ public void testAlphaIndexWithDateEqual() { KieSession ksession = getKieSession(str); - assertConstraintType(ksession.getKieBase(), Person.class, "R1", IndexUtil.ConstraintType.EQUAL); - assertConstraintType(ksession.getKieBase(), Person.class, "R2", IndexUtil.ConstraintType.EQUAL); - assertConstraintType(ksession.getKieBase(), Person.class, "R3", IndexUtil.ConstraintType.EQUAL); + assertConstraintType(ksession.getKieBase(), Person.class, "R1", ConstraintTypeOperator.EQUAL); + assertConstraintType(ksession.getKieBase(), Person.class, "R2", ConstraintTypeOperator.EQUAL); + assertConstraintType(ksession.getKieBase(), Person.class, "R3", ConstraintTypeOperator.EQUAL); Person person = new Person("John"); person.setBirthDay(DateUtils.parseDate("01-Nov-2000")); @@ -178,9 +179,9 @@ public void testAlphaIndexWithDateRelation() { KieSession ksession = getKieSession(str); - assertConstraintType(ksession.getKieBase(), Person.class, "R1", IndexUtil.ConstraintType.GREATER_THAN); - assertConstraintType(ksession.getKieBase(), Person.class, "R2", IndexUtil.ConstraintType.LESS_OR_EQUAL); - assertConstraintType(ksession.getKieBase(), Person.class, "R3", IndexUtil.ConstraintType.GREATER_OR_EQUAL); + assertConstraintType(ksession.getKieBase(), Person.class, "R1", ConstraintTypeOperator.GREATER_THAN); + assertConstraintType(ksession.getKieBase(), Person.class, "R2", ConstraintTypeOperator.LESS_OR_EQUAL); + assertConstraintType(ksession.getKieBase(), Person.class, "R3", ConstraintTypeOperator.GREATER_OR_EQUAL); Person person = new Person("John"); person.setBirthDay(DateUtils.parseDate("01-Nov-2000")); @@ -189,7 +190,7 @@ public void testAlphaIndexWithDateRelation() { assertThat(ksession.fireAllRules()).isEqualTo(2); } - private void assertConstraintType(KieBase kbase, Class factClass, String ruleName, ConstraintType expectedType) { + private void assertConstraintType(KieBase kbase, Class factClass, String ruleName, ConstraintTypeOperator expectedType) { boolean asserted = false; EntryPointNode epn = ((InternalKnowledgeBase) kbase).getRete().getEntryPointNodes().values().iterator().next(); ObjectTypeNode otn = epn.getObjectTypeNodes().get(new ClassObjectType(factClass)); diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/InternalMatchGroupTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/InternalMatchGroupTest.java index d4a78cd1514..01e88262e71 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/InternalMatchGroupTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/InternalMatchGroupTest.java @@ -1,20 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KJARUtils.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KJARUtils.java index 69dc18c9c77..5d85291e9dd 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KJARUtils.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KJARUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.kie.api.builder.ReleaseId; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KieBaseBuilderTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KieBaseBuilderTest.java index a13f74d1825..eaea5f9930b 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KieBaseBuilderTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KieBaseBuilderTest.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.lang.reflect.InvocationTargetException; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KieBuilderTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KieBuilderTest.java index 926ee30283b..6d766f53f52 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KieBuilderTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KieBuilderTest.java @@ -1,26 +1,28 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.drools.compiler.kie.builder.impl.DrlProject; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.model.codegen.ExecutableModelProject; import org.drools.modelcompiler.constraints.LambdaConstraint; @@ -64,7 +66,7 @@ private KieSession checkKieSession(Class proje } private AlphaNodeFieldConstraint getAlphaConstraint( KieSession ksession ) { - EntryPointNode epn = (( InternalKnowledgeBase ) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); + EntryPointNode epn = ((InternalKnowledgeBase) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); for (ObjectTypeNode otn : epn.getObjectTypeNodes().values()) { if (otn.getObjectType().isAssignableFrom( String.class )) { AlphaNode alpha = (AlphaNode) otn.getObjectSinkPropagator().getSinks()[0]; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KjarBuildTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KjarBuildTest.java index fba964d76ef..4d663ec33ff 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KjarBuildTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/KjarBuildTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.drools.model.codegen.ExecutableModelProject; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ListenersTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ListenersTest.java index f99a4856020..3c893c3deb9 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ListenersTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ListenersTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MapInitializationDrools3800Test.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MapInitializationDrools3800Test.java index b57621e7cff..d760d2fd8b0 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MapInitializationDrools3800Test.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MapInitializationDrools3800Test.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import java.util.Map; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MaterializedLambdaTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MaterializedLambdaTest.java index 7f279359a08..eb807e427e5 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MaterializedLambdaTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MaterializedLambdaTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import java.time.Instant; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ModelBuilderImplTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ModelBuilderImplTest.java index 731701996ce..c483cedde16 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ModelBuilderImplTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ModelBuilderImplTest.java @@ -1,24 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.drl.ast.descr.GlobalDescr; import org.drools.drl.ast.descr.PackageDescr; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ModelSourceClassTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ModelSourceClassTest.java index 64b52dec3c2..82189b9a4ce 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ModelSourceClassTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ModelSourceClassTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Collections; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MultiKieBaseTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MultiKieBaseTest.java index ceb338bd292..a59086ab697 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MultiKieBaseTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MultiKieBaseTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.junit.Test; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectMapTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectMapTest.java index b222d4413d4..b96dce0a1a4 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectMapTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectMapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectTest.java index 475767fc33d..b542ac41c5c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelDialectTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelOperatorsTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelOperatorsTest.java index 621d8452b86..9aa6b4fb81c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelOperatorsTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/MvelOperatorsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NamedConsequencesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NamedConsequencesTest.java index 899da6c11a8..6a764ebcb07 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NamedConsequencesTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NamedConsequencesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NativeCompilerTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NativeCompilerTest.java index f2a27483a1e..12860f98815 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NativeCompilerTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NativeCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import org.drools.compiler.compiler.JavaDialectConfiguration; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NodeSharingTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NodeSharingTest.java index 894942be64f..65eef03f77f 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NodeSharingTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NodeSharingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; @@ -23,7 +25,7 @@ import java.util.Set; import java.util.concurrent.TimeUnit; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.AccumulateNode; import org.drools.core.reteoo.AlphaNode; @@ -148,7 +150,7 @@ public void testShareBetaWithConstraintReordering() { assertThat(ReteDumper.collectNodes(ksession).stream().filter(BetaNode.class::isInstance).count()).isEqualTo(1); - EntryPointNode epn = (( InternalKnowledgeBase ) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); + EntryPointNode epn = ((InternalKnowledgeBase) ksession.getKieBase()).getRete().getEntryPointNodes().values().iterator().next(); ObjectTypeNode otn = epn.getObjectTypeNodes().get( new ClassObjectType( Person.class ) ); assertThat(otn.getSinks().length).isEqualTo(1); } diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NullSafeDereferencingTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NullSafeDereferencingTest.java index 36f01900970..536af82f868 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NullSafeDereferencingTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/NullSafeDereferencingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OOPathTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OOPathTest.java index eac62366229..edba0258d31 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OOPathTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OOPathTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OnlyExecModelTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OnlyExecModelTest.java index 8677321cb3b..8c36c433a9e 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OnlyExecModelTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OnlyExecModelTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import org.junit.runner.RunWith; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OnlyPatternTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OnlyPatternTest.java index c95c50cf720..3c89f4d35ca 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OnlyPatternTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OnlyPatternTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import org.junit.runner.RunWith; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OrTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OrTest.java index 2aec2709032..242e13f7ab8 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OrTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/OrTest.java @@ -1,24 +1,23 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; -import java.util.ArrayList; -import java.util.List; - import org.drools.model.codegen.execmodel.domain.Address; import org.drools.model.codegen.execmodel.domain.Employee; import org.drools.model.codegen.execmodel.domain.Person; @@ -26,6 +25,9 @@ import org.kie.api.builder.Results; import org.kie.api.runtime.KieSession; +import java.util.ArrayList; +import java.util.List; + import static org.assertj.core.api.Assertions.assertThat; public class OrTest extends BaseModelTest { @@ -250,4 +252,19 @@ public void generateErrorForEveryFieldInRHSNotDefinedInLHS() { private Results getCompilationResults( String drl ) { return createKieBuilder( drl ).getResults(); } + + @Test + public void testMultipleFiringWithOr() { + // DROOLS-7466 + final String str = + "rule R when\n" + + " (or\n" + + " $val: String() from \"foo\"\n" + + " $val: String() from \"bar\")\n" + + "then\n" + + "end \n"; + + KieSession ksession = getKieSession( str ); + assertThat(ksession.fireAllRules()).isEqualTo(2); + } } diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PackagesIsolationTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PackagesIsolationTest.java index 1f38407a00b..41c912e99a1 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PackagesIsolationTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PackagesIsolationTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.Arrays; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PrimitiveConversionErrorsTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PrimitiveConversionErrorsTest.java index 4d2650509aa..0b335efb372 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PrimitiveConversionErrorsTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PrimitiveConversionErrorsTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.io.IOException; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PropertyReactivityMatrixTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PropertyReactivityMatrixTest.java new file mode 100644 index 00000000000..d4742f74e93 --- /dev/null +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PropertyReactivityMatrixTest.java @@ -0,0 +1,337 @@ +/** + * 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. + */ +package org.drools.model.codegen.execmodel; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.drools.util.StringUtils; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameters; +import org.kie.api.runtime.KieSession; + +import static org.assertj.core.api.Assertions.assertThat; + +public class PropertyReactivityMatrixTest extends BaseModelTest { + + enum Dialect { + JAVA, + MVEL + } + + private Dialect dialect; + + @Parameters(name = "{0} {1}") + public static Collection parameters() { + List parameterData = new ArrayList(); + for (Object runType : PLAIN) { + for (Dialect dialect : Dialect.values()) { + parameterData.add(new Object[]{runType, dialect}); + } + } + return parameterData; + } + + public PropertyReactivityMatrixTest(RUN_TYPE testRunType, Dialect testDialect) { + super(testRunType); + this.dialect = testDialect; + } + + public static class Fact { + + private int value1; + private int value2; + + public Fact(int value1) { + this.value1 = value1; + } + + public Fact(int value1, int value2) { + this.value1 = value1; + this.value2 = value2; + } + + public int getValue1() { + return value1; + } + + public void setValue1(int value1) { + this.value1 = value1; + } + + public int getValue2() { + return value2; + } + + public void setValue2(int value2) { + this.value2 = value2; + } + } + + private String setValueStatement(String property, int value) { + if (dialect == Dialect.JAVA) { + return "set" + StringUtils.ucFirst(property) + "(" + value + ");"; + } else { + return property + " = " + value + ";"; + } + } + + @Test + public void modifyInsideIfTrueBlock_shouldTriggerReactivity() { + statementInsideBlock_shouldTriggerReactivity(" if (true) {\n" + + " modify($fact) {\n" + + " " + setValueStatement("value1", 2) + "\n" + + " }\n" + + " }\n"); + } + + @Test + public void modifyInsideForBlock_shouldTriggerReactivity() { + statementInsideBlock_shouldTriggerReactivity(" for (int i = 0; i < 1; i++) {\n" + + " modify($fact) {\n" + + " " + setValueStatement("value1", 2) + "\n" + + " }\n" + + " }\n"); + } + + @Test + public void modifyInsideCommentedIfTrueBlock_shouldTriggerReactivity() { + statementInsideBlock_shouldTriggerReactivity(" // if (true) {\n" + + " modify($fact) {\n" + + " " + setValueStatement("value1", 2) + "\n" + + " }\n" + + " // }\n"); + } + + @Test + public void modifyInsideIfBlockInsideAndOutsideAssignment_shouldTriggerReactivity() { + statementInsideBlock_shouldTriggerReactivity(" $fact." + setValueStatement("value1", 2) + "\n" + + " if (true) {\n" + + " modify($fact) {\n" + + " " + setValueStatement("value2", 2) + "\n" + + " }\n" + + " }"); + } + + @Test + public void updateInsideIfTrueBlock_shouldTriggerReactivity() { + statementInsideBlock_shouldTriggerReactivity(" if (true) {\n" + + " $fact." + setValueStatement("value1", 2) + ";\n" + + " update($fact);\n" + + " }\n"); + } + + @Test + public void updateInsideForBlock_shouldTriggerReactivity() { + statementInsideBlock_shouldTriggerReactivity(" for (int i = 0; i < 1; i++) {\n" + + " $fact." + setValueStatement("value1", 2) + "\n" + + " update($fact);\n" + + " }\n"); + } + + @Test + public void updateInsideCommentedIfTrueBlock_shouldTriggerReactivity() { + statementInsideBlock_shouldTriggerReactivity(" // if (true) {\n" + + " $fact." + setValueStatement("value1", 2) + "\n" + + " update($fact);\n" + + " // }\n"); + } + + @Test + public void updateInsideIfBlockInsideAndOutsideAssignment_shouldTriggerReactivity() { + statementInsideBlock_shouldTriggerReactivity(" $fact." + setValueStatement("value1", 2) + "\n" + + " if (true) {\n" + + " $fact." + setValueStatement("value2", 2) + "\n" + + " update($fact);\n" + + " }"); + } + + @Test + public void assignmentAfterModify_shouldTriggerReactivity() { + // DROOLS-7497 + statementInsideBlock_shouldTriggerReactivity(" modify($fact) {\n" + + " " + setValueStatement("value2", 2) + "\n" + + " }\n" + + " $fact." + setValueStatement("value1", 2) + "\n"); + } + + @Test + public void assignmentBeforeAndAfterModify_shouldTriggerReactivity() { + // DROOLS-7497 + statementInsideBlock_shouldTriggerReactivity(" $fact." + setValueStatement("value2", 2) + "\n" + + " modify($fact) {\n" + + " }\n" + + " $fact." + setValueStatement("value1", 2) + "\n"); + } + + @Test + public void assignmentAfterIfBlockModify_shouldTriggerReactivity() { + // DROOLS-7497 + statementInsideBlock_shouldTriggerReactivity(" if (true) {\n" + + " modify($fact) {\n" + + " " + setValueStatement("value2", 2) + "\n" + + " }\n" + + " }\n" + + " $fact." + setValueStatement("value1", 2) + "\n"); + } + + @Test + public void assignmentBeforeAndAfterUpdate_shouldTriggerReactivity() { + // DROOLS-7497 + statementInsideBlock_shouldTriggerReactivity(" $fact." + setValueStatement("value2", 2) + "\n" + + " update($fact);\n" + + " $fact." + setValueStatement("value1", 2) + "\n"); + } + + @Test + public void assignmentAfterIfBlockUpdate_shouldTriggerReactivity() { + // DROOLS-7497 + statementInsideBlock_shouldTriggerReactivity(" if (true) {\n" + + " update($fact);\n" + + " }\n" + + " $fact." + setValueStatement("value1", 2) + "\n"); + } + + private void statementInsideBlock_shouldTriggerReactivity(String rhs) { + final String str = + "import " + Fact.class.getCanonicalName() + ";\n" + + "dialect \"" + dialect.name().toLowerCase() + "\"\n" + + "global java.util.List results;\n" + + "rule R1\n" + + " when\n" + + " $fact : Fact( value1 == 1 )\n" + + " then\n" + + rhs + + "end\n" + + "rule R2\n" + + " when\n" + + " $fact : Fact( value1 == 2 )\n" + + " then\n" + + " results.add(\"R2 fired\");\n" + + "end\n"; + + KieSession ksession = getKieSession(str); + List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + Fact fact = new Fact(1); + ksession.insert(fact); + ksession.fireAllRules(); + + assertThat(results).as("Should trigger property reactivity on value1") + .containsExactly("R2 fired"); + } + + @Test + public void modifyInsideIfFalseAndTrueBlock_shouldTriggerReactivity() { + // DROOLS-7493 + statementInsideBlock_shouldTriggerReactivityWithLoop(" if (false) {\n" + + " $fact." + setValueStatement("value1", 2) + "\n" + // this line is not executed, but analyzed as a property reactivity + " }\n" + + " if (true) {\n" + + " modify($fact) {\n" + + " }\n" + + " }\n"); + } + + @Test + public void updateInsideIfFalseAndTrueBlock_shouldTriggerReactivity() { + statementInsideBlock_shouldTriggerReactivityWithLoop(" if (false) {\n" + + " $fact." + setValueStatement("value1", 2) + "\n" + // this line is not executed, but analyzed as a property reactivity + " }\n" + + " if (true) {\n" + + " update($fact);\n" + + " }\n"); + } + + private void statementInsideBlock_shouldTriggerReactivityWithLoop(String rhs) { + final String str = + "import " + Fact.class.getCanonicalName() + ";\n" + + "dialect \"" + dialect.name().toLowerCase() + "\"\n" + + "global java.util.List results;\n" + + "rule R1\n" + + " when\n" + + " $fact : Fact( value1 == 1 )\n" + + " then\n" + + rhs + + "end\n"; + + KieSession ksession = getKieSession(str); + List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + Fact fact = new Fact(1); + ksession.insert(fact); + int fired = ksession.fireAllRules(10); + + assertThat(fired).as("Should trigger property reactivity on value1 and result in a loop") + .isEqualTo(10); + } + + @Test + public void modifyInsideIfFalseBlock_shouldNotTriggerReactivity() { + // DROOLS-7493 + statementInsideIfFalseBlock_shouldNotTriggerReactivityNorSelfLoop(" if (false) {\n" + + " modify($fact) {\n" + + " " + setValueStatement("value1", 2) + "\n" + + " }\n" + + " }\n"); + } + + @Test + public void updateInsideIfFalseBlock_shouldNotTriggerReactivity() { + statementInsideIfFalseBlock_shouldNotTriggerReactivityNorSelfLoop(" if (false) {\n" + + " $fact." + setValueStatement("value1", 2) + "\n" + + " update($fact);\n" + + " }\n"); + } + + private void statementInsideIfFalseBlock_shouldNotTriggerReactivityNorSelfLoop(String rhs) { + final String str = + "import " + Fact.class.getCanonicalName() + ";\n" + + "dialect \"" + dialect.name().toLowerCase() + "\"\n" + + "global java.util.List results;\n" + + "rule R1\n" + + " when\n" + + " $fact : Fact( value1 == 1 )\n" + + " then\n" + + rhs + + "end\n" + + "rule R2\n" + + " when\n" + + " $fact : Fact( value1 == 2 )\n" + + " then\n" + + " results.add(\"R2 fired\");\n" + + "end\n"; + + KieSession ksession = getKieSession(str); + List results = new ArrayList<>(); + ksession.setGlobal("results", results); + + Fact fact = new Fact(1); + ksession.insert(fact); + int fired = ksession.fireAllRules(10); + assertThat(fired).as("Don't cause a loop") + .isEqualTo(1); + + assertThat(results).as("Shouldn't trigger R2, because modify is not executed") + .isEmpty(); + } +} diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PropertyReactivityTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PropertyReactivityTest.java index d0b55de639c..54e0672de07 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PropertyReactivityTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/PropertyReactivityTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayDeque; @@ -1020,6 +1022,7 @@ public void test3PropertiesInOneExpression() { public static class Fact { private int a; + private int b; private String result; public int getA() { @@ -1030,6 +1033,14 @@ public void setA(int a) { this.a = a; } + public int getB() { + return b; + } + + public void setB(int b) { + this.b = b; + } + public String getResult() { return result; } @@ -1039,6 +1050,18 @@ public void setResult(String result) { } } + public static class AnotherFact { + private int a; + + public int getA() { + return a; + } + + public void setA(int a) { + this.a = a; + } + } + public static String convertToString(int num) { if (num < 1000) { return "SMALL"; @@ -1118,6 +1141,87 @@ public void externalFunctionWithBindVariable_shouldNotCauseInfiniteLoop() { assertThat(bigString.getResult()).isEqualTo("OK"); } + @Test + public void externalFunctionWithBindVariableFromAnotherPatternOfSameType_shouldTriggerClassReactive() { + // DROOLS-7398 + final String str = + "import " + Fact.class.getCanonicalName() + ";\n" + + "import static " + PropertyReactivityTest.class.getCanonicalName() + ".*;\n" + + "rule R when\n" + + " $fact1 : Fact( $id : a )\n" + + " $fact2 : Fact( convertToString($id) == \"BIG\" )\n" + + "then\n" + + " modify($fact2) { setResult(\"OK\") };\n" + + "end\n"; + + KieSession ksession = getKieSession(str); + + Fact bigStringFact = new Fact(); + bigStringFact.setA(99999); + bigStringFact.setResult("NG"); + ksession.insert(bigStringFact); + int fired = ksession.fireAllRules(10); // intentional loop + + assertThat(fired).as("$id comes from a different pattern, so it triggers class reactivity, not property reactivity.") + .isEqualTo(10); + } + + @Test + public void multipleExternalFunctionsWithBindVariablesFromAnotherPatternOfSameType_shouldTriggerClassReactive() { + // DROOLS-7398 + final String str = + "import " + Fact.class.getCanonicalName() + ";\n" + + "import static " + PropertyReactivityTest.class.getCanonicalName() + ".*;\n" + + "rule R when\n" + + " $fact1 : Fact( $id_a : a, $id_b : b )\n" + + " $fact2 : Fact( convertToString($id_a) == convertToString($id_b) )\n" + + "then\n" + + " modify($fact2) { setResult(\"OK\") };\n" + + "end\n"; + + KieSession ksession = getKieSession(str); + + Fact bigStringFact = new Fact(); + bigStringFact.setA(99999); + bigStringFact.setB(99999); + bigStringFact.setResult("NG"); + ksession.insert(bigStringFact); + int fired = ksession.fireAllRules(10); // intentional loop + + assertThat(fired).as("$id comes from a different pattern, so it triggers class reactivity, not property reactivity.") + .isEqualTo(10); + } + + @Test + public void externalFunctionWithBindVariableFromAnotherPatternOfDifferentType_shouldTriggerClassReactive() { + // DROOLS-7390 + final String str = + "import " + Fact.class.getCanonicalName() + ";\n" + + "import " + AnotherFact.class.getCanonicalName() + ";\n" + + "import static " + PropertyReactivityTest.class.getCanonicalName() + ".*;\n" + + "rule R when\n" + + " $fact1 : AnotherFact( $id : a )\n" + + " $fact2 : Fact( convertToString($id) == \"BIG\" )\n" + + "then\n" + + " modify($fact2) { setResult(\"OK\") };\n" + + "end\n"; + + KieSession ksession = getKieSession(str); + + AnotherFact bigStringAnotherFact = new AnotherFact(); + bigStringAnotherFact.setA(99999); + ksession.insert(bigStringAnotherFact); + + Fact smallStringFact = new Fact(); + smallStringFact.setA(1); + smallStringFact.setResult("NG"); + ksession.insert(smallStringFact); + int fired = ksession.fireAllRules(10); // intentional loop + + assertThat(fired).as("$id comes from a different pattern, so it triggers class reactivity, not property reactivity.") + .isEqualTo(10); + } + @Test public void testUnwatch() { // RHDM-1553 diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/QueryTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/QueryTest.java index 7d00a508288..8e4d5218e2f 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/QueryTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/QueryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.io.IOException; @@ -23,7 +25,7 @@ import java.util.List; import org.drools.core.QueryResultsImpl; -import org.drools.core.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.QueryImpl; import org.drools.model.codegen.execmodel.domain.Person; import org.drools.model.codegen.execmodel.domain.Relationship; import org.drools.model.codegen.execmodel.domain.Result; @@ -438,14 +440,14 @@ private void checkRecursiveQuery( String query ) throws InstantiationException, " ?isContainedIn($l, \"office\";)\n" + "then\n" + "end\n" + - "\n" + - "// rule values at A12, header at A6\n" + - "rule \"testPushQueryRule\" when\n" + - " String(this == \"push\")\n" + - " Person($l : likes)\n" + - " isContainedIn($l, \"office\";)\n" + - "then\n" + - "end"; + "\n"; // + +// "// rule values at A12, header at A6\n" + +// "rule \"testPushQueryRule\" when\n" + +// " String(this == \"push\")\n" + +// " Person($l : likes)\n" + +// " isContainedIn($l, \"office\";)\n" + +// "then\n" + +// "end"; KieSession ksession = getKieSession( str ); @@ -462,14 +464,14 @@ private void checkRecursiveQuery( String query ) throws InstantiationException, final Object tableLocation = locationType.newInstance(); locationType.set(tableLocation, "thing", "table"); locationType.set(tableLocation, "location", "office"); - ksession.insert(peter); + final FactHandle peterHandle = ksession.insert(peter); final FactHandle steakHandle = ksession.insert(steakLocation); final FactHandle tableHandle = ksession.insert(tableLocation); ksession.insert("pull"); ksession.fireAllRules(); assertThat(listener.isRuleFired("testPullQueryRule")).isTrue(); - assertThat(listener.isRuleFired("testPushQueryRule")).isFalse(); +// assertThat(listener.isRuleFired("testPushQueryRule")).isFalse(); listener.clear(); // when location is changed of what Peter likes, pull query should diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ReteDumper.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ReteDumper.java index 3c1107b5155..a84b9107034 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ReteDumper.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ReteDumper.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import java.util.Collection; @@ -25,7 +43,7 @@ public class ReteDumper { private ReteDumper() { } public static Set collectNodes(KieBase kbase) { - return visitRete( ((InternalKnowledgeBase) kbase).getRete(), voidConsumer ); + return visitRete(((InternalKnowledgeBase) kbase).getRete(), voidConsumer); } public static Set collectNodes(KieSession session) { @@ -33,7 +51,7 @@ public static Set collectNodes(KieSession session) { } public static Set dumpRete(KieBase kbase) { - return visitRete( ((InternalKnowledgeBase) kbase).getRete(), dumpConsumer ); + return visitRete(((InternalKnowledgeBase) kbase).getRete(), dumpConsumer); } public static Set dumpRete(KieSession session) { @@ -41,7 +59,7 @@ public static Set dumpRete(KieSession session) { } public static Set checkRete(KieBase kbase, Predicate predicate) { - return visitRete(((InternalKnowledgeBase) kbase).getRete(), toConsumer( predicate )); + return visitRete(((InternalKnowledgeBase) kbase).getRete(), toConsumer(predicate)); } public static Set checkRete(KieSession session, Predicate predicate) { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/RuleAttributesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/RuleAttributesTest.java index 9c4c0f51b55..02c73e43f83 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/RuleAttributesTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/RuleAttributesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/SegmentPrototypeExpressionTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/SegmentPrototypeExpressionTest.java index dbb996bde2e..f723540d552 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/SegmentPrototypeExpressionTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/SegmentPrototypeExpressionTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ package org.drools.model.codegen.execmodel; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TextBlockTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TextBlockTest.java index aa6065dab29..b0c237961d5 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TextBlockTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TextBlockTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ToStringTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ToStringTest.java index 4380f6d98e4..db49afe2372 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ToStringTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/ToStringTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeCoercionTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeCoercionTest.java index 1e9921709b4..95a49e3ac1b 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeCoercionTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeCoercionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.time.ZonedDateTime; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeDeclarationTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeDeclarationTest.java index bc8298d0575..e34aeb6ffed 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeDeclarationTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeDeclarationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.model.codegen.execmodel; import java.util.Arrays; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeObjectCoercionTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeObjectCoercionTest.java index ae4aa65c416..fdf022aa260 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeObjectCoercionTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/TypeObjectCoercionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/UseClassFieldsInRulesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/UseClassFieldsInRulesTest.java index e997c35ce3b..beec7efc349 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/UseClassFieldsInRulesTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/UseClassFieldsInRulesTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel; import org.junit.Test; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/alphaNetworkCompiler/ObjectTypeNodeCompilerTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/alphaNetworkCompiler/ObjectTypeNodeCompilerTest.java index a25cc3d3a30..682c060394c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/alphaNetworkCompiler/ObjectTypeNodeCompilerTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/alphaNetworkCompiler/ObjectTypeNodeCompilerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.alphaNetworkCompiler; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/AssemblerTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/AssemblerTest.java index 9e7781e2936..244c35e90eb 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/AssemblerTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/AssemblerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.assembler; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/TestAssembler.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/TestAssembler.java index 74e0e7178ea..18098808eda 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/TestAssembler.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/assembler/TestAssembler.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.assembler; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BenchmarkMain.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BenchmarkMain.java index a1e1e960cd9..743e9850100 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BenchmarkMain.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BenchmarkMain.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.benchmark; import org.drools.model.codegen.execmodel.benchmark.BuildFromKJarBenchmark.BenchmarkType; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BenchmarkUtil.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BenchmarkUtil.java index 4546acee6b3..fc80460d805 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BenchmarkUtil.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BenchmarkUtil.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.benchmark; import java.io.File; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BuildFromKJarBenchmark.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BuildFromKJarBenchmark.java index f0fda91523b..9d15130de12 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BuildFromKJarBenchmark.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/BuildFromKJarBenchmark.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.benchmark; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/KJarWithKnowledgeFiles.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/KJarWithKnowledgeFiles.java index 5e7c0976d80..dd0c8bdc38c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/KJarWithKnowledgeFiles.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/benchmark/KJarWithKnowledgeFiles.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.benchmark; import java.io.File; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/BigDecimalTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/BigDecimalTest.java index 50655e281cd..bdc842a2d1c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/BigDecimalTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/BigDecimalTest.java @@ -1,20 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.bigdecimaltest; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/Customer.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/Customer.java index 5d8a2afbeb3..4a338bce38d 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/Customer.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/Customer.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.bigdecimaltest; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/Policy.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/Policy.java index a1e1380e6bc..a05c905cd1f 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/Policy.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigdecimaltest/Policy.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.bigdecimaltest; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigintegertest/BigIntegerTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigintegertest/BigIntegerTest.java index 1373d950d19..abaf1ea4ab4 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigintegertest/BigIntegerTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/bigintegertest/BigIntegerTest.java @@ -1,20 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.bigintegertest; import java.math.BigInteger; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/constraints/ConstraintEvaluationExceptionTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/constraints/ConstraintEvaluationExceptionTest.java index 502f185a973..9ffd1a087cb 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/constraints/ConstraintEvaluationExceptionTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/constraints/ConstraintEvaluationExceptionTest.java @@ -1,24 +1,26 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.constraints; import java.util.Collections; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.modelcompiler.constraints.ConstraintEvaluationException; import org.drools.io.ByteArrayResource; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Address.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Address.java index 524f9c6f0f0..927c0ed0edf 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Address.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Address.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.domain; public class Address { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Adult.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Adult.java index 90fb07a2f2e..36b9d433590 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Adult.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Adult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import org.drools.core.phreak.ReactiveList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/CalcFact.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/CalcFact.java index f7760768edf..9f247a986f1 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/CalcFact.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/CalcFact.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.domain; public class CalcFact { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Cheese.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Cheese.java index 06b17a0ec5c..15dd61fa6e1 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Cheese.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Cheese.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel.domain; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Child.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Child.java index cd0089355c6..b3627bed5a2 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Child.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Child.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.util.List; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactComplex.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactComplex.java index 11eb05fa4d9..ad132d2a6cf 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactComplex.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactComplex.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class ChildFactComplex { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum1.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum1.java index d0a573bfcf1..6f0219e738c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum1.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum1.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class ChildFactWithEnum1 { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum2.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum2.java index 50a8edd7122..caf946704d2 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum2.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class ChildFactWithEnum2 { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum3.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum3.java index 7254ff4462b..56bd395eacf 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum3.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithEnum3.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class ChildFactWithEnum3 { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithFirings1.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithFirings1.java index e6140b3ccf8..56f501a9707 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithFirings1.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithFirings1.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId1.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId1.java index fe81d392c6a..a83d8697d5e 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId1.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId1.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class ChildFactWithId1 { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId2.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId2.java index 3d5a659c46e..9f0d6fe0883 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId2.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class ChildFactWithId2 { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId3.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId3.java index d135ef7d2a7..93c4a02a2a0 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId3.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithId3.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class ChildFactWithId3 { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithObject.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithObject.java index 1b634ab4e9c..9621f4af42e 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithObject.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ChildFactWithObject.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.util.Date; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Counter.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Counter.java index f2f3a9c0073..6cec8b91645 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Counter.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Counter.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel.domain; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Customer.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Customer.java index 64f2eb17f47..b723b6dde5b 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Customer.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Customer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class Customer { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/DateTimeHolder.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/DateTimeHolder.java index 2ba4df72774..64cb3661594 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/DateTimeHolder.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/DateTimeHolder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.time.LocalDate; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Employee.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Employee.java index 0f98e7d78c5..34c4ce5e8b3 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Employee.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Employee.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.io.Serializable; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/EnumFact1.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/EnumFact1.java index 89e38437984..d5184f5b744 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/EnumFact1.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/EnumFact1.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public enum EnumFact1 { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/EnumFact2.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/EnumFact2.java index d6233ef9619..0a316fafe18 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/EnumFact2.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/EnumFact2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public enum EnumFact2 { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InputDataTypes.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InputDataTypes.java index 69e090953d1..b49536d8604 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InputDataTypes.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InputDataTypes.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InterfaceAsEnum.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InterfaceAsEnum.java index ad6548c981f..b412444d6cb 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InterfaceAsEnum.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InterfaceAsEnum.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public interface InterfaceAsEnum { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InternationalAddress.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InternationalAddress.java index 805d3c7b2f0..ce34dbcec7a 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InternationalAddress.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/InternationalAddress.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.io.Serializable; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Man.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Man.java index 6cdaf931242..d6a3286f2f1 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Man.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Man.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class Man extends Adult { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ManyPropFact.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ManyPropFact.java index aa668189749..35c46077e39 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ManyPropFact.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ManyPropFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class ManyPropFact { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/MysteriousMan.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/MysteriousMan.java index b20a8eb01d3..44943397275 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/MysteriousMan.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/MysteriousMan.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class MysteriousMan extends Person { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Overloaded.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Overloaded.java index 79d9d0f4716..32791bcff96 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Overloaded.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Overloaded.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.io.Serializable; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Parent.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Parent.java index ea53dc44e2f..a17bcc41965 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Parent.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Parent.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.util.StringJoiner; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Person.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Person.java index 4d6305bf5e6..2e17db74952 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Person.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Person.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.domain; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Pet.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Pet.java index 6469fbd781a..0be6d8d88d3 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Pet.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Pet.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class Pet { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/PetPerson.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/PetPerson.java index 324a675cfc8..5c89af43283 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/PetPerson.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/PetPerson.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.util.HashMap; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Relationship.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Relationship.java index aa4a9b97321..cfe761a4beb 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Relationship.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Relationship.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import org.kie.api.definition.type.Position; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Result.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Result.java index 138312d51d9..9dafb46b939 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Result.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Result.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/RootFact.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/RootFact.java index a7a056e2239..54af205ae12 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/RootFact.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/RootFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class RootFact { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockFact.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockFact.java index 99df633fa1e..1f1965c4649 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockFact.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class StockFact { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockTick.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockTick.java index af942bd537a..e6e27110ed6 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockTick.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockTick.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.util.Calendar; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockTickEx.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockTickEx.java index 0008f2c43ff..a7b32ac5f85 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockTickEx.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/StockTickEx.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.util.Calendar; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/SubFact.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/SubFact.java index 41e2c2bfd62..d95ae05194f 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/SubFact.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/SubFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class SubFact { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/TargetPolicy.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/TargetPolicy.java index cd8353f3fd0..01e9e672647 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/TargetPolicy.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/TargetPolicy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class TargetPolicy { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Toy.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Toy.java index 3aae09d6b28..62b21d1a727 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Toy.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Toy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import org.drools.core.phreak.AbstractReactiveObject; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ToysStore.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ToysStore.java index b6731a0ccd0..376d9e7bdca 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ToysStore.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ToysStore.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.domain; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ValueHolder.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ValueHolder.java index 68a4ed33cc7..95d82c2705f 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ValueHolder.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/ValueHolder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/VariousCasePropFact.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/VariousCasePropFact.java index c8d10d3d217..ff938cd0e89 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/VariousCasePropFact.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/VariousCasePropFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class VariousCasePropFact { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Woman.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Woman.java index d6ae4a2c851..cc8f26d0437 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Woman.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/domain/Woman.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.domain; public class Woman extends Adult { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/drlx/DrlxCompilerTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/drlx/DrlxCompilerTest.java index bb2efbb2cb7..83687215e6d 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/drlx/DrlxCompilerTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/drlx/DrlxCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.drlx; import java.io.IOException; @@ -27,7 +29,7 @@ import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; import org.drools.compiler.compiler.DialectCompiletimeRegistry; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.drl.ast.descr.PackageDescr; import org.drools.model.codegen.ExecutableModelProject; import org.drools.model.codegen.execmodel.KJARUtils; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/drlx/Example.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/drlx/Example.java index 6c4af7baaa1..8d66d64a797 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/drlx/Example.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/drlx/Example.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.drlx; public class Example /*implements RuleUnit*/ { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/exchange/SendReceiveTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/exchange/SendReceiveTest.java index 0e2c78e8810..93a63835411 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/exchange/SendReceiveTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/exchange/SendReceiveTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.exchange; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/CompilerTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/CompilerTest.java index c22c8778179..977d7ef186a 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/CompilerTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/CompilerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.fireandalarm; import org.drools.model.codegen.execmodel.BaseModelTest; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/FireAndAlarmTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/FireAndAlarmTest.java index 26519433fb1..1c07380ae2d 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/FireAndAlarmTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/FireAndAlarmTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.fireandalarm; import org.drools.model.Model; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/FireAndAlarmUsingDroolsTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/FireAndAlarmUsingDroolsTest.java index ae7c5e3be99..24de303265d 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/FireAndAlarmUsingDroolsTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/FireAndAlarmUsingDroolsTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.fireandalarm; import org.drools.model.Model; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Alarm.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Alarm.java index cd25e5433d5..0fafde444d9 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Alarm.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Alarm.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.fireandalarm.model; public class Alarm { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Fire.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Fire.java index 43a2166d044..a321ebf3db3 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Fire.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Fire.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.fireandalarm.model; public class Fire { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Room.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Room.java index 4f191c0d29a..7e56178a86f 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Room.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Room.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.fireandalarm.model; public class Room { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Sprinkler.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Sprinkler.java index fe131c04251..6d4df843a3e 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Sprinkler.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/fireandalarm/model/Sprinkler.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.fireandalarm.model; public class Sprinkler { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ConsequenceTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ConsequenceTest.java index f4279145dce..e2c7c131dfc 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ConsequenceTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ConsequenceTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.generator; import org.junit.Test; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ConstraintTestUtil.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ConstraintTestUtil.java index 32fd819104f..15819559b52 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ConstraintTestUtil.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ConstraintTestUtil.java @@ -1,20 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; public class ConstraintTestUtil { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/DrlxParseUtilTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/DrlxParseUtilTest.java index b9de8a85f5c..d6c52b92838 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/DrlxParseUtilTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/DrlxParseUtilTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.generator; import java.util.Arrays; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ExpressionTyperTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ExpressionTyperTest.java index b54088c2db0..f8ad08e8543 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ExpressionTyperTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/ExpressionTyperTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.generator; import java.math.BigDecimal; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/FlattenScopeTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/FlattenScopeTest.java index ba9899359d0..e34e2ecd4db 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/FlattenScopeTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/FlattenScopeTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.generator; import java.util.Collections; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/GeneratedClassDeclarationTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/GeneratedClassDeclarationTest.java index e0c367c441b..84a50b8d325 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/GeneratedClassDeclarationTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/GeneratedClassDeclarationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/StringUtilTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/StringUtilTest.java index d3214d8787a..3d136d6baa1 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/StringUtilTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/StringUtilTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.generator; import org.junit.Test; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/drlxparse/CoercedExpressionTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/drlxparse/CoercedExpressionTest.java index 2809fa70395..1264a096981 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/drlxparse/CoercedExpressionTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/drlxparse/CoercedExpressionTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel.generator.drlxparse; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParserTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParserTest.java index ce8813362c6..fa30324b944 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParserTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/generator/drlxparse/ConstraintParserTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel.generator.drlxparse; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICA.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICA.java index 2f93470e911..a40b7afda89 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICA.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICA.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.inlinecast; public class ICA extends ICAbstractA { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractA.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractA.java index 456657f5018..4c8fdb6a497 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractA.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractA.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.inlinecast; public abstract class ICAbstractA { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractB.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractB.java index 6b9eecb6330..b6583b93268 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractB.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractB.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.inlinecast; public abstract class ICAbstractB { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractC.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractC.java index 9694429c056..24b169e3b8c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractC.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICAbstractC.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.inlinecast; public abstract class ICAbstractC { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICB.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICB.java index a437a7d382f..0bf71ca06ca 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICB.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICB.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.inlinecast; public class ICB extends ICAbstractB { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICC.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICC.java index 6de8b83ca43..5c7b63847d8 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICC.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/ICC.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.inlinecast; public class ICC extends ICAbstractC { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/InlineCastTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/InlineCastTest.java index b7ede881ab2..1d7eb90b6c8 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/InlineCastTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/inlinecast/InlineCastTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.inlinecast; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/Address.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/Address.java index 621371e52fd..51cfac7b87c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/Address.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/Address.java @@ -1,35 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - package org.drools.model.codegen.execmodel.oopathdtables; import java.io.Serializable; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/InternationalAddress.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/InternationalAddress.java index efbee4ae06a..e020aed1d38 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/InternationalAddress.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/InternationalAddress.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.oopathdtables; import java.io.Serializable; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/Person.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/Person.java index 71398d67104..013823e0030 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/Person.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/oopathdtables/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.oopathdtables; import java.io.Serializable; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/BaseOperatorsTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/BaseOperatorsTest.java index e68d04c4afd..e378e6f0a55 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/BaseOperatorsTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/BaseOperatorsTest.java @@ -1,18 +1,20 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel.operators; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/EqualityComparisonTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/EqualityComparisonTest.java index dc1df92411d..60c5b548361 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/EqualityComparisonTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/EqualityComparisonTest.java @@ -1,18 +1,20 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel.operators; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/EqualityComparisonWith2PropertiesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/EqualityComparisonWith2PropertiesTest.java index 8f4865e12b8..67439d0513f 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/EqualityComparisonWith2PropertiesTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/EqualityComparisonWith2PropertiesTest.java @@ -1,18 +1,20 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel.operators; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/ValueHolder.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/ValueHolder.java index 539740e84bd..f319a6beab6 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/ValueHolder.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/ValueHolder.java @@ -1,18 +1,20 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel.operators; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/ValueHolderWith2Properties.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/ValueHolderWith2Properties.java index 53c222e38f2..ec8c8b0a29b 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/ValueHolderWith2Properties.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/operators/ValueHolderWith2Properties.java @@ -1,18 +1,20 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.execmodel.operators; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/LambdaUtilTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/LambdaUtilTest.java index b8fe386bde7..115868333e5 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/LambdaUtilTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/LambdaUtilTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.util; import com.github.javaparser.ast.expr.Expression; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/TrackingAgendaEventListener.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/TrackingAgendaEventListener.java index f05a96bb865..b133c651977 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/TrackingAgendaEventListener.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/TrackingAgendaEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/ExecModelLambdaPostProcessorTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/ExecModelLambdaPostProcessorTest.java index 0cc412abbc1..877ce72394c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/ExecModelLambdaPostProcessorTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/ExecModelLambdaPostProcessorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import java.nio.charset.Charset; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaConsequenceTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaConsequenceTest.java index bdd7d25b3ef..0505fb10a40 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaConsequenceTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaConsequenceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaExtractorTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaExtractorTest.java index f916f66f980..a238d833c71 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaExtractorTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaExtractorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaPredicateTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaPredicateTest.java index 72c4b69ca76..643d4b976f6 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaPredicateTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaPredicateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import java.util.ArrayList; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaTestUtils.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaTestUtils.java index 1b681d49d05..e301073b485 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaTestUtils.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/util/lambdareplace/MaterializedLambdaTestUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.codegen.execmodel.util.lambdareplace; import com.github.javaparser.ast.body.MethodDeclaration; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/Result.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/Result.java index de7ad5af1dd..90434182acf 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/Result.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/Result.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.variables; public class Result { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/SimpleObject.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/SimpleObject.java index 6714c2bb51a..307b695c8fc 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/SimpleObject.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/SimpleObject.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.variables; public class SimpleObject { diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/VariablesTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/VariablesTest.java index dc95e525f1b..ea8744845ef 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/VariablesTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/execmodel/variables/VariablesTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.variables; import java.util.Collection; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/RuleCodegenTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/RuleCodegenTest.java index f1ed8a5a8a9..e84885693c4 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/RuleCodegenTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/RuleCodegenTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Address.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Address.java index f6915f5ec1d..705c33492e1 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Address.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Address.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project.data; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Person.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Person.java index dbfe6525597..e69625c93bb 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Person.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Person.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project.data; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Result.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Result.java index 5772e397e32..5b29a1aa843 100755 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Result.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Result.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project.data; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Results.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Results.java index e42b8298ba2..7e03786e3e8 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Results.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/project/data/Results.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.project.data; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/ruleunits/RuleUnitWriterTest.java b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/ruleunits/RuleUnitWriterTest.java index 99673183fba..68eb1e76f8c 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/ruleunits/RuleUnitWriterTest.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/model/codegen/ruleunits/RuleUnitWriterTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.model.codegen.ruleunits; diff --git a/drools-model/drools-model-codegen/src/test/java/org/drools/wiring/api/classloader/ProjectClassLoaderTestUtil.java b/drools-model/drools-model-codegen/src/test/java/org/drools/wiring/api/classloader/ProjectClassLoaderTestUtil.java index 639f2f2732a..adb4c3607ca 100644 --- a/drools-model/drools-model-codegen/src/test/java/org/drools/wiring/api/classloader/ProjectClassLoaderTestUtil.java +++ b/drools-model/drools-model-codegen/src/test/java/org/drools/wiring/api/classloader/ProjectClassLoaderTestUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.wiring.api.classloader; public class ProjectClassLoaderTestUtil { diff --git a/drools-model/drools-model-codegen/src/test/resources/logback-test.xml b/drools-model/drools-model-codegen/src/test/resources/logback-test.xml index 7f151d4741d..dbee14ec590 100644 --- a/drools-model/drools-model-codegen/src/test/resources/logback-test.xml +++ b/drools-model/drools-model-codegen/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-model/drools-model-codegen/src/test/resources/model/Child.java b/drools-model/drools-model-codegen/src/test/resources/model/Child.java index 8878e65aa29..08234143d5b 100644 --- a/drools-model/drools-model-codegen/src/test/resources/model/Child.java +++ b/drools-model/drools-model-codegen/src/test/resources/model/Child.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.model; public class Child extends Person { diff --git a/drools-model/drools-model-codegen/src/test/resources/model/Person.java b/drools-model/drools-model-codegen/src/test/resources/model/Person.java index 1c0c1512eca..0d3015965ce 100644 --- a/drools-model/drools-model-codegen/src/test/resources/model/Person.java +++ b/drools-model/drools-model-codegen/src/test/resources/model/Person.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.model; public class Person { diff --git a/drools-model/drools-model-codegen/src/test/resources/org/drools/model/codegen/execmodel/util/lambdareplace/FlowConsequenceTestHarness.java b/drools-model/drools-model-codegen/src/test/resources/org/drools/model/codegen/execmodel/util/lambdareplace/FlowConsequenceTestHarness.java index 439ebe13bfa..cd204d5ca5b 100644 --- a/drools-model/drools-model-codegen/src/test/resources/org/drools/model/codegen/execmodel/util/lambdareplace/FlowConsequenceTestHarness.java +++ b/drools-model/drools-model-codegen/src/test/resources/org/drools/model/codegen/execmodel/util/lambdareplace/FlowConsequenceTestHarness.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.util.lambdareplace; import org.drools.model.Drools; diff --git a/drools-model/drools-model-codegen/src/test/resources/org/drools/model/codegen/execmodel/util/lambdareplace/PatternTestHarness.java b/drools-model/drools-model-codegen/src/test/resources/org/drools/model/codegen/execmodel/util/lambdareplace/PatternTestHarness.java index 8365f1f20aa..300affee86a 100644 --- a/drools-model/drools-model-codegen/src/test/resources/org/drools/model/codegen/execmodel/util/lambdareplace/PatternTestHarness.java +++ b/drools-model/drools-model-codegen/src/test/resources/org/drools/model/codegen/execmodel/util/lambdareplace/PatternTestHarness.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.model.codegen.execmodel.util.lambdareplace; import org.drools.model.Index; diff --git a/drools-model/drools-model-codegen/src/test/resources/unit1/AdultUnit.java b/drools-model/drools-model-codegen/src/test/resources/unit1/AdultUnit.java index 2895b718777..9d5c3c355bf 100644 --- a/drools-model/drools-model-codegen/src/test/resources/unit1/AdultUnit.java +++ b/drools-model/drools-model-codegen/src/test/resources/unit1/AdultUnit.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.unit1; import org.kie.api.runtime.rule.RuleUnit; diff --git a/drools-model/drools-model-codegen/src/test/resources/unit2/AdultUnit.java b/drools-model/drools-model-codegen/src/test/resources/unit2/AdultUnit.java index 7b20cc52e85..7e859c88d00 100644 --- a/drools-model/drools-model-codegen/src/test/resources/unit2/AdultUnit.java +++ b/drools-model/drools-model-codegen/src/test/resources/unit2/AdultUnit.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.unit2; import org.kie.api.runtime.rule.RuleUnit; diff --git a/drools-model/drools-model-codegen/src/test/resources/unit3/AdultUnit.java b/drools-model/drools-model-codegen/src/test/resources/unit3/AdultUnit.java index fa2916d9e7c..1b9ca2df06b 100644 --- a/drools-model/drools-model-codegen/src/test/resources/unit3/AdultUnit.java +++ b/drools-model/drools-model-codegen/src/test/resources/unit3/AdultUnit.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.unit3; import org.kie.api.runtime.rule.RuleUnit; diff --git a/drools-model/drools-model-codegen/src/test/resources/unit4/AdultUnit.java b/drools-model/drools-model-codegen/src/test/resources/unit4/AdultUnit.java index 62ceba5008b..f06fe41925c 100644 --- a/drools-model/drools-model-codegen/src/test/resources/unit4/AdultUnit.java +++ b/drools-model/drools-model-codegen/src/test/resources/unit4/AdultUnit.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.unit4; import org.kie.api.runtime.rule.RuleUnit; diff --git a/drools-model/drools-model-compiler/pom.xml b/drools-model/drools-model-compiler/pom.xml index d3b72ac6ed6..37904eb7c5a 100644 --- a/drools-model/drools-model-compiler/pom.xml +++ b/drools-model/drools-model-compiler/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.drools drools-model - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: Model :: Compiler diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalInternalKieModule.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalInternalKieModule.java index 1f50ed982ec..4cc40e34d45 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalInternalKieModule.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalInternalKieModule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.io.File; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieBaseUpdater.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieBaseUpdater.java index 2163e2f0524..1306b9ef7d1 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieBaseUpdater.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieBaseUpdater.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.lang.reflect.Type; @@ -24,18 +26,18 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.atomic.AtomicInteger; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Function; +import org.drools.base.rule.TypeDeclaration; import org.drools.compiler.builder.InternalKnowledgeBuilder; import org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl; import org.drools.compiler.kie.builder.impl.KieBaseUpdaterImpl; import org.drools.compiler.kie.builder.impl.KieBaseUpdaterImplContext; import org.drools.compiler.kproject.models.KieBaseModelImpl; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.impl.KieBaseUpdate; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Function; -import org.drools.core.rule.TypeDeclaration; import org.kie.api.definition.KiePackage; import org.kie.api.definition.rule.Rule; import org.kie.internal.builder.ChangeType; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModule.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModule.java index 21282407b25..f5c4ddb66f6 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModule.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.io.File; @@ -38,6 +40,9 @@ import java.util.stream.Collectors; import java.util.stream.Stream; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.factmodel.GeneratedFact; +import org.drools.base.util.Drools; import org.drools.compiler.builder.DroolsAssemblerContext; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; @@ -59,17 +64,14 @@ import org.drools.compiler.kproject.models.KieBaseModelImpl; import org.drools.compiler.kproject.models.KieModuleModelImpl; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.factmodel.GeneratedFact; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.util.Drools; +import org.drools.io.InternalResource; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.model.Model; import org.drools.model.NamedModelItem; import org.drools.util.IoUtils; import org.drools.util.PortablePath; import org.drools.util.StringUtils; -import org.drools.io.InternalResource; import org.drools.wiring.api.ResourceProvider; import org.drools.wiring.api.classloader.ProjectClassLoader; import org.kie.api.KieBaseConfiguration; @@ -79,7 +81,6 @@ import org.kie.api.builder.Results; import org.kie.api.builder.model.KieBaseModel; import org.kie.api.builder.model.KieModuleModel; -import org.kie.api.KieBaseConfiguration; import org.kie.api.definition.KiePackage; import org.kie.api.definition.process.Process; import org.kie.api.internal.utils.KieService; @@ -284,7 +285,7 @@ public void afterKieBaseCreationUpdate(String name, InternalKnowledgeBase kBase) compositeUpdater.run(); } - private void registerNonNativeResources( KieBaseModelImpl kBaseModel, KieProject kieProject, InternalKnowledgeBase kieBase, BuildContext buildContext ) { + private void registerNonNativeResources(KieBaseModelImpl kBaseModel, KieProject kieProject, InternalKnowledgeBase kieBase, BuildContext buildContext) { KnowledgeBuilder kbuilder = getKnowledgeBuilderForKieBase(kBaseModel.getName()); if (kbuilder == null) { kbuilder = kieProject.buildKnowledgePackages(kBaseModel, buildContext, NON_MODEL_RESOURCES); diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModuleModel.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModuleModel.java index 91bd103ca2e..a1546fb66db 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModuleModel.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModuleModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.util.List; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModuleProvider.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModuleProvider.java index 4fd7e79f0d7..2720554fa5c 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModuleProvider.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKieModuleProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.io.File; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKiePackages.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKiePackages.java index 673eb57235b..3b4eae22e3f 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKiePackages.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/CanonicalKiePackages.java @@ -1,25 +1,27 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.util.Collection; import java.util.Map; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.kie.api.definition.KiePackage; public class CanonicalKiePackages { diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/KieBaseBuilder.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/KieBaseBuilder.java index d8c1a237a3f..d81005b3ba1 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/KieBaseBuilder.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/KieBaseBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.util.ArrayList; @@ -51,24 +53,24 @@ public KieBaseBuilder(KieBaseModel kBaseModel, KieBaseConfiguration conf) { } public InternalKnowledgeBase createKieBase(CanonicalKiePackages kpkgs) { - InternalKnowledgeBase kBase = KnowledgeBaseFactory.newKnowledgeBase( kBaseName, conf ); + InternalKnowledgeBase kBase = KnowledgeBaseFactory.newKnowledgeBase(kBaseName, conf); kBase.addPackages( kpkgs.getKiePackages() ); return kBase; } - public static InternalKnowledgeBase createKieBaseFromModel( Model model, KieBaseOption... options ) { + public static InternalKnowledgeBase createKieBaseFromModel(Model model, KieBaseOption... options) { return createKieBaseFromModel( Collections.singleton( model ), options ); } - public static InternalKnowledgeBase createKieBaseFromModel( Model model, KieBaseConfiguration kieBaseConf ) { + public static InternalKnowledgeBase createKieBaseFromModel(Model model, KieBaseConfiguration kieBaseConf) { return createKieBaseFromModel( Collections.singleton( model ), kieBaseConf ); } - public static InternalKnowledgeBase createKieBaseFromModel( Model model, KieBaseConfiguration kieBaseConf, KnowledgeBuilderConfiguration knowledgeBuilderConf) { + public static InternalKnowledgeBase createKieBaseFromModel(Model model, KieBaseConfiguration kieBaseConf, KnowledgeBuilderConfiguration knowledgeBuilderConf) { return createKieBaseFromModel( Collections.singleton( model ), kieBaseConf, knowledgeBuilderConf ); } - public static InternalKnowledgeBase createKieBaseFromModel( Collection models, KieBaseOption... options ) { + public static InternalKnowledgeBase createKieBaseFromModel(Collection models, KieBaseOption... options) { KieBaseConfiguration kieBaseConf = KieServices.get().newKieBaseConfiguration(); if (options != null) { for (KieBaseOption option : options) { @@ -78,19 +80,19 @@ public static InternalKnowledgeBase createKieBaseFromModel( Collection mo return createKieBaseFromModel( models, kieBaseConf ); } - public static InternalKnowledgeBase createKieBaseFromModel( Collection models, KieBaseConfiguration kieBaseConf ) { + public static InternalKnowledgeBase createKieBaseFromModel(Collection models, KieBaseConfiguration kieBaseConf) { KiePackagesBuilder builder = new KiePackagesBuilder(kieBaseConf); models.forEach( builder::addModel ); return new KieBaseBuilder(kieBaseConf).createKieBase(builder.build()); } - public static InternalKnowledgeBase createKieBaseFromModel( Collection models, KieBaseConfiguration kieBaseConf, KnowledgeBuilderConfiguration knowledgeBuilderConf ) { + public static InternalKnowledgeBase createKieBaseFromModel(Collection models, KieBaseConfiguration kieBaseConf, KnowledgeBuilderConfiguration knowledgeBuilderConf) { KiePackagesBuilder builder = new KiePackagesBuilder(kieBaseConf, knowledgeBuilderConf, new ArrayList<>()); models.forEach( builder::addModel ); return new KieBaseBuilder(kieBaseConf).createKieBase(builder.build()); } - public static InternalKnowledgeBase createKieBaseFromModel( Collection models, KieBaseModel kieBaseModel ) { + public static InternalKnowledgeBase createKieBaseFromModel(Collection models, KieBaseModel kieBaseModel) { KieBaseConfiguration conf = KieServices.get().newKieBaseConfiguration(); RuleBaseConfiguration kieBaseConf = conf.as(RuleBaseConfiguration.KEY); kieBaseConf.setEventProcessingMode(kieBaseModel.getEventProcessingMode()); diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/KiePackagesBuilder.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/KiePackagesBuilder.java index 72f66b37f59..af0d0dd5d99 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/KiePackagesBuilder.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/KiePackagesBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.util.ArrayList; @@ -31,52 +33,54 @@ import java.util.stream.Collectors; import java.util.stream.Stream; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.EnabledBoolean; +import org.drools.base.base.ObjectType; +import org.drools.base.base.SalienceInteger; +import org.drools.base.base.extractors.ArrayElementReader; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.facttemplates.FactTemplateObjectType; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.AsyncReceive; +import org.drools.base.rule.AsyncSend; +import org.drools.base.rule.ConditionalBranch; +import org.drools.base.rule.ConditionalElement; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.Forall; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.MultiAccumulate; +import org.drools.base.rule.NamedConsequence; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.PatternSource; +import org.drools.base.rule.QueryArgument; +import org.drools.base.rule.QueryElement; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.SingleAccumulate; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.WindowDeclaration; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.accessor.DataProvider; +import org.drools.base.rule.accessor.Enabled; +import org.drools.base.rule.accessor.EvalExpression; +import org.drools.base.rule.accessor.PatternExtractor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.Salience; +import org.drools.base.rule.constraint.QueryNameConstraint; +import org.drools.base.time.impl.Timer; import org.drools.core.base.ClassFieldAccessorCache; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.DroolsQuery; -import org.drools.core.base.EnabledBoolean; -import org.drools.core.base.SalienceInteger; +import org.drools.core.base.DroolsQueryImpl; import org.drools.core.base.accumulators.CountAccumulateFunction; -import org.drools.core.base.extractors.ArrayElementReader; -import org.drools.core.base.extractors.SelfReferenceClassFieldReader; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.facttemplates.FactTemplateObjectType; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.AsyncReceive; -import org.drools.core.rule.AsyncSend; -import org.drools.core.rule.Behavior; -import org.drools.core.rule.ConditionalBranch; -import org.drools.core.rule.ConditionalElement; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.Forall; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.MultiAccumulate; -import org.drools.core.rule.NamedConsequence; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.PatternSource; -import org.drools.core.rule.QueryArgument; -import org.drools.core.rule.QueryElement; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.SingleAccumulate; +import org.drools.core.rule.BehaviorRuntime; import org.drools.core.rule.SlidingLengthWindow; import org.drools.core.rule.SlidingTimeWindow; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.WindowDeclaration; -import org.drools.core.rule.constraint.QueryNameConstraint; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.rule.accessor.DataProvider; -import org.drools.core.rule.accessor.Enabled; -import org.drools.core.rule.accessor.EvalExpression; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.accessor.PatternExtractor; -import org.drools.core.rule.accessor.Salience; import org.drools.model.AccumulatePattern; import org.drools.model.Argument; import org.drools.model.Binding; @@ -117,7 +121,6 @@ import org.drools.model.functions.Function1; import org.drools.model.functions.Predicate1; import org.drools.model.functions.accumulate.AccumulateFunction; -import org.drools.model.impl.DeclarationImpl; import org.drools.model.impl.Exchange; import org.drools.model.patterns.CompositePatterns; import org.drools.model.patterns.EvalImpl; @@ -149,14 +152,12 @@ import org.kie.api.definition.type.Role; import org.kie.internal.builder.KnowledgeBuilderConfiguration; import org.kie.internal.builder.conf.PropertySpecificOption; -import org.kie.internal.ruleunit.RuleUnitUtil; import static java.util.stream.Collectors.toList; +import static org.drools.base.rule.GroupElement.AND; +import static org.drools.base.rule.GroupElement.OR; import static org.drools.compiler.rule.builder.RuleBuilder.buildTimer; -import static org.drools.core.rule.GroupElement.AND; -import static org.drools.core.rule.GroupElement.OR; import static org.drools.model.DSL.declarationOf; -import static org.drools.model.DSL.entryPoint; import static org.drools.model.bitmask.BitMaskUtil.calculatePatternMask; import static org.drools.model.functions.FunctionUtils.toFunctionN; import static org.drools.model.impl.NamesGenerator.generateName; @@ -336,7 +337,7 @@ public void setRuleMetaAttributes(Rule rule, RuleImpl ruleImpl) { } } - private org.drools.core.time.impl.Timer parseTimer( RuleImpl ruleImpl, String timerExpr, RuleContext ctx ) { + private Timer parseTimer(RuleImpl ruleImpl, String timerExpr, RuleContext ctx ) { return buildTimer(timerExpr, null, expr -> buildTimerExpression( expr, ctx.getDeclarations() ), e -> { throw new IllegalArgumentException("Invalid timer expression: '" + e + "' in rule " + ruleImpl.getName()); }); @@ -367,7 +368,7 @@ private void addQueryPattern( Query query, QueryImpl queryImpl, RuleContext ctx Declaration[] declarations = new Declaration[args.length]; for (int i = 0; i < args.length; i++) { int index = i; - LambdaReadAccessor accessor = new LambdaReadAccessor(index, args[index].getType(), obj -> ( (DroolsQuery) obj ).getElements()[index] ); + LambdaReadAccessor accessor = new LambdaReadAccessor(index, args[index].getType(), obj -> ( (DroolsQueryImpl) obj ).getElements()[index] ); declarations[i] = new Declaration( args[i].getName(), accessor, pattern, false ); pattern.addDeclaration( declarations[i] ); ctx.addQueryDeclaration( args[i], declarations[i] ); @@ -457,20 +458,6 @@ private boolean requiresLeftActivation( RuleConditionElement rce ) { return rce instanceof QueryElement; } - private Variable getUnitVariable( RuleContext ctx, KnowledgePackageImpl pkg, View view ) { - String unitClassName = ctx.getRule().getRuleUnitClassName(); - for (Variable var : view.getBoundVariables()) { - if ( var instanceof DeclarationImpl && var.getType().getName().equals( unitClassName ) ) { - return ( (DeclarationImpl) var ).setSource( entryPoint( RuleUnitUtil.RULE_UNIT_ENTRY_POINT ) ); - } - } - try { - return declarationOf( pkg.getTypeResolver().resolveType( unitClassName ), entryPoint( RuleUnitUtil.RULE_UNIT_ENTRY_POINT ) ); - } catch (ClassNotFoundException e) { - throw new RuntimeException( e ); - } - } - private RuleConditionElement conditionToElement( RuleContext ctx, GroupElement group, Condition condition ) { if (condition.getType().isComposite()) { return addSubConditions( ctx, new GroupElement( conditionToGroupElementType( condition.getType() ) ), condition.getSubConditions() ); @@ -580,7 +567,7 @@ private RuleConditionElement buildAccumulate( RuleContext ctx, GroupElement grou pattern = new Pattern( ctx.getNextPatternIndex(), type ); } - PatternImpl sourcePattern = (PatternImpl) accumulatePattern.getPattern(); + org.drools.model.Pattern sourcePattern = accumulatePattern.getPattern(); Set usedVariableName = new LinkedHashSet<>(); if (sourcePattern != null) { @@ -612,26 +599,30 @@ private RuleConditionElement buildAccumulate( RuleContext ctx, GroupElement grou addInnerBindings(bindings, accumulatePattern.getAccumulateFunctions(), accumulatePattern.getCondition()); } - pattern.setSource(buildAccumulate( ctx, accumulatePattern, source, pattern, usedVariableName, bindings )); + pattern.setSource(buildAccumulate( ctx, accumulatePattern, group, source, pattern, usedVariableName, bindings )); return existingPattern ? null : pattern; } private void addInnerBindings(Collection bindings, AccumulateFunction[] accumulateFunctions, Condition condition) { List functionArgList = Arrays.stream(accumulateFunctions) - .map(function -> function.getSource()) + .map(AccumulateFunction::getSource) .filter(org.drools.model.Declaration.class::isInstance) .map(org.drools.model.Declaration.class::cast) .collect(Collectors.toList()); if (condition instanceof CompositePatterns) { CompositePatterns compositePatterns = (CompositePatterns) condition; for (Condition c : compositePatterns.getSubConditions()) { - Variable[] boundVariables = c.getBoundVariables(); - Arrays.stream(boundVariables) - .filter(org.drools.model.Declaration.class::isInstance) - .map(org.drools.model.Declaration.class::cast) - .filter(decl -> functionArgList.contains(decl)) - .forEach(decl -> bindings.add(new SelfPatternBiding<>(decl))); + try { + Variable[] boundVariables = c.getBoundVariables(); + Arrays.stream(boundVariables) + .filter(org.drools.model.Declaration.class::isInstance) + .map(org.drools.model.Declaration.class::cast) + .filter(functionArgList::contains) + .forEach(decl -> bindings.add(new SelfPatternBiding<>(decl))); + } catch (UnsupportedOperationException e) { + // skip (ex: eval doesn't support this operation) + } } } } @@ -717,10 +708,10 @@ private RuleConditionElement addSubConditions( RuleContext ctx, GroupElement ge, if (ge.getType() == OR) { ctx.startOrCondition(); } - for (int i = 0; i < subconditions.size(); i++) { - RuleConditionElement element = conditionToElement( ctx, ge, subconditions.get(i) ); + for (Condition subcondition : subconditions) { + RuleConditionElement element = conditionToElement(ctx, ge, subcondition); if (element != null) { - ge.addChild( element ); + ge.addChild(element); } } if (ge.getType() == OR) { @@ -829,12 +820,11 @@ private void addReactiveMasksToPattern( Pattern pattern, DomainClassMetadata pat } } - private Accumulate buildAccumulate(RuleContext ctx, AccumulatePattern accPattern, + private Accumulate buildAccumulate(RuleContext ctx, AccumulatePattern accPattern, GroupElement group, RuleConditionElement source, Pattern pattern, Set usedVariableName, Collection bindings) { boolean isGroupBy = accPattern instanceof GroupByPattern; AccumulateFunction[] accFunctions = accPattern.getAccumulateFunctions(); - Declaration groupByDeclaration = null; Class selfType = (isGroupBy || accFunctions.length > 1 ) ? Object[].class : accFunctions[0].getResult().getType(); ReadAccessor selfReader = new SelfReferenceClassFieldReader( selfType ); int arrayIndexOffset = 0; @@ -846,46 +836,30 @@ private Accumulate buildAccumulate(RuleContext ctx, AccumulatePattern accPattern arrayIndexOffset = 1; } - // GroupBy key is always the last element in the result array - Variable groupVar = (( GroupByPattern ) accPattern).getVarKey(); - groupByDeclaration = new Declaration(groupVar.getName(), - new ArrayElementReader( selfReader, accFunctions.length, groupVar.getType() ), - pattern, true); - pattern.addDeclaration( groupByDeclaration ); + GroupByPatternImpl groupByPattern = (GroupByPatternImpl) accPattern; + Variable groupVar = groupByPattern.getVarKey(); + // GroupBy key is always the last element in the result array + Declaration groupByDeclaration = new Declaration(groupVar.getName(), + new ArrayElementReader( selfReader, accPattern.getAccumulateFunctions().length, groupVar.getType() ), + pattern, true); + pattern.addDeclaration(groupByDeclaration); + ctx.addGroupByDeclaration(groupByPattern.getVarKey(), groupByDeclaration); + + if (accPattern.getPattern() instanceof GroupByPattern) { + buildAccumulate(ctx, group, accPattern); + } } - Accumulate accumulate; Accumulator[] accumulators = new Accumulator[accFunctions.length]; List requiredDeclarationList = new ArrayList<>(); for (int i = 0; i < accFunctions.length; i++) { - Variable boundVar = processFunctions(ctx, accPattern, source, pattern, usedVariableName, - bindings, - isGroupBy, accFunctions[i], + processFunctions(ctx, accPattern, source, pattern, usedVariableName, bindings, isGroupBy, accFunctions[i], selfReader, accumulators, requiredDeclarationList, arrayIndexOffset, i); - if (isGroupBy) { - ctx.addGroupByDeclaration(((GroupByPattern) accPattern).getVarKey(), groupByDeclaration); - } - } - - if (accFunctions.length == 1) { - accumulate = new SingleAccumulate(source, - requiredDeclarationList.toArray(new Declaration[requiredDeclarationList.size()]), - accumulators[0]); - } else { - if (source instanceof Pattern) { - requiredDeclarationList.forEach( (( Pattern ) source)::addDeclaration ); - } - accumulate = new MultiAccumulate( source, new Declaration[0], accumulators, - accumulators.length + ((isGroupBy) ? 1 : 0) ); // if this is a groupby +1 for the key } + Accumulate accumulate = createAccumulate(source, isGroupBy, accFunctions, accumulators, requiredDeclarationList); if (isGroupBy) { - GroupByPatternImpl groupBy = ( GroupByPatternImpl ) accPattern; - Declaration[] groupingDeclarations = new Declaration[groupBy.getVars().length]; - for (int i = 0; i < groupBy.getVars().length; i++) { - groupingDeclarations[i] = ctx.getDeclaration( groupBy.getVars()[i] ); - } - accumulate = new LambdaGroupByAccumulate(accumulate, groupingDeclarations, groupBy.getGroupingFunction()); + accumulate = createGroupByAccumulate(ctx, (GroupByPatternImpl) accPattern, accumulate); } for (Variable boundVar : accPattern.getBoundVariables()) { @@ -895,7 +869,28 @@ private Accumulate buildAccumulate(RuleContext ctx, AccumulatePattern accPattern return accumulate; } - private Variable processFunctions(RuleContext ctx, AccumulatePattern accPattern, RuleConditionElement source, Pattern pattern, + private static Accumulate createAccumulate(RuleConditionElement source, boolean isGroupBy, AccumulateFunction[] accFunctions, Accumulator[] accumulators, List requiredDeclarationList) { + if (accFunctions.length == 1) { + return new SingleAccumulate(source, + requiredDeclarationList.toArray(new Declaration[requiredDeclarationList.size()]), + accumulators[0]); + } + if (source instanceof Pattern) { + requiredDeclarationList.forEach( (( Pattern ) source)::addDeclaration ); + } + return new MultiAccumulate(source, new Declaration[0], accumulators, + accumulators.length + (isGroupBy ? 1 : 0) ); // if this is a groupby +1 for the key + } + + private static Accumulate createGroupByAccumulate(RuleContext ctx, GroupByPatternImpl groupByPattern, Accumulate accumulate) { + Declaration[] groupingDeclarations = new Declaration[groupByPattern.getVars().length]; + for (int i = 0; i < groupByPattern.getVars().length; i++) { + groupingDeclarations[i] = ctx.getDeclaration( groupByPattern.getVars()[i] ); + } + return new LambdaGroupByAccumulate(accumulate, groupingDeclarations, groupByPattern.getGroupingFunction()); + } + + private void processFunctions(RuleContext ctx, AccumulatePattern accPattern, RuleConditionElement source, Pattern pattern, Set usedVariableName, Collection bindings, boolean isGroupBy, AccumulateFunction accFunction, ReadAccessor selfReader, Accumulator[] accumulators, List requiredDeclarationList, int arrayIndexOffset, int i) { @@ -926,7 +921,6 @@ private Variable processFunctions(RuleContext ctx, AccumulatePattern accPattern, Declaration[] requiredDeclarations = getRequiredDeclarationsForAccumulate(ctx, source, accFunction, binding, bindingEvaluator); requiredDeclarationList.addAll(Arrays.asList(requiredDeclarations)); - return boundVar; } private Binding findBindingForAccumulate( Collection bindings, AccumulateFunction accFunction ) { @@ -1062,7 +1056,7 @@ private Pattern addPatternForVariable( RuleContext ctx, GroupElement group, Vari if ( !ctx.getPkg().getWindowDeclarations().containsKey( window.getName() ) ) { createWindowReference( ctx, window ); } - pattern.setSource( new org.drools.core.rule.WindowReference( window.getName() ) ); + pattern.setSource( new org.drools.base.rule.WindowReference( window.getName() ) ); } else if ( decl.getSource() instanceof From ) { pattern.setSource( buildFrom( ctx, pattern, (From) decl.getSource() ) ); } else if ( decl.getSource() instanceof UnitData ) { @@ -1094,9 +1088,9 @@ private Pattern addPatternForVariable( RuleContext ctx, GroupElement group, Vari return pattern; } - private org.drools.core.rule.From buildFrom( RuleContext ctx, Pattern pattern, From from ) { + private org.drools.base.rule.From buildFrom(RuleContext ctx, Pattern pattern, From from ) { DataProvider provider = createFromDataProvider( ctx, from ); - org.drools.core.rule.From fromSource = new org.drools.core.rule.From(provider); + org.drools.base.rule.From fromSource = new org.drools.base.rule.From(provider); fromSource.setResultPattern( pattern ); return fromSource; } @@ -1139,7 +1133,7 @@ private void createWindowReference( RuleContext ctx, WindowReference wind ctx.getPkg().addWindowDeclaration(windowDeclaration); } - private Behavior createWindow( WindowDefinition window ) { + private BehaviorRuntime createWindow(WindowDefinition window) { switch (window.getType()) { case LENGTH: return new SlidingLengthWindow( (int) window.getValue() ); @@ -1160,7 +1154,7 @@ private void addConstraintsToPattern( RuleContext ctx, Pattern pattern, Constrai createConstraint( ctx, pattern, constraint ).ifPresent( pattern::addConstraint ); } - private Optional createConstraint(RuleContext ctx, Pattern pattern, Constraint constraint ) { + private Optional createConstraint(RuleContext ctx, Pattern pattern, Constraint constraint ) { if (constraint.getType() == Constraint.Type.SINGLE) { SingleConstraint singleConstraint = (SingleConstraint) constraint; if (singleConstraint.getVariables().length > 0 || singleConstraint.equals(SingleConstraint.FALSE)) { @@ -1175,7 +1169,7 @@ private Optional createConstraint(Ru } } - private org.drools.core.rule.constraint.Constraint createSingleConstraint(RuleContext ctx, Pattern pattern, SingleConstraint singleConstraint ) { + private org.drools.base.rule.constraint.Constraint createSingleConstraint(RuleContext ctx, Pattern pattern, SingleConstraint singleConstraint ) { Variable[] vars = singleConstraint.getVariables(); Declaration[] declarations = new Declaration[vars.length]; Declaration unificationDeclaration = collectConstraintDeclarations( ctx, pattern, singleConstraint, vars, declarations ); diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/RuleContext.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/RuleContext.java index 57a64bd8b56..a6fdc478c23 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/RuleContext.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/RuleContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.util.ArrayDeque; @@ -24,14 +26,14 @@ import java.util.Map; import java.util.Set; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.GlobalExtractor; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.GlobalExtractor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.model.Global; import org.drools.model.Variable; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/DynamicAttributeEvaluator.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/DynamicAttributeEvaluator.java index 4a38ae7b755..bfdd60d2921 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/DynamicAttributeEvaluator.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/DynamicAttributeEvaluator.java @@ -1,23 +1,25 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.attributes; +import org.drools.base.rule.Declaration; import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Declaration; import org.drools.core.reteoo.Tuple; import org.drools.model.DynamicValueSupplier; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/LambdaEnabled.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/LambdaEnabled.java index 2f627c15766..f5becf532d1 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/LambdaEnabled.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/LambdaEnabled.java @@ -1,25 +1,28 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.attributes; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Enabled; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Enabled; import org.drools.core.reteoo.Tuple; import org.drools.model.DynamicValueSupplier; @@ -32,8 +35,8 @@ public LambdaEnabled( DynamicValueSupplier supplier ) { } @Override - public boolean getValue( Tuple tuple, Declaration[] declrs, RuleImpl rule, ReteEvaluator reteEvaluator ) { - Object[] facts = declarationsToFacts( reteEvaluator, tuple, getDeclarations(tuple), supplier.getVariables() ); + public boolean getValue(BaseTuple tuple, Declaration[] declrs, RuleImpl rule, ValueResolver valueResolver) { + Object[] facts = declarationsToFacts(valueResolver, tuple, getDeclarations((Tuple) tuple), supplier.getVariables() ); return supplier.supply( facts ); } } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/LambdaSalience.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/LambdaSalience.java index feb7892aedd..22671590bc0 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/LambdaSalience.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/attributes/LambdaSalience.java @@ -1,27 +1,30 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.attributes; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.accessor.Salience; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.accessor.Salience; import org.drools.core.reteoo.Tuple; +import org.drools.core.rule.consequence.InternalMatch; import org.drools.model.DynamicValueSupplier; import org.kie.api.definition.rule.Rule; +import org.kie.api.runtime.rule.Match; import static org.drools.modelcompiler.consequence.LambdaConsequence.declarationsToFacts; @@ -32,9 +35,9 @@ public LambdaSalience( DynamicValueSupplier supplier ) { } @Override - public int getValue(InternalMatch internalMatch, Rule rule, ReteEvaluator reteEvaluator) { - Tuple tuple = internalMatch.getTuple(); - Object[] facts = declarationsToFacts( reteEvaluator, tuple, getDeclarations(tuple), supplier.getVariables() ); + public int getValue(Match match, Rule rule, ValueResolver valueResolver) { + Tuple tuple = ((InternalMatch)match).getTuple(); + Object[] facts = declarationsToFacts(valueResolver, tuple, getDeclarations(tuple), supplier.getVariables() ); return supplier.supply( facts ); } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/ChannelImpl.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/ChannelImpl.java index d41fbd279aa..1303c034acd 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/ChannelImpl.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/ChannelImpl.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.modelcompiler.consequence; import org.drools.model.Channel; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/DroolsEntryPointImpl.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/DroolsEntryPointImpl.java index d678fd34bee..3494575f6c5 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/DroolsEntryPointImpl.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/DroolsEntryPointImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.consequence; import org.drools.core.WorkingMemoryEntryPoint; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/DroolsImpl.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/DroolsImpl.java index 83eaf66b903..867917d93c5 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/DroolsImpl.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/DroolsImpl.java @@ -1,28 +1,30 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.consequence; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; import org.drools.core.WorkingMemory; -import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemoryEntryPoint; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.reteoo.Tuple; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.model.BitMask; @@ -44,8 +46,8 @@ public class DroolsImpl implements Drools, org.kie.api.runtime.rule.RuleContext private final FactHandleLookup fhLookup; - DroolsImpl(KnowledgeHelper knowledgeHelper, ReteEvaluator reteEvaluator, FactHandleLookup fhLookup) { - this.reteEvaluator = reteEvaluator; + DroolsImpl(KnowledgeHelper knowledgeHelper, ValueResolver valueResolver, FactHandleLookup fhLookup) { + this.reteEvaluator = (ReteEvaluator) valueResolver; this.knowledgeHelper = knowledgeHelper; this.fhLookup = fhLookup; } @@ -73,7 +75,7 @@ public void insertAsync(Object object) { @Override public RuleImpl getRule() { - return knowledgeHelper.getRule(); + return (RuleImpl) knowledgeHelper.getRule(); } @Override @@ -112,12 +114,12 @@ public void cancelMatch( Match match ) { @Override public void update(Object object, String... modifiedProperties) { - org.drools.core.util.bitmask.BitMask mask = calculateUpdateBitMask(reteEvaluator.getKnowledgeBase(), object, modifiedProperties); + org.drools.util.bitmask.BitMask mask = calculateUpdateBitMask(reteEvaluator.getKnowledgeBase(), object, modifiedProperties); knowledgeHelper.update( getFactHandleForObject( object ), mask, object.getClass() ); } - private InternalFactHandle getFactHandleForObject( Object object ) { - InternalFactHandle fh = fhLookup.get(object); + private FactHandle getFactHandleForObject( Object object ) { + FactHandle fh = fhLookup.get(object); return fh != null ? fh : reteEvaluator.getFactHandle( object ); } @@ -191,7 +193,7 @@ public WorkingMemory getWorkingMemory() { return knowledgeHelper.getWorkingMemory(); } - public Tuple getTuple() { + public BaseTuple getTuple() { return knowledgeHelper.getTuple(); } } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/FactHandleLookup.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/FactHandleLookup.java index 940e260b5fb..96696ef5b00 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/FactHandleLookup.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/FactHandleLookup.java @@ -1,29 +1,33 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.modelcompiler.consequence; import java.util.IdentityHashMap; import java.util.Map; -import org.drools.core.common.InternalFactHandle; +import org.kie.api.runtime.rule.FactHandle; public interface FactHandleLookup { - void put( Object obj, InternalFactHandle fh ); + void put( Object obj, FactHandle fh); - InternalFactHandle get( Object obj ); + FactHandle get( Object obj ); void clear(); @@ -39,12 +43,12 @@ static FactHandleLookup create(int arity) { class Empty implements FactHandleLookup { @Override - public void put( Object obj, InternalFactHandle fh ) { + public void put( Object obj, FactHandle fh ) { throw new UnsupportedOperationException(); } @Override - public InternalFactHandle get( Object obj ) { + public FactHandle get( Object obj ) { return null; } @@ -55,16 +59,16 @@ public void clear() { } class Single implements FactHandleLookup { private Object obj; - private InternalFactHandle fh; + private FactHandle fh; @Override - public void put( Object obj, InternalFactHandle fh ) { + public void put( Object obj, FactHandle fh ) { this.obj = obj; this.fh = fh; } @Override - public InternalFactHandle get( Object obj ) { + public FactHandle get( Object obj ) { return this.obj == obj ? fh : null; } @@ -79,11 +83,11 @@ class Double implements FactHandleLookup { private Object obj1; private Object obj2; - private InternalFactHandle fh1; - private InternalFactHandle fh2; + private FactHandle fh1; + private FactHandle fh2; @Override - public void put( Object obj, InternalFactHandle fh ) { + public void put( Object obj, FactHandle fh ) { if ( this.obj1 == null) { this.obj1 = obj; this.fh1 = fh; @@ -94,7 +98,7 @@ public void put( Object obj, InternalFactHandle fh ) { } @Override - public InternalFactHandle get( Object obj ) { + public FactHandle get( Object obj ) { return this.obj1 == obj ? fh1 : ( this.obj2 == obj ? fh2 : null ); } @@ -109,15 +113,15 @@ public void clear() { class Multi implements FactHandleLookup { - private final Map map = new IdentityHashMap<>(); + private final Map map = new IdentityHashMap<>(); @Override - public void put( Object obj, InternalFactHandle fh ) { + public void put( Object obj, FactHandle fh ) { map.put( obj, fh ); } @Override - public InternalFactHandle get( Object obj ) { + public FactHandle get( Object obj ) { return map.get( obj ); } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/LambdaConsequence.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/LambdaConsequence.java index 5366ef0085a..392ab1dbfa2 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/LambdaConsequence.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/consequence/LambdaConsequence.java @@ -1,55 +1,60 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.consequence; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.consequence.Consequence; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.reteoo.Tuple; import org.drools.model.Variable; +import org.kie.api.runtime.rule.FactHandle; -public class LambdaConsequence implements Consequence { +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +public class LambdaConsequence implements Consequence { // Enable the optimization to extract from the activation tuple the arguments to be passed to this // consequence in linear time by traversing the tuple only once. private static final boolean ENABLE_LINEARIZED_ARGUMENTS_RETRIEVAL_OPTIMIZATION = true; private final org.drools.model.Consequence consequence; - private final boolean enabledTupleOptimization; - private Declaration[] requiredDeclarations; + private final int factsNr; + private final boolean enabledTupleOptimization; + private Declaration[] requiredDeclarations; private TupleFactSupplier[] factSuppliers; - private GlobalSupplier[] globalSuppliers; - private Object[] facts; + private GlobalSupplier[] globalSuppliers; + private Object[] facts; - private FactHandleLookup fhLookup; + private FactHandleLookup fhLookup; public LambdaConsequence( org.drools.model.Consequence consequence, boolean enabledTupleOptimization) { this.consequence = consequence; this.enabledTupleOptimization = ENABLE_LINEARIZED_ARGUMENTS_RETRIEVAL_OPTIMIZATION & enabledTupleOptimization; + this.factsNr = consequence.getVariables().length + ( consequence.isUsingDrools() ? 1 : 0 ); } @Override @@ -58,27 +63,27 @@ public String getName() { } @Override - public void evaluate( KnowledgeHelper knowledgeHelper, ReteEvaluator reteEvaluator ) throws Exception { + public void evaluate(KnowledgeHelper knowledgeHelper, ValueResolver valueResolver) throws Exception { if ( this.requiredDeclarations == null ) { Declaration[] declarations = (( RuleTerminalNode ) knowledgeHelper.getMatch().getTuple().getTupleSink()).getRequiredDeclarations(); if (enabledTupleOptimization) { this.requiredDeclarations = declarations; } else { - Object[] facts = declarationsToFacts( knowledgeHelper, reteEvaluator, knowledgeHelper.getTuple(), declarations, consequence.getVariables(), consequence.isUsingDrools() ); + Object[] facts = declarationsToFacts( knowledgeHelper, valueResolver, knowledgeHelper.getTuple(), declarations, consequence.getVariables(), consequence.isUsingDrools() ); consequence.getBlock().execute( facts ); return; } } // declarations is not null when first level rule is AND so it is possible to calculate them upfront - consequence.getBlock().execute( fetchFacts( knowledgeHelper, reteEvaluator ) ); + consequence.getBlock().execute( fetchFacts( knowledgeHelper, valueResolver ) ); } - public static Object[] declarationsToFacts(ReteEvaluator reteEvaluator, Tuple tuple, Declaration[] declarations, Variable[] vars ) { + public static Object[] declarationsToFacts(ValueResolver reteEvaluator, BaseTuple tuple, Declaration[] declarations, Variable[] vars ) { return declarationsToFacts( null, reteEvaluator, tuple, declarations, vars, false ); } - private static Object[] declarationsToFacts( KnowledgeHelper knowledgeHelper, ReteEvaluator reteEvaluator, Tuple tuple, Declaration[] declarations, Variable[] vars, boolean useDrools ) { + private static Object[] declarationsToFacts( KnowledgeHelper knowledgeHelper, ValueResolver valueResolver, BaseTuple tuple, Declaration[] declarations, Variable[] vars, boolean useDrools ) { Object[] objects; FactHandleLookup fhLookup = useDrools ? new FactHandleLookup.Multi() : null; @@ -86,7 +91,7 @@ private static Object[] declarationsToFacts( KnowledgeHelper knowledgeHelper, Re if ( useDrools ) { index++; objects = new Object[vars.length + 1]; - objects[0] = new DroolsImpl( knowledgeHelper, reteEvaluator, fhLookup ); + objects[0] = new DroolsImpl( knowledgeHelper, valueResolver, fhLookup ); } else { objects = new Object[vars.length]; } @@ -95,27 +100,28 @@ private static Object[] declarationsToFacts( KnowledgeHelper knowledgeHelper, Re for (Variable var : vars) { if ( var.isFact() ) { Declaration declaration = declarations[declrCounter++]; - InternalFactHandle fh = getOriginalFactHandle( tuple.get( declaration ) ); + FactHandle fh = getOriginalFactHandle(tuple.get(declaration)); if ( useDrools ) { fhLookup.put( fh.getObject(), fh ); } - objects[index++] = declaration.getValue( reteEvaluator, fh ); + objects[index++] = declaration.getValue( valueResolver, fh ); } else { - objects[index++] = reteEvaluator.getGlobal( var.getName() ); + objects[index++] = valueResolver.getGlobal( var.getName() ); } } return objects; } - private static InternalFactHandle getOriginalFactHandle( InternalFactHandle handle ) { + private static FactHandle getOriginalFactHandle( FactHandle handle ) { if ( !handle.isEvent() ) { return handle; } - InternalFactHandle linkedFH = (( EventFactHandle ) handle).getLinkedFactHandle(); + FactHandle linkedFH = ((DefaultEventHandle) handle).getLinkedFactHandle(); return linkedFH != null ? linkedFH : handle; } - private Object[] fetchFacts( KnowledgeHelper knowledgeHelper, ReteEvaluator reteEvaluator ) { + private Object[] fetchFacts( KnowledgeHelper knowledgeHelper, ValueResolver valueResolver ) { + ReteEvaluator reteEvaluator = (ReteEvaluator) valueResolver; if (factSuppliers == null) { return initConsequence(knowledgeHelper, reteEvaluator); } @@ -123,12 +129,10 @@ private Object[] fetchFacts( KnowledgeHelper knowledgeHelper, ReteEvaluator rete Object[] facts; FactHandleLookup fhLookup = null; if (reteEvaluator.getRuleSessionConfiguration().isThreadSafe()) { + facts = new Object[factsNr]; if ( consequence.isUsingDrools() ) { - facts = new Object[consequence.getVariables().length + 1]; fhLookup = FactHandleLookup.create( factSuppliers.length ); facts[0] = new DroolsImpl( knowledgeHelper, reteEvaluator, fhLookup ); - } else { - facts = new Object[consequence.getVariables().length]; } } else { facts = this.facts; @@ -139,7 +143,7 @@ private Object[] fetchFacts( KnowledgeHelper knowledgeHelper, ReteEvaluator rete } } - Tuple tuple = knowledgeHelper.getTuple(); + BaseTuple tuple = knowledgeHelper.getTuple(); for (int j = 0; j < factSuppliers.length; j++) { tuple = factSuppliers[j].resolveAndStore(facts, reteEvaluator, tuple, fhLookup); } @@ -159,7 +163,7 @@ private Object[] initConsequence( KnowledgeHelper knowledgeHelper, ReteEvaluator return consequence.isUsingDrools() ? new Object[] { new DroolsImpl( knowledgeHelper, reteEvaluator, null ) } : new Object[0]; } - Tuple tuple = knowledgeHelper.getTuple(); + BaseTuple tuple = knowledgeHelper.getTuple(); List factSuppliers = new ArrayList<>(); List globalSuppliers = new ArrayList<>(); @@ -193,7 +197,7 @@ private Object[] initConsequence( KnowledgeHelper knowledgeHelper, ReteEvaluator Collections.sort( factSuppliers ); Collections.sort( globalSuppliers ); - Tuple current = tuple; + BaseTuple current = tuple; boolean first = true; for (TupleFactSupplier tupleFactSupplier : factSuppliers) { int targetTupleIndex = tupleFactSupplier.declarationTupleIndex; @@ -262,7 +266,7 @@ private void setFirst(boolean first) { } } - public Tuple resolveAndStore(Object[] facts, ReteEvaluator reteEvaluator, Tuple tuple, FactHandleLookup fhLookup) { + public BaseTuple resolveAndStore(Object[] facts, ValueResolver reteEvaluator, BaseTuple tuple, FactHandleLookup fhLookup) { // traverses the tuple of as many steps as distance between the former supplier and this one for (int i = 0; i < offsetFromPrior; i++) { tuple = tuple.getParent(); @@ -271,8 +275,8 @@ public Tuple resolveAndStore(Object[] facts, ReteEvaluator reteEvaluator, Tuple return tuple; } - public void resolveAndStore(Object[] facts, ReteEvaluator reteEvaluator, InternalFactHandle factHandle, FactHandleLookup fhLookup) { - InternalFactHandle fh = getOriginalFactHandle( factHandle ); + public void resolveAndStore(Object[] facts, ValueResolver reteEvaluator, FactHandle factHandle, FactHandleLookup fhLookup) { + FactHandle fh = getOriginalFactHandle( factHandle ); if ( useDrools ) { fhLookup.put( fh.getObject(), fh ); } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/AbstractConstraint.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/AbstractConstraint.java index 2dbdfc09a0a..b61d50a693d 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/AbstractConstraint.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/AbstractConstraint.java @@ -1,24 +1,26 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.IntervalProviderConstraint; -import org.drools.core.rule.MutableTypeConstraint; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.IntervalProviderConstraint; +import org.drools.base.rule.MutableTypeConstraint; public abstract class AbstractConstraint extends MutableTypeConstraint implements IndexableConstraint, IntervalProviderConstraint { @Override diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/BindingEvaluator.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/BindingEvaluator.java index f0e62c925a4..9044cad2891 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/BindingEvaluator.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/BindingEvaluator.java @@ -1,26 +1,28 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; import org.drools.model.Binding; +import org.kie.api.runtime.rule.FactHandle; public class BindingEvaluator { private final Declaration[] declarations; @@ -31,7 +33,7 @@ public BindingEvaluator( Declaration[] declarations, Binding binding ) { this.binding = binding; } - public Object evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator, Declaration[] declarations, Declaration[] innerDeclarations ) { + public Object evaluate( FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator, Declaration[] declarations, Declaration[] innerDeclarations ) { return evaluate( getArguments( handle, tuple, reteEvaluator, declarations, innerDeclarations ) ); } @@ -43,7 +45,7 @@ public Declaration[] getDeclarations() { return declarations; } - private Object[] getArguments( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator, Declaration[] declarations, Declaration[] innerDeclarations ) { + private Object[] getArguments( FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator, Declaration[] declarations, Declaration[] innerDeclarations ) { Object[] params = new Object[declarations.length + innerDeclarations.length]; for (int i = 0; i < innerDeclarations.length; i++) { params[i] = getArgument( handle, reteEvaluator, innerDeclarations[i], tuple ); @@ -54,7 +56,7 @@ private Object[] getArguments( InternalFactHandle handle, Tuple tuple, ReteEvalu return params; } - public static Object getArgument(InternalFactHandle handle, ReteEvaluator reteEvaluator, Declaration declaration, Tuple tuple ) { + public static Object getArgument(FactHandle handle, ValueResolver reteEvaluator, Declaration declaration, BaseTuple tuple) { int tupleIndex = declaration.getTupleIndex(); return declaration.getValue(reteEvaluator, tuple != null && tupleIndex < tuple.size() ? tuple.get(tupleIndex) : handle); } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/BindingInnerObjectEvaluator.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/BindingInnerObjectEvaluator.java index dc3395d2d90..fe43cae320f 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/BindingInnerObjectEvaluator.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/BindingInnerObjectEvaluator.java @@ -1,27 +1,29 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; import org.drools.model.Binding; import org.drools.model.view.BindViewItem1; +import org.kie.api.runtime.rule.FactHandle; public class BindingInnerObjectEvaluator extends BindingEvaluator { @@ -30,7 +32,7 @@ public BindingInnerObjectEvaluator( Binding binding ) { } @Override - public Object evaluate(InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator, Declaration[] declarations, Declaration[] innerDeclarations ) { + public Object evaluate(FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator, Declaration[] declarations, Declaration[] innerDeclarations) { return (( BindViewItem1 ) binding).eval( handle.getObject() ); } } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/CombinedConstraint.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/CombinedConstraint.java index 12160722642..55c9e0e0245 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/CombinedConstraint.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/CombinedConstraint.java @@ -1,38 +1,39 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; import java.util.List; import java.util.stream.Stream; -import org.drools.core.RuleBaseConfiguration; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.reteoo.Tuple; -import org.drools.core.time.Interval; -import org.drools.core.util.AbstractHashTable; -import org.drools.core.util.index.IndexUtil; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.drools.base.util.FieldIndex; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.model.Constraint; import org.drools.modelcompiler.constraints.LambdaConstraint.LambdaContextEntry; import org.kie.api.KieBaseConfiguration; +import org.kie.api.runtime.rule.FactHandle; import static java.util.stream.Collectors.toList; @@ -59,8 +60,8 @@ public boolean isIndexable( short nodeType, KieBaseConfiguration config) { } @Override - public IndexUtil.ConstraintType getConstraintType() { - return IndexUtil.ConstraintType.UNKNOWN; + public ConstraintTypeOperator getConstraintType() { + return ConstraintTypeOperator.UNKNOWN; } @Override @@ -69,7 +70,7 @@ public FieldValue getField() { } @Override - public AbstractHashTable.FieldIndex getFieldIndex() { + public FieldIndex getFieldIndex() { throw new UnsupportedOperationException(); } @@ -147,21 +148,21 @@ public boolean equals(Object obj) { } @Override - public boolean isAllowed(InternalFactHandle handle, ReteEvaluator reteEvaluator) { + public boolean isAllowed(FactHandle handle, ValueResolver valueResolver) { return type == OR ? - constraints.stream().anyMatch( c -> c.isAllowed(handle, reteEvaluator) ) : - constraints.stream().allMatch( c -> c.isAllowed(handle, reteEvaluator) ); + constraints.stream().anyMatch( c -> c.isAllowed(handle, valueResolver) ) : + constraints.stream().allMatch( c -> c.isAllowed(handle, valueResolver) ); } @Override - public boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle) { + public boolean isAllowedCachedLeft(ContextEntry context, FactHandle handle) { return type == OR ? constraints.stream().anyMatch( c -> c.isAllowedCachedLeft(context, handle) ) : constraints.stream().allMatch( c -> c.isAllowedCachedLeft(context, handle) ); } @Override - public boolean isAllowedCachedRight(Tuple tuple, ContextEntry context) { + public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) { return type == OR ? constraints.stream().anyMatch( c -> c.isAllowedCachedRight(tuple, context) ) : constraints.stream().allMatch( c -> c.isAllowedCachedRight(tuple, context) ); diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/ConstraintEvaluationException.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/ConstraintEvaluationException.java index 08cf8215a22..81566f941d9 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/ConstraintEvaluationException.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/ConstraintEvaluationException.java @@ -1,20 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; import org.drools.model.functions.PredicateInformation; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/ConstraintEvaluator.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/ConstraintEvaluator.java index 9d5dc1d4330..9c4ee2510da 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/ConstraintEvaluator.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/ConstraintEvaluator.java @@ -1,31 +1,31 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; import java.util.ArrayList; import java.util.List; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.reteoo.Tuple; -import org.drools.core.time.Interval; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.time.Interval; import org.drools.model.BitMask; import org.drools.model.Index; import org.drools.model.SingleConstraint; @@ -35,6 +35,7 @@ import org.drools.model.functions.Predicate4; import org.drools.model.functions.Predicate5; import org.drools.model.functions.PredicateN; +import org.kie.api.runtime.rule.FactHandle; public class ConstraintEvaluator { @@ -123,7 +124,7 @@ private Declaration findPatternAndRequiredDeclaration() { return patternDeclaration; } - public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) { + public boolean evaluate(FactHandle handle, ValueResolver reteEvaluator ) { try { return innerEvaluator.evaluate( handle, reteEvaluator ); } catch (Exception e) { @@ -131,7 +132,7 @@ public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator } } - public boolean evaluate(InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator) { + public boolean evaluate(FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator) { try { return innerEvaluator.evaluate( handle, tuple, reteEvaluator ); } catch (Exception e) { @@ -284,10 +285,10 @@ protected InnerEvaluator( Declaration patternDeclaration ) { this.patternDeclaration = patternDeclaration; } - public abstract boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) throws Exception; - public abstract boolean evaluate(InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator) throws Exception; + public abstract boolean evaluate(FactHandle handle, ValueResolver reteEvaluator ) throws Exception; + public abstract boolean evaluate(FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator) throws Exception; - protected Object getArgument( InternalFactHandle handle, ReteEvaluator reteEvaluator, Declaration declaration, Tuple tuple ) { + protected Object getArgument(FactHandle handle, ValueResolver reteEvaluator, Declaration declaration, BaseTuple tuple ) { return declaration == patternDeclaration ? handle.getObject() : BindingEvaluator.getArgument( handle, reteEvaluator, declaration, tuple ); } @@ -303,12 +304,12 @@ public _1( Declaration patternDeclaration, Declaration declaration, Predicate1 p } @Override - public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate(FactHandle handle, ValueResolver reteEvaluator ) throws Exception { return predicate.test( declaration.getValue( reteEvaluator, handle ) ); } @Override - public boolean evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate(FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration, tuple ) ); } } @@ -325,12 +326,12 @@ public _1_FH( Declaration patternDeclaration, Declaration declaration, Predicate } @Override - public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate( FactHandle handle, ValueResolver reteEvaluator ) throws Exception { return predicate.test( handle.getObject() ); } @Override - public boolean evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate( FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration, tuple ) ); } } @@ -349,12 +350,12 @@ public _2( Declaration patternDeclaration, Declaration declaration1, Declaration } @Override - public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate( FactHandle handle, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration1, null ), getArgument( handle, reteEvaluator, declaration2, null ) ); } @Override - public boolean evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate( FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration1, tuple ), getArgument( handle, reteEvaluator, declaration2, tuple ) ); } } @@ -376,14 +377,14 @@ public _3( Declaration patternDeclaration, Declaration declaration1, Declaration } @Override - public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate(FactHandle handle, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration1, null ), getArgument( handle, reteEvaluator, declaration2, null ), getArgument( handle, reteEvaluator, declaration3, null )); } @Override - public boolean evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate(FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration1, tuple ), getArgument( handle, reteEvaluator, declaration2, tuple ), getArgument( handle, reteEvaluator, declaration3, tuple )); @@ -409,7 +410,7 @@ public _4( Declaration patternDeclaration, Declaration declaration1, Declaration } @Override - public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate( FactHandle handle, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration1, null ), getArgument( handle, reteEvaluator, declaration2, null ), getArgument( handle, reteEvaluator, declaration3, null ), @@ -417,7 +418,7 @@ public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator } @Override - public boolean evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate( FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration1, tuple ), getArgument( handle, reteEvaluator, declaration2, tuple ), getArgument( handle, reteEvaluator, declaration3, tuple ), @@ -447,7 +448,7 @@ public _5( Declaration patternDeclaration, Declaration declaration1, Declaration } @Override - public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate( FactHandle handle, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration1, null ), getArgument( handle, reteEvaluator, declaration2, null ), getArgument( handle, reteEvaluator, declaration3, null ), @@ -456,7 +457,7 @@ public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator } @Override - public boolean evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate( FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getArgument( handle, reteEvaluator, declaration1, tuple ), getArgument( handle, reteEvaluator, declaration2, tuple ), getArgument( handle, reteEvaluator, declaration3, tuple ), @@ -477,16 +478,16 @@ public _N( Declaration patternDeclaration, Declaration[] declarations, Predicate } @Override - public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate(FactHandle handle, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getInvocationArgs( handle, null, reteEvaluator ) ); } @Override - public boolean evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) throws Exception { + public boolean evaluate(FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) throws Exception { return predicate.test( getInvocationArgs( handle, tuple, reteEvaluator ) ); } - private Object[] getInvocationArgs( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) { + private Object[] getInvocationArgs(FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) { Object[] params = new Object[declarations.length]; for (int i = 0; i < declarations.length; i++) { params[i] = getArgument( handle, reteEvaluator, declarations[i], tuple ); diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/GenericCollectAccumulator.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/GenericCollectAccumulator.java new file mode 100644 index 00000000000..428d3e22098 --- /dev/null +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/GenericCollectAccumulator.java @@ -0,0 +1,98 @@ +/** + * 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. + */ +package org.drools.modelcompiler.constraints; + +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Accumulator; +import org.kie.api.runtime.rule.FactHandle; + +import java.util.Collection; +import java.util.function.Supplier; + +public class GenericCollectAccumulator implements Accumulator { + + private final Supplier collectTargetSupplier; + + public GenericCollectAccumulator(Supplier collectTargetSupplier) { + this.collectTargetSupplier = collectTargetSupplier; + } + + @Override + public Object createContext() { + return null; + } + + + @Override + public Object init(Object workingMemoryContext, + Object context, + BaseTuple leftTuple, + Declaration[] declarations, + ValueResolver valueResolver) { + return collectTargetSupplier.get(); + } + + @Override + public Object accumulate(Object workingMemoryContext, + Object context, + BaseTuple leftTuple, + FactHandle handle, + Declaration[] declarations, + Declaration[] innerDeclarations, + ValueResolver valueResolver) { + Object value = handle.getObject(); + ((Collection) context).add( value ); + return value; + } + + @Override + public boolean tryReverse(Object workingMemoryContext, + Object context, + BaseTuple leftTuple, + FactHandle handle, + Object value, + Declaration[] declarations, + Declaration[] innerDeclarations, + ValueResolver valueResolver) { + ((Collection) context).remove( value ); + return true; + } + + @Override + public Object getResult(Object workingMemoryContext, + Object context, + BaseTuple leftTuple, + Declaration[] declarations, + ValueResolver valueResolver) { + return context; + } + + @Override + public boolean supportsReverse() { + return true; + } + + @Override + public Object createWorkingMemoryContext() { + // no working memory context needed + return null; + } +} diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaAccumulator.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaAccumulator.java index 41c62cdb193..edef9a37012 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaAccumulator.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaAccumulator.java @@ -1,34 +1,36 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.SubnetworkTuple; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Accumulator; -import org.kie.api.runtime.rule.AccumulateFunction; - import java.io.Serializable; import java.util.Collection; import java.util.Objects; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.core.common.ReteEvaluator; +import org.drools.core.reteoo.SubnetworkTuple; +import org.kie.api.runtime.rule.AccumulateFunction; +import org.kie.api.runtime.rule.FactHandle; + public abstract class LambdaAccumulator implements Accumulator { @Override @@ -66,18 +68,18 @@ public Object createContext() { } @Override - public Object init(Object workingMemoryContext, Object context, Tuple leftTuple, Declaration[] declarations, ReteEvaluator reteEvaluator) { + public Object init(Object workingMemoryContext, Object context, BaseTuple leftTuple, Declaration[] declarations, ValueResolver valueResolver) { context = accumulateFunction.initContext( (Serializable) context ); return context; } @Override - public Object accumulate(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, ReteEvaluator reteEvaluator) { - final Object accumulatedObject = getAccumulatedObject(declarations, innerDeclarations, handle, leftTuple, reteEvaluator); + public Object accumulate(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, ValueResolver valueResolver) { + final Object accumulatedObject = getAccumulatedObject(declarations, innerDeclarations, handle, leftTuple, (ReteEvaluator) valueResolver); return accumulateFunction.accumulateValue( (Serializable) context, accumulatedObject); } - protected abstract Object getAccumulatedObject( Declaration[] declarations, Declaration[] innerDeclarations, InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ); + protected abstract Object getAccumulatedObject( Declaration[] declarations, Declaration[] innerDeclarations, FactHandle handle, BaseTuple tuple, ReteEvaluator reteEvaluator ); @Override public boolean supportsReverse() { @@ -85,8 +87,8 @@ public boolean supportsReverse() { } @Override - public boolean tryReverse(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, Object value, - Declaration[] declarations, Declaration[] innerDeclarations, ReteEvaluator reteEvaluator) { + public boolean tryReverse(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, Object value, + Declaration[] declarations, Declaration[] innerDeclarations, ValueResolver valueResolver) { if (value == null) { throw new IllegalStateException("Reversing a not existing accumulated object for fact " + handle); } @@ -94,7 +96,7 @@ public boolean tryReverse(Object workingMemoryContext, Object context, Tuple lef } @Override - public Object getResult(Object workingMemoryContext, Object context, Tuple leftTuple, Declaration[] declarations, ReteEvaluator reteEvaluator) { + public Object getResult(Object workingMemoryContext, Object context, BaseTuple leftTuple, Declaration[] declarations, ValueResolver valueResolver) { try { return accumulateFunction.getResult( (Serializable) context ); } catch (Exception e) { @@ -113,7 +115,7 @@ public BindingAcc(AccumulateFunction accumulateFunction, Collection sour } @Override - protected Object getAccumulatedObject( Declaration[] declarations, Declaration[] innerDeclarations, InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) { + protected Object getAccumulatedObject( Declaration[] declarations, Declaration[] innerDeclarations, FactHandle handle, BaseTuple tuple, ReteEvaluator reteEvaluator ) { Object accumulateObject = handle.getObject(); if (accumulateObject instanceof SubnetworkTuple ) { Declaration[] bindingDeclarations = binding.getDeclarations(); @@ -150,7 +152,7 @@ public NotBindingAcc(AccumulateFunction accumulateFunction) { } @Override - protected Object getAccumulatedObject( Declaration[] declarations, Declaration[] innerDeclarations, InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) { + protected Object getAccumulatedObject( Declaration[] declarations, Declaration[] innerDeclarations, FactHandle handle, BaseTuple tuple, ReteEvaluator reteEvaluator ) { Object accumulateObject = handle.getObject(); if (accumulateObject instanceof SubnetworkTuple && declarations.length > 0) { return declarations[0].getValue( ( SubnetworkTuple ) accumulateObject ); @@ -170,7 +172,7 @@ public FixedValueAcc(AccumulateFunction accumulateFunction, Object value) { } @Override - protected Object getAccumulatedObject( Declaration[] declarations, Declaration[] innerDeclarations, InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) { + protected Object getAccumulatedObject( Declaration[] declarations, Declaration[] innerDeclarations, FactHandle handle, BaseTuple tuple, ReteEvaluator reteEvaluator ) { return value; } } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaConstraint.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaConstraint.java index d7c2cb24248..39266e1fdfa 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaConstraint.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaConstraint.java @@ -1,44 +1,45 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.List; - -import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ValueType; -import org.drools.core.base.field.ObjectFieldImpl; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.PropertySpecificUtil; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.base.ObjectType; -import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.accessor.TupleValueExtractor; -import org.drools.core.time.Interval; -import org.drools.core.util.AbstractHashTable.FieldIndex; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.util.index.IndexUtil; +import java.util.Optional; + +import org.drools.base.base.ObjectType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.base.field.ObjectFieldImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.reteoo.PropertySpecificUtil; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.TupleValueExtractor; +import org.drools.base.time.Interval; +import org.drools.base.util.FieldIndex; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.drools.util.bitmask.BitMask; import org.drools.model.AlphaIndex; import org.drools.model.BetaIndex; import org.drools.model.BetaIndex2; @@ -52,9 +53,10 @@ import org.drools.model.functions.Function4; import org.drools.model.functions.PredicateInformation; import org.kie.api.KieBaseConfiguration; +import org.kie.api.runtime.rule.FactHandle; -import static org.drools.core.base.ValueType.determineValueType; -import static org.drools.core.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; +import static org.drools.base.base.ValueType.determineValueType; +import static org.drools.base.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; import static org.drools.modelcompiler.util.EvaluationUtil.adaptBitMask; public class LambdaConstraint extends AbstractConstraint { @@ -132,15 +134,18 @@ public void replaceDeclaration(Declaration oldDecl, Declaration newDecl) { } } + /* + * pattern is not used in this method because reactOnProperties are already filtered by ExpressionTyper.addReactOnPropertyForArgument + */ @Override - public BitMask getListenedPropertyMask( ObjectType objectType, List settableProperties ) { + public BitMask getListenedPropertyMask( Optional pattern, ObjectType objectType, List settableProperties ) { BitMask mask = adaptBitMask( evaluator.getReactivityBitMask() ); if (mask != null) { return mask; } if (evaluator.getReactiveProps().length == 0) { - return super.getListenedPropertyMask( objectType, settableProperties ); + return super.getListenedPropertyMask( pattern, objectType, settableProperties ); } mask = getEmptyPropertyReactiveMask(settableProperties.size()); @@ -173,16 +178,16 @@ public Interval getInterval() { } @Override - public boolean isAllowed(InternalFactHandle handle, ReteEvaluator reteEvaluator) { + public boolean isAllowed(FactHandle handle, ValueResolver valueResolver) { try { - return evaluator.evaluate(handle, reteEvaluator); + return evaluator.evaluate(handle, valueResolver); } catch (RuntimeException e) { throw new ConstraintEvaluationException(predicateInformation, e); } } @Override - public boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle) { + public boolean isAllowedCachedLeft(ContextEntry context, FactHandle handle) { LambdaContextEntry lambdaContext = ((LambdaContextEntry) context); try { return evaluator.evaluate(handle, lambdaContext.getTuple(), lambdaContext.getReteEvaluator()); @@ -192,7 +197,7 @@ public boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle hand } @Override - public boolean isAllowedCachedRight(Tuple tuple, ContextEntry context) { + public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) { LambdaContextEntry lambdaContext = ((LambdaContextEntry) context); try { return evaluator.evaluate(lambdaContext.getHandle(), tuple, lambdaContext.getReteEvaluator()); @@ -217,27 +222,27 @@ public boolean isIndexable( short nodeType, KieBaseConfiguration config) { } @Override - public IndexUtil.ConstraintType getConstraintType() { + public ConstraintTypeOperator getConstraintType() { Index index = evaluator.getIndex(); if (index != null) { switch (index.getConstraintType()) { case EQUAL: - return IndexUtil.ConstraintType.EQUAL; + return ConstraintTypeOperator.EQUAL; case NOT_EQUAL: - return IndexUtil.ConstraintType.NOT_EQUAL; + return ConstraintTypeOperator.NOT_EQUAL; case GREATER_THAN: - return IndexUtil.ConstraintType.GREATER_THAN; + return ConstraintTypeOperator.GREATER_THAN; case GREATER_OR_EQUAL: - return IndexUtil.ConstraintType.GREATER_OR_EQUAL; + return ConstraintTypeOperator.GREATER_OR_EQUAL; case LESS_THAN: - return IndexUtil.ConstraintType.LESS_THAN; + return ConstraintTypeOperator.LESS_THAN; case LESS_OR_EQUAL: - return IndexUtil.ConstraintType.LESS_OR_EQUAL; + return ConstraintTypeOperator.LESS_OR_EQUAL; case RANGE: - return IndexUtil.ConstraintType.RANGE; + return ConstraintTypeOperator.RANGE; } } - return IndexUtil.ConstraintType.UNKNOWN; + return ConstraintTypeOperator.UNKNOWN; } @Override @@ -276,18 +281,18 @@ public PredicateInformation getPredicateInformation() { public static class LambdaContextEntry implements ContextEntry { - private Tuple tuple; - private InternalFactHandle handle; + private BaseTuple tuple; + private FactHandle handle; - private transient ReteEvaluator reteEvaluator; + private transient ValueResolver valueResolver; - public void updateFromTuple(ReteEvaluator reteEvaluator, Tuple tuple) { + public void updateFromTuple(ValueResolver valueResolver, BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; } - public void updateFromFactHandle(ReteEvaluator reteEvaluator, InternalFactHandle handle) { - this.reteEvaluator = reteEvaluator; + public void updateFromFactHandle(ValueResolver valueResolver, FactHandle handle) { + this.valueResolver = valueResolver; this.handle = handle; } @@ -296,7 +301,7 @@ public void resetTuple() { } public void resetFactHandle() { - reteEvaluator = null; + valueResolver = null; handle = null; } @@ -306,20 +311,20 @@ public void writeExternal(ObjectOutput out ) throws IOException { } public void readExternal(ObjectInput in ) throws IOException, ClassNotFoundException { - tuple = (Tuple)in.readObject(); - handle = (InternalFactHandle) in.readObject(); + tuple = (BaseTuple) in.readObject(); + handle = (FactHandle) in.readObject(); } - public Tuple getTuple() { + public BaseTuple getTuple() { return tuple; } - public InternalFactHandle getHandle() { + public FactHandle getHandle() { return handle; } - public ReteEvaluator getReteEvaluator() { - return reteEvaluator; + public ValueResolver getReteEvaluator() { + return valueResolver; } public ContextEntry getNext() { @@ -379,8 +384,8 @@ public IndexValueExtractor1( Declaration d1, Function1 extractor, ValueType valu } @Override - public Object getValue( ReteEvaluator reteEvaluator, Tuple tuple ) { - return extractor.apply( d1.getValue( reteEvaluator, tuple ) ); + public Object getValue( ValueResolver valueResolver, BaseTuple tuple ) { + return extractor.apply( d1.getValue( valueResolver, tuple ) ); } @Override @@ -417,8 +422,8 @@ public ValueType getValueType() { } @Override - public Object getValue( ReteEvaluator reteEvaluator, Tuple tuple ) { - return extractor.apply( d1.getValue( reteEvaluator, tuple ), d2.getValue( reteEvaluator, tuple ) ); + public Object getValue( ValueResolver valueResolver, BaseTuple tuple ) { + return extractor.apply( d1.getValue( valueResolver, tuple ), d2.getValue( valueResolver, tuple ) ); } @Override @@ -459,8 +464,8 @@ public ValueType getValueType() { } @Override - public Object getValue( ReteEvaluator reteEvaluator, Tuple tuple ) { - return extractor.apply( d1.getValue( reteEvaluator, tuple ), d2.getValue( reteEvaluator, tuple ), d3.getValue( reteEvaluator, tuple ) ); + public Object getValue( ValueResolver valueResolver, BaseTuple tuple ) { + return extractor.apply( d1.getValue( valueResolver, tuple ), d2.getValue( valueResolver, tuple ), d3.getValue( valueResolver, tuple ) ); } @Override @@ -505,8 +510,8 @@ public ValueType getValueType() { } @Override - public Object getValue( ReteEvaluator reteEvaluator, Tuple tuple ) { - return extractor.apply( d1.getValue( reteEvaluator, tuple ), d2.getValue( reteEvaluator, tuple ), d3.getValue( reteEvaluator, tuple ), d4.getValue( reteEvaluator, tuple ) ); + public Object getValue( ValueResolver valueResolver, BaseTuple tuple ) { + return extractor.apply( d1.getValue( valueResolver, tuple ), d2.getValue( valueResolver, tuple ), d3.getValue( valueResolver, tuple ), d4.getValue( valueResolver, tuple ) ); } @Override diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaDataProvider.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaDataProvider.java index dad37d16d93..6fc7cc95380 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaDataProvider.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaDataProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; import java.util.Arrays; @@ -21,12 +23,11 @@ import java.util.Iterator; import java.util.Objects; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.phreak.ReactiveObject; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.DataProvider; -import org.drools.core.common.PropagationContext; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.phreak.ReactiveObject; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.DataProvider; import org.drools.model.functions.FunctionN; public class LambdaDataProvider implements DataProvider { @@ -52,17 +53,17 @@ public Object createContext() { } @Override - public Iterator getResults(Tuple tuple, ReteEvaluator reteEvaluator, PropagationContext ctx, Object providerContext ) { - Object result = getResult( tuple, reteEvaluator ); + public Iterator getResults(BaseTuple tuple, ValueResolver valueResolver, Object providerContext) { + Object result = getResult(tuple, valueResolver ); if (isReactive()) { if ( result instanceof ReactiveObject ) { - (( ReactiveObject ) result).addLeftTuple( tuple ); + (( ReactiveObject ) result).addTuple(tuple); } if ( result instanceof Iterable ) { for (Object value : ( Iterable ) result) { if ( value instanceof ReactiveObject ) { - (( ReactiveObject ) value).addLeftTuple( tuple ); + (( ReactiveObject ) value).addTuple(tuple); } } } @@ -80,7 +81,7 @@ public Iterator getResults(Tuple tuple, ReteEvaluator reteEvaluator, Propagation return Collections.singletonList( result ).iterator(); } - private Object getResult( Tuple tuple, ReteEvaluator reteEvaluator ) { + private Object getResult( BaseTuple tuple, ValueResolver reteEvaluator ) { Object result; if (declarations.length == 0) { result = providerFunction.apply(); @@ -99,7 +100,7 @@ private Object getResult( Tuple tuple, ReteEvaluator reteEvaluator ) { return result; } - private Object getValueForDeclaration( Tuple tuple, ReteEvaluator reteEvaluator, Declaration declaration ) { + private Object getValueForDeclaration( BaseTuple tuple, ValueResolver reteEvaluator, Declaration declaration ) { return declaration.getExtractor().isGlobal() ? declaration.getExtractor().getValue( reteEvaluator, declaration.getIdentifier() ) : declaration.getValue( reteEvaluator, tuple ); diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaEvalExpression.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaEvalExpression.java index cd8c549b685..6b310e00ba5 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaEvalExpression.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaEvalExpression.java @@ -1,26 +1,28 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.EvalExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.EvalExpression; import org.drools.model.SingleConstraint; public class LambdaEvalExpression implements EvalExpression { @@ -45,8 +47,8 @@ public Object createContext() { } @Override - public boolean evaluate(Tuple tuple, Declaration[] requiredDeclarations, ReteEvaluator reteEvaluator, Object context) throws Exception { - return evaluator.evaluate(tuple.getFactHandle(), tuple, reteEvaluator); + public boolean evaluate(BaseTuple tuple, Declaration[] requiredDeclarations, ValueResolver valueResolver, Object context) throws Exception { + return evaluator.evaluate(tuple.getFactHandle(), tuple, valueResolver); } @Override @@ -76,7 +78,7 @@ public Object createContext() { } @Override - public boolean evaluate(Tuple tuple, Declaration[] requiredDeclarations, ReteEvaluator reteEvaluator, Object context) throws Exception { + public boolean evaluate(BaseTuple tuple, Declaration[] requiredDeclarations, ValueResolver valueResolver, Object context) throws Exception { return true; } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaFieldReader.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaFieldReader.java index 5bba90ed467..45b5257a464 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaFieldReader.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaFieldReader.java @@ -1,27 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.modelcompiler.constraints; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.util.ClassUtils; +import org.drools.base.base.CoreComponentsBuilder; import org.drools.model.functions.Function1; +import org.drools.util.ClassUtils; -import static org.drools.core.util.Drools.hasMvel; +import static org.drools.base.util.Drools.hasMvel; public class LambdaFieldReader implements Function1 { diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaGroupByAccumulate.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaGroupByAccumulate.java index 6bbff186969..b174771277f 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaGroupByAccumulate.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaGroupByAccumulate.java @@ -1,36 +1,41 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.modelcompiler.constraints; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; - -import org.drools.core.common.InternalFactHandle; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.AccumulateContextEntry; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Accumulator; import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.AccumulateNode.AccumulateContextEntry; import org.drools.core.reteoo.AccumulateNode.GroupByContext; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.RightTuple; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Accumulator; import org.drools.core.reteoo.Tuple; import org.drools.core.util.index.TupleList; import org.drools.model.functions.Function1; import org.drools.model.functions.FunctionN; +import org.kie.api.runtime.rule.FactHandle; + +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; public class LambdaGroupByAccumulate extends Accumulate { @@ -50,7 +55,7 @@ public LambdaGroupByAccumulate( Accumulate innerAccumulate, Declaration[] groupi this.groupingFunction1 = groupingDeclarations.length == 1 ? groupingFunction.asFunction1() : null; } - private Object getKey( Tuple tuple, InternalFactHandle handle, ReteEvaluator reteEvaluator ) { + private Object getKey( Tuple tuple, FactHandle handle, ReteEvaluator reteEvaluator ) { if (groupingFunction1 != null) { return groupingFunction1.apply( getValue( tuple, handle, reteEvaluator, groupingDeclarations[0] ) ); } @@ -62,7 +67,7 @@ private Object getKey( Tuple tuple, InternalFactHandle handle, ReteEvaluator ret return groupingFunction.apply( args ); } - private Object getValue( Tuple tuple, InternalFactHandle handle, ReteEvaluator reteEvaluator, Declaration declaration ) { + private Object getValue( Tuple tuple, FactHandle handle, ReteEvaluator reteEvaluator, Declaration declaration ) { // we already have the handle, so avoid tuple iteration if not needed. // (is this really saving time, as get(int index) has pretty much the same check, at best saves some method call) (mdp) return declaration.getValue( reteEvaluator, declaration.getTupleIndex() < tuple.size() ? tuple.get( declaration ).getObject() : handle.getObject() ); @@ -98,40 +103,43 @@ public Object createFunctionContext() { @Override public Object init(Object workingMemoryContext, Object accContext, - Object funcContext, Tuple leftTuple, ReteEvaluator reteEvaluator) { + Object funcContext, BaseTuple leftTuple, ValueResolver valueResolver) { // do nothing here, it's done when the group is first created return funcContext; } @Override - public Object accumulate( Object workingMemoryContext, Object context, - Tuple match, InternalFactHandle handle, ReteEvaluator reteEvaluator ) { + public Object accumulate(Object workingMemoryContext, Object context, + BaseTuple match, FactHandle handle, ValueResolver valueResolver) { GroupByContext groupByContext = ( GroupByContext ) context; + LeftTuple leftTupleMatch = (LeftTuple) match; TupleList tupleList = groupByContext.getGroup(workingMemoryContext, innerAccumulate, - match, getKey(match, handle, reteEvaluator), reteEvaluator); + leftTupleMatch, getKey(leftTupleMatch, handle, (ReteEvaluator) valueResolver), (ReteEvaluator) valueResolver); - return accumulate(workingMemoryContext, match, handle, groupByContext, tupleList, reteEvaluator); + return accumulate(workingMemoryContext, match, handle, groupByContext, tupleList, valueResolver); } @Override - public Object accumulate(Object workingMemoryContext, Tuple match, InternalFactHandle handle, - GroupByContext groupByContext, TupleList tupleList, ReteEvaluator reteEvaluator) { - groupByContext.moveToPropagateTupleList(tupleList); - return innerAccumulate.accumulate(workingMemoryContext, tupleList.getContext(), match, handle, reteEvaluator); + public Object accumulate(Object workingMemoryContext, BaseTuple match, FactHandle handle, + Object groupByContext, Object tupleList, ValueResolver valueResolver) { + TupleList list = (TupleList) tupleList; + ((GroupByContext)groupByContext).moveToPropagateTupleList( list); + return innerAccumulate.accumulate(workingMemoryContext, list.getContext(), match, handle, valueResolver); } @Override - public boolean tryReverse(Object workingMemoryContext, Object context, Tuple leftTuple, InternalFactHandle handle, - RightTuple rightParent, LeftTuple match, ReteEvaluator reteEvaluator) { - TupleList memory = match.getMemory(); + public boolean tryReverse(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, + BaseTuple match, ValueResolver valueResolver) { + LeftTuple tupleMatch = (LeftTuple) match; + TupleList memory = tupleMatch.getMemory(); AccumulateContextEntry entry = memory.getContext(); - boolean reversed = innerAccumulate.tryReverse(workingMemoryContext, entry, leftTuple, handle, rightParent, match, reteEvaluator); + boolean reversed = innerAccumulate.tryReverse(workingMemoryContext, entry, leftTuple, handle, match, valueResolver); if (reversed) { GroupByContext groupByContext = ( GroupByContext ) context; - groupByContext.moveToPropagateTupleList( match.getMemory() ); + groupByContext.moveToPropagateTupleList( tupleMatch.getMemory() ); - memory.remove( match ); + memory.remove( tupleMatch ); if ( memory.isEmpty() ) { groupByContext.removeGroup( entry.getKey() ); memory.getContext().setEmpty( true ); @@ -142,9 +150,9 @@ public boolean tryReverse(Object workingMemoryContext, Object context, Tuple lef } @Override - public Object getResult( Object workingMemoryContext, Object context, Tuple leftTuple, ReteEvaluator reteEvaluator ) { + public Object getResult( Object workingMemoryContext, Object context, BaseTuple leftTuple, ValueResolver valueResolver ) { AccumulateContextEntry entry = (AccumulateContextEntry) context; - return entry.isEmpty() ? null : innerAccumulate.getResult(workingMemoryContext, context, leftTuple, reteEvaluator); + return entry.isEmpty() ? null : innerAccumulate.getResult(workingMemoryContext, context, leftTuple, valueResolver); } @Override diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaReadAccessor.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaReadAccessor.java index 7ce44cefc73..1e5ab4d8088 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaReadAccessor.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/LambdaReadAccessor.java @@ -1,27 +1,29 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; import java.util.Objects; -import org.drools.core.base.ValueType; -import org.drools.core.base.extractors.BaseObjectClassFieldReader; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.base.extractors.BaseObjectClassFieldReader; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.model.functions.Function1; public class LambdaReadAccessor extends BaseObjectClassFieldReader implements ReadAccessor { @@ -38,7 +40,7 @@ public LambdaReadAccessor( int index, Class fieldType, Function1 lambda ) { } @Override - public Object getValue( ReteEvaluator reteEvaluator, Object object ) { + public Object getValue(ValueResolver valueResolver, Object object) { return lambda.apply( object ); } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/SupplierDataProvider.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/SupplierDataProvider.java index 5ad96619460..1e7ebf92492 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/SupplierDataProvider.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/SupplierDataProvider.java @@ -1,30 +1,31 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; import java.util.Arrays; import java.util.Collections; import java.util.Iterator; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.DataProvider; -import org.drools.core.common.PropagationContext; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.DataProvider; import org.drools.model.functions.Function0; public class SupplierDataProvider implements DataProvider { @@ -49,7 +50,7 @@ public Object createContext() { } @Override - public Iterator getResults(Tuple tuple, ReteEvaluator reteEvaluator, PropagationContext ctx, Object providerContext ) { + public Iterator getResults(BaseTuple tuple, ValueResolver valueResolver, Object providerContext) { Object result = null; if (supplierFunction != null) { result = supplierFunction.apply(); diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/TemporalConstraintEvaluator.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/TemporalConstraintEvaluator.java index 2766ae4b0fb..ffb64460da6 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/TemporalConstraintEvaluator.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/TemporalConstraintEvaluator.java @@ -1,35 +1,37 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.reteoo.Tuple; -import org.drools.core.time.Interval; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.time.Interval; +import org.drools.core.common.DefaultEventHandle; import org.drools.model.SingleConstraint; import org.drools.model.constraints.FixedTemporalConstraint; import org.drools.model.constraints.TemporalConstraint; import org.drools.model.functions.Function1; import org.drools.model.functions.temporal.TemporalPredicate; +import org.kie.api.runtime.rule.FactHandle; -import static org.drools.core.util.TimeIntervalParser.getTimestampFromDate; +import static org.drools.base.util.TimeIntervalParser.getTimestampFromDate; public class TemporalConstraintEvaluator extends ConstraintEvaluator { @@ -43,9 +45,9 @@ public TemporalConstraintEvaluator( Declaration[] declarations, Pattern pattern, } @Override - public boolean evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) { + public boolean evaluate(FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) { TemporalConstraint temporalConstraint = (TemporalConstraint) constraint; - InternalFactHandle[] fhs = getBetaInvocationFactHandles( handle, tuple ); + FactHandle[] fhs = getBetaInvocationFactHandles( handle, tuple ); long start1 = getStartTimestamp( fhs[0], reteEvaluator, getDeclarations()[0], temporalConstraint.getF1() ); long duration1 = getDuration( fhs[0] ); long end1 = start1 + duration1; @@ -60,8 +62,8 @@ public boolean evaluate( InternalFactHandle handle, Tuple tuple, ReteEvaluator r } } - private InternalFactHandle[] getBetaInvocationFactHandles( InternalFactHandle handle, Tuple tuple ) { - InternalFactHandle[] fhs = new InternalFactHandle[declarations.length]; + private FactHandle[] getBetaInvocationFactHandles(FactHandle handle, BaseTuple tuple) { + FactHandle[] fhs = new FactHandle[declarations.length]; for (int i = 0; i < fhs.length; i++) { fhs[i] = declarations[i] == patternDeclaration ? handle : @@ -70,21 +72,21 @@ private InternalFactHandle[] getBetaInvocationFactHandles( InternalFactHandle ha return fhs; } - private long getDuration( InternalFactHandle fh ) { - return fh instanceof EventFactHandle ? ( (EventFactHandle ) fh).getDuration() : 0L; + private long getDuration( FactHandle fh ) { + return fh instanceof DefaultEventHandle ? ( (DefaultEventHandle) fh).getDuration() : 0L; } - private long getStartTimestamp( InternalFactHandle fh, ReteEvaluator reteEvaluator, Declaration decl, Function1 f ) { + private long getStartTimestamp( FactHandle fh, ValueResolver reteEvaluator, Declaration decl, Function1 f ) { if (f != null) { return getTimestampFromDate( f.apply( decl.getValue( reteEvaluator, fh.getObject() ) ) ); } - return fh instanceof EventFactHandle && !(decl.getExtractor() instanceof LambdaReadAccessor) ? - ( (EventFactHandle ) fh).getStartTimestamp() : + return fh instanceof DefaultEventHandle && !(decl.getExtractor() instanceof LambdaReadAccessor) ? + ( (DefaultEventHandle) fh).getStartTimestamp() : getTimestampFromDate( decl.getValue( reteEvaluator, fh.getObject() ) ); } @Override - public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator ) { + public boolean evaluate(FactHandle handle, ValueResolver reteEvaluator ) { TemporalConstraint temporalConstraint = (TemporalConstraint) constraint; long start1 = getStartTimestamp( handle, reteEvaluator, getDeclarations()[0], temporalConstraint.getF1() ); long duration1 = getDuration( handle ); @@ -100,7 +102,7 @@ public boolean evaluate( InternalFactHandle handle, ReteEvaluator reteEvaluator } } - private long getNonEventTimestamp(TemporalConstraint temporalConstraint, InternalFactHandle handle, ReteEvaluator reteEvaluator) { + private long getNonEventTimestamp(TemporalConstraint temporalConstraint, FactHandle handle, ValueResolver reteEvaluator) { return constraint instanceof FixedTemporalConstraint ? (( FixedTemporalConstraint ) constraint).getValue() : getStartTimestamp( handle, reteEvaluator, getDeclarations()[1], temporalConstraint.getF2() ); diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/UnificationConstraint.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/UnificationConstraint.java index 0919600aadd..f20a7a9107f 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/UnificationConstraint.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/constraints/UnificationConstraint.java @@ -1,37 +1,38 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.constraints; -import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.DroolsQuery; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.reteoo.Tuple; -import org.drools.core.util.AbstractHashTable.FieldIndex; -import org.drools.core.util.index.IndexUtil; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.util.FieldIndex; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.drools.core.base.DroolsQueryImpl; import org.drools.model.Index; import org.drools.modelcompiler.constraints.LambdaConstraint.LambdaContextEntry; import org.kie.api.KieBaseConfiguration; +import org.kie.api.runtime.rule.FactHandle; public class UnificationConstraint extends MutableTypeConstraint implements IndexableConstraint { @@ -72,8 +73,8 @@ public boolean isIndexable( short nodeType, KieBaseConfiguration config) { } @Override - public IndexUtil.ConstraintType getConstraintType() { - return IndexUtil.ConstraintType.EQUAL; + public ConstraintTypeOperator getConstraintType() { + return ConstraintTypeOperator.EQUAL; } @Override @@ -122,25 +123,25 @@ public boolean isTemporal() { } @Override - public boolean isAllowed( InternalFactHandle handle, ReteEvaluator reteEvaluator ) { + public boolean isAllowed( FactHandle handle, ValueResolver valueResolver) { throw new UnsupportedOperationException(); } @Override - public boolean isAllowedCachedLeft( ContextEntry context, InternalFactHandle handle ) { - return evaluateUnification( handle, ((LambdaContextEntry) context).getTuple(), ((LambdaContextEntry) context).getReteEvaluator() ); + public boolean isAllowedCachedLeft( ContextEntry context, FactHandle handle) { + return evaluateUnification(handle, ((LambdaContextEntry) context).getTuple(), ((LambdaContextEntry) context).getReteEvaluator() ); } @Override - public boolean isAllowedCachedRight( Tuple tuple, ContextEntry context ) { + public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) { return evaluateUnification( ((LambdaContextEntry) context).getHandle(), tuple, ((LambdaContextEntry) context).getReteEvaluator() ); } - private boolean evaluateUnification( InternalFactHandle handle, Tuple tuple, ReteEvaluator reteEvaluator ) { + private boolean evaluateUnification(FactHandle handle, BaseTuple tuple, ValueResolver reteEvaluator ) { if (!unification) { return evaluator.evaluate(handle, tuple, reteEvaluator); } - DroolsQuery query = ( DroolsQuery ) tuple.getObject( 0 ); + DroolsQueryImpl query = (DroolsQueryImpl) tuple.getObject(0); if (query.getVariables()[indexingDeclaration.getExtractor().getIndex()] != null) { return true; } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/dsl/pattern/D.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/dsl/pattern/D.java index 3679668b178..4e9f01d13c7 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/dsl/pattern/D.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/dsl/pattern/D.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.dsl.pattern; import org.drools.model.PatternDSL; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/FactFactory.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/FactFactory.java index d282e5251e7..c774491d5aa 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/FactFactory.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/FactFactory.java @@ -1,31 +1,33 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.facttemplate; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.facttemplates.Event; -import org.drools.core.facttemplates.Fact; -import org.drools.core.facttemplates.FactTemplate; -import org.drools.core.facttemplates.FactTemplateImpl; -import org.drools.core.facttemplates.FieldTemplate; -import org.drools.core.facttemplates.FieldTemplateImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.facttemplates.Event; +import org.drools.base.facttemplates.Fact; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.facttemplates.FactTemplateImpl; +import org.drools.base.facttemplates.FieldTemplate; +import org.drools.base.facttemplates.FieldTemplateImpl; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.model.Prototype; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/HashMapEventImpl.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/HashMapEventImpl.java index 0862baa671c..0b0005f2a79 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/HashMapEventImpl.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/HashMapEventImpl.java @@ -1,27 +1,30 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.facttemplate; import java.util.HashMap; import java.util.Map; +import java.util.UUID; import java.util.concurrent.TimeUnit; -import org.drools.core.facttemplates.Event; -import org.drools.core.facttemplates.FactTemplate; +import org.drools.base.facttemplates.Event; +import org.drools.base.facttemplates.FactTemplate; import static org.drools.model.functions.temporal.TimeUtil.unitToLong; @@ -38,6 +41,12 @@ public HashMapEventImpl(FactTemplate factTemplate, Map valuesMap super(factTemplate, valuesMap); } + public HashMapEventImpl(UUID uuid, FactTemplate factTemplate, Map valuesMap, long timestamp, long expiration) { + super(uuid, factTemplate, valuesMap); + this.timestamp = timestamp; + this.expiration = expiration; + } + @Override public long getTimestamp() { return timestamp; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/HashMapFactImpl.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/HashMapFactImpl.java index c3ee5ac27eb..f036180e228 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/HashMapFactImpl.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/HashMapFactImpl.java @@ -1,29 +1,35 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.facttemplate; +import java.io.Serializable; import java.util.HashMap; import java.util.Map; +import java.util.UUID; -import org.drools.core.facttemplates.Fact; -import org.drools.core.facttemplates.FactTemplate; +import org.drools.base.facttemplates.Fact; +import org.drools.base.facttemplates.FactTemplate; import org.drools.model.PrototypeFact; -public class HashMapFactImpl implements Fact, PrototypeFact { +public class HashMapFactImpl implements Fact, PrototypeFact, Serializable { + + protected final UUID uuid; protected final FactTemplate factTemplate; @@ -34,10 +40,21 @@ public HashMapFactImpl( FactTemplate factTemplate ) { } public HashMapFactImpl( FactTemplate factTemplate, Map valuesMap ) { + this.uuid = UUID.randomUUID(); + this.factTemplate = factTemplate; + this.valuesMap = valuesMap; + } + + public HashMapFactImpl( UUID uuid, FactTemplate factTemplate, Map valuesMap ) { + this.uuid = uuid; this.factTemplate = factTemplate; this.valuesMap = valuesMap; } + public UUID getUuid() { + return uuid; + } + @Override public FactTemplate getFactTemplate() { return factTemplate; @@ -67,4 +84,30 @@ public Map asMap() { public String toString() { return "Fact " + factTemplate.getName() + " with values = " + valuesMap; } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((uuid == null) ? 0 : uuid.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + HashMapFactImpl other = (HashMapFactImpl) obj; + if (uuid == null) { + if (other.uuid != null) + return false; + } else if (!uuid.equals(other.uuid)) + return false; + return true; + } + } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/PrototypeFactFactoryImpl.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/PrototypeFactFactoryImpl.java index 38f103e84dd..65b1c1bfac1 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/PrototypeFactFactoryImpl.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/facttemplate/PrototypeFactFactoryImpl.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.modelcompiler.facttemplate; import java.util.Map; diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/ClassUtil.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/ClassUtil.java index 59d636ef11b..b4c26ca6784 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/ClassUtil.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/ClassUtil.java @@ -1,31 +1,29 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.util; -import java.lang.reflect.ParameterizedType; -import java.lang.reflect.Type; -import java.lang.reflect.TypeVariable; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.WeakHashMap; -import org.drools.core.util.PropertyReactivityUtil; -import org.drools.util.MethodUtils; +import org.drools.base.util.PropertyReactivityUtil; public class ClassUtil { diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/EvaluationUtil.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/EvaluationUtil.java index c13141c96a4..75a52118ffd 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/EvaluationUtil.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/EvaluationUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.util; import java.math.BigDecimal; @@ -29,9 +31,8 @@ import java.util.Optional; import java.util.function.BiPredicate; -import org.drools.core.base.CoercionUtil; -import org.drools.core.time.TimeUtils; -import org.drools.util.DateUtils; +import org.drools.base.time.TimeUtils; +import org.drools.util.CoercionUtil; import org.drools.model.BitMask; import org.drools.model.bitmask.AllSetBitMask; import org.drools.model.bitmask.AllSetButLastBitMask; @@ -39,6 +40,7 @@ import org.drools.model.bitmask.EmptyButLastBitMask; import org.drools.model.bitmask.LongBitMask; import org.drools.model.bitmask.OpenBitSet; +import org.drools.util.DateUtils; public class EvaluationUtil { @@ -303,28 +305,28 @@ public static BigDecimal toBigDecimal(Object obj) { } - public static org.drools.core.util.bitmask.BitMask adaptBitMask(BitMask mask) { + public static org.drools.util.bitmask.BitMask adaptBitMask(BitMask mask) { if (mask == null) { return null; } if (mask instanceof LongBitMask ) { long maskValue = (( LongBitMask ) mask).asLong(); - return maskValue == 0L ? org.drools.core.util.bitmask.EmptyBitMask.get() : new org.drools.core.util.bitmask.LongBitMask( maskValue ); + return maskValue == 0L ? org.drools.util.bitmask.EmptyBitMask.get() : new org.drools.util.bitmask.LongBitMask( maskValue ); } if (mask instanceof EmptyBitMask ) { - return org.drools.core.util.bitmask.EmptyBitMask.get(); + return org.drools.util.bitmask.EmptyBitMask.get(); } if (mask instanceof AllSetBitMask ) { - return org.drools.core.util.bitmask.AllSetBitMask.get(); + return org.drools.util.bitmask.AllSetBitMask.get(); } if (mask instanceof AllSetButLastBitMask ) { - return org.drools.core.util.bitmask.AllSetButLastBitMask.get(); + return org.drools.util.bitmask.AllSetButLastBitMask.get(); } if (mask instanceof EmptyButLastBitMask ) { - return org.drools.core.util.bitmask.EmptyButLastBitMask.get(); + return org.drools.util.bitmask.EmptyButLastBitMask.get(); } if (mask instanceof OpenBitSet ) { - return new org.drools.core.util.bitmask.OpenBitSet( ( (OpenBitSet) mask ).getBits(), ( (OpenBitSet) mask ).getNumWords() ); + return new org.drools.util.bitmask.OpenBitSet( ( (OpenBitSet) mask ).getBits(), ( (OpenBitSet) mask ).getNumWords() ); } throw new IllegalArgumentException( "Unknown bitmask: " + mask ); } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/StringUtil.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/StringUtil.java index 0d43fc5ff09..36c0c719317 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/StringUtil.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/StringUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.util; public class StringUtil { diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/TimerUtil.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/TimerUtil.java index 82b3043e233..7eb4e092798 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/TimerUtil.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/TimerUtil.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.modelcompiler.util; import java.lang.reflect.InvocationTargetException; @@ -19,10 +23,10 @@ import java.text.ParseException; import java.util.Map; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; -import org.drools.core.time.TimeUtils; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.time.TimeUtils; import org.drools.core.time.TimerExpression; import org.drools.core.time.impl.CronExpression; import org.drools.util.ClassUtils; @@ -123,8 +127,8 @@ public Declaration[] getDeclarations() { } @Override - public Object getValue( Tuple leftTuple, Declaration[] declrs, ReteEvaluator reteEvaluator ) { - return declrs[0].getValue( reteEvaluator, leftTuple ); + public Object getValue(BaseTuple leftTuple, Declaration[] declrs, ValueResolver valueResolver) { + return declrs[0].getValue( valueResolver, leftTuple ); } } @@ -143,9 +147,9 @@ public Declaration[] getDeclarations() { } @Override - public Object getValue( Tuple leftTuple, Declaration[] declrs, ReteEvaluator reteEvaluator ) { + public Object getValue(BaseTuple leftTuple, Declaration[] declrs, ValueResolver valueResolver) { try { - return method.invoke( declrs[0].getValue( reteEvaluator, leftTuple ) ); + return method.invoke( declrs[0].getValue( valueResolver, leftTuple ) ); } catch (IllegalAccessException | InvocationTargetException e) { throw new RuntimeException( e ); } @@ -165,7 +169,7 @@ public Declaration[] getDeclarations() { } @Override - public Object getValue( Tuple leftTuple, Declaration[] declrs, ReteEvaluator reteEvaluator ) { + public Object getValue(BaseTuple leftTuple, Declaration[] declrs, ValueResolver valueResolver) { return value; } } diff --git a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/TypeDeclarationUtil.java b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/TypeDeclarationUtil.java index 11d344045d5..8312f44d818 100644 --- a/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/TypeDeclarationUtil.java +++ b/drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/util/TypeDeclarationUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.util; import java.lang.annotation.Annotation; @@ -22,20 +24,20 @@ import java.util.List; import java.util.Map; -import org.drools.util.TypeResolver; -import org.drools.core.factmodel.AccessibleFact; -import org.drools.core.factmodel.AnnotationDefinition; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.util.ClassUtils; -import org.drools.core.util.PropertyReactivityUtil; -import org.drools.core.util.TimeIntervalParser; +import org.drools.base.factmodel.AccessibleFact; +import org.drools.base.factmodel.AnnotationDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.util.PropertyReactivityUtil; +import org.drools.base.util.TimeIntervalParser; import org.drools.model.AnnotationValue; import org.drools.model.TypeMetaData; import org.drools.modelcompiler.constraints.LambdaFieldReader; import org.drools.modelcompiler.constraints.LambdaReadAccessor; +import org.drools.util.ClassUtils; +import org.drools.util.TypeResolver; import org.kie.api.definition.type.Duration; import org.kie.api.definition.type.Expires; import org.kie.api.definition.type.Position; @@ -43,7 +45,7 @@ import org.kie.api.definition.type.Timestamp; import org.kie.internal.builder.conf.PropertySpecificOption; -import static org.drools.core.rule.TypeDeclaration.createTypeDeclarationForBean; +import static org.drools.base.rule.TypeDeclaration.createTypeDeclarationForBean; public class TypeDeclarationUtil { diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/PatternDSLTest.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/PatternDSLTest.java index e1c61f87e38..2425eed5cca 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/PatternDSLTest.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/PatternDSLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler; import java.io.IOException; @@ -24,13 +26,13 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Pattern; import org.drools.core.ClockType; -import org.drools.core.base.ClassObjectType; import org.drools.core.base.accumulators.CollectSetAccumulateFunction; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.Pattern; import org.drools.core.rule.consequence.InternalMatch; import org.drools.model.DSL; import org.drools.model.Global; diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Address.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Address.java index a5c24c4a3f9..51474f4e122 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Address.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Address.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.modelcompiler.domain; public class Address { diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Adult.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Adult.java index c43122a17c2..97e2f3609d0 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Adult.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Adult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.domain; import java.util.List; diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Child.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Child.java index c3c31e16dd9..851cfb508c2 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Child.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Child.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.domain; import java.util.List; diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Man.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Man.java index a193cf097e0..975f5675542 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Man.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Man.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.domain; public class Man extends Adult { diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Pair.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Pair.java index d34850c2510..9252dd68d3f 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Pair.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Pair.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.modelcompiler.domain; public class Pair { diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Person.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Person.java index 61e4ed0df4f..9297b882036 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Person.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Person.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.modelcompiler.domain; import java.math.BigDecimal; diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Relationship.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Relationship.java index 68acc5c20af..a5096db1eb4 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Relationship.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Relationship.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.domain; import org.kie.api.definition.type.Position; diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Result.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Result.java index 07ba182268a..df6a2d285b5 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Result.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Result.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.domain; import java.util.ArrayList; diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/StockFact.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/StockFact.java index 183471069fd..7b63ca19ec2 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/StockFact.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/StockFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.domain; public class StockFact { diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/StockTick.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/StockTick.java index 84b7db9c339..f353ba90ba0 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/StockTick.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/StockTick.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.domain; import java.util.Calendar; diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Toy.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Toy.java index e78706cdf3d..92b4fd9d747 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Toy.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Toy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.domain; import org.drools.core.phreak.AbstractReactiveObject; diff --git a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Woman.java b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Woman.java index a0139bde5b8..2f076dab5bd 100644 --- a/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Woman.java +++ b/drools-model/drools-model-compiler/src/test/java/org/drools/modelcompiler/domain/Woman.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.modelcompiler.domain; public class Woman extends Adult { diff --git a/drools-model/drools-model-compiler/src/test/resources/logback-test.xml b/drools-model/drools-model-compiler/src/test/resources/logback-test.xml index 3d443c55588..c405c425092 100644 --- a/drools-model/drools-model-compiler/src/test/resources/logback-test.xml +++ b/drools-model/drools-model-compiler/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-model/drools-mvel-compiler/pom.xml b/drools-model/drools-mvel-compiler/pom.xml index 154e3757b01..4ffd852c401 100644 --- a/drools-model/drools-mvel-compiler/pom.xml +++ b/drools-model/drools-mvel-compiler/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.drools drools-model - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: MVEL Compiler diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvel2/CompiledJavaEvaluator.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvel2/CompiledJavaEvaluator.java index 09c28d59c63..3c8c2e5e1e2 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvel2/CompiledJavaEvaluator.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvel2/CompiledJavaEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel2; import java.io.Serializable; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledBlockResult.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledBlockResult.java index bfa195366c2..c61474334fa 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledBlockResult.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledBlockResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.util.HashSet; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledExpressionResult.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledExpressionResult.java index e4cf4cab6a9..7a556c39b2f 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledExpressionResult.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledExpressionResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledResult.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledResult.java index b20529c2e39..bacef9c595f 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledResult.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/CompiledResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.util.Set; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ConstraintCompiler.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ConstraintCompiler.java index 9fa8cbbb505..a853a3c7e92 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ConstraintCompiler.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ConstraintCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import com.github.javaparser.ast.expr.Expression; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/LHSPhase.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/LHSPhase.java index b75ee4cff45..7b31676cce6 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/LHSPhase.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/LHSPhase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvelcompiler; import java.lang.reflect.Method; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MethodCallExprVisitor.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MethodCallExprVisitor.java index e042ccdafdb..723147e5ea5 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MethodCallExprVisitor.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MethodCallExprVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.lang.reflect.Method; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MvelCompiler.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MvelCompiler.java index 55c72bdb687..bf134439945 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MvelCompiler.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MvelCompiler.java @@ -1,34 +1,39 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.util.HashSet; import java.util.List; +import java.util.Optional; import java.util.Set; import java.util.stream.Stream; import com.github.javaparser.ast.Node; +import com.github.javaparser.ast.expr.MethodCallExpr; +import com.github.javaparser.ast.expr.NameExpr; import com.github.javaparser.ast.stmt.BlockStmt; -import com.github.javaparser.ast.stmt.Statement; import org.drools.mvel.parser.MvelParser; import org.drools.mvel.parser.ast.expr.ModifyStatement; import org.drools.mvelcompiler.ast.TypedExpression; import org.drools.mvelcompiler.context.MvelCompilerContext; +import static com.github.javaparser.ast.NodeList.nodeList; import static java.util.stream.Collectors.toList; public class MvelCompiler { @@ -72,8 +77,15 @@ public CompiledBlockResult compileStatement(String mvelBlock) { .setUsedBindings(allUsedBindings); } - private Stream transformStatementWithPreprocessing(Statement s) { + private Stream transformStatementWithPreprocessing(ModifyStatement s) { + Optional parentNode = s.getParentNode(); PreprocessPhase.PreprocessPhaseResult invoke = preprocessPhase.invoke(s); + parentNode.ifPresent(p -> { + BlockStmt parentBlock = (BlockStmt) p; + for (String modifiedFact : invoke.getUsedBindings()) { + parentBlock.addStatement(new MethodCallExpr(new NameExpr("drools"), "update", nodeList(new NameExpr(modifiedFact)))); + } + }); s.remove(); return invoke.getUsedBindings().stream(); } diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MvelCompilerException.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MvelCompilerException.java index 1a8d7c9a3f6..db55c3bffb3 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MvelCompilerException.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/MvelCompilerException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; public class MvelCompilerException extends RuntimeException { diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/PreprocessCompiler.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/PreprocessCompiler.java index 299a45f0706..3db5bb46f5b 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/PreprocessCompiler.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/PreprocessCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.util.HashSet; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/PreprocessPhase.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/PreprocessPhase.java index 67a70167209..4eba76f9569 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/PreprocessPhase.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/PreprocessPhase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvelcompiler; import java.util.ArrayList; @@ -107,17 +109,22 @@ private PreprocessPhaseResult modifyPreprocessor(ModifyStatement modifyStatement final Expression scope = modifyStatement.getModifyObject(); modifyStatement .findAll(AssignExpr.class) - .replaceAll(assignExpr -> assignToFieldAccess(result, scope, assignExpr)); + .replaceAll(assignExpr -> assignToFieldAccess(scope, assignExpr)); // Do not use findAll as we should only process top level expressions modifyStatement .getExpressions() - .replaceAll(e -> addScopeToMethodCallExpr(result, scope, e)); + .replaceAll(e -> addScopeToMethodCallExpr(scope, e)); NodeList statements = wrapToExpressionStmt(modifyStatement.getExpressions()); // delete modify statement and replace its own block of statements modifyStatement.replace(new BlockStmt(statements)); + // even if no property is modified inside modify block, need to call update because its properties may be modified in RHS + if (scope.isNameExpr() || scope instanceof DrlNameExpr) { + result.addUsedBinding(printNode(scope)); + } + return result; } @@ -131,7 +138,7 @@ private NodeList wrapToExpressionStmt(NodeList expressions .collect(Collectors.toList())); } - private Statement addScopeToMethodCallExpr(PreprocessPhaseResult result, Expression scope, Statement e) { + private Statement addScopeToMethodCallExpr(Expression scope, Statement e) { if (e != null && e.isExpressionStmt()) { Expression expression = e.asExpressionStmt().getExpression(); if (expression.isMethodCallExpr()) { @@ -144,16 +151,10 @@ private Statement addScopeToMethodCallExpr(PreprocessPhaseResult result, Express MethodCallExpr rootMcExpr = rootExpr.asMethodCallExpr(); Expression enclosed = new EnclosedExpr(scope); rootMcExpr.setScope(enclosed); - - if (scope.isNameExpr() || scope instanceof DrlNameExpr) { // some classes such "AtomicInteger" have a setter called "set" - result.addUsedBinding(printNode(scope)); - } - return new ExpressionStmt(mcExpr); } else if (rootExpr instanceof DrlNameExpr) { throwExceptionIfSameDrlName(rootExpr, scope); // Unknown name. Assume a property of the fact - result.addUsedBinding(printNode(scope)); replaceRootExprWithFieldAccess(scope, (DrlNameExpr) rootExpr); } } @@ -194,8 +195,7 @@ private Expression findRootScope(Expression expr) { return scope; } - private AssignExpr assignToFieldAccess(PreprocessPhaseResult result, Expression scope, AssignExpr assignExpr) { - result.addUsedBinding(printNode(scope)); + private AssignExpr assignToFieldAccess(Expression scope, AssignExpr assignExpr) { Expression target = assignExpr.getTarget(); if (target instanceof DrlNameExpr) { // e.g. age = 10 diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/RHSPhase.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/RHSPhase.java index fa45ed894a3..90210cfc37b 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/RHSPhase.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/RHSPhase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvelcompiler; import java.lang.reflect.Field; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ReProcessRHSPhase.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ReProcessRHSPhase.java index d036af6e30e..98b07901bda 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ReProcessRHSPhase.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ReProcessRHSPhase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvelcompiler; import java.math.BigDecimal; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/StatementVisitor.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/StatementVisitor.java index 73ed3cf4b43..ef4183526e1 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/StatementVisitor.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/StatementVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.util.List; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/AssignExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/AssignExprT.java index 70e82de78d0..5d82c6e9569 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/AssignExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/AssignExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalArithmeticExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalArithmeticExprT.java index 3641e263e4d..48f4bc00266 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalArithmeticExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalArithmeticExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalConvertedExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalConvertedExprT.java index 057d09701dc..9e52e87ceb9 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalConvertedExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalConvertedExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalRelationalExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalRelationalExprT.java index 5cbffcb2b58..cae0982e04b 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalRelationalExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigDecimalRelationalExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigIntegerConvertedExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigIntegerConvertedExprT.java index cb560311467..e71baa830a2 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigIntegerConvertedExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BigIntegerConvertedExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BinaryExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BinaryExprT.java index 2ea785ca98f..2eb2f954e53 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BinaryExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BinaryExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BlockStmtT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BlockStmtT.java index ce97e3e20d0..af028434632 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BlockStmtT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BlockStmtT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BooleanLiteralExpressionT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BooleanLiteralExpressionT.java index cc77c7d6c2f..a0245de43f5 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BooleanLiteralExpressionT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/BooleanLiteralExpressionT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/CastExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/CastExprT.java index af2de17d1e2..ee72ea53c48 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/CastExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/CastExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/CharacterLiteralExpressionT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/CharacterLiteralExpressionT.java index 46404a3f683..cdcfcdc5283 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/CharacterLiteralExpressionT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/CharacterLiteralExpressionT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/DoStmtT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/DoStmtT.java index 91e9e5f54d5..622f1f576b5 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/DoStmtT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/DoStmtT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ExpressionStmtT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ExpressionStmtT.java index 647cae8e9ee..22769a3235f 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ExpressionStmtT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ExpressionStmtT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/FieldAccessTExpr.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/FieldAccessTExpr.java index f9341c43371..ff74aff5a91 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/FieldAccessTExpr.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/FieldAccessTExpr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Field; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/FieldToAccessorTExpr.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/FieldToAccessorTExpr.java index 1a9b1a290de..d1f04a2bb85 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/FieldToAccessorTExpr.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/FieldToAccessorTExpr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Method; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForEachDowncastStmtT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForEachDowncastStmtT.java index d057039a094..aa4e4db5cd5 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForEachDowncastStmtT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForEachDowncastStmtT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForEachStmtT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForEachStmtT.java index 53c2c7e24ea..cf5abede2c4 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForEachStmtT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForEachStmtT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForStmtT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForStmtT.java index eacef21c635..8a1c54051ab 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForStmtT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ForStmtT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/IfStmtT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/IfStmtT.java index 609a75e1c68..1a55f61f9e3 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/IfStmtT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/IfStmtT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/IntegerLiteralExpressionT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/IntegerLiteralExpressionT.java index e681f5b6865..99bf0c5db1c 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/IntegerLiteralExpressionT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/IntegerLiteralExpressionT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ListAccessExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ListAccessExprT.java index 755403e015b..6d68e52616b 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ListAccessExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ListAccessExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.ParameterizedType; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/LongLiteralExpressionT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/LongLiteralExpressionT.java index 5469621ff01..b36b4b8283a 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/LongLiteralExpressionT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/LongLiteralExpressionT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/MapPutExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/MapPutExprT.java index 40f376e2e8c..f4c9b21c47d 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/MapPutExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/MapPutExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/MethodCallExprT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/MethodCallExprT.java index af0addfdae6..688b0316211 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/MethodCallExprT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/MethodCallExprT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ObjectCreationExpressionT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ObjectCreationExpressionT.java index 62bfb54460e..8a98c61da4d 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ObjectCreationExpressionT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/ObjectCreationExpressionT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/RootTypeThisExpr.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/RootTypeThisExpr.java index 8a0e9df907d..d34e5fc0b77 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/RootTypeThisExpr.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/RootTypeThisExpr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SimpleNameTExpr.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SimpleNameTExpr.java index 6ad82ae0176..e5ec59fc179 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SimpleNameTExpr.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SimpleNameTExpr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/StringLiteralExpressionT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/StringLiteralExpressionT.java index 927e2291e45..4f14e4b3761 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/StringLiteralExpressionT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/StringLiteralExpressionT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SwitchEntryT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SwitchEntryT.java index 6d7971b0a01..54df7aa1cdc 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SwitchEntryT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SwitchEntryT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SwitchStmtT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SwitchStmtT.java index 30231bf4d84..1bb714caf97 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SwitchStmtT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/SwitchStmtT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/TypedExpression.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/TypedExpression.java index 3b5d192631d..d83d9a2a078 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/TypedExpression.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/TypedExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/UnalteredTypedExpression.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/UnalteredTypedExpression.java index 55f44125488..7ef8c08e807 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/UnalteredTypedExpression.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/UnalteredTypedExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/VariableDeclaratorTExpr.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/VariableDeclaratorTExpr.java index 05e007f7d38..30715ec475a 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/VariableDeclaratorTExpr.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/VariableDeclaratorTExpr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/WhileStmtT.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/WhileStmtT.java index d1a5d89811a..d16942d05fd 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/WhileStmtT.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/ast/WhileStmtT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.ast; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/Declaration.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/Declaration.java index 298dc5923c6..507e6edbac3 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/Declaration.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/Declaration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.context; public class Declaration { diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/DeclaredFunction.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/DeclaredFunction.java index 067a2d86bc4..f9ecc654bc3 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/DeclaredFunction.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/DeclaredFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.context; import java.util.List; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/MvelCompilerContext.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/MvelCompilerContext.java index 2d8e6dfc442..5d959add000 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/MvelCompilerContext.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/MvelCompilerContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.context; import java.lang.reflect.Method; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/StaticMethod.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/StaticMethod.java index 2ff0493fa25..7a4beb11224 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/StaticMethod.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/context/StaticMethod.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.context; import java.lang.reflect.Method; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/BigDecimalArgumentCoercion.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/BigDecimalArgumentCoercion.java index 38985423512..2465c33b3ee 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/BigDecimalArgumentCoercion.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/BigDecimalArgumentCoercion.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.util; import java.math.BigDecimal; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/CoercionUtils.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/CoercionUtils.java index d79caba217b..1044c60823e 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/CoercionUtils.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/CoercionUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.util; import java.lang.reflect.ParameterizedType; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/OptionalUtils.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/OptionalUtils.java index 2d45628da86..9da80f84112 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/OptionalUtils.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/OptionalUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.util; import java.util.Optional; diff --git a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/TypeUtils.java b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/TypeUtils.java index 4eb4fca17b8..4bdc85b263f 100644 --- a/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/TypeUtils.java +++ b/drools-model/drools-mvel-compiler/src/main/java/org/drools/mvelcompiler/util/TypeUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler.util; import java.lang.reflect.Type; diff --git a/drools-model/drools-mvel-compiler/src/main/resources/org/drools/mvel/EvaluatorTemplate.java b/drools-model/drools-mvel-compiler/src/main/resources/org/drools/mvel/EvaluatorTemplate.java index 583981850d0..83106c9dffa 100644 --- a/drools-model/drools-mvel-compiler/src/main/resources/org/drools/mvel/EvaluatorTemplate.java +++ b/drools-model/drools-mvel-compiler/src/main/resources/org/drools/mvel/EvaluatorTemplate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel; import java.util.Map; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/Address.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/Address.java index 4711ff54a8e..1801779b333 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/Address.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/Address.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools; public class Address { diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/Gender.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/Gender.java index fb32d7910fd..8187ddf5fe5 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/Gender.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/Gender.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools; public enum Gender { diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/Person.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/Person.java index a79fc61d09d..53c4a508f6e 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/Person.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools; import java.math.BigDecimal; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/ArithmeticTest.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/ArithmeticTest.java index dc2057e1186..d8b43dfb040 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/ArithmeticTest.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/ArithmeticTest.java @@ -1,22 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. - * - * Borrowed from MVEL, under the ASL2.0 license. - * + * 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. */ - package org.drools.mvel; import java.math.BigDecimal; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Bar.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Bar.java index 5913abdfd63..bef07f30c8c 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Bar.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Bar.java @@ -1,22 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. - * - * Borrowed from MVEL, under the ASL2.0 license. - * + * 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. */ - package org.drools.mvel; import java.util.ArrayList; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Base.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Base.java index beb15ef8b43..8e22789a2b0 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Base.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Base.java @@ -1,22 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. - * - * Borrowed from MVEL, under the ASL2.0 license. - * + * 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. */ - package org.drools.mvel; import java.util.ArrayList; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/CompiledExpression.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/CompiledExpression.java index 35134c69010..d79ba0984d3 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/CompiledExpression.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/CompiledExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel; public class CompiledExpression { diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/DerivedClass.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/DerivedClass.java index c41d79ca833..59a6fdc89d5 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/DerivedClass.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/DerivedClass.java @@ -1,22 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. - * - * Borrowed from MVEL, under the ASL2.0 license. - * + * 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. */ - package org.drools.mvel; public class DerivedClass extends Base { diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Evaluator.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Evaluator.java index 7069dd20a76..5731715fc03 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Evaluator.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Evaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel; import java.io.Serializable; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/EvaluatorGenerator.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/EvaluatorGenerator.java index 32b88321e91..ababfe2b828 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/EvaluatorGenerator.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/EvaluatorGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel; import java.io.InputStream; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Foo.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Foo.java index 38fb51bbb09..0d9f40690a9 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Foo.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Foo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel; import java.util.Collection; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/MVEL.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/MVEL.java index 90a33e86c68..f7f93104671 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/MVEL.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/MVEL.java @@ -1,22 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. - * - * Borrowed from MVEL, under the ASL2.0 license. - * + * 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. */ - package org.drools.mvel; import java.io.Serializable; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/MyEnum.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/MyEnum.java index 7bd3f1325be..16073dea39c 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/MyEnum.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/MyEnum.java @@ -1,22 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. - * - * Borrowed from MVEL, under the ASL2.0 license. - * + * 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. */ - package org.drools.mvel; public enum MyEnum { diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/SampleBean.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/SampleBean.java index 57bd441a02b..575bcac2869 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/SampleBean.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/SampleBean.java @@ -1,22 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. - * - * Borrowed from MVEL, under the ASL2.0 license. - * + * 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. */ - package org.drools.mvel; import java.util.HashMap; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/TestInterface.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/TestInterface.java index 7cd27f69a63..817b55dfe87 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/TestInterface.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/TestInterface.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel; public interface TestInterface { diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Thing.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Thing.java index 56b4d25afeb..f84f448bb7c 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Thing.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvel/Thing.java @@ -1,22 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. - * - * Borrowed from MVEL, under the ASL2.0 license. - * + * 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. */ - package org.drools.mvel; public class Thing { diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/CompilerTest.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/CompilerTest.java index 98b0da0b3c7..6ac766359c3 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/CompilerTest.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/CompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.util.ArrayList; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/ConstraintCompilerTest.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/ConstraintCompilerTest.java index 34b7d97590f..42046262b57 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/ConstraintCompilerTest.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/ConstraintCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.math.BigDecimal; diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/MvelCompilerTest.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/MvelCompilerTest.java index 6631627700f..67b6b5884fd 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/MvelCompilerTest.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/MvelCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.math.BigDecimal; @@ -341,7 +343,7 @@ public void testSetterStringWithNull() { public void testSetterBigDecimalConstantModify() { test(ctx -> ctx.addDeclaration("$p", Person.class), "{ modify ( $p ) { salary = 50000 }; }", - "{ { $p.setSalary(new java.math.BigDecimal(50000)); } }", + "{ { $p.setSalary(new java.math.BigDecimal(50000)); } drools.update($p);}", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); } @@ -349,7 +351,7 @@ public void testSetterBigDecimalConstantModify() { public void testSetterBigDecimalLiteralModify() { test(ctx -> ctx.addDeclaration("$p", Person.class), "{ modify ( $p ) { salary = 50000B }; }", - "{ { $p.setSalary(new java.math.BigDecimal(\"50000\")); } }", + "{ { $p.setSalary(new java.math.BigDecimal(\"50000\")); } drools.update($p);}", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); } @@ -357,7 +359,7 @@ public void testSetterBigDecimalLiteralModify() { public void testSetterBigDecimalLiteralModifyNegative() { test(ctx -> ctx.addDeclaration("$p", Person.class), "{ modify ( $p ) { salary = -50000B }; }", - "{ { $p.setSalary(new java.math.BigDecimal(\"-50000\")); } }", + "{ { $p.setSalary(new java.math.BigDecimal(\"-50000\")); } drools.update($p);}", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); } @@ -407,10 +409,64 @@ public void testDoNotConvertAdditionInStringConcatenation() { " list.add(\"before \" + $p + \", money = \" + $p.getSalary()); " + " { $p.setSalary(new java.math.BigDecimal(50000)); }" + " list.add(\"after \" + $p + \", money = \" + $p.getSalary()); " + + " drools.update($p);" + "}\n", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); } + @Test + public void modifyInsideIfTrueBlock() { + test(ctx -> ctx.addDeclaration("$p", Person.class), + "{" + + " if (true) { " + + " modify ( $p ) { salary = 50000 }; " + + " }" + + "}", + "{\n" + + " if (true) {" + + " { $p.setSalary(new java.math.BigDecimal(50000)); }" + + " drools.update($p);" + + " }" + + "}", + result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); + } + + @Test + public void modifyInsideIfFalseBlock() { + test(ctx -> ctx.addDeclaration("$p", Person.class), + "{" + + " if (false) { " + + " modify ( $p ) { salary = 50000 }; " + + " }" + + "}", + "{\n" + + " if (false) {" + + " { $p.setSalary(new java.math.BigDecimal(50000)); }" + + " drools.update($p);" + + " }" + + "}", + result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); + } + + @Test + public void emptyModifyInsideIfBlockAndSetterOutside() { + test(ctx -> ctx.addDeclaration("$p", Person.class), + "{" + + " $p.salary = 50000;" + + " if (false) { " + + " modify ( $p ) { }; " + + " }" + + "}", + "{\n" + + " $p.setSalary(new java.math.BigDecimal(50000));" + + " if (false) {" + + " { }" + + " drools.update($p);" + + " }" + + "}", + result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); + } + @Test public void testSetterBigIntegerLiteral() { test(ctx -> { @@ -820,7 +876,7 @@ public void testPromotionOfIntToBigDecimalOnField() { public void testModify() { test(ctx -> ctx.addDeclaration("$p", Person.class), "{ modify ( $p ) { name = \"Luca\", age = 35 }; }", - "{\n {\n $p.setName(\"Luca\");\n $p.setAge(35);\n }\n }", + "{\n {\n $p.setName(\"Luca\");\n $p.setAge(35);\n } drools.update($p);\n }", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); } @@ -831,7 +887,7 @@ public void testModifyMap() { ctx.addDeclaration("$p2", Person.class); }, "{ modify ( $p ) { items = $p2.items }; }", - "{\n {\n $p.setItems($p2.getItems());\n }\n }", + "{\n {\n $p.setItems($p2.getItems());\n } drools.update($p);\n }", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); } @@ -839,7 +895,7 @@ public void testModifyMap() { public void testModifySemiColon() { test(ctx -> ctx.addDeclaration("$p", Person.class), "{ modify($p) { setAge(1); }; }", - "{ { $p.setAge(1); } }", + "{ { $p.setAge(1); } drools.update($p);}", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); } @@ -847,7 +903,7 @@ public void testModifySemiColon() { public void testModifyWithAssignment() { test(ctx -> ctx.addDeclaration("$p", Person.class), "{ modify($p) { age = $p.age+1 }; }", - "{ { $p.setAge($p.getAge() + 1); } }", + "{ { $p.setAge($p.getAge() + 1); } drools.update($p); }", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); } @@ -855,7 +911,7 @@ public void testModifyWithAssignment() { public void testModifyWithMethodCall() { test(ctx -> ctx.addDeclaration("$p", Person.class), "{ modify($p) { addresses.clear() }; }", - "{ { $p.getAddresses().clear(); } }", + "{ { $p.getAddresses().clear(); } drools.update($p);}", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); } @@ -901,6 +957,7 @@ public void testModifyInsideIfBlock() { " {\n" + " $p.setName(\"without_parent\");\n" + " }\n" + + " drools.update($p);\n" + " } " + "}", result -> assertThat(allUsedBindings(result)).containsExactlyInAnyOrder("$p")); @@ -925,6 +982,7 @@ public void testModifyOrdering() { "{ " + " $person.setAddress($newAddress);\n" + "}\n" + + "drools.update($person);\n" + "}"); } diff --git a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/PreprocessCompilerTest.java b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/PreprocessCompilerTest.java index b355f1b92ae..7d6af4e4d99 100644 --- a/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/PreprocessCompilerTest.java +++ b/drools-model/drools-mvel-compiler/src/test/java/org/drools/mvelcompiler/PreprocessCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvelcompiler; import java.util.function.Consumer; diff --git a/drools-model/drools-mvel-compiler/src/test/resources/logback-test.xml b/drools-model/drools-mvel-compiler/src/test/resources/logback-test.xml index 746ec95fc75..9444605a1e6 100644 --- a/drools-model/drools-mvel-compiler/src/test/resources/logback-test.xml +++ b/drools-model/drools-mvel-compiler/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-model/drools-mvel-parser/pom.xml b/drools-model/drools-mvel-parser/pom.xml index d24e5b7bd6f..a18102dc4ea 100644 --- a/drools-model/drools-mvel-parser/pom.xml +++ b/drools-model/drools-mvel-parser/pom.xml @@ -1,10 +1,30 @@ + 4.0.0 org.drools drools-model - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: MVEL Parser diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/DrlxParser.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/DrlxParser.java index 4a6a3293400..e3ac249675f 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/DrlxParser.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/DrlxParser.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import java.util.Collection; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/JavaToken.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/JavaToken.java index 8dc7fb26d65..e3cb8a1042c 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/JavaToken.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/JavaToken.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import java.util.Optional; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/MvelParser.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/MvelParser.java index 081579dedad..00edf488ce4 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/MvelParser.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/MvelParser.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import java.io.IOException; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ParseStart.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ParseStart.java index aa05d01703d..098eba659b5 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ParseStart.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ParseStart.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import com.github.javaparser.ParseException; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/Providers.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/Providers.java index 2c5d92d0961..e111ddb7737 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/Providers.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/Providers.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import java.io.File; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/TokenTypes.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/TokenTypes.java index bd298d0d5c6..fc5805813d3 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/TokenTypes.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/TokenTypes.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import com.github.javaparser.JavaToken; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/BigDecimalLiteralExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/BigDecimalLiteralExpr.java index 80a99aced8a..fed7689a851 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/BigDecimalLiteralExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/BigDecimalLiteralExpr.java @@ -1,25 +1,20 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ package org.drools.mvel.parser.ast.expr; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/BigIntegerLiteralExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/BigIntegerLiteralExpr.java index 392bd568e8a..e0f62a57557 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/BigIntegerLiteralExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/BigIntegerLiteralExpr.java @@ -1,25 +1,20 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ package org.drools.mvel.parser.ast.expr; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/DrlNameExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/DrlNameExpr.java index 3e07988a14b..3ce9b9ebbe9 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/DrlNameExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/DrlNameExpr.java @@ -1,25 +1,20 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ package org.drools.mvel.parser.ast.expr; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/DrlxExpression.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/DrlxExpression.java index 8c9c87f5db1..f68a76ba57d 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/DrlxExpression.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/DrlxExpression.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/FullyQualifiedInlineCastExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/FullyQualifiedInlineCastExpr.java index 5f8eeef59d3..b7299f064a6 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/FullyQualifiedInlineCastExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/FullyQualifiedInlineCastExpr.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/HalfBinaryExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/HalfBinaryExpr.java index 9e22f1963de..0774e60bfa7 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/HalfBinaryExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/HalfBinaryExpr.java @@ -1,25 +1,20 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ package org.drools.mvel.parser.ast.expr; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/HalfPointFreeExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/HalfPointFreeExpr.java index 5245617144f..7aaad3207a9 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/HalfPointFreeExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/HalfPointFreeExpr.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/InlineCastExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/InlineCastExpr.java index 686354801d7..de8a31a1f0f 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/InlineCastExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/InlineCastExpr.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser.ast.expr; import java.util.Optional; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ListCreationLiteralExpression.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ListCreationLiteralExpression.java index 43b8042b31e..1f2024dc60b 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ListCreationLiteralExpression.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ListCreationLiteralExpression.java @@ -1,21 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ListCreationLiteralExpressionElement.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ListCreationLiteralExpressionElement.java index b9c1b6aacdc..34e1849c4cb 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ListCreationLiteralExpressionElement.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ListCreationLiteralExpressionElement.java @@ -1,21 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/MapCreationLiteralExpression.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/MapCreationLiteralExpression.java index 60028f45fb6..3d7ed9e5439 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/MapCreationLiteralExpression.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/MapCreationLiteralExpression.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/MapCreationLiteralExpressionKeyValuePair.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/MapCreationLiteralExpressionKeyValuePair.java index d1e1c06cef7..e7ce9d3e209 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/MapCreationLiteralExpressionKeyValuePair.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/MapCreationLiteralExpressionKeyValuePair.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ModifyStatement.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ModifyStatement.java index b8959c8ab94..e98c313b7ad 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ModifyStatement.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/ModifyStatement.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.parser.ast.expr; import java.util.List; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/NullSafeFieldAccessExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/NullSafeFieldAccessExpr.java index d8e01a48725..203d0b69222 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/NullSafeFieldAccessExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/NullSafeFieldAccessExpr.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser.ast.expr; import java.util.Optional; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/NullSafeMethodCallExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/NullSafeMethodCallExpr.java index 9336b584026..62f6d97354d 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/NullSafeMethodCallExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/NullSafeMethodCallExpr.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser.ast.expr; import java.util.Optional; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/OOPathChunk.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/OOPathChunk.java index cbeacae905b..7ceb4666b92 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/OOPathChunk.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/OOPathChunk.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import java.util.List; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/OOPathExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/OOPathExpr.java index cdbb4e8e2cc..df3f0a43bc2 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/OOPathExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/OOPathExpr.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/PointFreeExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/PointFreeExpr.java index 50110467e00..a13fea1a9d8 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/PointFreeExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/PointFreeExpr.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleBody.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleBody.java index 864776fd00d..7c4c411fe54 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleBody.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleBody.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleConsequence.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleConsequence.java index 611586ce0e5..392d6ff6f01 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleConsequence.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleConsequence.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleDeclaration.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleDeclaration.java index b80038db5b2..66ee8bfbf66 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleDeclaration.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleDeclaration.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleItem.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleItem.java index 08b55dbb27d..a97b677c20d 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleItem.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleItem.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleJoinedPatterns.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleJoinedPatterns.java index a494dab89d5..2f7fc293878 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleJoinedPatterns.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleJoinedPatterns.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RulePattern.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RulePattern.java index 421a3a728ce..d7bc42480ec 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RulePattern.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RulePattern.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalChunkExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalChunkExpr.java index ea5565a3306..1777af01e18 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalChunkExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalChunkExpr.java @@ -1,19 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.mvel.parser.ast.expr; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralArguments.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralArguments.java index 01f478195a7..c391a1f42cb 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralArguments.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralArguments.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.ast.expr.Expression; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralChunkExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralChunkExpr.java index 25c5b0f5671..4bf2fc1d560 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralChunkExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralChunkExpr.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralExpr.java index 1fb41e43274..d260810e115 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralExpr.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralInfiniteChunkExpr.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralInfiniteChunkExpr.java index 89b41ed7651..89edba9b300 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralInfiniteChunkExpr.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/TemporalLiteralInfiniteChunkExpr.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.expr; import java.util.concurrent.TimeUnit; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/WithStatement.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/WithStatement.java index 5f7d828494d..1fdc4dd5e26 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/WithStatement.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/WithStatement.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.parser.ast.expr; import java.util.List; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlCloneVisitor.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlCloneVisitor.java index c6811b53575..db04577a7fd 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlCloneVisitor.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlCloneVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.parser.ast.visitor; import com.github.javaparser.ast.visitor.CloneVisitor; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlGenericVisitor.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlGenericVisitor.java index 986d40f7594..8bfa2fa91ee 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlGenericVisitor.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlGenericVisitor.java @@ -1,19 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.mvel.parser.ast.visitor; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlVoidVisitor.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlVoidVisitor.java index 285901103ef..f6e4a63b33b 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlVoidVisitor.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/visitor/DrlVoidVisitor.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.ast.visitor; import com.github.javaparser.ast.ArrayCreationLevel; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/printer/ConstraintPrintVisitor.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/printer/ConstraintPrintVisitor.java index ad2795bebdd..45f67972111 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/printer/ConstraintPrintVisitor.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/printer/ConstraintPrintVisitor.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.printer; import java.util.Iterator; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/printer/PrintUtil.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/printer/PrintUtil.java index d93620f1ffc..3500fcd8e23 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/printer/PrintUtil.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/printer/PrintUtil.java @@ -1,19 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.mvel.parser.printer; diff --git a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/utils/AstUtils.java b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/utils/AstUtils.java index 1433a4fef57..8cde01b4dbb 100644 --- a/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/utils/AstUtils.java +++ b/drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/utils/AstUtils.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.parser.utils; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserBase.java b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserBase.java index fade7fd32d1..c5346d351dd 100644 --- a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserBase.java +++ b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserBase.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2021 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; // MVEL: should use JP JavaToken here diff --git a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserTokenManagerBase.java b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserTokenManagerBase.java index f0d98e9ba2f..88005d76f2c 100644 --- a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserTokenManagerBase.java +++ b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserTokenManagerBase.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2021 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import com.github.javaparser.TokenRange; diff --git a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/ModifierHolder.java b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/ModifierHolder.java index eb789cfb492..de69e3a9eef 100644 --- a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/ModifierHolder.java +++ b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/ModifierHolder.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import com.github.javaparser.ast.Modifier; diff --git a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/RangedList.java b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/RangedList.java index a8be3b0621f..b6f578cec51 100644 --- a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/RangedList.java +++ b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/RangedList.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import com.github.javaparser.ast.Node; diff --git a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/TokenBase.java b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/TokenBase.java index 15a12a7bd79..35b02620183 100644 --- a/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/TokenBase.java +++ b/drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/TokenBase.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2021 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * This file is part of JavaParser. - * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. +/** + * 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 * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import static com.github.javaparser.GeneratedJavaParserConstants.GT; diff --git a/drools-model/drools-mvel-parser/src/test/java/org/drools/mvel/parser/DrlxParserTest.java b/drools-model/drools-mvel-parser/src/test/java/org/drools/mvel/parser/DrlxParserTest.java index 0b0fe4bf29e..6bb61df814a 100644 --- a/drools-model/drools-mvel-parser/src/test/java/org/drools/mvel/parser/DrlxParserTest.java +++ b/drools-model/drools-mvel-parser/src/test/java/org/drools/mvel/parser/DrlxParserTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.parser; import java.io.IOException; diff --git a/drools-model/drools-mvel-parser/src/test/java/org/drools/mvel/parser/DroolsMvelParserTest.java b/drools-model/drools-mvel-parser/src/test/java/org/drools/mvel/parser/DroolsMvelParserTest.java index c86761f0e01..ea5f6987194 100644 --- a/drools-model/drools-mvel-parser/src/test/java/org/drools/mvel/parser/DroolsMvelParserTest.java +++ b/drools-model/drools-mvel-parser/src/test/java/org/drools/mvel/parser/DroolsMvelParserTest.java @@ -1,27 +1,21 @@ -/* - * Copyright (C) 2007-2010 Júlio Vilmar Gesser. - * Copyright (C) 2011, 2013-2016 The JavaParser Team. - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * This file is part of JavaParser. + * http://www.apache.org/licenses/LICENSE-2.0 * - * JavaParser can be used either under the terms of - * a) the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * b) the terms of the Apache License - * - * You should have received a copy of both licenses in LICENCE.LGPL and - * LICENCE.APACHE. Please refer to those files for details. - * - * JavaParser is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * Modified by Red Hat, Inc. + * 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. */ - package org.drools.mvel.parser; import java.util.Arrays; diff --git a/drools-model/pom.xml b/drools-model/pom.xml index 9ca1f1dd1c3..a6d6fe71d2e 100644 --- a/drools-model/pom.xml +++ b/drools-model/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-mvel/pom.xml b/drools-mvel/pom.xml index 5c932d41d99..32920b00fc6 100644 --- a/drools-mvel/pom.xml +++ b/drools-mvel/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-mvel/src/main/java/org/drools/mvel/ASMConditionEvaluatorJitter.java b/drools-mvel/src/main/java/org/drools/mvel/ASMConditionEvaluatorJitter.java index 32ffdaf3434..4c85606365b 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/ASMConditionEvaluatorJitter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/ASMConditionEvaluatorJitter.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.lang.reflect.Constructor; @@ -29,10 +33,11 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.drools.base.base.ValueResolver; import org.drools.compiler.rule.builder.EvaluatorWrapper; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; import org.drools.core.reteoo.Tuple; import org.drools.mvel.ConditionAnalyzer.AritmeticExpression; import org.drools.mvel.ConditionAnalyzer.AritmeticOperator; @@ -57,6 +62,7 @@ import org.drools.mvel.ConditionAnalyzer.VariableExpression; import org.drools.mvel.asm.ClassGenerator; import org.drools.mvel.asm.GeneratorHelper; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.asm.Label; import org.mvel2.asm.MethodVisitor; import org.mvel2.util.NullType; @@ -114,7 +120,7 @@ public static ConditionEvaluator jitEvaluator( String expression, Declaration[] declarations, EvaluatorWrapper[] operators, ClassLoader classLoader, - Tuple tuple) { + BaseTuple tuple) { ClassGenerator generator = new ClassGenerator(getUniqueClassName(), classLoader) .setInterfaces(ConditionEvaluator.class) .addStaticField(ACC_PRIVATE | ACC_FINAL, "EXPRESSION", String.class, expression) @@ -122,7 +128,7 @@ public static ConditionEvaluator jitEvaluator( String expression, generator.addMethod(ACC_PUBLIC, "evaluate", - generator.methodDescr(boolean.class, InternalFactHandle.class, ReteEvaluator.class, Tuple.class), + generator.methodDescr(boolean.class, FactHandle.class, ValueResolver.class, BaseTuple.class), new EvaluateMethodGenerator(condition, declarations, operators, tuple)); if (operators.length == 0) { @@ -165,12 +171,12 @@ private static class EvaluateMethodGenerator extends GeneratorHelper.Declaration private final Condition condition; private final Declaration[] declarations; - private final Tuple tuple; + private final BaseTuple tuple; private final EvaluatorWrapper[] operators; private int[] declPositions; - public EvaluateMethodGenerator(Condition condition, Declaration[] declarations, EvaluatorWrapper[] operators, Tuple leftTuple) { + public EvaluateMethodGenerator(Condition condition, Declaration[] declarations, EvaluatorWrapper[] operators, BaseTuple leftTuple) { this.condition = condition; this.declarations = declarations; this.operators = operators; @@ -192,7 +198,7 @@ private void jitArguments() { declPositions = new int[declarations.length]; List declarationMatchers = matchDeclarationsToTuple(declarations); - Tuple currentTuple = tuple; + BaseTuple currentTuple = tuple; mv.visitVarInsn(ALOAD, 3); store(4, Tuple.class); @@ -205,7 +211,7 @@ private void jitArguments() { mv.visitInsn(AALOAD); // declarations[i] mv.visitVarInsn(ALOAD, 2); // InternalWorkingMemory mv.visitVarInsn(ALOAD, 1); // InternalFactHandle - invokeInterface(InternalFactHandle.class, "getObject", Object.class); + invokeInterface(FactHandle.class, "getObject", Object.class); declPositions[i] = decPos; decPos += storeObjectFromDeclaration(declarationMatcher.getDeclaration(), decPos); continue; @@ -218,7 +224,7 @@ private void jitArguments() { mv.visitInsn(AALOAD); // declarations[i] mv.visitVarInsn(ALOAD, 2); // InternalWorkingMemory load(4); - invokeInterface(Tuple.class, "getFactHandle", InternalFactHandle.class); + invokeInterface(Tuple.class, "getFactHandle", FactHandle.class); invokeInterface(InternalFactHandle.class, "getObject", Object.class); // tuple.getFactHandle().getObject() declPositions[i] = decPos; @@ -234,7 +240,7 @@ private void jitOperators() { mv.visitVarInsn(ALOAD, 1); // InternalFactHandle mv.visitVarInsn(ALOAD, 3); // Tuple getFieldFromThis("operators", EvaluatorWrapper[].class); - invokeStatic( EvaluatorHelper.class, "initOperators", void.class, InternalFactHandle.class, Tuple.class, EvaluatorWrapper[].class); + invokeStatic(EvaluatorHelper.class, "initOperators", void.class, FactHandle.class, Tuple.class, EvaluatorWrapper[].class); } private void jitCondition(Condition condition) { diff --git a/drools-mvel/src/main/java/org/drools/mvel/ConditionAnalyzer.java b/drools-mvel/src/main/java/org/drools/mvel/ConditionAnalyzer.java index 4dd2f29fc30..b4324e0f8cd 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/ConditionAnalyzer.java +++ b/drools-mvel/src/main/java/org/drools/mvel/ConditionAnalyzer.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.lang.reflect.Array; @@ -30,7 +34,7 @@ import java.util.regex.Pattern; import org.drools.compiler.rule.builder.EvaluatorWrapper; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.mvel2.Operator; import org.mvel2.ParserContext; import org.mvel2.ast.ASTNode; diff --git a/drools-mvel/src/main/java/org/drools/mvel/ConditionEvaluator.java b/drools-mvel/src/main/java/org/drools/mvel/ConditionEvaluator.java index c0dcb3cda3a..623e0ee7dcf 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/ConditionEvaluator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/ConditionEvaluator.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.kie.api.runtime.rule.FactHandle; public interface ConditionEvaluator { - boolean evaluate(InternalFactHandle handle, ReteEvaluator reteEvaluator, Tuple tuple); + boolean evaluate(FactHandle handle, ValueResolver valueResolver, BaseTuple tuple); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/ConstraintEvaluationException.java b/drools-mvel/src/main/java/org/drools/mvel/ConstraintEvaluationException.java index 98b72a53f52..edd48d26130 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/ConstraintEvaluationException.java +++ b/drools-mvel/src/main/java/org/drools/mvel/ConstraintEvaluationException.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import org.drools.mvel.MVELConstraint.EvaluationContext; diff --git a/drools-mvel/src/main/java/org/drools/mvel/DrlDumper.java b/drools-mvel/src/main/java/org/drools/mvel/DrlDumper.java index 8e86be4b6b4..5e97e91004a 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/DrlDumper.java +++ b/drools-mvel/src/main/java/org/drools/mvel/DrlDumper.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/drools-mvel/src/main/java/org/drools/mvel/EvaluatorConstraint.java b/drools-mvel/src/main/java/org/drools/mvel/EvaluatorConstraint.java index 1a55e5a21e0..f8229d6778e 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/EvaluatorConstraint.java +++ b/drools-mvel/src/main/java/org/drools/mvel/EvaluatorConstraint.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel; import java.io.IOException; @@ -20,20 +23,21 @@ import java.io.ObjectOutput; import java.util.Arrays; +import org.drools.base.base.ValueResolver; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.IntervalProviderConstraint; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.reteoo.Tuple; -import org.drools.core.time.Interval; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.IntervalProviderConstraint; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; import org.drools.mvel.evaluators.MvelEvaluator; import org.drools.mvel.evaluators.VariableRestriction; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; +import org.kie.api.runtime.rule.FactHandle; public class EvaluatorConstraint extends MutableTypeConstraint implements IntervalProviderConstraint { @@ -61,40 +65,40 @@ protected boolean isLiteral() { return declarations.length == 0; } - public boolean isAllowed(InternalFactHandle handle, ReteEvaluator reteEvaluator) { + public boolean isAllowed(FactHandle handle, ValueResolver valueResolver) { if (isLiteral()) { - return evaluator.evaluate(reteEvaluator, rightReadAccessor, handle, field); + return evaluator.evaluate(valueResolver, rightReadAccessor, handle, field); } - return evaluator.evaluate( reteEvaluator, + return evaluator.evaluate( valueResolver, rightReadAccessor, handle, declarations[0].getExtractor(), handle ); } - public boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle) { + public boolean isAllowedCachedLeft(ContextEntry context, FactHandle handle) { if (isLiteral()) { - return evaluator.evaluate( ((LiteralContextEntry) context).reteEvaluator, + return evaluator.evaluate( ((LiteralContextEntry) context).valueResolver, ((LiteralContextEntry) context).getFieldExtractor(), handle, field ); } - return ((MvelEvaluator) evaluator).evaluateCachedLeft( ((VariableContextEntry) context).reteEvaluator, + return ((MvelEvaluator) evaluator).evaluateCachedLeft( ((VariableContextEntry) context).valueResolver, (VariableContextEntry) context, handle ); } - public boolean isAllowedCachedRight(Tuple tuple, ContextEntry context) { + public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) { if (isLiteral()) { - return evaluator.evaluate( ((LiteralContextEntry) context).reteEvaluator, + return evaluator.evaluate( ((LiteralContextEntry) context).valueResolver, ((LiteralContextEntry) context).getFieldExtractor(), ((LiteralContextEntry) context).getFactHandle(), field ); } - return ((MvelEvaluator) evaluator).evaluateCachedRight( ((VariableContextEntry) context).reteEvaluator, + return ((MvelEvaluator) evaluator).evaluateCachedRight( ((VariableContextEntry) context).valueResolver, (VariableContextEntry) context, tuple.get(declarations[0])); } @@ -169,9 +173,9 @@ protected static class LiteralContextEntry implements ContextEntry { private static final long serialVersionUID = 510l; public ReadAccessor extractor; - public InternalFactHandle factHandle; + public FactHandle factHandle; public ContextEntry next; - public ReteEvaluator reteEvaluator; + public ValueResolver valueResolver; public LiteralContextEntry() { } @@ -185,21 +189,21 @@ public void readExternal(ObjectInput in) throws IOException, extractor = (ReadAccessor) in.readObject(); factHandle = ( InternalFactHandle ) in.readObject(); next = (ContextEntry) in.readObject(); - reteEvaluator = ( ReteEvaluator ) in .readObject(); + valueResolver = ( ValueResolver ) in .readObject(); } public void writeExternal(ObjectOutput out) throws IOException { out.writeObject( extractor ); out.writeObject( factHandle ); out.writeObject( next ); - out.writeObject( reteEvaluator ); + out.writeObject( valueResolver ); } public ReadAccessor getFieldExtractor() { return this.extractor; } - public InternalFactHandle getFactHandle() { + public FactHandle getFactHandle() { return this.factHandle; } @@ -211,15 +215,15 @@ public void setNext(final ContextEntry entry) { this.next = entry; } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { this.factHandle = handle; - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { - this.reteEvaluator = reteEvaluator; + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { + this.valueResolver = valueResolver; } public void resetTuple() { diff --git a/drools-mvel/src/main/java/org/drools/mvel/EvaluatorHelper.java b/drools-mvel/src/main/java/org/drools/mvel/EvaluatorHelper.java index 5be400579e5..1c9448eabd2 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/EvaluatorHelper.java +++ b/drools-mvel/src/main/java/org/drools/mvel/EvaluatorHelper.java @@ -1,53 +1,57 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel; import java.util.Collection; import java.util.HashMap; import java.util.Map; -import org.drools.core.base.CoreComponentsBuilder; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.CoreComponentsBuilder; import org.drools.compiler.rule.builder.EvaluatorWrapper; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; import org.drools.core.reteoo.Tuple; +import org.kie.api.runtime.rule.FactHandle; public class EvaluatorHelper { private EvaluatorHelper() { } - public static Map valuesAsMap(Object object, ReteEvaluator reteEvaluator, Tuple tuple, Declaration[] declarations) { + public static Map valuesAsMap(Object object, ValueResolver valueResolver, BaseTuple tuple, Declaration[] declarations) { if (declarations.length == 0) { return null; } Map map = new HashMap<>(); for (Declaration declaration : declarations) { if (tuple == null) { - map.put(declaration.getBindingName(), declaration.getExtractor().getValue(reteEvaluator, object)); + map.put(declaration.getBindingName(), declaration.getExtractor().getValue(valueResolver, object)); } else { Object fact = tuple.getObject(declaration); - map.put(declaration.getBindingName(), declaration.getExtractor().getValue(reteEvaluator, fact != null ? fact : object)); + map.put(declaration.getBindingName(), declaration.getExtractor().getValue(valueResolver, fact != null ? fact : object)); } } return map; } - public static void initOperators(InternalFactHandle handle, Tuple tuple, EvaluatorWrapper[] operators) { - InternalFactHandle[] handles = tuple != null ? tuple.toFactHandles() : new InternalFactHandle[0]; + public static void initOperators(FactHandle handle, Tuple tuple, EvaluatorWrapper[] operators) { + FactHandle[] handles = tuple != null ? tuple.toFactHandles() : new FactHandle[0]; for (EvaluatorWrapper operator : operators) { operator.loadHandles(handles, handle); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/MVELConditionEvaluator.java b/drools-mvel/src/main/java/org/drools/mvel/MVELConditionEvaluator.java index 97152b72978..c56875fa2d2 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/MVELConditionEvaluator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/MVELConditionEvaluator.java @@ -1,30 +1,34 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.Serializable; import java.util.HashMap; import java.util.Map; +import org.drools.base.base.ValueResolver; import org.drools.compiler.rule.builder.EvaluatorWrapper; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; import org.drools.mvel.expr.MVELCompilationUnit; import org.drools.mvel.expr.MvelEvaluator; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.MVEL; import org.mvel2.ParserConfiguration; import org.mvel2.ParserContext; @@ -92,18 +96,18 @@ public MVELConditionEvaluator( MVELCompilationUnit compilationUnit, this.evaluator = createMvelEvaluator( executableStatement ); } - public boolean evaluate(InternalFactHandle handle, ReteEvaluator reteEvaluator, Tuple tuple) { - return evaluate(evaluator, handle, reteEvaluator, tuple); + public boolean evaluate(FactHandle handle, ValueResolver valueResolver, BaseTuple tuple) { + return evaluate(evaluator, handle, valueResolver, tuple); } - private boolean evaluate(MvelEvaluator evaluator, InternalFactHandle handle, ReteEvaluator reteEvaluator, Tuple tuple) { + private boolean evaluate(MvelEvaluator evaluator, FactHandle handle, ValueResolver valueResolver, BaseTuple tuple) { if (compilationUnit == null) { - Map vars = valuesAsMap(handle.getObject(), reteEvaluator, tuple, declarations); + Map vars = valuesAsMap(handle.getObject(), valueResolver, tuple, declarations); if (operators.length > 0) { if (vars == null) { vars = new HashMap<>(); } - InternalFactHandle[] handles = tuple != null ? tuple.toFactHandles() : new InternalFactHandle[0]; + FactHandle[] handles = tuple != null ? tuple.toFactHandles() : new FactHandle[0]; for (EvaluatorWrapper operator : operators) { vars.put( operator.getBindingName(), operator ); operator.loadHandles(handles, handle); @@ -113,8 +117,8 @@ private boolean evaluate(MvelEvaluator evaluator, InternalFactHandle ha } VariableResolverFactory factory = compilationUnit.createFactory(); - compilationUnit.updateFactory( handle, tuple, null, reteEvaluator, - reteEvaluator.getGlobalResolver(), + compilationUnit.updateFactory( handle, tuple, null, valueResolver, + valueResolver.getGlobalResolver(), factory ); return evaluator.evaluate( handle.getObject(), factory ); @@ -126,41 +130,41 @@ private boolean evaluate(MvelEvaluator evaluator, Object object, Map packageNames; protected String expression; - private IndexUtil.ConstraintType constraintType = IndexUtil.ConstraintType.UNKNOWN; + private ConstraintTypeOperator constraintType = ConstraintTypeOperator.UNKNOWN; private Declaration[] declarations; private EvaluatorWrapper[] operators; private TupleValueExtractor indexingDeclaration; @@ -124,7 +133,7 @@ public MVELConstraint() {} public MVELConstraint(final String packageName, String expression, MVELCompilationUnit compilationUnit, - IndexUtil.ConstraintType constraintType, + ConstraintTypeOperator constraintType, FieldValue fieldValue, ReadAccessor extractor, EvaluatorWrapper[] operators) { @@ -159,14 +168,14 @@ public MVELConstraint(Collection packageNames, Declaration[] declarations, EvaluatorWrapper[] operators, MVELCompilationUnit compilationUnit, - IndexUtil.ConstraintType constraintType, + ConstraintTypeOperator constraintType, TupleValueExtractor indexingDeclaration, ReadAccessor extractor, boolean isUnification) { this.packageNames = new LinkedHashSet<>(packageNames); this.expression = expression; this.compilationUnit = compilationUnit; - this.constraintType = indexingDeclaration != null ? constraintType : IndexUtil.ConstraintType.UNKNOWN; + this.constraintType = indexingDeclaration != null ? constraintType : ConstraintTypeOperator.UNKNOWN; this.declarations = declarations == null ? EMPTY_DECLARATIONS : declarations; this.operators = operators == null ? EMPTY_OPERATORS : operators; this.indexingDeclaration = indexingDeclaration; @@ -217,7 +226,7 @@ public boolean isIndexable(short nodeType, KieBaseConfiguration config) { return getConstraintType().isIndexableForNode(nodeType, this, config); } - public IndexUtil.ConstraintType getConstraintType() { + public ConstraintTypeOperator getConstraintType() { return constraintType; } @@ -225,15 +234,15 @@ public FieldValue getField() { return fieldValue; } - public boolean isAllowed(InternalFactHandle handle, ReteEvaluator reteEvaluator) { + public boolean isAllowed(FactHandle handle, ValueResolver valueResolver) { if (isUnification) { throw new UnsupportedOperationException("Should not be called"); } - return evaluate(handle, reteEvaluator, null); + return evaluate(handle, valueResolver, null); } - public boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle) { + public boolean isAllowedCachedLeft(ContextEntry context, FactHandle handle) { if (isUnification) { if (((UnificationContextEntry) context).getVariable() != null) { return true; @@ -242,10 +251,10 @@ public boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle hand } MvelContextEntry mvelContextEntry = (MvelContextEntry) context; - return evaluate(handle, mvelContextEntry.reteEvaluator, mvelContextEntry.tuple); + return evaluate(handle, mvelContextEntry.valueResolver, mvelContextEntry.tuple); } - public boolean isAllowedCachedRight(Tuple tuple, ContextEntry context) { + public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) { if (isUnification) { DroolsQuery query = (DroolsQuery) tuple.get(0).getObject(); Variable v = query.getVariables()[((UnificationContextEntry) context).getReader().getIndex()]; @@ -257,82 +266,82 @@ public boolean isAllowedCachedRight(Tuple tuple, ContextEntry context) { } MvelContextEntry mvelContextEntry = (MvelContextEntry) context; - return evaluate(mvelContextEntry.rightHandle, mvelContextEntry.reteEvaluator, tuple); + return evaluate(mvelContextEntry.rightHandle, mvelContextEntry.valueResolver, tuple); } - protected boolean evaluate(InternalFactHandle handle, ReteEvaluator reteEvaluator, Tuple tuple) { + protected boolean evaluate(FactHandle handle, ValueResolver valueResolver, BaseTuple tuple) { if (!jitted) { - int jittingThreshold = TEST_JITTING ? 0 : reteEvaluator.getKnowledgeBase().getRuleBaseConfiguration().getJittingThreshold(); + int jittingThreshold = TEST_JITTING ? 0 : valueResolver.getRuleBase().getConfiguration().getOption(ConstraintJittingThresholdOption.KEY).getThreshold(); if (conditionEvaluator == null) { if (jittingThreshold == 0 && !isDynamic) { // Only for test purposes or when jitting is enforced at first evaluation synchronized (this) { if (conditionEvaluator == null) { - conditionEvaluator = forceJitEvaluator(handle, reteEvaluator, tuple); + conditionEvaluator = forceJitEvaluator(handle, valueResolver, tuple); } } } else { - conditionEvaluator = createMvelConditionEvaluator(reteEvaluator); + conditionEvaluator = createMvelConditionEvaluator(valueResolver); } } if (jittingThreshold != 0 && !isDynamic && invocationCounter.getAndIncrement() == jittingThreshold) { - jitEvaluator(handle, reteEvaluator, tuple); + jitEvaluator(handle, valueResolver, tuple); } } try { - return conditionEvaluator.evaluate(handle, reteEvaluator, tuple); + return conditionEvaluator.evaluate(handle, valueResolver, tuple); } catch (Exception e) { throw new ConstraintEvaluationException(expression, evaluationContext, e); } } - protected ConditionEvaluator createMvelConditionEvaluator(ReteEvaluator reteEvaluator) { + protected ConditionEvaluator createMvelConditionEvaluator(ValueResolver valueResolver) { if (compilationUnit != null) { - MVELDialectRuntimeData data = getMVELDialectRuntimeData(reteEvaluator); + MVELDialectRuntimeData data = getMVELDialectRuntimeData(valueResolver); ExecutableStatement statement = (ExecutableStatement)compilationUnit.getCompiledExpression(data, evaluationContext); ParserConfiguration configuration = statement instanceof CompiledExpression ? ((CompiledExpression) statement).getParserConfiguration() : data.getParserConfiguration(); return new MVELConditionEvaluator(compilationUnit, configuration, statement, declarations, operators, getAccessedClass()); } else { - return new MVELConditionEvaluator(getParserConfiguration(reteEvaluator), expression, declarations, operators, getAccessedClass()); + return new MVELConditionEvaluator(getParserConfiguration(valueResolver), expression, declarations, operators, getAccessedClass()); } } - protected ConditionEvaluator forceJitEvaluator(InternalFactHandle handle, ReteEvaluator reteEvaluator, Tuple tuple) { - ConditionEvaluator mvelEvaluator = createMvelConditionEvaluator(reteEvaluator); + protected ConditionEvaluator forceJitEvaluator(FactHandle handle, ValueResolver valueResolver, BaseTuple tuple) { + ConditionEvaluator mvelEvaluator = createMvelConditionEvaluator(valueResolver); try { - mvelEvaluator.evaluate(handle, reteEvaluator, tuple); + mvelEvaluator.evaluate(handle, valueResolver, tuple); } catch (ClassCastException cce) { } catch (Exception e) { - return createMvelConditionEvaluator(reteEvaluator); + return createMvelConditionEvaluator(valueResolver); } - return executeJitting(handle, reteEvaluator, tuple, mvelEvaluator); + return executeJitting(handle, valueResolver, tuple, mvelEvaluator); } - protected void jitEvaluator(InternalFactHandle handle, ReteEvaluator reteEvaluator, Tuple tuple) { + protected void jitEvaluator(FactHandle handle, ValueResolver valueResolver, BaseTuple tuple) { jitted = true; - ExecutorHolder.executor.execute(new ConditionJitter(this, handle, reteEvaluator, tuple)); + ExecutorHolder.executor.execute(new ConditionJitter(this, handle, valueResolver, tuple)); } private static class ConditionJitter implements Runnable { private MVELConstraint mvelConstraint; - private InternalFactHandle rightHandle; - private ReteEvaluator reteEvaluator; - private Tuple tuple; + private FactHandle rightHandle; + private ValueResolver valueResolver; + private BaseTuple tuple; - private ConditionJitter( MVELConstraint mvelConstraint, InternalFactHandle rightHandle, ReteEvaluator reteEvaluator, Tuple tuple) { + private ConditionJitter( MVELConstraint mvelConstraint, FactHandle rightHandle, ValueResolver valueResolver, BaseTuple tuple) { this.mvelConstraint = mvelConstraint; this.rightHandle = rightHandle; - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; this.tuple = tuple; } public void run() { - mvelConstraint.conditionEvaluator = mvelConstraint.executeJitting(rightHandle, reteEvaluator, tuple, mvelConstraint.conditionEvaluator); + mvelConstraint.conditionEvaluator = mvelConstraint.executeJitting(rightHandle, valueResolver, tuple, mvelConstraint.conditionEvaluator); mvelConstraint = null; rightHandle = null; - reteEvaluator = null; + valueResolver = null; tuple = null; } } @@ -341,8 +350,8 @@ private static class ExecutorHolder { private static final Executor executor = ExecutorProviderFactory.getExecutorProvider().getExecutor(); } - private ConditionEvaluator executeJitting(InternalFactHandle handle, ReteEvaluator reteEvaluator, Tuple tuple, ConditionEvaluator mvelEvaluator) { - RuleBase kBase = reteEvaluator.getKnowledgeBase(); + private ConditionEvaluator executeJitting(FactHandle handle, ValueResolver valueResolver, BaseTuple tuple, ConditionEvaluator mvelEvaluator) { + RuleBase kBase = valueResolver.getRuleBase(); if (!isJmxAvailable()) { // @TODO have Mario check this (mdp feb2023) return mvelEvaluator; @@ -350,7 +359,7 @@ private ConditionEvaluator executeJitting(InternalFactHandle handle, ReteEvaluat try { if (analyzedCondition == null) { - analyzedCondition = (( MVELConditionEvaluator ) mvelEvaluator).getAnalyzedCondition(handle, reteEvaluator, tuple); + analyzedCondition = (( MVELConditionEvaluator ) mvelEvaluator).getAnalyzedCondition(handle, valueResolver, tuple); } ClassLoader jitClassLoader = kBase.getRootClassLoader() instanceof ProjectClassLoader ? ((ProjectClassLoader) kBase.getRootClassLoader()).getTypesClassLoader() : @@ -431,13 +440,16 @@ public void replaceDeclaration(Declaration oldDecl, Declaration newDecl) { // Slot specific @Override - public BitMask getListenedPropertyMask(ObjectType modifiedType, List settableProperties) { + public BitMask getListenedPropertyMask(Optional pattern, ObjectType modifiedType, List settableProperties) { return analyzedCondition != null ? calculateMask(modifiedType, settableProperties) : - calculateMaskFromExpression(settableProperties); + calculateMaskFromExpression(pattern, settableProperties); } - private BitMask calculateMaskFromExpression(List settableProperties) { + /* + * if pattern is empty, bind variables are considered to be declared in the same pattern. It should be fine for alpha constraints + */ + private BitMask calculateMaskFromExpression(Optional pattern, List settableProperties) { BitMask mask = getEmptyPropertyReactiveMask(settableProperties.size()); String[] simpleExpressions = expression.split("\\Q&&\\E|\\Q||\\E"); @@ -448,6 +460,7 @@ private BitMask calculateMaskFromExpression(List settableProperties) { } boolean firstProp = true; for (String propertyName : properties) { + String originalPropertyName = propertyName; if (propertyName == null || propertyName.equals("this") || propertyName.length() == 0) { return allSetButTraitBitMask(); } @@ -457,7 +470,7 @@ private BitMask calculateMaskFromExpression(List settableProperties) { propertyName = propertyName.substring(0, 1).toLowerCase() + propertyName.substring(1); pos = settableProperties.indexOf(propertyName); } else { - propertyName = findBoundVariable(propertyName); + propertyName = findBoundVariable(propertyName, pattern); if (propertyName != null) { pos = settableProperties.indexOf(propertyName); } @@ -468,6 +481,16 @@ private BitMask calculateMaskFromExpression(List settableProperties) { } else { // if it is not able to find the property name it could be a function invocation so property reactivity shouldn't filter anything if (firstProp) { + if (simpleExpression.indexOf(" contains ") > simpleExpression.indexOf(originalPropertyName)) { + // A contains expression could be a rewritten memberOf so give a change also to the part of expression + // after the 'contains' keyword to be analyzed before emitting a warning and consider the constraint as class reactive + continue; + } + if (isBoundVariableFromDifferentPattern(originalPropertyName, pattern)) { + logger.warn("{} is not relevant to this pattern, so it causes class reactivity." + + " Consider placing this constraint in the original pattern if possible : {}", + originalPropertyName, simpleExpression); + } return allSetBitMask(); } } @@ -478,9 +501,9 @@ private BitMask calculateMaskFromExpression(List settableProperties) { return mask; } - private String findBoundVariable(String variable) { + private String findBoundVariable(String variable, Optional pattern) { for (Declaration declaration : declarations) { - if (declaration.getIdentifier().equals(variable)) { + if (declaration.getIdentifier().equals(variable) && (!pattern.isPresent() || declaration.getPattern().equals(pattern.get()))) { // if pattern is not given, assume it's the same pattern ReadAccessor accessor = declaration.getExtractor(); if (accessor instanceof ClassFieldReader) { return ((ClassFieldReader) accessor).getFieldName(); @@ -490,6 +513,18 @@ private String findBoundVariable(String variable) { return null; } + private boolean isBoundVariableFromDifferentPattern(String variable, Optional pattern) { + if (!pattern.isPresent()) { + return false; + } + for (Declaration declaration : declarations) { + if (declaration.getIdentifier().equals(variable) && !declaration.getPattern().equals(pattern.get())) { + return true; + } + } + return false; + } + private List getPropertyNamesFromSimpleExpression(String expression) { List names = new ArrayList<>(); for (int cursor = 0; cursor < expression.length(); cursor = nextPropertyName(expression, names, cursor)); @@ -657,7 +692,7 @@ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundExcept indexingDeclaration = (Declaration) in.readObject(); declarations = (Declaration[]) in.readObject(); - constraintType = (IndexUtil.ConstraintType) in.readObject(); + constraintType = (ConstraintTypeOperator) in.readObject(); isUnification = in.readBoolean(); isDynamic = in.readBoolean(); fieldValue = (FieldValue) in.readObject(); @@ -704,17 +739,17 @@ public MVELConstraint clone() { public int hashCode() { if (isAlphaHashable()) { - return 29 * getLeftInExpression(IndexUtil.ConstraintType.EQUAL).hashCode() + 31 * fieldValue.hashCode(); + return 29 * getLeftInExpression(ConstraintTypeOperator.EQUAL).hashCode() + 31 * fieldValue.hashCode(); } return expression.hashCode(); } - private String getLeftInExpression(IndexUtil.ConstraintType constraint) { + private String getLeftInExpression(ConstraintTypeOperator constraint) { return expression.substring(0, codeAwareIndexOf(expression, constraint.getOperator())).trim(); } private boolean isAlphaHashable() { - return fieldValue != null && constraintType == IndexUtil.ConstraintType.EQUAL && getType() == ConstraintType.ALPHA; + return fieldValue != null && constraintType == ConstraintTypeOperator.EQUAL && getType() == ConstraintType.ALPHA; } public boolean equals(final Object object) { @@ -727,8 +762,8 @@ public boolean equals(final Object object) { MVELConstraint other = (MVELConstraint) object; if (isAlphaHashable()) { if (!other.isAlphaHashable() || - !getLeftInExpression(IndexUtil.ConstraintType.EQUAL).equals(other.getLeftInExpression(IndexUtil.ConstraintType.EQUAL)) || - !fieldValue.equals(other.fieldValue)) { + !getLeftInExpression(ConstraintTypeOperator.EQUAL).equals(other.getLeftInExpression(ConstraintTypeOperator.EQUAL)) || + !fieldValue.equals(other.fieldValue)) { return false; } } else { @@ -758,8 +793,8 @@ public boolean equals(Object object, RuleBase kbase) { return true; } - Map thisImports = (( MVELDialectRuntimeData ) kbase.getPackage( thisPkg ).getDialectRuntimeRegistry().getDialectData("mvel")).getImports(); - Map otherImports = (( MVELDialectRuntimeData ) kbase.getPackage( otherPkg ).getDialectRuntimeRegistry().getDialectData("mvel")).getImports(); + Map thisImports = (( MVELDialectRuntimeData ) ((KnowledgeBaseImpl)kbase).getPackage(thisPkg).getDialectRuntimeRegistry().getDialectData("mvel")).getImports(); + Map otherImports = (( MVELDialectRuntimeData ) ((KnowledgeBaseImpl)kbase).getPackage(otherPkg).getDialectRuntimeRegistry().getDialectData("mvel")).getImports(); if (fieldValue != null && constraintType.getOperator() != null) { return equalsExpressionTokensInBothImports(getLeftInExpression(constraintType), thisImports, otherImports); @@ -813,17 +848,17 @@ public String toString() { return expression; } - protected ParserConfiguration getParserConfiguration(ReteEvaluator reteEvaluator) { - return getMVELDialectRuntimeData(reteEvaluator).getParserConfiguration(); + protected ParserConfiguration getParserConfiguration(ValueResolver valueResolver) { + return getMVELDialectRuntimeData(valueResolver).getParserConfiguration(); } - protected MVELDialectRuntimeData getMVELDialectRuntimeData(ReteEvaluator reteEvaluator) { - return getMVELDialectRuntimeData(reteEvaluator.getKnowledgeBase()); + protected MVELDialectRuntimeData getMVELDialectRuntimeData(ValueResolver valueResolver) { + return getMVELDialectRuntimeData(valueResolver.getRuleBase()); } protected MVELDialectRuntimeData getMVELDialectRuntimeData(RuleBase kbase) { for (String packageName : packageNames) { - InternalKnowledgePackage pkg = kbase.getPackage(packageName); + InternalKnowledgePackage pkg = ((InternalKnowledgeBase)kbase).getPackage(packageName); if (pkg != null) { return ((MVELDialectRuntimeData) pkg.getDialectRuntimeRegistry().getDialectData("mvel")); } @@ -836,11 +871,11 @@ protected MVELDialectRuntimeData getMVELDialectRuntimeData(RuleBase kbase) { public static class MvelContextEntry implements ContextEntry { protected ContextEntry next; - protected Tuple tuple; - protected InternalFactHandle rightHandle; + protected BaseTuple tuple; + protected FactHandle rightHandle; protected Declaration[] declarations; - protected transient ReteEvaluator reteEvaluator; + protected transient ValueResolver valueResolver; public MvelContextEntry() { } @@ -856,13 +891,13 @@ public void setNext(final ContextEntry entry) { this.next = entry; } - public void updateFromTuple(ReteEvaluator reteEvaluator, Tuple tuple) { + public void updateFromTuple(ValueResolver valueResolver, BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; } - public void updateFromFactHandle(ReteEvaluator reteEvaluator, InternalFactHandle handle) { - this.reteEvaluator = reteEvaluator; + public void updateFromFactHandle(ValueResolver valueResolver, FactHandle handle) { + this.valueResolver = valueResolver; rightHandle = handle; } @@ -871,7 +906,7 @@ public void resetTuple() { } public void resetFactHandle() { - reteEvaluator = null; + valueResolver = null; rightHandle = null; } @@ -883,13 +918,13 @@ public void writeExternal(ObjectOutput out) throws IOException { } public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { - tuple = (Tuple) in.readObject(); - rightHandle = (InternalFactHandle) in.readObject(); + tuple = (BaseTuple) in.readObject(); + rightHandle = (FactHandle) in.readObject(); declarations = (Declaration[]) in.readObject(); next = (ContextEntry) in.readObject(); } - public InternalFactHandle getRight() { + public FactHandle getRight() { return rightHandle; } @@ -938,18 +973,18 @@ public void setNext(ContextEntry entry) { this.contextEntry.setNext( entry ); } - public void updateFromFactHandle(ReteEvaluator reteEvaluator, - InternalFactHandle handle) { - this.contextEntry.updateFromFactHandle(reteEvaluator, handle); + public void updateFromFactHandle(ValueResolver valueResolver, + FactHandle handle) { + this.contextEntry.updateFromFactHandle(valueResolver, handle); } - public void updateFromTuple(ReteEvaluator reteEvaluator, - Tuple tuple) { + public void updateFromTuple(ValueResolver valueResolver, + BaseTuple tuple) { DroolsQuery query = (DroolsQuery) tuple.getObject(0); this.variable = query.getVariables()[this.reader.getIndex()]; if (this.variable == null) { // if there is no Variable, handle it as a normal constraint - this.contextEntry.updateFromTuple(reteEvaluator, tuple); + this.contextEntry.updateFromTuple(valueResolver, tuple); } } @@ -970,8 +1005,7 @@ public Variable getVariable() { } - @Override - public void registerEvaluationContext(BuildContext buildContext) { + public void registerEvaluationContext(RuleBuildContext buildContext) { evaluationContext.addContext(buildContext); } @@ -993,7 +1027,7 @@ public static class EvaluationContext implements Externalizable { public static final int MAX_RULE_DEFS = Integer.getInteger("drools.evaluationContext.maxRuleDefs", 10); private boolean moreThanMaxRuleDefs = false; - public void addContext(BuildContext buildContext) { + public void addContext(RuleBuildContext buildContext) { if (moreThanMaxRuleDefs || ruleNameMap.values().stream().mapToLong(Collection::size).sum() >= MAX_RULE_DEFS) { moreThanMaxRuleDefs = true; return; diff --git a/drools-mvel/src/main/java/org/drools/mvel/MVELConstraintBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/MVELConstraintBuilder.java index f7ce25f7830..391d5ca6b3b 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/MVELConstraintBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/MVELConstraintBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.IOException; @@ -29,6 +33,8 @@ import java.util.Objects; import java.util.Set; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.ValueResolver; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.builder.impl.KnowledgeBuilderRulesConfigurationImpl; import org.drools.compiler.compiler.AnalysisResult; @@ -40,9 +46,11 @@ import org.drools.compiler.rule.builder.ConstraintBuilder; import org.drools.compiler.rule.builder.PatternBuilder; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.DroolsQuery; +import org.drools.base.base.ClassObjectType; import org.drools.compiler.rule.builder.EvaluatorWrapper; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.mvel.evaluators.AfterEvaluatorDefinition; import org.drools.mvel.evaluators.BeforeEvaluatorDefinition; import org.drools.mvel.evaluators.CoincidesEvaluatorDefinition; @@ -58,25 +66,21 @@ import org.drools.mvel.evaluators.StartsEvaluatorDefinition; import org.drools.mvel.evaluators.StrEvaluatorDefinition; import org.drools.mvel.field.FieldFactory; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.QueryArgument; -import org.drools.core.rule.constraint.Constraint; -import org.drools.core.rule.accessor.DeclarationScopeResolver; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.QueryArgument; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.rule.accessor.DeclarationScopeResolver; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.core.time.TimerExpression; -import org.drools.core.util.index.IndexUtil; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.BindingDescr; import org.drools.drl.ast.descr.LiteralRestrictionDescr; @@ -197,14 +201,14 @@ public Constraint buildVariableConstraint( RuleBuildContext context, } boolean isUnification = requiredDeclaration != null && - requiredDeclaration.getPattern().getObjectType().equals( new ClassObjectType( DroolsQuery.class ) ) && + requiredDeclaration.getPattern().getObjectType().equals( new ClassObjectType( DroolsQuery.class )) && Operator.BuiltInOperator.EQUAL.getSymbol().equals( operatorDescr.getOperator() ); if (isUnification && leftValue.equals(rightValue)) { expression = resolveUnificationAmbiguity(declarations, leftValue, rightValue); } expression = normalizeMVELVariableExpression(expression, leftValue, rightValue, relDescr); - IndexUtil.ConstraintType constraintType = IndexUtil.ConstraintType.decode(operatorDescr.getOperator(), operatorDescr.isNegated()); + ConstraintTypeOperator constraintType = ConstraintTypeOperator.decode(operatorDescr.getOperator(), operatorDescr.isNegated()); MVELCompilationUnit compilationUnit = isUnification ? null : buildCompilationUnit(context, pattern, expression, aliases); EvaluatorWrapper[] operators = getOperators(buildOperators(context, pattern, relDescr, aliases)); return new MVELConstraint( Collections.singletonList( context.getPkg().getName() ), expression, declarations, operators, compilationUnit, constraintType, requiredDeclaration, extractor, isUnification); @@ -253,8 +257,8 @@ public Constraint buildLiteralConstraint(RuleBuildContext context, } String mvelExpr = normalizeMVELLiteralExpression(vtype, field, expression, leftValue, operator, rightValue, negated, restrictionDescr); - IndexUtil.ConstraintType constraintType = IndexUtil.ConstraintType.decode(operator, negated); - if (constraintType == IndexUtil.ConstraintType.EQUAL && negated) { + ConstraintTypeOperator constraintType = ConstraintTypeOperator.decode(operator, negated); + if (constraintType == ConstraintTypeOperator.EQUAL && negated) { mvelExpr = normalizeDoubleNegation(mvelExpr); } MVELCompilationUnit compilationUnit = buildCompilationUnit(context, pattern, mvelExpr, aliases); @@ -297,7 +301,7 @@ protected static String normalizeMVELLiteralExpression(ValueType vtype, if (!negated) { return normalized; } - IndexUtil.ConstraintType constraintType = IndexUtil.ConstraintType.decode(operator); + ConstraintTypeOperator constraintType = ConstraintTypeOperator.decode(operator); return constraintType.getOperator() != null ? leftValue + " " + constraintType.negate().getOperator() + getNormalizeDate( vtype, field ) : "!(" + normalized + ")"; @@ -552,7 +556,7 @@ public TimerExpression buildTimerExpression( String expression, RuleBuildContext for ( String id : usedIdentifiers.getDeclrClasses().keySet() ) { previousDeclarations[i++] = decls.get( id ); } - Arrays.sort(previousDeclarations, RuleTerminalNode.SortDeclarations.instance); + Arrays.sort(previousDeclarations, SortDeclarations.instance); MVELCompilationUnit unit = dialect.getMVELCompilationUnit( expression, analysis, @@ -858,10 +862,10 @@ private void init() { } @Override - public Object getValue(ReteEvaluator reteEvaluator, LeftTuple leftTuple ) { + public Object getValue(ValueResolver valueResolver, BaseTuple tuple) { Map vars = new HashMap<>(); for (Declaration d : declarations) { - vars.put(d.getBindingName(), QueryArgument.evaluateDeclaration( reteEvaluator, leftTuple, d )); + vars.put(d.getBindingName(), QueryArgument.evaluateDeclaration( valueResolver, tuple, d )); } return evaluator.evaluate( null, vars ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/MVELCoreComponentFactory.java b/drools-mvel/src/main/java/org/drools/mvel/MVELCoreComponentFactory.java index b0708c58aa6..633fd689a48 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/MVELCoreComponentFactory.java +++ b/drools-mvel/src/main/java/org/drools/mvel/MVELCoreComponentFactory.java @@ -1,21 +1,24 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.mvel; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.core.reteoo.CoreComponentFactory; public class MVELCoreComponentFactory extends CoreComponentFactory.DroolsCoreComponentFactory { diff --git a/drools-mvel/src/main/java/org/drools/mvel/MVELCoreComponentsBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/MVELCoreComponentsBuilder.java index cf83f23668c..5bef2375e24 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/MVELCoreComponentsBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/MVELCoreComponentsBuilder.java @@ -1,27 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.IOException; import java.util.Date; -import org.drools.core.base.ClassFieldInspector; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.rule.DialectRuntimeData; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.util.MVELExecutor; +import org.drools.base.base.ClassFieldInspector; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.rule.DialectRuntimeData; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.util.MVELExecutor; import org.drools.mvel.asm.ClassFieldInspectorImpl; import org.drools.mvel.extractors.MVELDateClassFieldReader; import org.drools.mvel.extractors.MVELNumberClassFieldReader; diff --git a/drools-mvel/src/main/java/org/drools/mvel/MVELDialectRuntimeData.java b/drools-mvel/src/main/java/org/drools/mvel/MVELDialectRuntimeData.java index c9e4f40511e..a5cd0f3f0f1 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/MVELDialectRuntimeData.java +++ b/drools-mvel/src/main/java/org/drools/mvel/MVELDialectRuntimeData.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.Externalizable; @@ -31,13 +35,14 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.DialectRuntimeData; -import org.drools.core.rule.DialectRuntimeRegistry; +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Function; +import org.drools.base.rule.DialectRuntimeData; +import org.drools.base.rule.DialectRuntimeRegistry; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.Wireable; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.Wireable; import org.drools.mvel.expr.MVELCompileable; import org.mvel2.ParserConfiguration; import org.mvel2.integration.VariableResolver; @@ -222,7 +227,7 @@ public void addFunction(org.mvel2.ast.Function function) { // TODO: FIXME: make it consistent with above public void removeFunction(KnowledgePackageImpl pkg, - org.drools.core.rule.Function function) { + Function function) { this.functionFactory.removeFunction( function.getName() ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/MVELGroupByAccumulate.java b/drools-mvel/src/main/java/org/drools/mvel/MVELGroupByAccumulate.java new file mode 100644 index 00000000000..06891851a02 --- /dev/null +++ b/drools-mvel/src/main/java/org/drools/mvel/MVELGroupByAccumulate.java @@ -0,0 +1,198 @@ +/** + * 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. + */ +package org.drools.mvel; + +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.AccumulateContextEntry; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReturnValueExpression; +import org.drools.base.rule.accessor.Wireable; +import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.ReteEvaluator; +import org.drools.core.reteoo.AccumulateNode; +import org.drools.core.reteoo.EvalNodeLeftTuple; +import org.drools.core.reteoo.LeftTuple; +import org.drools.core.reteoo.Tuple; +import org.drools.core.util.index.TupleList; +import org.kie.api.runtime.rule.FactHandle; + +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +public class MVELGroupByAccumulate extends Accumulate { + private Accumulate innerAccumulate; + private Declaration[] groupingDeclarations; + private ReturnValueExpression groupingFunction; + + private boolean isMvel; + + public MVELGroupByAccumulate() { } + + public MVELGroupByAccumulate( Accumulate innerAccumulate, Declaration[] groupingDeclarations, ReturnValueExpression groupingFunction, boolean isMvel ) { + super(innerAccumulate.getSource(), innerAccumulate.getRequiredDeclarations()); + this.innerAccumulate = innerAccumulate; + this.groupingDeclarations = groupingDeclarations; + this.groupingFunction = groupingFunction; + this.isMvel = isMvel; + } + + public Accumulate getInnerAccumulate() { + return innerAccumulate; + } + + private Object getKey( Tuple tuple, FactHandle handle, ReteEvaluator reteEvaluator ) { + try { + Tuple keyTuple = isMvel? tuple : new EvalNodeLeftTuple((InternalFactHandle) handle, (LeftTuple) tuple, tuple + .getTupleSink()); + FieldValue out = groupingFunction.evaluate(handle, keyTuple, groupingDeclarations, + getInnerDeclarationCache(), reteEvaluator, groupingFunction.createContext()); + return out.getValue(); + } catch (Exception e) { + throw new RuntimeException("Grouping function threw an exception", e); + } + } + + @Override + public void readExternal( ObjectInput in) throws IOException, + ClassNotFoundException { + super.readExternal(in); + this.innerAccumulate = (Accumulate) in.readObject(); + this.groupingDeclarations = (Declaration[]) in.readObject(); + this.groupingFunction = (ReturnValueExpression) in.readObject(); + this.isMvel = in.readBoolean(); + } + + @Override + public void writeExternal( ObjectOutput out) throws IOException { + super.writeExternal(out); + out.writeObject(innerAccumulate); + out.writeObject(groupingDeclarations); + out.writeObject(groupingFunction); + out.writeBoolean(isMvel); + } + + @Override + public Accumulator[] getAccumulators() { + return innerAccumulate.getAccumulators(); + } + + @Override + public Object createFunctionContext() { + return innerAccumulate.createFunctionContext(); + } + + @Override + public Object init(Object workingMemoryContext, Object accContext, + Object funcContext, BaseTuple leftTuple, ValueResolver valueResolver) { + // do nothing here, it's done when the group is first created + return funcContext; + } + + @Override + public Object accumulate(Object workingMemoryContext, Object context, + BaseTuple match, FactHandle handle, ValueResolver valueResolver) { + AccumulateNode.GroupByContext groupByContext = (AccumulateNode.GroupByContext) context; + TupleList tupleList = groupByContext.getGroup(workingMemoryContext, innerAccumulate, + (Tuple) match, getKey( (Tuple) match, handle, (ReteEvaluator) valueResolver), (ReteEvaluator) valueResolver); + + return accumulate(workingMemoryContext, match, handle, groupByContext, tupleList, valueResolver); + } + + @Override + public Object accumulate(Object workingMemoryContext, BaseTuple match, FactHandle handle, + Object groupByContext, Object tupleList, ValueResolver valueResolver) { + TupleList list = (TupleList) tupleList; + ((AccumulateNode.GroupByContext)groupByContext).moveToPropagateTupleList( list); + return innerAccumulate.accumulate(workingMemoryContext, list.getContext(), match, handle, valueResolver); + } + + @Override + public boolean tryReverse(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, + BaseTuple match, ValueResolver valueResolver) { + Tuple tupleMatch = (Tuple) match; + TupleList memory = tupleMatch.getMemory(); + AccumulateContextEntry entry = memory.getContext(); + boolean reversed = innerAccumulate.tryReverse(workingMemoryContext, entry, leftTuple, handle, match, valueResolver); + + if (reversed) { + AccumulateNode.GroupByContext groupByContext = (AccumulateNode.GroupByContext) context; + groupByContext.moveToPropagateTupleList( tupleMatch.getMemory() ); + + memory.remove( tupleMatch ); + if ( memory.isEmpty() ) { + groupByContext.removeGroup( entry.getKey() ); + memory.getContext().setEmpty( true ); + } + } + + return reversed; + } + + @Override + public Object getResult( Object workingMemoryContext, Object context, BaseTuple leftTuple, ValueResolver valueResolver ) { + AccumulateContextEntry entry = (AccumulateContextEntry) context; + return entry.isEmpty() ? null : innerAccumulate.getResult(workingMemoryContext, context, leftTuple, valueResolver); + } + + @Override + public boolean supportsReverse() { + return innerAccumulate.supportsReverse(); + } + + @Override + public Accumulate clone() { + return new MVELGroupByAccumulate( innerAccumulate.clone(), groupingDeclarations, groupingFunction, isMvel ); + } + + @Override + public Object createWorkingMemoryContext() { + return innerAccumulate.createWorkingMemoryContext(); + } + + @Override + public boolean isMultiFunction() { + return innerAccumulate.isMultiFunction(); + } + + @Override + public void replaceAccumulatorDeclaration( Declaration declaration, Declaration resolved ) { + innerAccumulate.replaceAccumulatorDeclaration(declaration, resolved); + } + + @Override + public boolean isGroupBy() { + return true; + } + + public class GroupingFunctionWirer implements Wireable { + @Override + public void wire(Object object) { + ReturnValueExpression expression = (ReturnValueExpression) object; + groupingFunction = expression; + for ( Accumulate clone : cloned ) { + ((MVELGroupByAccumulate)clone).groupingFunction = expression; + } + } + } +} diff --git a/drools-mvel/src/main/java/org/drools/mvel/MVELKnowledgePackageImpl.java b/drools-mvel/src/main/java/org/drools/mvel/MVELKnowledgePackageImpl.java index 25a537da0e5..3cbe03b069c 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/MVELKnowledgePackageImpl.java +++ b/drools-mvel/src/main/java/org/drools/mvel/MVELKnowledgePackageImpl.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2022. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.ByteArrayInputStream; @@ -27,23 +31,23 @@ import org.drools.mvel.accessors.ClassFieldAccessor; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.ResourceTypePackageRegistry; -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.rule.DialectRuntimeRegistry; -import org.drools.core.rule.Function; -import org.drools.core.rule.ImportDeclaration; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.WindowDeclaration; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.rule.accessor.AcceptsReadAccessor; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.base.ObjectType; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.ResourceTypePackageRegistry; +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.rule.DialectRuntimeRegistry; +import org.drools.base.rule.Function; +import org.drools.base.rule.ImportDeclaration; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.WindowDeclaration; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.rule.accessor.AcceptsReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.base.ObjectType; import org.drools.util.ClassUtils; import org.kie.api.runtime.rule.AccumulateFunction; import org.kie.internal.builder.KnowledgeBuilderResult; @@ -65,8 +69,8 @@ public ClassFieldAccessorStore getClassFieldAccessorStore() { return classFieldAccessorStore; } - public void setClassFieldAccessorCache(ClassFieldAccessorCache classFieldAccessorCache) { - this.classFieldAccessorStore.setClassFieldAccessorCache(classFieldAccessorCache); + public void setClassFieldAccessorCache(Object classFieldAccessorCache) { + this.classFieldAccessorStore.setClassFieldAccessorCache( (ClassFieldAccessorCache) classFieldAccessorCache); } @Override diff --git a/drools-mvel/src/main/java/org/drools/mvel/MVELSafeHelper.java b/drools-mvel/src/main/java/org/drools/mvel/MVELSafeHelper.java index 6a9a4b73750..1e880f74c24 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/MVELSafeHelper.java +++ b/drools-mvel/src/main/java/org/drools/mvel/MVELSafeHelper.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import org.drools.mvel.util.MVELEvaluator; diff --git a/drools-mvel/src/main/java/org/drools/mvel/SessionReporter.java b/drools-mvel/src/main/java/org/drools/mvel/SessionReporter.java index 95cfa612fdf..c8527ca6f07 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/SessionReporter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/SessionReporter.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.InputStream; diff --git a/drools-mvel/src/main/java/org/drools/mvel/UnsafeMVELEvaluator.java b/drools-mvel/src/main/java/org/drools/mvel/UnsafeMVELEvaluator.java index 05397174b02..f6064019c9d 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/UnsafeMVELEvaluator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/UnsafeMVELEvaluator.java @@ -1,20 +1,24 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; -import org.drools.core.util.MVELExecutor; +import org.drools.base.util.MVELExecutor; import org.drools.mvel.util.RawMVELEvaluator; import org.mvel2.util.Soundex; diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseBooleanClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseBooleanClassFieldReader.java index b7013903c80..ae35e6d5f9d 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseBooleanClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseBooleanClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; /** * A Base class for primitive boolean class field @@ -48,51 +50,51 @@ protected BaseBooleanClassFieldReader(final int index, public BaseBooleanClassFieldReader() { } - public Object getValue(ReteEvaluator reteEvaluator, + public Object getValue(ValueResolver valueResolver, final Object object) { - return getBooleanValue( reteEvaluator, + return getBooleanValue( valueResolver, object ) ? Boolean.TRUE : Boolean.FALSE; } - public abstract boolean getBooleanValue(ReteEvaluator reteEvaluator, + public abstract boolean getBooleanValue(ValueResolver valueResolver, Object object); - public byte getByteValue(ReteEvaluator reteEvaluator, + public byte getByteValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to byte not supported from boolean" ); } - public char getCharValue(ReteEvaluator reteEvaluator, + public char getCharValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to char not supported from boolean" ); } - public double getDoubleValue(ReteEvaluator reteEvaluator, + public double getDoubleValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to double not supported from boolean" ); } - public float getFloatValue(ReteEvaluator reteEvaluator, + public float getFloatValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to float not supported from boolean" ); } - public int getIntValue(ReteEvaluator reteEvaluator, + public int getIntValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to int not supported from boolean" ); } - public long getLongValue(ReteEvaluator reteEvaluator, + public long getLongValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to long not supported from boolean" ); } - public short getShortValue(ReteEvaluator reteEvaluator, + public short getShortValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to short not supported from boolean" ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, + public boolean isNullValue(ValueResolver valueResolver, final Object object) { return false; } @@ -100,16 +102,16 @@ public boolean isNullValue(ReteEvaluator reteEvaluator, public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getBooleanValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); } } - public int getHashCode(ReteEvaluator reteEvaluator, + public int getHashCode(ValueResolver valueResolver, final Object object) { - return getBooleanValue( reteEvaluator, + return getBooleanValue( valueResolver, object ) ? 1231 : 1237; } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseBooleanClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseBooleanClassFieldWriter.java index f2b65d0364d..eb0c52e5933 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseBooleanClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseBooleanClassFieldWriter.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; /** * A Base class for primitive boolean class field diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseByteClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseByteClassFieldReader.java index 0e804f7ed5e..90575ed705e 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseByteClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseByteClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; /** * A Base class for primitive byte class field @@ -48,55 +50,55 @@ protected BaseByteClassFieldReader(final int index, public BaseByteClassFieldReader() { } - public Object getValue(ReteEvaluator reteEvaluator, final Object object) { - return getByteValue( reteEvaluator, object ); + public Object getValue(ValueResolver valueResolver, final Object object) { + return getByteValue( valueResolver, object ); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to boolean not supported from byte" ); } - public abstract byte getByteValue(ReteEvaluator reteEvaluator, Object object); + public abstract byte getByteValue(ValueResolver valueResolver, Object object); - public char getCharValue(ReteEvaluator reteEvaluator, final Object object) { + public char getCharValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to char not supported from byte" ); } - public double getDoubleValue(ReteEvaluator reteEvaluator, final Object object) { - return getByteValue( reteEvaluator, object ); + public double getDoubleValue(ValueResolver valueResolver, final Object object) { + return getByteValue( valueResolver, object ); } - public float getFloatValue(ReteEvaluator reteEvaluator, final Object object) { - return getByteValue( reteEvaluator, object ); + public float getFloatValue(ValueResolver valueResolver, final Object object) { + return getByteValue( valueResolver, object ); } - public int getIntValue(ReteEvaluator reteEvaluator, final Object object) { - return getByteValue( reteEvaluator, object ); + public int getIntValue(ValueResolver valueResolver, final Object object) { + return getByteValue( valueResolver, object ); } - public long getLongValue(ReteEvaluator reteEvaluator, final Object object) { - return getByteValue( reteEvaluator, object ); + public long getLongValue(ValueResolver valueResolver, final Object object) { + return getByteValue( valueResolver, object ); } - public short getShortValue(ReteEvaluator reteEvaluator, final Object object) { - return getByteValue( reteEvaluator, object ); + public short getShortValue(ValueResolver valueResolver, final Object object) { + return getByteValue( valueResolver, object ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean isNullValue(ValueResolver valueResolver, final Object object) { return false; } public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getByteValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); } } - public int getHashCode(ReteEvaluator reteEvaluator, final Object object) { - return getByteValue( reteEvaluator, object ); + public int getHashCode(ValueResolver valueResolver, final Object object) { + return getByteValue( valueResolver, object ); } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseByteClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseByteClassFieldWriter.java index 8c936e7df34..9ab4b97de1b 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseByteClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseByteClassFieldWriter.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; /** * A Base class for primitive byte class field diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseCharClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseCharClassFieldReader.java index 005c9e50a84..de6b34c3e3d 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseCharClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseCharClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; public abstract class BaseCharClassFieldReader extends BaseClassFieldReader { @@ -44,55 +46,55 @@ protected BaseCharClassFieldReader(final int index, public BaseCharClassFieldReader() { } - public Object getValue(ReteEvaluator reteEvaluator, final Object object) { - return getCharValue( reteEvaluator, object ); + public Object getValue(ValueResolver valueResolver, final Object object) { + return getCharValue( valueResolver, object ); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to boolean not supported from char" ); } - public byte getByteValue(ReteEvaluator reteEvaluator, final Object object) { - return (byte) getCharValue( reteEvaluator, object ); + public byte getByteValue(ValueResolver valueResolver, final Object object) { + return (byte) getCharValue( valueResolver, object ); } - public abstract char getCharValue(ReteEvaluator reteEvaluator, Object object); + public abstract char getCharValue(ValueResolver valueResolver, Object object); - public double getDoubleValue(ReteEvaluator reteEvaluator, final Object object) { - return getCharValue( reteEvaluator, object ); + public double getDoubleValue(ValueResolver valueResolver, final Object object) { + return getCharValue( valueResolver, object ); } - public float getFloatValue(ReteEvaluator reteEvaluator, final Object object) { - return getCharValue( reteEvaluator, object ); + public float getFloatValue(ValueResolver valueResolver, final Object object) { + return getCharValue( valueResolver, object ); } - public int getIntValue(ReteEvaluator reteEvaluator, final Object object) { - return getCharValue( reteEvaluator, object ); + public int getIntValue(ValueResolver valueResolver, final Object object) { + return getCharValue( valueResolver, object ); } - public long getLongValue(ReteEvaluator reteEvaluator, final Object object) { - return getCharValue( reteEvaluator, object ); + public long getLongValue(ValueResolver valueResolver, final Object object) { + return getCharValue( valueResolver, object ); } - public short getShortValue(ReteEvaluator reteEvaluator, final Object object) { - return (short) getCharValue( reteEvaluator, object ); + public short getShortValue(ValueResolver valueResolver, final Object object) { + return (short) getCharValue( valueResolver, object ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean isNullValue(ValueResolver valueResolver, final Object object) { return false; } public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getCharValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); } } - public int getHashCode(ReteEvaluator reteEvaluator, final Object object) { - return getCharValue( reteEvaluator, object ); + public int getHashCode(ValueResolver valueResolver, final Object object) { + return getCharValue( valueResolver, object ); } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseCharClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseCharClassFieldWriter.java index aeb8139a36b..07655659398 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseCharClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseCharClassFieldWriter.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; public abstract class BaseCharClassFieldWriter extends BaseClassFieldWriter { diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDateClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDateClassFieldReader.java index 908b0fdfa5d..bcca6ec8ec5 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDateClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDateClassFieldReader.java @@ -1,27 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import java.util.Date; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; public abstract class BaseDateClassFieldReader extends BaseClassFieldReader { @@ -39,59 +41,59 @@ public BaseDateClassFieldReader() { * @param valueType */ protected BaseDateClassFieldReader(final int index, - final Class fieldType, - final ValueType valueType) { + final Class fieldType, + final ValueType valueType) { super( index, fieldType, valueType ); } - public Object getValue(ReteEvaluator reteEvaluator, final Object object) { + public Object getValue(ValueResolver valueResolver, final Object object) { return object; } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to boolean not supported from Date" ); } - public byte getByteValue(ReteEvaluator reteEvaluator, final Object object) { - return (byte) getLongValue( reteEvaluator, object ); + public byte getByteValue(ValueResolver valueResolver, final Object object) { + return (byte) getLongValue( valueResolver, object ); } - public char getCharValue(ReteEvaluator reteEvaluator, final Object object) { - return (char) getLongValue( reteEvaluator, object ); + public char getCharValue(ValueResolver valueResolver, final Object object) { + return (char) getLongValue( valueResolver, object ); } - public double getDoubleValue(ReteEvaluator reteEvaluator, final Object object) { - return getLongValue( reteEvaluator, object ); + public double getDoubleValue(ValueResolver valueResolver, final Object object) { + return getLongValue( valueResolver, object ); } - public float getFloatValue(ReteEvaluator reteEvaluator, final Object object) { - return getLongValue( reteEvaluator, object ); + public float getFloatValue(ValueResolver valueResolver, final Object object) { + return getLongValue( valueResolver, object ); } - public int getIntValue(ReteEvaluator reteEvaluator, final Object object) { - return (int) getLongValue( reteEvaluator, object ); + public int getIntValue(ValueResolver valueResolver, final Object object) { + return (int) getLongValue( valueResolver, object ); } - public long getLongValue(ReteEvaluator reteEvaluator, Object object) { - return getDate( reteEvaluator, object ).getTime(); + public long getLongValue(ValueResolver valueResolver, Object object) { + return getDate( valueResolver, object ).getTime(); } - protected Date getDate( ReteEvaluator reteEvaluator, Object object ) { - return (Date)getValue( reteEvaluator, object ); + protected Date getDate( ValueResolver valueResolver, Object object ) { + return (Date)getValue( valueResolver, object ); } - public short getShortValue(ReteEvaluator reteEvaluator, final Object object) { - return (short) getLongValue( reteEvaluator, object ); + public short getShortValue(ValueResolver valueResolver, final Object object) { + return (short) getLongValue( valueResolver, object ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean isNullValue(ValueResolver valueResolver, final Object object) { if ( object == null ) { return true; } else { - return getValue( reteEvaluator, + return getValue( valueResolver, object ) == null; } } @@ -99,7 +101,7 @@ public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); @@ -110,8 +112,8 @@ public String getNativeReadMethodName() { return "getValue"; } - public int getHashCode(ReteEvaluator reteEvaluator, final Object object) { - final long temp = getLongValue( reteEvaluator, object ); + public int getHashCode(ValueResolver valueResolver, final Object object) { + final long temp = getLongValue( valueResolver, object ); return (int) (temp ^ (temp >>> 32)); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDoubleClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDoubleClassFieldReader.java index 1376cd3d7d1..9260e31fb88 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDoubleClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDoubleClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; public abstract class BaseDoubleClassFieldReader extends BaseClassFieldReader { @@ -44,57 +46,57 @@ protected BaseDoubleClassFieldReader(final int index, public BaseDoubleClassFieldReader() { } - public Object getValue(ReteEvaluator reteEvaluator, final Object object) { - return Double.valueOf( getDoubleValue( reteEvaluator, object ) ); + public Object getValue(ValueResolver valueResolver, final Object object) { + return Double.valueOf( getDoubleValue( valueResolver, object ) ); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to boolean not supported from double" ); } - public byte getByteValue(ReteEvaluator reteEvaluator, final Object object) { - return (byte) getDoubleValue( reteEvaluator, object ); + public byte getByteValue(ValueResolver valueResolver, final Object object) { + return (byte) getDoubleValue( valueResolver, object ); } - public char getCharValue(ReteEvaluator reteEvaluator, final Object object) { + public char getCharValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to char not supported from double" ); } - public abstract double getDoubleValue(ReteEvaluator reteEvaluator, Object object); + public abstract double getDoubleValue(ValueResolver valueResolver, Object object); - public float getFloatValue(ReteEvaluator reteEvaluator, final Object object) { - return (float) getDoubleValue( reteEvaluator, object ); + public float getFloatValue(ValueResolver valueResolver, final Object object) { + return (float) getDoubleValue( valueResolver, object ); } - public int getIntValue(ReteEvaluator reteEvaluator, final Object object) { - return (int) getDoubleValue( reteEvaluator, object ); + public int getIntValue(ValueResolver valueResolver, final Object object) { + return (int) getDoubleValue( valueResolver, object ); } - public long getLongValue(ReteEvaluator reteEvaluator, final Object object) { - return (long) getDoubleValue( reteEvaluator, object ); + public long getLongValue(ValueResolver valueResolver, final Object object) { + return (long) getDoubleValue( valueResolver, object ); } - public short getShortValue(ReteEvaluator reteEvaluator, final Object object) { - return (short) getDoubleValue( reteEvaluator, object ); + public short getShortValue(ValueResolver valueResolver, final Object object) { + return (short) getDoubleValue( valueResolver, object ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean isNullValue(ValueResolver valueResolver, final Object object) { return false; } public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getDoubleValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); } } - public int getHashCode(ReteEvaluator reteEvaluator, final Object object) { - final long temp = Double.doubleToLongBits( getDoubleValue( reteEvaluator, object ) ); + public int getHashCode(ValueResolver valueResolver, final Object object) { + final long temp = Double.doubleToLongBits( getDoubleValue( valueResolver, object ) ); return (int) (temp ^ (temp >>> 32)); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDoubleClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDoubleClassFieldWriter.java index cbeba4677dd..d29608226cc 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDoubleClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseDoubleClassFieldWriter.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; public abstract class BaseDoubleClassFieldWriter extends BaseClassFieldWriter { diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseFloatClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseFloatClassFieldReader.java index 02990eeaaef..b8235497360 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseFloatClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseFloatClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; public abstract class BaseFloatClassFieldReader extends BaseClassFieldReader { @@ -44,57 +46,57 @@ protected BaseFloatClassFieldReader(final int index, public BaseFloatClassFieldReader() { } - public Object getValue(ReteEvaluator reteEvaluator, final Object object) { - return Float.valueOf( getFloatValue( reteEvaluator, object ) ); + public Object getValue(ValueResolver valueResolver, final Object object) { + return Float.valueOf( getFloatValue( valueResolver, object ) ); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to boolean not supported from float" ); } - public byte getByteValue(ReteEvaluator reteEvaluator, final Object object) { - return (byte) getFloatValue( reteEvaluator, object ); + public byte getByteValue(ValueResolver valueResolver, final Object object) { + return (byte) getFloatValue( valueResolver, object ); } - public char getCharValue(ReteEvaluator reteEvaluator, final Object object) { + public char getCharValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to char not supported from float" ); } - public double getDoubleValue(ReteEvaluator reteEvaluator, final Object object) { - return getFloatValue( reteEvaluator, object ); + public double getDoubleValue(ValueResolver valueResolver, final Object object) { + return getFloatValue( valueResolver, object ); } - public abstract float getFloatValue(ReteEvaluator reteEvaluator, Object object); + public abstract float getFloatValue(ValueResolver valueResolver, Object object); - public int getIntValue(ReteEvaluator reteEvaluator, final Object object) { - return (int) getFloatValue( reteEvaluator, object ); + public int getIntValue(ValueResolver valueResolver, final Object object) { + return (int) getFloatValue( valueResolver, object ); } - public long getLongValue(ReteEvaluator reteEvaluator, final Object object) { - return (long) getFloatValue( reteEvaluator, object ); + public long getLongValue(ValueResolver valueResolver, final Object object) { + return (long) getFloatValue( valueResolver, object ); } - public short getShortValue(ReteEvaluator reteEvaluator, final Object object) { - return (short) getFloatValue( reteEvaluator, object ); + public short getShortValue(ValueResolver valueResolver, final Object object) { + return (short) getFloatValue( valueResolver, object ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean isNullValue(ValueResolver valueResolver, final Object object) { return false; } public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getFloatValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); } } - public int getHashCode(ReteEvaluator reteEvaluator, final Object object) { - return Float.floatToIntBits( getFloatValue( reteEvaluator, object ) ); + public int getHashCode(ValueResolver valueResolver, final Object object) { + return Float.floatToIntBits( getFloatValue( valueResolver, object ) ); } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseFloatClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseFloatClassFieldWriter.java index bb9effcbe63..c1d8ce0251b 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseFloatClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseFloatClassFieldWriter.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; public abstract class BaseFloatClassFieldWriter extends BaseClassFieldWriter { diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseIntClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseIntClassFieldReader.java index dfa8cb741ee..9ff6095072b 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseIntClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseIntClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; public abstract class BaseIntClassFieldReader extends BaseClassFieldReader { @@ -44,56 +46,56 @@ protected BaseIntClassFieldReader(final int index, public BaseIntClassFieldReader() { } - public Object getValue(ReteEvaluator reteEvaluator, final Object object) { - return getIntValue( reteEvaluator, object ); + public Object getValue(ValueResolver valueResolver, final Object object) { + return getIntValue( valueResolver, object ); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to boolean not supported from int" ); } - public byte getByteValue(ReteEvaluator reteEvaluator, final Object object) { - return (byte) getIntValue( reteEvaluator, object ); + public byte getByteValue(ValueResolver valueResolver, final Object object) { + return (byte) getIntValue( valueResolver, object ); } - public char getCharValue(ReteEvaluator reteEvaluator, final Object object) { + public char getCharValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to char not supported from int" ); } - public double getDoubleValue(ReteEvaluator reteEvaluator, final Object object) { - return getIntValue( reteEvaluator, object ); + public double getDoubleValue(ValueResolver valueResolver, final Object object) { + return getIntValue( valueResolver, object ); } - public float getFloatValue(ReteEvaluator reteEvaluator, final Object object) { - return getIntValue( reteEvaluator, object ); + public float getFloatValue(ValueResolver valueResolver, final Object object) { + return getIntValue( valueResolver, object ); } - public abstract int getIntValue(ReteEvaluator reteEvaluator, Object object); + public abstract int getIntValue(ValueResolver valueResolver, Object object); - public long getLongValue(ReteEvaluator reteEvaluator, final Object object) { - return getIntValue( reteEvaluator, object ); + public long getLongValue(ValueResolver valueResolver, final Object object) { + return getIntValue( valueResolver, object ); } - public short getShortValue(ReteEvaluator reteEvaluator, final Object object) { - return (short) getIntValue( reteEvaluator, object ); + public short getShortValue(ValueResolver valueResolver, final Object object) { + return (short) getIntValue( valueResolver, object ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean isNullValue(ValueResolver valueResolver, final Object object) { return false; } public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getIntValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); } } - public int getHashCode(ReteEvaluator reteEvaluator, final Object object) { - return getIntValue( reteEvaluator, object ); + public int getHashCode(ValueResolver valueResolver, final Object object) { + return getIntValue( valueResolver, object ); } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseIntClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseIntClassFieldWriter.java index 60de9d2b35a..55e90a1e2f5 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseIntClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseIntClassFieldWriter.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; public abstract class BaseIntClassFieldWriter extends BaseClassFieldWriter { diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLocalDateClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLocalDateClassFieldReader.java index d42d9892974..f88d040bb6d 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLocalDateClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLocalDateClassFieldReader.java @@ -1,27 +1,29 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.time.LocalDate; import java.time.ZoneId; import java.util.Date; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; public class BaseLocalDateClassFieldReader extends BaseDateClassFieldReader { @@ -46,8 +48,8 @@ protected BaseLocalDateClassFieldReader( final int index, valueType ); } - protected Date getDate(ReteEvaluator reteEvaluator, Object object ) { - LocalDate ld = ((LocalDate )getValue( reteEvaluator, object )); + protected Date getDate(ValueResolver valueResolver, Object object) { + LocalDate ld = ((LocalDate )getValue( valueResolver, object )); return Date.from( ld.atStartOfDay().atZone( ZoneId.systemDefault() ).toInstant() ); } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLocalDateTimeClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLocalDateTimeClassFieldReader.java index fc1ef7e63ce..9707dcab9a0 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLocalDateTimeClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLocalDateTimeClassFieldReader.java @@ -1,27 +1,29 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.time.LocalDateTime; import java.time.ZoneId; import java.util.Date; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; public class BaseLocalDateTimeClassFieldReader extends BaseDateClassFieldReader { @@ -46,8 +48,8 @@ protected BaseLocalDateTimeClassFieldReader(final int index, valueType ); } - protected Date getDate(ReteEvaluator reteEvaluator, Object object ) { - LocalDateTime ldt = ((LocalDateTime)getValue( reteEvaluator, object )); + protected Date getDate(ValueResolver valueResolver, Object object) { + LocalDateTime ldt = ((LocalDateTime)getValue( valueResolver, object )); return Date.from( ldt.atZone( ZoneId.systemDefault() ).toInstant() ); } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLongClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLongClassFieldReader.java index 9dda472398b..269b4a5ee94 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLongClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLongClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; public abstract class BaseLongClassFieldReader extends BaseClassFieldReader { @@ -44,57 +46,57 @@ protected BaseLongClassFieldReader(final int index, public BaseLongClassFieldReader() { } - public Object getValue(ReteEvaluator reteEvaluator, final Object object) { - return getLongValue( reteEvaluator, object ); + public Object getValue(ValueResolver valueResolver, final Object object) { + return getLongValue( valueResolver, object ); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to boolean not supported from long" ); } - public byte getByteValue(ReteEvaluator reteEvaluator, final Object object) { - return (byte) getLongValue( reteEvaluator, object ); + public byte getByteValue(ValueResolver valueResolver, final Object object) { + return (byte) getLongValue( valueResolver, object ); } - public char getCharValue(ReteEvaluator reteEvaluator, final Object object) { + public char getCharValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to char not supported from long" ); } - public double getDoubleValue(ReteEvaluator reteEvaluator, final Object object) { - return getLongValue( reteEvaluator, object ); + public double getDoubleValue(ValueResolver valueResolver, final Object object) { + return getLongValue( valueResolver, object ); } - public float getFloatValue(ReteEvaluator reteEvaluator, final Object object) { - return getLongValue( reteEvaluator, object ); + public float getFloatValue(ValueResolver valueResolver, final Object object) { + return getLongValue( valueResolver, object ); } - public int getIntValue(ReteEvaluator reteEvaluator, final Object object) { - return (int) getLongValue( reteEvaluator, object ); + public int getIntValue(ValueResolver valueResolver, final Object object) { + return (int) getLongValue( valueResolver, object ); } - public abstract long getLongValue(ReteEvaluator reteEvaluator, Object object); + public abstract long getLongValue(ValueResolver valueResolver, Object object); - public short getShortValue(ReteEvaluator reteEvaluator, final Object object) { - return (short) getLongValue( reteEvaluator, object ); + public short getShortValue(ValueResolver valueResolver, final Object object) { + return (short) getLongValue( valueResolver, object ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean isNullValue(ValueResolver valueResolver, final Object object) { return false; } public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getLongValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); } } - public int getHashCode(ReteEvaluator reteEvaluator, final Object object) { - final long temp = getLongValue( reteEvaluator, object ); + public int getHashCode(ValueResolver valueResolver, final Object object) { + final long temp = getLongValue( valueResolver, object ); return (int) (temp ^ (temp >>> 32)); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLongClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLongClassFieldWriter.java index 22ba2dcc1ca..7343ff1655b 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLongClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseLongClassFieldWriter.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; public abstract class BaseLongClassFieldWriter extends BaseClassFieldWriter { diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseNumberClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseNumberClassFieldReader.java index 43bc16d8216..b247feb9922 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseNumberClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseNumberClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; public abstract class BaseNumberClassFieldReader extends BaseClassFieldReader { @@ -38,75 +40,75 @@ protected BaseNumberClassFieldReader(final int index, valueType ); } - public abstract Object getValue(ReteEvaluator reteEvaluator, + public abstract Object getValue(ValueResolver valueResolver, Object object); - public boolean getBooleanValue(ReteEvaluator reteEvaluator, + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to boolean not supported from Number" ); } - public byte getByteValue(ReteEvaluator reteEvaluator, + public byte getByteValue(final ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); return ((Number) value).byteValue(); } - public char getCharValue(ReteEvaluator reteEvaluator, + public char getCharValue(final ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); return ((Character) value).charValue(); } - public double getDoubleValue(ReteEvaluator reteEvaluator, + public double getDoubleValue(final ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); return ((Number) value).doubleValue(); } - public float getFloatValue(ReteEvaluator reteEvaluator, + public float getFloatValue(final ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); return ((Number) value).floatValue(); } - public int getIntValue(ReteEvaluator reteEvaluator, + public int getIntValue(final ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); return ((Number) value).intValue(); } - public long getLongValue(ReteEvaluator reteEvaluator, + public long getLongValue(final ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); return ((Number) value).longValue(); } - public short getShortValue(ReteEvaluator reteEvaluator, + public short getShortValue(final ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); return ((Number) value).shortValue(); } - public boolean isNullValue(ReteEvaluator reteEvaluator, + public boolean isNullValue(final ValueResolver valueResolver, final Object object) { if ( object == null ) { return true; } else { - return getValue( reteEvaluator, + return getValue( valueResolver, object ) == null; } } @@ -114,7 +116,7 @@ public boolean isNullValue(ReteEvaluator reteEvaluator, public Method getNativeReadMethod() { try { return this.getClass().getMethod(getNativeReadMethodName(), - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); @@ -129,9 +131,9 @@ public String getNativeReadMethodName() { return "get" + type.getName().substring(0, 1).toUpperCase() + type.getName().substring(1) + "Value"; } - public int getHashCode(ReteEvaluator reteEvaluator, + public int getHashCode(final ValueResolver valueResolver, final Object object) { - final Object value = getValue( reteEvaluator, + final Object value = getValue( valueResolver, object ); return (value != null) ? value.hashCode() : 0; } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseObjectClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseObjectClassFieldWriter.java index 76a7a01f1b3..538cd4c76e9 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseObjectClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseObjectClassFieldWriter.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; public abstract class BaseObjectClassFieldWriter extends BaseClassFieldWriter { diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseShortClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseShortClassFieldReader.java index 6276a0c21e8..5d19b2d8563 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseShortClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseShortClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ValueType; public abstract class BaseShortClassFieldReader extends BaseClassFieldReader { @@ -44,56 +46,56 @@ protected BaseShortClassFieldReader(final int index, public BaseShortClassFieldReader() { } - public Object getValue(ReteEvaluator reteEvaluator, final Object object) { - return getShortValue( reteEvaluator, object ); + public Object getValue(ValueResolver valueResolver, final Object object) { + return getShortValue( valueResolver, object ); } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to boolean not supported from short" ); } - public byte getByteValue(ReteEvaluator reteEvaluator, final Object object) { - return (byte) getShortValue( reteEvaluator, object ); + public byte getByteValue(ValueResolver valueResolver, final Object object) { + return (byte) getShortValue( valueResolver, object ); } - public char getCharValue(ReteEvaluator reteEvaluator, final Object object) { + public char getCharValue(ValueResolver valueResolver, final Object object) { throw new RuntimeException( "Conversion to char not supported from short" ); } - public double getDoubleValue(ReteEvaluator reteEvaluator, final Object object) { - return getShortValue( reteEvaluator, object ); + public double getDoubleValue(ValueResolver valueResolver, final Object object) { + return getShortValue( valueResolver, object ); } - public float getFloatValue(ReteEvaluator reteEvaluator, final Object object) { - return getShortValue( reteEvaluator, object ); + public float getFloatValue(ValueResolver valueResolver, final Object object) { + return getShortValue( valueResolver, object ); } - public int getIntValue(ReteEvaluator reteEvaluator, final Object object) { - return getShortValue( reteEvaluator, object ); + public int getIntValue(ValueResolver valueResolver, final Object object) { + return getShortValue( valueResolver, object ); } - public long getLongValue(ReteEvaluator reteEvaluator, final Object object) { - return getShortValue( reteEvaluator, object ); + public long getLongValue(ValueResolver valueResolver, final Object object) { + return getShortValue( valueResolver, object ); } - public abstract short getShortValue(ReteEvaluator reteEvaluator, Object object); + public abstract short getShortValue(ValueResolver valueResolver, Object object); - public boolean isNullValue(ReteEvaluator reteEvaluator, final Object object) { + public boolean isNullValue(ValueResolver valueResolver, final Object object) { return false; } public Method getNativeReadMethod() { try { return this.getClass().getDeclaredMethod("getShortValue", - ReteEvaluator.class, Object.class); + ValueResolver.class, Object.class); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report to development team: " + e.getMessage(), e ); } } - public int getHashCode(ReteEvaluator reteEvaluator, final Object object) { - return getShortValue( reteEvaluator, object ); + public int getHashCode(ValueResolver valueResolver, final Object object) { + return getShortValue( valueResolver, object ); } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseShortClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseShortClassFieldWriter.java index a505c0a3868..ebf27967a96 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseShortClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseShortClassFieldWriter.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.lang.reflect.Method; import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; public abstract class BaseShortClassFieldWriter extends BaseClassFieldWriter { diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseZonedDateTimeClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseZonedDateTimeClassFieldReader.java index 035ac78708f..ae02e9e5d47 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseZonedDateTimeClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/BaseZonedDateTimeClassFieldReader.java @@ -1,26 +1,28 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.time.ZonedDateTime; import java.util.Date; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; public class BaseZonedDateTimeClassFieldReader extends BaseDateClassFieldReader { @@ -45,8 +47,8 @@ protected BaseZonedDateTimeClassFieldReader( final int index, valueType ); } - protected Date getDate(ReteEvaluator reteEvaluator, Object object ) { - ZonedDateTime zdt = ((ZonedDateTime)getValue( reteEvaluator, object )); + protected Date getDate(ValueResolver valueResolver, Object object) { + ZonedDateTime zdt = ((ZonedDateTime)getValue( valueResolver, object )); return Date.from( zdt.toInstant() ); } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldAccessor.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldAccessor.java index 8612791ea0d..204c7950f2d 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldAccessor.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldAccessor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.accessors; import java.io.Externalizable; @@ -22,11 +24,11 @@ import java.io.ObjectOutput; import java.lang.reflect.Method; -import org.drools.core.base.FieldAccessor; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.AcceptsReadAccessor; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.FieldAccessor; +import org.drools.base.base.ValueType; +import org.drools.base.rule.accessor.AcceptsReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; /** * This is a wrapper for a ClassFieldExtractor that provides @@ -69,58 +71,58 @@ public int getIndex() { } @Override - public Object getValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getValue(reteEvaluator, object); + public Object getValue(ValueResolver valueResolver, Object object) { + return this.reader.getValue(valueResolver, object); } @Override - public char getCharValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getCharValue(reteEvaluator, object); + public char getCharValue(ValueResolver valueResolver, Object object) { + return this.reader.getCharValue(valueResolver, object); } @Override - public int getIntValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getIntValue(reteEvaluator, object); + public int getIntValue(ValueResolver valueResolver, Object object) { + return this.reader.getIntValue(valueResolver, object); } @Override - public byte getByteValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getByteValue(reteEvaluator, object); + public byte getByteValue(ValueResolver valueResolver, Object object) { + return this.reader.getByteValue(valueResolver, object); } @Override - public short getShortValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getShortValue(reteEvaluator, object); + public short getShortValue(ValueResolver valueResolver, Object object) { + return this.reader.getShortValue(valueResolver, object); } @Override - public long getLongValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getLongValue(reteEvaluator, object); + public long getLongValue(ValueResolver valueResolver, Object object) { + return this.reader.getLongValue(valueResolver, object); } @Override - public float getFloatValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getFloatValue(reteEvaluator, object); + public float getFloatValue(ValueResolver valueResolver, Object object) { + return this.reader.getFloatValue(valueResolver, object); } @Override - public double getDoubleValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getDoubleValue(reteEvaluator, object); + public double getDoubleValue(ValueResolver valueResolver, Object object) { + return this.reader.getDoubleValue(valueResolver, object); } @Override - public boolean getBooleanValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getBooleanValue(reteEvaluator, object); + public boolean getBooleanValue(ValueResolver valueResolver, Object object) { + return this.reader.getBooleanValue(valueResolver, object); } @Override - public boolean isNullValue(ReteEvaluator reteEvaluator, Object object) { - return this.reader.isNullValue(reteEvaluator, object); + public boolean isNullValue(ValueResolver valueResolver, Object object) { + return this.reader.isNullValue(valueResolver, object); } @Override - public int getHashCode(ReteEvaluator reteEvaluator, Object object) { - return this.reader.getHashCode(reteEvaluator, object); + public int getHashCode(ValueResolver valueResolver, Object object) { + return this.reader.getHashCode(valueResolver, object); } public String getFieldName() { diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldAccessorStore.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldAccessorStore.java index 9d10abcb8b2..53a6ed39400 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldAccessorStore.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldAccessorStore.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.accessors; import java.io.Externalizable; @@ -28,22 +30,22 @@ import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; -import org.drools.core.base.AccessorKey; -import org.drools.core.base.AccessorKey.AccessorType; -import org.drools.core.base.BaseClassFieldReader; +import org.drools.base.base.AccessorKey; +import org.drools.base.base.AccessorKey.AccessorType; +import org.drools.base.base.BaseClassFieldReader; import org.drools.core.base.BaseClassFieldWriter; import org.drools.core.base.ClassFieldAccessorCache; -import org.drools.core.base.ClassFieldInspector; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.base.ReadAccessorSupplier; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.rule.accessor.AcceptsReadAccessor; -import org.drools.core.base.ClassWireable; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.accessor.WriteAccessor; +import org.drools.base.base.ClassFieldInspector; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.base.ReadAccessorSupplier; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.rule.accessor.AcceptsReadAccessor; +import org.drools.base.base.ClassWireable; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.accessor.WriteAccessor; import org.kie.api.definition.type.FactField; import org.kie.internal.builder.KnowledgeBuilderResult; diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldReader.java index 895b7f38101..7fa3cb5dd0a 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldReader.java @@ -1,35 +1,37 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.accessors; +import org.drools.base.base.AccessorKey; +import org.drools.base.base.AccessorKeySupplier; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.core.base.FieldNameSupplier; +import org.drools.util.ClassUtils; + import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; import java.lang.reflect.Method; -import org.drools.core.base.AccessorKey; -import org.drools.core.base.AccessorKeySupplier; -import org.drools.core.base.FieldNameSupplier; -import org.drools.core.base.ValueType; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.util.ClassUtils; - import static org.drools.util.StringUtils.lcFirstForBean; /** @@ -86,9 +88,9 @@ public boolean hasReadAccessor() { return this.reader != null; } - public Object getValue(ReteEvaluator reteEvaluator, + public Object getValue(final ValueResolver valueResolver, final Object object) { - return this.reader.getValue( reteEvaluator, + return this.reader.getValue( valueResolver, object ); } @@ -130,57 +132,57 @@ public boolean equals(Object obj) { return true; } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, + public boolean getBooleanValue(final ValueResolver valueResolver, final Object object) { - return this.reader.getBooleanValue( reteEvaluator, + return this.reader.getBooleanValue( valueResolver, object ); } - public byte getByteValue(ReteEvaluator reteEvaluator, + public byte getByteValue(final ValueResolver valueResolver, final Object object) { - return this.reader.getByteValue( reteEvaluator, + return this.reader.getByteValue( valueResolver, object ); } - public char getCharValue(ReteEvaluator reteEvaluator, + public char getCharValue(ValueResolver valueResolver, final Object object) { - return this.reader.getCharValue( reteEvaluator, + return this.reader.getCharValue( valueResolver, object ); } - public double getDoubleValue(ReteEvaluator reteEvaluator, + public double getDoubleValue(ValueResolver valueResolver, final Object object) { - return this.reader.getDoubleValue( reteEvaluator, + return this.reader.getDoubleValue( valueResolver, object ); } - public float getFloatValue(ReteEvaluator reteEvaluator, + public float getFloatValue(ValueResolver valueResolver, final Object object) { - return this.reader.getFloatValue( reteEvaluator, + return this.reader.getFloatValue( valueResolver, object ); } - public int getIntValue(ReteEvaluator reteEvaluator, + public int getIntValue(ValueResolver valueResolver, final Object object) { - return this.reader.getIntValue( reteEvaluator, + return this.reader.getIntValue( valueResolver, object ); } - public long getLongValue(ReteEvaluator reteEvaluator, + public long getLongValue(ValueResolver valueResolver, final Object object) { - return this.reader.getLongValue( reteEvaluator, + return this.reader.getLongValue( valueResolver, object ); } - public short getShortValue(ReteEvaluator reteEvaluator, + public short getShortValue(ValueResolver valueResolver, final Object object) { - return this.reader.getShortValue( reteEvaluator, + return this.reader.getShortValue( valueResolver, object ); } - public boolean isNullValue(ReteEvaluator reteEvaluator, + public boolean isNullValue(ValueResolver valueResolver, final Object object) { - return this.reader.isNullValue( reteEvaluator, + return this.reader.isNullValue( valueResolver, object ); } @@ -192,9 +194,9 @@ public String getNativeReadMethodName() { return this.reader.getNativeReadMethod().getName(); } - public int getHashCode(ReteEvaluator reteEvaluator, + public int getHashCode(ValueResolver valueResolver, final Object object) { - return this.reader.getHashCode( reteEvaluator, + return this.reader.getHashCode( valueResolver, object ); } @@ -214,10 +216,6 @@ public Object getValue(Object object) { return reader.getValue( object ); } - public boolean isNullValue(Object object) { - return reader.isNullValue( object ); - } - public AccessorKey getAccessorKey() { return new AccessorKey( className, fieldName, AccessorKey.AccessorType.FieldAccessor ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldWriter.java b/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldWriter.java index e629960f11a..b98b394f1ac 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldWriter.java +++ b/drools-mvel/src/main/java/org/drools/mvel/accessors/ClassFieldWriter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.accessors; import java.io.IOException; @@ -21,8 +23,8 @@ import java.io.ObjectOutput; import java.lang.reflect.Method; -import org.drools.core.base.ValueType; -import org.drools.core.rule.accessor.WriteAccessor; +import org.drools.base.base.ValueType; +import org.drools.base.rule.accessor.WriteAccessor; /** * This class implements the WriteAccessor interface diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ASMConsequenceBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ASMConsequenceBuilder.java index f1fee78ba8e..b41cd33ac25 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ASMConsequenceBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ASMConsequenceBuilder.java @@ -1,31 +1,34 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.Map; +import org.drools.base.base.ValueResolver; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.core.WorkingMemory; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.reteoo.Sink; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.consequence.ConsequenceContext; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.core.reteoo.Tuple; import org.kie.api.runtime.rule.FactHandle; @@ -56,20 +59,17 @@ public void body(MethodVisitor mv) { push(name); mv.visitInsn(ARETURN); } - }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(null, KnowledgeHelper.class, ReteEvaluator.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { + }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(null, ConsequenceContext.class, ValueResolver.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { public void body(MethodVisitor mv) { - // Tuple tuple = knowledgeHelper.getTuple(); + // Tuple tuple = (Tuple) ConsequenceContext.getTuple(); mv.visitVarInsn(ALOAD, 1); - invokeInterface(KnowledgeHelper.class, "getTuple", Tuple.class); + invokeInterface(ConsequenceContext.class, "getTuple", BaseTuple.class); + cast(Tuple.class); mv.visitVarInsn(ASTORE, 3); - // Declaration[] declarations = ((RuleTerminalNode)knowledgeHelper.getMatch().getTuple().getTupleSink()).getDeclarations(); + // Declaration[] declarations = knowledgeHelper.getDeclarations(); mv.visitVarInsn(ALOAD, 1); - invokeInterface(KnowledgeHelper.class, "getMatch", InternalMatch.class); - invokeInterface(InternalMatch.class, "getTuple", Tuple.class); - invokeInterface(Tuple.class, "getTupleSink", Sink.class); - cast(RuleTerminalNode.class); - invokeVirtual(RuleTerminalNode.class, "getRequiredDeclarations", Declaration[].class); + invokeInterface(ConsequenceContext.class, "getRequiredDeclarations", Declaration[].class); mv.visitVarInsn(ASTORE, 4); final String[] globals = data.getGlobals(); @@ -88,7 +88,7 @@ public void body(MethodVisitor mv) { mv.visitVarInsn(ALOAD, 4); // org.kie.rule.Declaration[] push(i); // i mv.visitInsn(AALOAD); // declarations[i] - invokeInterface(Tuple.class, "get", InternalFactHandle.class, Declaration.class); + invokeInterface(Tuple.class, "get", FactHandle.class, Declaration.class); mv.visitVarInsn(ASTORE, factPos); // fact[i] // declarations[i].getValue( reteEvaluator, obj[i] ); @@ -97,12 +97,12 @@ public void body(MethodVisitor mv) { mv.visitInsn(AALOAD); // declarations[i] mv.visitVarInsn(ALOAD, 2); // WorkingMemory mv.visitVarInsn(ALOAD, factPos); // fact[i] - invokeInterface(InternalFactHandle.class, "getObject", Object.class); + invokeInterface(FactHandle.class, "getObject", Object.class); String readMethod = declarations[i].getNativeReadMethodName(); boolean isObject = readMethod.equals("getValue"); String returnedType = isObject ? "Ljava/lang/Object;" : typeDescr(declarations[i].getTypeName()); mv.visitMethodInsn(INVOKEVIRTUAL, Declaration.class.getName().replace('.', '/'), readMethod, - "(L" + ReteEvaluator.class.getName().replace('.', '/')+";Ljava/lang/Object;)" + returnedType); + "(L" + ValueResolver.class.getName().replace('.', '/')+";Ljava/lang/Object;)" + returnedType); if (isObject) mv.visitTypeInsn(CHECKCAST, internalName(declarations[i].getTypeName())); offset += store(objPos, declarations[i].getTypeName()); // obj[i] @@ -117,8 +117,9 @@ public void body(MethodVisitor mv) { } // @{ruleClassName}.@{methodName}(KnowledgeHelper, @foreach{declr : declarations} Object, FactHandle @end) - StringBuilder consequenceMethodDescr = new StringBuilder("(L" + KnowledgeHelper.class.getName().replace('.', '/')+ ";"); + StringBuilder consequenceMethodDescr = new StringBuilder("(L" + ConsequenceContext.class.getName().replace('.', '/')+ ";"); mv.visitVarInsn(ALOAD, 1); // KnowledgeHelper + cast(KnowledgeHelper.class); for (int i = 0; i < declarations.length; i++) { load(paramsPos[i] + 1); // obj[i] mv.visitVarInsn(ALOAD, paramsPos[i]); // fact[i] @@ -129,7 +130,7 @@ public void body(MethodVisitor mv) { for (int i = 0; i < globals.length; i++) { mv.visitVarInsn(ALOAD, 2); // ReteEvaluator push(globals[i]); - invokeInterface(WorkingMemory.class, "getGlobal", Object.class, String.class); + invokeInterface(ValueResolver.class, "getGlobal", Object.class, String.class); mv.visitTypeInsn(CHECKCAST, internalName(globalTypes[i])); consequenceMethodDescr.append(typeDescr(globalTypes[i])); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ASMConsequenceStubBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ASMConsequenceStubBuilder.java index dd5ca9c1f32..f74fc2c8838 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ASMConsequenceStubBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ASMConsequenceStubBuilder.java @@ -1,27 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.Map; +import org.drools.base.base.ValueResolver; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.consequence.Consequence; -import org.drools.core.rule.consequence.KnowledgeHelper; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.consequence.Consequence; +import org.drools.base.rule.consequence.ConsequenceContext; import org.mvel2.asm.Label; import org.mvel2.asm.MethodVisitor; @@ -74,7 +78,7 @@ public void body(MethodVisitor mv) { public void body(MethodVisitor mv) { returnAsArray((Boolean[]) vars.get("notPatterns")); } - }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(null, KnowledgeHelper.class, ReteEvaluator.class), new String[]{"java/lang/Exception"}, new ClassGenerator.MethodBody() { + }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(null, ConsequenceContext.class, ValueResolver.class), new String[]{"java/lang/Exception"}, new ClassGenerator.MethodBody() { public void body(MethodVisitor mv) { Label syncStart = new Label(); Label syncEnd = new Label(); @@ -99,7 +103,7 @@ public void body(MethodVisitor mv) { mv.visitVarInsn(ALOAD, 1); mv.visitVarInsn(ALOAD, 2); // ... ConsequenceGenerator.generate(this, knowledgeHelper, workingMemory) - invokeStatic(ConsequenceGenerator.class, "generate", null, ConsequenceStub.class, KnowledgeHelper.class, ReteEvaluator.class); + invokeStatic(ConsequenceGenerator.class, "generate", null, ConsequenceStub.class, ConsequenceContext.class, ValueResolver.class); mv.visitLabel(ifNotInitialized); mv.visitVarInsn(ALOAD, 3); mv.visitInsn(MONITOREXIT); @@ -117,7 +121,7 @@ public void body(MethodVisitor mv) { getFieldFromThis("consequence", Consequence.class); mv.visitVarInsn(ALOAD, 1); mv.visitVarInsn(ALOAD, 2); - invokeInterface(Consequence.class, "evaluate", null, KnowledgeHelper.class, ReteEvaluator.class); + invokeInterface(Consequence.class, "evaluate", null, ConsequenceContext.class, ValueResolver.class); mv.visitInsn(RETURN); } }).addMethod(ACC_PUBLIC, "setConsequence", generator.methodDescr(null, Consequence.class), new ClassGenerator.MethodBody() { diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ASMEvalStubBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ASMEvalStubBuilder.java index 92e54871a0f..8db08f97bb3 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ASMEvalStubBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ASMEvalStubBuilder.java @@ -1,27 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.Map; +import org.drools.base.base.ValueResolver; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.EvalExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.EvalExpression; import org.mvel2.asm.Label; import org.mvel2.asm.MethodVisitor; @@ -70,7 +74,7 @@ public void body(MethodVisitor mv) { mv.visitInsn( ARETURN ); } }).addMethod(ACC_PUBLIC, "replaceDeclaration", generator.methodDescr(null, Declaration.class, Declaration.class) - ).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(Boolean.TYPE, Tuple.class, Declaration[].class, ReteEvaluator.class, Object.class), new String[]{"java/lang/Exception"}, new ClassGenerator.MethodBody() { + ).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(Boolean.TYPE, BaseTuple.class, Declaration[].class, ValueResolver.class, Object.class), new String[]{"java/lang/Exception"}, new ClassGenerator.MethodBody() { public void body(MethodVisitor mv) { Label syncStart = new Label(); Label syncEnd = new Label(); @@ -96,7 +100,7 @@ public void body(MethodVisitor mv) { mv.visitVarInsn(ALOAD, 2); mv.visitVarInsn(ALOAD, 3); // ... EvalGenerator.generate(this, tuple, declarations, workingMemory) - invokeStatic(EvalGenerator.class, "generate", null, EvalStub.class, Tuple.class, Declaration[].class, ReteEvaluator.class); + invokeStatic(EvalGenerator.class, "generate", null, EvalStub.class, BaseTuple.class, Declaration[].class, ValueResolver.class); mv.visitLabel(ifNotInitialized); mv.visitVarInsn(ALOAD, 5); mv.visitInsn(MONITOREXIT); @@ -116,7 +120,7 @@ public void body(MethodVisitor mv) { mv.visitVarInsn(ALOAD, 2); mv.visitVarInsn(ALOAD, 3); mv.visitVarInsn(ALOAD, 4); - invokeInterface(EvalExpression.class, "evaluate", Boolean.TYPE, Tuple.class, Declaration[].class, ReteEvaluator.class, Object.class); + invokeInterface(EvalExpression.class, "evaluate", Boolean.TYPE, BaseTuple.class, Declaration[].class, ValueResolver.class, Object.class); mv.visitInsn(IRETURN); } }).addMethod(ACC_PUBLIC, "setEval", generator.methodDescr(null, EvalExpression.class), new ClassGenerator.MethodBody() { diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ASMPredicateStubBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ASMPredicateStubBuilder.java index c27060db680..50b1071436e 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ASMPredicateStubBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ASMPredicateStubBuilder.java @@ -1,28 +1,33 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.Map; +import org.drools.base.base.ValueResolver; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.PredicateExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.PredicateExpression; +import org.drools.mvel.asm.ClassGenerator.MethodBody; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.asm.Label; import org.mvel2.asm.MethodVisitor; @@ -55,12 +60,12 @@ private void createStubPredicate(final ClassGenerator generator, final InvokerDa generator.setInterfaces(PredicateStub.class, CompiledInvoker.class) .addField(ACC_PRIVATE + ACC_VOLATILE, "predicate", PredicateExpression.class); - generator.addMethod(ACC_PUBLIC, "createContext", generator.methodDescr(Object.class), new ClassGenerator.MethodBody() { + generator.addMethod(ACC_PUBLIC, "createContext", generator.methodDescr(Object.class), new MethodBody() { public void body(MethodVisitor mv) { mv.visitInsn(ACONST_NULL); mv.visitInsn(ARETURN); } - }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(Boolean.TYPE, InternalFactHandle.class, Tuple.class, Declaration[].class, Declaration[].class, ReteEvaluator.class, Object.class), new String[]{"java/lang/Exception"}, new ClassGenerator.MethodBody() { + }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(Boolean.TYPE, FactHandle.class, BaseTuple.class, Declaration[].class, Declaration[].class, ValueResolver.class, Object.class), new String[]{"java/lang/Exception"}, new MethodBody() { public void body(MethodVisitor mv) { Label syncStart = new Label(); Label syncEnd = new Label(); @@ -87,7 +92,7 @@ public void body(MethodVisitor mv) { mv.visitVarInsn(ALOAD, 4); mv.visitVarInsn(ALOAD, 5); // ... PredicateGenerator.generate(this, tuple, declarations, declarations, workingMemory) - invokeStatic(PredicateGenerator.class, "generate", null, PredicateStub.class, Tuple.class, Declaration[].class, Declaration[].class, ReteEvaluator.class); + invokeStatic(PredicateGenerator.class, "generate", null, PredicateStub.class, BaseTuple.class, Declaration[].class, Declaration[].class, ValueResolver.class); mv.visitLabel(ifNotInitialized); mv.visitVarInsn(ALOAD, 7); mv.visitInsn(MONITOREXIT); @@ -109,7 +114,7 @@ public void body(MethodVisitor mv) { mv.visitVarInsn(ALOAD, 4); mv.visitVarInsn(ALOAD, 5); mv.visitVarInsn(ALOAD, 6); - invokeInterface(PredicateExpression.class, "evaluate", Boolean.TYPE, InternalFactHandle.class, Tuple.class, Declaration[].class, Declaration[].class, ReteEvaluator.class, Object.class); + invokeInterface(PredicateExpression.class, "evaluate", Boolean.TYPE, FactHandle.class, BaseTuple.class, Declaration[].class, Declaration[].class, ValueResolver.class, Object.class); mv.visitInsn(IRETURN); } }).addMethod(ACC_PUBLIC, "setPredicate", generator.methodDescr(null, PredicateExpression.class), new ClassGenerator.MethodBody() { diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMConsequenceBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMConsequenceBuilder.java index 6a5d11a25f7..f90b4af5d62 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMConsequenceBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMConsequenceBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.Map; @@ -19,8 +23,8 @@ import org.drools.compiler.compiler.MissingDependencyError; import org.drools.compiler.rule.builder.ConsequenceBuilder; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.common.MissingDependencyException; -import org.drools.core.rule.Declaration; +import org.drools.base.common.MissingDependencyException; +import org.drools.base.rule.Declaration; import org.drools.mvel.java.JavaAnalysisResult; import org.drools.mvel.java.JavaRuleBuilderHelper; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMEvalBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMEvalBuilder.java index 9dd08423af3..8e251f3cdb1 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMEvalBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMEvalBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.ArrayList; @@ -21,18 +25,18 @@ import org.drools.compiler.compiler.AnalysisResult; import org.drools.compiler.compiler.BoundIdentifiers; +import org.drools.base.reteoo.SortDeclarations; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.EvalDescr; import org.drools.drl.ast.descr.PredicateDescr; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.compiler.rule.builder.RuleConditionBuilder; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.EvalConditionFactory; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.EvalConditionFactory; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import static org.drools.compiler.rule.builder.PatternBuilder.buildAnalysis; import static org.drools.compiler.rule.builder.PatternBuilder.createImplicitBindings; @@ -83,7 +87,7 @@ private RuleConditionElement buildEval(RuleBuildContext context, EvalDescr evalD String className = "eval" + context.getNextId(); evalDescr.setClassMethodName( className ); - Arrays.sort(declarations, RuleTerminalNode.SortDeclarations.instance); + Arrays.sort(declarations, SortDeclarations.instance); EvalCondition eval = EvalConditionFactory.Factory.get().createEvalCondition(declarations); diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMPredicateBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMPredicateBuilder.java index 24128c2e2b5..e459c97fd50 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMPredicateBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/AbstractASMPredicateBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.Map; @@ -22,8 +26,8 @@ import org.drools.compiler.rule.builder.PredicateBuilder; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.mvel.java.JavaRuleBuilderHelper; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.PredicateConstraint; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.PredicateConstraint; public abstract class AbstractASMPredicateBuilder implements PredicateBuilder { public void build(final RuleBuildContext context, diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/AsmUtil.java b/drools-mvel/src/main/java/org/drools/mvel/asm/AsmUtil.java index b0851db241d..20d04e307b9 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/AsmUtil.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/AsmUtil.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.ArrayList; @@ -28,21 +32,21 @@ import org.drools.drl.ast.descr.FunctionDescr; import org.drools.drl.ast.descr.PackageDescr; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.mvel.java.JavaAnalysisResult; import org.drools.compiler.rule.builder.dialect.java.parser.JavaBlockDescr; import org.drools.compiler.rule.builder.dialect.java.parser.JavaInterfacePointsDescr; import org.drools.compiler.rule.builder.dialect.java.parser.JavaLocalDeclarationDescr; import org.drools.compiler.rule.builder.dialect.java.parser.JavaModifyBlockDescr; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.rule.ConsequenceMetaData; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.rule.ConsequenceMetaData; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.TypeDeclaration; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.util.ClassUtils; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.BitMask; import org.drools.mvel.builder.MVELAnalysisResult; import org.drools.mvel.builder.MVELDialect; +import org.drools.mvel.java.JavaAnalysisResult; import org.kie.api.definition.type.FactField; import org.mvel2.CompileException; import org.mvel2.asm.MethodVisitor; @@ -50,15 +54,16 @@ import static org.drools.compiler.rule.builder.dialect.DialectUtil.buildBlockDescrs; import static org.drools.compiler.rule.builder.dialect.DialectUtil.findClassByName; -import static org.drools.core.reteoo.PropertySpecificUtil.allSetButTraitBitMask; -import static org.drools.core.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; -import static org.drools.core.reteoo.PropertySpecificUtil.setPropertyOnMask; +import static org.drools.base.reteoo.PropertySpecificUtil.allSetButTraitBitMask; +import static org.drools.base.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; +import static org.drools.base.reteoo.PropertySpecificUtil.setPropertyOnMask; import static org.drools.util.ClassUtils.getter2property; import static org.drools.util.ClassUtils.setter2property; import static org.drools.util.StringUtils.extractFirstIdentifier; import static org.drools.util.StringUtils.findEndOfMethodArgsIndex; import static org.drools.util.StringUtils.splitArgumentsList; -import static org.drools.util.StringUtils.splitStatements; +import static org.drools.util.StringUtils.splitStatementsAcrossBlocks; + public final class AsmUtil { private static final Pattern LINE_BREAK_FINDER = Pattern.compile( "\\r\\n|\\r|\\n" ); @@ -268,7 +273,7 @@ private static void rewriteDescr(final RuleBuildContext context, switch (d.getType()) { case MODIFY: - rewriteModifyDescr(context, d, originalBlock, consequence, declr, obj); + rewriteModifyDescr(context, d, analysis, originalBlock, consequence, declr, obj); break; case UPDATE: rewriteUpdateDescr(context, d, analysis, consequence, declr, obj); @@ -281,6 +286,7 @@ private static void rewriteDescr(final RuleBuildContext context, private static void rewriteModifyDescr( RuleBuildContext context, JavaBlockDescr d, + JavaAnalysisResult analysis, String originalBlock, StringBuilder consequence, Declaration declr, @@ -301,7 +307,8 @@ private static void rewriteModifyDescr( RuleBuildContext context, } BitMask modificationMask = isPropertyReactive ? getEmptyPropertyReactiveMask(settableProperties.size()) : allSetButTraitBitMask(); if (isPropertyReactive) { - modificationMask = getModificationMask( consequence, obj, modificationMask, typeDeclaration, settableProperties, statement, false ); + // collect modification outside modify block + modificationMask = getModificationMask( analysis.getAnalyzedExpr(), obj, modificationMask, typeDeclaration, settableProperties, statement, false ); } int end = originalBlock.indexOf("{"); @@ -327,6 +334,7 @@ private static void rewriteModifyDescr( RuleBuildContext context, start = end + exprStr.length(); if (typeDeclaration != null) { + // collect modification inside modify block modificationMask = parseModifiedProperties(statement, settableProperties, typeDeclaration, isPropertyReactive, modificationMask, exprStr); } } @@ -365,17 +373,17 @@ private static void rewriteUpdateDescr( RuleBuildContext context, context.getRule().getConsequenceMetaData().addStatement(statement); if (isPropertyReactive) { - modificationMask = getModificationMask( consequence, obj, modificationMask, typeDeclaration, settableProperties, statement, true ); + modificationMask = getModificationMask( analysis.getAnalyzedExpr(), obj, modificationMask, typeDeclaration, settableProperties, statement, true ); } } appendUpdateStatement(consequence, declr, obj, modificationMask, typeClass); } - private static BitMask getModificationMask( StringBuilder consequence, String obj, BitMask modificationMask, TypeDeclaration typeDeclaration, List settableProperties, ConsequenceMetaData.Statement statement, boolean isUpdate ) { + private static BitMask getModificationMask( String originalConsequence, String obj, BitMask modificationMask, TypeDeclaration typeDeclaration, List settableProperties, ConsequenceMetaData.Statement statement, boolean isUpdate ) { boolean parsedExprOnce = false; // a late optimization to include this for-loop within this if - for (String expr : splitStatements( consequence )) { + for (String expr : splitStatementsAcrossBlocks( originalConsequence )) { String updateExpr = expr.replaceFirst("^\\Q" + obj + "\\E\\s*\\.", ""); if (!updateExpr.equals(expr)) { parsedExprOnce = true; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ClassFieldAccessorFactory.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ClassFieldAccessorFactory.java index d5f572655b3..5ae2e7eec1a 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ClassFieldAccessorFactory.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ClassFieldAccessorFactory.java @@ -1,19 +1,37 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; +import org.drools.base.base.BaseClassFieldReader; +import org.drools.base.base.ClassFieldInspector; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.core.base.*; +import org.drools.core.base.ClassFieldAccessorCache.CacheEntry; +import org.drools.base.base.extractors.BaseObjectClassFieldReader; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; +import org.drools.core.common.InternalWorkingMemory; +import org.drools.base.util.Drools; +import org.drools.mvel.accessors.*; +import org.drools.wiring.api.util.ByteArrayClassLoader; +import org.mvel2.asm.*; + import java.lang.reflect.Method; import java.security.AccessController; import java.security.PrivilegedAction; @@ -24,46 +42,6 @@ import java.util.Date; import java.util.Map; -import org.drools.core.base.BaseClassFieldReader; -import org.drools.core.base.BaseClassFieldWriter; -import org.drools.core.base.ClassFieldAccessorCache.CacheEntry; -import org.drools.core.base.ClassFieldInspector; -import org.drools.core.base.FieldAccessorFactory; -import org.drools.core.base.ValueType; -import org.drools.core.base.extractors.BaseObjectClassFieldReader; -import org.drools.core.base.extractors.SelfReferenceClassFieldReader; -import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.util.Drools; -import org.drools.mvel.accessors.BaseBooleanClassFieldReader; -import org.drools.mvel.accessors.BaseBooleanClassFieldWriter; -import org.drools.mvel.accessors.BaseByteClassFieldReader; -import org.drools.mvel.accessors.BaseByteClassFieldWriter; -import org.drools.mvel.accessors.BaseCharClassFieldReader; -import org.drools.mvel.accessors.BaseCharClassFieldWriter; -import org.drools.mvel.accessors.BaseDateClassFieldReader; -import org.drools.mvel.accessors.BaseDoubleClassFieldReader; -import org.drools.mvel.accessors.BaseDoubleClassFieldWriter; -import org.drools.mvel.accessors.BaseFloatClassFieldReader; -import org.drools.mvel.accessors.BaseFloatClassFieldWriter; -import org.drools.mvel.accessors.BaseIntClassFieldReader; -import org.drools.mvel.accessors.BaseIntClassFieldWriter; -import org.drools.mvel.accessors.BaseLocalDateClassFieldReader; -import org.drools.mvel.accessors.BaseLocalDateTimeClassFieldReader; -import org.drools.mvel.accessors.BaseLongClassFieldReader; -import org.drools.mvel.accessors.BaseLongClassFieldWriter; -import org.drools.mvel.accessors.BaseNumberClassFieldReader; -import org.drools.mvel.accessors.BaseObjectClassFieldWriter; -import org.drools.mvel.accessors.BaseShortClassFieldReader; -import org.drools.mvel.accessors.BaseShortClassFieldWriter; -import org.drools.mvel.accessors.BaseZonedDateTimeClassFieldReader; -import org.drools.wiring.api.util.ByteArrayClassLoader; -import org.mvel2.asm.ClassWriter; -import org.mvel2.asm.Label; -import org.mvel2.asm.MethodVisitor; -import org.mvel2.asm.Opcodes; -import org.mvel2.asm.Type; - import static org.drools.mvel.accessors.ClassFieldAccessorStore.getClassFieldInspector; import static org.drools.mvel.asm.ClassGenerator.createClassWriter; @@ -86,7 +64,7 @@ public class ClassFieldAccessorFactory implements FieldAccessorFactory { } @Override - public BaseClassFieldReader getClassFieldReader( Class< ? > clazz, String fieldName, CacheEntry cache) { + public BaseClassFieldReader getClassFieldReader(Class< ? > clazz, String fieldName, CacheEntry cache) { try { // if it is a self reference if ( SELF_REFERENCE_FIELD.equals( fieldName ) ) { @@ -337,8 +315,7 @@ protected static void buildGetMethod(final Class< ? > originalClass, final Class< ? > fieldType = getterMethod.getReturnType(); Method overridingMethod; try { - overridingMethod = superClass.getMethod( getOverridingGetMethodName( fieldType ), - ReteEvaluator.class, Object.class ); + overridingMethod = superClass.getMethod( getOverridingGetMethodName( fieldType ), ValueResolver.class, Object.class ); } catch ( final Exception e ) { throw new RuntimeException( "This is a bug. Please report back to JBoss Rules team.", e ); diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ClassFieldInspectorImpl.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ClassFieldInspectorImpl.java index 16000e4f3a1..6026e7724f9 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ClassFieldInspectorImpl.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ClassFieldInspectorImpl.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.io.IOException; @@ -30,7 +34,7 @@ import java.util.Map; import java.util.Set; -import org.drools.core.base.ClassFieldInspector; +import org.drools.base.base.ClassFieldInspector; import org.drools.util.ClassUtils; import org.drools.util.MethodUtils; import org.drools.drl.parser.MessageImpl; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ClassGenerator.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ClassGenerator.java index c8bcd020680..4d19e92d081 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ClassGenerator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ClassGenerator.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.io.FileNotFoundException; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ClassLevel.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ClassLevel.java index 907a0f3838d..82548d18cf9 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ClassLevel.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ClassLevel.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import org.kie.internal.utils.ChainedProperties; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ConsequenceGenerator.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ConsequenceGenerator.java index 631f7a41cc3..41cf52660dd 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ConsequenceGenerator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ConsequenceGenerator.java @@ -1,84 +1,73 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; -import java.util.List; - +import org.drools.base.base.ValueResolver; import org.drools.core.WorkingMemory; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.reteoo.BaseTuple; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.reteoo.Sink; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.consequence.Consequence; -import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.core.reteoo.Tuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.consequence.Consequence; +import org.drools.base.rule.consequence.ConsequenceContext; import org.drools.mvel.asm.GeneratorHelper.DeclarationMatcher; import org.kie.api.runtime.rule.FactHandle; import org.mvel2.asm.MethodVisitor; +import java.util.List; + import static org.drools.mvel.asm.GeneratorHelper.createInvokerClassGenerator; import static org.drools.mvel.asm.GeneratorHelper.matchDeclarationsToTuple; -import static org.mvel2.asm.Opcodes.AALOAD; -import static org.mvel2.asm.Opcodes.ACC_PUBLIC; -import static org.mvel2.asm.Opcodes.ALOAD; -import static org.mvel2.asm.Opcodes.ARETURN; -import static org.mvel2.asm.Opcodes.ASTORE; -import static org.mvel2.asm.Opcodes.CHECKCAST; -import static org.mvel2.asm.Opcodes.INVOKESTATIC; -import static org.mvel2.asm.Opcodes.RETURN; +import static org.mvel2.asm.Opcodes.*; public class ConsequenceGenerator { - public static void generate( final ConsequenceStub stub, KnowledgeHelper knowledgeHelper, ReteEvaluator reteEvaluator) { - RuleTerminalNode rtn = knowledgeHelper.getMatch().getTuple().getTupleSink(); - final Declaration[] declarations = rtn.getRequiredDeclarations(); - final Tuple tuple = knowledgeHelper.getTuple(); + public static void generate(final ConsequenceStub stub, ConsequenceContext knowledgeHelper, ValueResolver valueResolver) { + final Declaration[] declarations = knowledgeHelper.getRequiredDeclarations(); + final Tuple tuple = (Tuple) knowledgeHelper.getTuple(); // Sort declarations based on their offset, so it can ascend the tuple's parents stack only once final List declarationMatchers = matchDeclarationsToTuple(declarations); - final ClassGenerator generator = createInvokerClassGenerator(stub, reteEvaluator).setInterfaces(Consequence.class, CompiledInvoker.class); + final ClassGenerator generator = createInvokerClassGenerator(stub, valueResolver).setInterfaces(Consequence.class, CompiledInvoker.class); generator.addMethod(ACC_PUBLIC, "getName", generator.methodDescr(String.class), new ClassGenerator.MethodBody() { public void body(MethodVisitor mv) { push(stub.getGeneratedInvokerClassName()); mv.visitInsn(ARETURN); } - }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(null, KnowledgeHelper.class, ReteEvaluator.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { + }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(null, ConsequenceContext.class, ValueResolver.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { public void body(MethodVisitor mv) { // Tuple tuple = knowledgeHelper.getTuple(); mv.visitVarInsn(ALOAD, 1); - invokeInterface(KnowledgeHelper.class, "getTuple", Tuple.class); + invokeInterface(ConsequenceContext.class, "getTuple", BaseTuple.class); cast(LeftTuple.class); mv.visitVarInsn(ASTORE, 3); // LeftTuple - // Declaration[] declarations = ((RuleTerminalNode)knowledgeHelper.getMatch().getTuple().getTupleSink()).getDeclarations(); + // Declaration[] declarations = knowledgeHelper.getRequiredDeclarations(); mv.visitVarInsn(ALOAD, 1); - invokeInterface(KnowledgeHelper.class, "getMatch", InternalMatch.class); - invokeInterface(InternalMatch.class, "getTuple", Tuple.class); - invokeInterface(Tuple.class, "getTupleSink", Sink.class); - cast(RuleTerminalNode.class); - invokeVirtual(RuleTerminalNode.class, "getRequiredDeclarations", Declaration[].class); + invokeInterface(ConsequenceContext.class, "getRequiredDeclarations", Declaration[].class); mv.visitVarInsn(ASTORE, 4); - - Tuple currentTuple = tuple; + BaseTuple currentTuple = tuple; objAstorePos = 6; // astore start position for objects to store in loop int[] paramsPos = new int[declarations.length]; // declarationMatchers is already sorted by offset with tip declarations now first @@ -125,7 +114,7 @@ public void body(MethodVisitor mv) { } // @{ruleClassName}.@{methodName}(KnowledgeHelper, @foreach{declr : declarations} Object, FactHandle @end) - StringBuilder consequenceMethodDescr = new StringBuilder("(L" + KnowledgeHelper.class.getName().replace('.', '/') +";"); + StringBuilder consequenceMethodDescr = new StringBuilder("(L" + ConsequenceContext.class.getName().replace('.', '/') +";"); mv.visitVarInsn(ALOAD, 1); // KnowledgeHelper for (int i = 0; i < declarations.length; i++) { load(paramsPos[i] + 1); // obj[i] @@ -142,6 +131,7 @@ public void body(MethodVisitor mv) { } }); - stub.setConsequence(generator.newInstance()); + Consequence consequence = generator.newInstance(); + stub.setConsequence(consequence); } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ConsequenceStub.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ConsequenceStub.java index 243d3e8eee9..578901dc2da 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ConsequenceStub.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ConsequenceStub.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.asm; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.consequence.Consequence; public interface ConsequenceStub extends Consequence, InvokerStub { Boolean[] getNotPatterns(); diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultBeanClassBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultBeanClassBuilder.java index 4dff5f16c43..6971b0443be 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultBeanClassBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultBeanClassBuilder.java @@ -1,41 +1,34 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; -import java.io.IOException; -import java.io.Serializable; -import java.lang.reflect.InvocationTargetException; -import java.util.ArrayList; -import java.util.BitSet; -import java.util.Collection; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import org.drools.core.factmodel.AnnotationDefinition; +import org.drools.base.factmodel.AnnotationDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.GeneratedFact; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitConstants; +import org.drools.base.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.TraitTypeMapConstants; +import org.drools.base.phreak.ReactiveObject; import org.drools.compiler.builder.impl.classbuilder.BeanClassBuilder; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.GeneratedFact; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitConstants; -import org.drools.core.factmodel.traits.TraitFieldTMS; -import org.drools.core.factmodel.traits.TraitTypeMapConstants; -import org.drools.core.phreak.ReactiveObject; import org.kie.api.definition.type.FactField; import org.mvel2.asm.AnnotationVisitor; import org.mvel2.asm.ClassVisitor; @@ -48,6 +41,17 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.IOException; +import java.io.Serializable; +import java.lang.reflect.InvocationTargetException; +import java.util.ArrayList; +import java.util.BitSet; +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Set; + import static org.drools.compiler.builder.impl.classbuilder.BuildUtils.getDescriptor; import static org.drools.compiler.builder.impl.classbuilder.BuildUtils.getSignature; import static org.drools.mvel.asm.ClassGenerator.createClassWriter; @@ -307,35 +311,35 @@ protected void buildFields(ClassWriter cw, ClassDefinition classDef) { } private void implementReactivity(ClassWriter cw, ClassDefinition classDef) { - final String LEFT_TUPLES_FIELD_NAME = "_lts"; + final String TUPLES_FIELD_NAME = "_ts"; final String TYPE_NAME = BuildUtils.getInternalType( classDef.getClassName() ); FieldVisitor fv; /* - private Collection _lts; + private Collection _ts; */ { - fv = cw.visitField( ACC_PRIVATE, LEFT_TUPLES_FIELD_NAME, "Ljava/util/Collection;", "Ljava/util/Collection;", null ); + fv = cw.visitField( ACC_PRIVATE, TUPLES_FIELD_NAME, "Ljava/util/Collection;", "Ljava/util/Collection;", null ); fv.visitEnd(); } MethodVisitor mv; /* - public void addLeftTuple(Tuple leftTuple) { - if (_lts == null) { - _lts = new HashSet(); + public void addTuple(BaseTuple tuple) { + if (_ts == null) { + _ts = new HashSet(); } - _lts.add(leftTuple); + _ts.add(tuple); } */ { - mv = cw.visitMethod( ACC_PUBLIC, "addLeftTuple", "(Lorg/drools/core/reteoo/Tuple;)V", null, null ); + mv = cw.visitMethod( ACC_PUBLIC, "addTuple", "(Lorg/drools/base/reteoo/BaseTuple;)V", null, null ); mv.visitCode(); Label l0 = new Label(); mv.visitLabel( l0 ); mv.visitLineNumber( 30, l0 ); mv.visitVarInsn( ALOAD, 0 ); - mv.visitFieldInsn( GETFIELD, TYPE_NAME, LEFT_TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); + mv.visitFieldInsn( GETFIELD, TYPE_NAME, TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); Label l1 = new Label(); mv.visitJumpInsn( IFNONNULL, l1 ); Label l2 = new Label(); @@ -345,12 +349,12 @@ public void addLeftTuple(Tuple leftTuple) { mv.visitTypeInsn( NEW, "java/util/HashSet" ); mv.visitInsn( DUP ); mv.visitMethodInsn( INVOKESPECIAL, "java/util/HashSet", "", "()V", false ); - mv.visitFieldInsn( PUTFIELD, TYPE_NAME, LEFT_TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); + mv.visitFieldInsn( PUTFIELD, TYPE_NAME, TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); mv.visitLabel( l1 ); mv.visitLineNumber( 33, l1 ); mv.visitFrame( Opcodes.F_SAME, 0, null, 0, null ); mv.visitVarInsn( ALOAD, 0 ); - mv.visitFieldInsn( GETFIELD, TYPE_NAME, LEFT_TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); + mv.visitFieldInsn( GETFIELD, TYPE_NAME, TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); mv.visitVarInsn( ALOAD, 1 ); mv.visitMethodInsn( INVOKEINTERFACE, "java/util/Collection", "add", "(Ljava/lang/Object;)Z", true ); mv.visitInsn( POP ); @@ -361,27 +365,27 @@ public void addLeftTuple(Tuple leftTuple) { Label l4 = new Label(); mv.visitLabel( l4 ); mv.visitLocalVariable( "this", "L" + TYPE_NAME + ";", null, l0, l4, 0 ); - mv.visitLocalVariable( "leftTuple", "Lorg/drools/core/reteoo/Tuple;", null, l0, l4, 1 ); + mv.visitLocalVariable( "tuple", "Lorg/drools/base/reteoo/BaseTuple;", null, l0, l4, 1 ); mv.visitMaxs( 3, 2 ); mv.visitEnd(); } /* - public Collection getLeftTuples() { - return _lts != null ? _lts : Collections.emptyList(); + public Collection getTuples() { + return _ts != null ? _ts : Collections.emptyList(); } */ { - mv = cw.visitMethod( ACC_PUBLIC, "getLeftTuples", "()Ljava/util/Collection;", "()Ljava/util/Collection;", null ); + mv = cw.visitMethod( ACC_PUBLIC, "getTuples", "()Ljava/util/Collection;", "()Ljava/util/Collection;", null ); mv.visitCode(); Label l0 = new Label(); mv.visitLabel( l0 ); mv.visitLineNumber( 37, l0 ); mv.visitVarInsn( ALOAD, 0 ); - mv.visitFieldInsn( GETFIELD, TYPE_NAME, LEFT_TUPLES_FIELD_NAME, "Ljava/util/Collection;"); + mv.visitFieldInsn( GETFIELD, TYPE_NAME, TUPLES_FIELD_NAME, "Ljava/util/Collection;"); Label l1 = new Label(); mv.visitJumpInsn( IFNULL, l1 ); mv.visitVarInsn( ALOAD, 0 ); - mv.visitFieldInsn( GETFIELD, TYPE_NAME, LEFT_TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); + mv.visitFieldInsn( GETFIELD, TYPE_NAME, TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); Label l2 = new Label(); mv.visitJumpInsn( GOTO, l2 ); mv.visitLabel( l1 ); @@ -408,7 +412,7 @@ protected void notifyModification() { mv.visitLabel( l0 ); mv.visitLineNumber( 41, l0 ); mv.visitVarInsn( ALOAD, 0 ); - mv.visitMethodInsn( INVOKESTATIC, "org/drools/core/phreak/ReactiveObjectUtil", "notifyModification", "(Lorg/drools/core/phreak/ReactiveObject;)V", false ); + mv.visitMethodInsn( INVOKESTATIC, "org/drools/core/phreak/ReactiveObjectUtil", "notifyModification", "(Lorg/drools/base/phreak/ReactiveObject;)V", false ); Label l1 = new Label(); mv.visitLabel( l1 ); mv.visitLineNumber( 42, l1 ); @@ -420,18 +424,18 @@ protected void notifyModification() { mv.visitEnd(); } /* - public void removeLeftTuple(Tuple leftTuple) { - _lts.remove(leftTuple); + public void removeTuple(BaseTuple tuple) { + _ts.remove(tuple); } */ { - mv = cw.visitMethod( ACC_PUBLIC, "removeLeftTuple", "(Lorg/drools/core/reteoo/Tuple;)V", null, null ); + mv = cw.visitMethod( ACC_PUBLIC, "removeTuple", "(Lorg/drools/base/reteoo/BaseTuple;)V", null, null ); mv.visitCode(); Label l0 = new Label(); mv.visitLabel( l0 ); mv.visitLineNumber( 46, l0 ); mv.visitVarInsn( ALOAD, 0 ); - mv.visitFieldInsn( GETFIELD, TYPE_NAME, LEFT_TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); + mv.visitFieldInsn( GETFIELD, TYPE_NAME, TUPLES_FIELD_NAME, "Ljava/util/Collection;" ); mv.visitVarInsn( ALOAD, 1 ); mv.visitMethodInsn( INVOKEINTERFACE, "java/util/Collection", "remove", "(Ljava/lang/Object;)Z", true ); mv.visitInsn( POP ); @@ -442,7 +446,7 @@ public void removeLeftTuple(Tuple leftTuple) { Label l2 = new Label(); mv.visitLabel( l2 ); mv.visitLocalVariable( "this", "Lorg/drools/core/phreak/AbstractReactiveObject;", null, l0, l2, 0 ); - mv.visitLocalVariable( "leftTuple", "Lorg/drools/core/reteoo/Tuple;", null, l0, l2, 1 ); + mv.visitLocalVariable( "tuple", "Lorg/drools/base/reteoo/BaseTuple;", null, l0, l2, 1 ); mv.visitMaxs( 2, 2 ); mv.visitEnd(); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultClassBuilderFactory.java b/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultClassBuilderFactory.java index 72405d58255..1580f4eb0f9 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultClassBuilderFactory.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultClassBuilderFactory.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.io.Serializable; @@ -20,7 +24,7 @@ import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; import org.drools.compiler.builder.impl.classbuilder.ClassBuilderFactory; import org.drools.compiler.builder.impl.classbuilder.EnumClassBuilder; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; public class DefaultClassBuilderFactory implements Serializable, ClassBuilderFactory { diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultEnumClassBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultEnumClassBuilder.java index 395b49b2669..27d641c6f99 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultEnumClassBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/DefaultEnumClassBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.io.IOException; @@ -19,11 +23,11 @@ import java.util.List; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.factmodel.ClassDefinition; import org.drools.compiler.builder.impl.classbuilder.EnumClassBuilder; import org.drools.compiler.builder.impl.classbuilder.EnumClassDefinition; import org.drools.compiler.builder.impl.classbuilder.EnumLiteralDefinition; -import org.drools.core.factmodel.FieldDefinition; +import org.drools.base.factmodel.FieldDefinition; import org.mvel2.asm.ClassWriter; import org.mvel2.asm.FieldVisitor; import org.mvel2.asm.MethodVisitor; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/DumpMethodVisitor.java b/drools-mvel/src/main/java/org/drools/mvel/asm/DumpMethodVisitor.java index ecda4d07596..5e0e050e463 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/DumpMethodVisitor.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/DumpMethodVisitor.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.function.Consumer; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/EvalGenerator.java b/drools-mvel/src/main/java/org/drools/mvel/asm/EvalGenerator.java index de8a3a07b5b..f0194e7e907 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/EvalGenerator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/EvalGenerator.java @@ -1,30 +1,34 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.EvalExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.EvalExpression; import org.drools.mvel.asm.GeneratorHelper.DeclarationMatcher; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.asm.MethodVisitor; import static org.drools.mvel.asm.GeneratorHelper.createInvokerClassGenerator; @@ -43,9 +47,9 @@ public class EvalGenerator { private static final AtomicInteger evalId = new AtomicInteger(); public static void generate(final EvalStub stub , - final Tuple tuple, + final BaseTuple tuple, final Declaration[] declarations, - final ReteEvaluator reteEvaluator) { + final ValueResolver reteEvaluator) { final String[] globals = stub.getGlobals(); final String[] globalTypes = stub.getGlobalTypes(); @@ -67,7 +71,7 @@ public void body(MethodVisitor mv) { mv.visitInsn(ARETURN); } }).addMethod(ACC_PUBLIC, "replaceDeclaration", generator.methodDescr(null, Declaration.class, Declaration.class) - ).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(Boolean.TYPE, Tuple.class, Declaration[].class, ReteEvaluator.class, Object.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { + ).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(Boolean.TYPE, BaseTuple.class, Declaration[].class, ValueResolver.class, Object.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { public void body(MethodVisitor mv) { objAstorePos = 7; @@ -78,7 +82,7 @@ public void body(MethodVisitor mv) { cast(LeftTuple.class); mv.visitVarInsn(ASTORE, 5); // LeftTuple - Tuple currentTuple = tuple; + BaseTuple currentTuple = tuple; for (DeclarationMatcher matcher : declarationMatchers) { int i = matcher.getMatcherIndex(); declarationsParamsPos[i] = objAstorePos; @@ -91,8 +95,8 @@ public void body(MethodVisitor mv) { mv.visitVarInsn(ALOAD, 3); // reteEvaluator mv.visitVarInsn(ALOAD, 5); - invokeInterface(LeftTuple.class, "getFactHandle", InternalFactHandle.class); - invokeInterface(InternalFactHandle.class, "getObject", Object.class); // tuple.getFactHandle().getObject() + invokeInterface(BaseTuple.class, "getFactHandle", FactHandle.class); + invokeInterface(FactHandle.class, "getObject", Object.class); // tuple.getFactHandle().getObject() storeObjectFromDeclaration(declarations[i], expectedDeclarations[i]); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/EvalStub.java b/drools-mvel/src/main/java/org/drools/mvel/asm/EvalStub.java index 3bc84a7c93b..8dae5c83f7b 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/EvalStub.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/EvalStub.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.asm; -import org.drools.core.rule.accessor.EvalExpression; +import org.drools.base.rule.accessor.EvalExpression; public interface EvalStub extends EvalExpression, InvokerStub { void setEval(EvalExpression predicate); diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/GeneratorHelper.java b/drools-mvel/src/main/java/org/drools/mvel/asm/GeneratorHelper.java index 010a3cb366d..ab2d793a03f 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/GeneratorHelper.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/GeneratorHelper.java @@ -1,35 +1,39 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; +import org.drools.base.base.ValueResolver; +import org.drools.base.reteoo.BaseTuple; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.util.ClassTypeResolver; import org.drools.util.TypeResolver; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.reteoo.Tuple; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.CompiledInvoker; import org.mvel2.asm.Label; import org.mvel2.asm.MethodVisitor; @@ -96,19 +100,19 @@ public int compareTo(Object obj) { } } - private static ClassLoader getClassLoader(final Object obj, final ReteEvaluator reteEvaluator) { + private static ClassLoader getClassLoader(final Object obj, final ValueResolver valueResolver) { // use the same ClassLoader used for the stub return obj.getClass().getClassLoader(); } - static ClassGenerator createInvokerClassGenerator( InvokerStub stub, ReteEvaluator reteEvaluator) { - return createInvokerClassGenerator(stub, "", reteEvaluator); + static ClassGenerator createInvokerClassGenerator( InvokerStub stub, ValueResolver valueResolver) { + return createInvokerClassGenerator(stub, "", valueResolver); } - static ClassGenerator createInvokerClassGenerator(InvokerStub stub, String classSuffix, ReteEvaluator reteEvaluator) { + static ClassGenerator createInvokerClassGenerator(InvokerStub stub, String classSuffix, ValueResolver valueResolver) { String className = stub.getPackageName() + "." + stub.getGeneratedInvokerClassName() + classSuffix; - ClassLoader classLoader = getClassLoader(stub, reteEvaluator); - return createInvokerClassGenerator(className, stub, classLoader, getTypeResolver(stub, reteEvaluator, classLoader)); + ClassLoader classLoader = getClassLoader(stub, valueResolver); + return createInvokerClassGenerator(className, stub, classLoader, getTypeResolver(stub, valueResolver, classLoader)); } public static ClassGenerator createInvokerClassGenerator(final String className, @@ -131,8 +135,8 @@ public void body(MethodVisitor mv) { return generator; } - static TypeResolver getTypeResolver(final InvokerStub stub, final ReteEvaluator reteEvaluator, final ClassLoader classLoader) { - InternalKnowledgePackage pkg = reteEvaluator.getKnowledgeBase().getPackage(stub.getPackageName()); + static TypeResolver getTypeResolver(final InvokerStub stub, final ValueResolver valueResolver, final ClassLoader classLoader) { + InternalKnowledgePackage pkg = ((InternalKnowledgeBase)valueResolver.getRuleBase()).getPackage(stub.getPackageName()); TypeResolver typeResolver = pkg == null ? null : pkg.getTypeResolver(); if (typeResolver == null) { Set imports = new HashSet<>(); @@ -204,7 +208,7 @@ protected int storeObjectFromDeclaration(Declaration declaration, String declara boolean needsPrimitive = !(expectedTypeDescr.startsWith("L") || expectedTypeDescr.startsWith("[")); String returnedType = isObject ? "Ljava/lang/Object;" : typeDescr(declaration.getTypeName()); mv.visitMethodInsn(INVOKEVIRTUAL, Declaration.class.getName().replace('.', '/'), readMethod, - "(L" + ReteEvaluator.class.getName().replace('.', '/') + ";Ljava/lang/Object;)" + returnedType); + "(L" + ValueResolver.class.getName().replace('.', '/') + ";Ljava/lang/Object;)" + returnedType); if (isObject) { Class declarationClass = declaration.getDeclarationClass(); if (declarationClass != null) { @@ -223,12 +227,12 @@ protected int storeObjectFromDeclaration(Declaration declaration, String declara return store(registry, declarationType); } - protected Tuple traverseTuplesUntilDeclaration(Tuple currentTuple, int tupleIndex, int tupleReg) { + protected BaseTuple traverseTuplesUntilDeclaration(BaseTuple currentTuple, int tupleIndex, int tupleReg) { // do not use currentTuple.skipEmptyHandles(), as we use else where, because we need the getParent as part of the generated code. while (currentTuple.getIndex() != tupleIndex) { // FactHandle is null for eval, not and join nodes as it has no right input mv.visitVarInsn(ALOAD, tupleReg); - invokeInterface(Tuple.class, "getParent", Tuple.class); + invokeInterface(BaseTuple.class, "getParent", BaseTuple.class); mv.visitVarInsn(ASTORE, tupleReg); // tuple = tuple.getParent() currentTuple = currentTuple.getParent(); } @@ -248,11 +252,11 @@ protected void traverseTuplesUntilDeclarationWithOr(int declarIndex, int declarR Label whileExit = new Label(); mv.visitLabel(whileStart); mv.visitVarInsn(ALOAD, tupleReg); - invokeInterface(Tuple.class, "getIndex", Integer.TYPE); // tuple.getIndex() + invokeInterface(BaseTuple.class, "getIndex", Integer.TYPE); // tuple.getIndex() mv.visitVarInsn(ILOAD, declarOffsetReg); // declarations[i].getPattern().getOffset() mv.visitJumpInsn(IF_ICMPLE, whileExit); // if tuple.getQueueIndex() <= declarations[i].getPattern().getOffset() jump to whileExit mv.visitVarInsn(ALOAD, tupleReg); - invokeInterface(Tuple.class, "getParent", Tuple.class); + invokeInterface(BaseTuple.class, "getParent", BaseTuple.class); mv.visitVarInsn(ASTORE, tupleReg); // tuple = tuple.getParent() mv.visitJumpInsn(GOTO, whileStart); mv.visitLabel(whileExit); @@ -278,7 +282,7 @@ protected int[] parseDeclarations(Declaration[] declarations, int declarReg, int mv.visitVarInsn(ALOAD, declarReg); push(i); mv.visitInsn(AALOAD); // declarations[i] - invokeInterface(Tuple.class, "get", InternalFactHandle.class, Declaration.class); + invokeInterface(BaseTuple.class, "get", InternalFactHandle.class, Declaration.class); invokeInterface(InternalFactHandle.class, "getObject", Object.class); } else { mv.visitVarInsn(ALOAD, 1); // object @@ -288,7 +292,7 @@ protected int[] parseDeclarations(Declaration[] declarations, int declarReg, int boolean isObject = readMethod.equals("getValue"); String declarationType = declarations[i].getTypeName(); String returnedType = isObject ? "Ljava/lang/Object;" : typeDescr(declarationType); - mv.visitMethodInsn(INVOKEVIRTUAL, Declaration.class.getName().replace('.', '/'), readMethod, "(L" + ReteEvaluator.class.getName().replace('.', '/') + ";Ljava/lang/Object;)" + returnedType); + mv.visitMethodInsn(INVOKEVIRTUAL, Declaration.class.getName().replace('.', '/'), readMethod, "(L" + ValueResolver.class.getName().replace('.', '/') + ";Ljava/lang/Object;)" + returnedType); if (isObject) { mv.visitTypeInsn(CHECKCAST, internalName(declarationType)); } @@ -306,7 +310,7 @@ protected void parseGlobals(String[] globals, String[] globalTypes, int wmReg, S mv.visitVarInsn(ALOAD, wmReg); // workingMemory push(globals[i]); - invokeInterface(ReteEvaluator.class, "getGlobal", Object.class, String.class); + invokeInterface(ValueResolver.class, "getGlobal", Object.class, String.class); Class primitiveType = convertPrimitiveNameToType(globalType); if (primitiveType != null) { cast(convertFromPrimitiveType(primitiveType), primitiveType); diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerContext.java b/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerContext.java index 333daeb5860..7510b10d044 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerContext.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerContext.java @@ -1,20 +1,24 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import java.util.Map; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerDataProvider.java b/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerDataProvider.java index 2ade5b4b634..d9f0a79ceb0 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerDataProvider.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerDataProvider.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.asm; public interface InvokerDataProvider { diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerGenerator.java b/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerGenerator.java index e5a6326aee9..94e643c5858 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerGenerator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerGenerator.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.ArrayList; @@ -19,7 +23,7 @@ import java.util.Set; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.drools.util.TypeResolver; import org.mvel2.asm.MethodVisitor; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerStub.java b/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerStub.java index 2c1a6ca85b8..7ae3bc8b815 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerStub.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/InvokerStub.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.asm; public interface InvokerStub extends InvokerDataProvider { diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/KnowledgeHelperFixer.java b/drools-mvel/src/main/java/org/drools/mvel/asm/KnowledgeHelperFixer.java index 5941c355516..89b4dc5708a 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/KnowledgeHelperFixer.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/KnowledgeHelperFixer.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.HashMap; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/LambdaIntrospector.java b/drools-mvel/src/main/java/org/drools/mvel/asm/LambdaIntrospector.java index 8f8c6404d5d..fe1f2b1b451 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/LambdaIntrospector.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/LambdaIntrospector.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.io.InputStream; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/MethodComparator.java b/drools-mvel/src/main/java/org/drools/mvel/asm/MethodComparator.java index e1300d17ba6..2965f0f3695 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/MethodComparator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/MethodComparator.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.io.InputStream; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/PredicateGenerator.java b/drools-mvel/src/main/java/org/drools/mvel/asm/PredicateGenerator.java index 05bb8455aad..507af97b890 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/PredicateGenerator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/PredicateGenerator.java @@ -1,29 +1,34 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.List; +import org.drools.base.base.ValueResolver; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.reteoo.BaseTuple; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.PredicateExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.PredicateExpression; import org.drools.mvel.asm.GeneratorHelper.DeclarationMatcher; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.asm.MethodVisitor; import static org.drools.mvel.asm.GeneratorHelper.createInvokerClassGenerator; @@ -39,10 +44,10 @@ public class PredicateGenerator { public static void generate(final PredicateStub stub, - final Tuple tuple, + final BaseTuple tuple, final Declaration[] previousDeclarations, final Declaration[] localDeclarations, - final ReteEvaluator reteEvaluator) { + final ValueResolver valueResolver) { final String[] globals = stub.getGlobals(); final String[] globalTypes = stub.getGlobalTypes(); @@ -50,7 +55,7 @@ public static void generate(final PredicateStub stub, // Sort declarations based on their offset, so it can ascend the tuple's parents stack only once final List declarationMatchers = matchDeclarationsToTuple(previousDeclarations); - final ClassGenerator generator = createInvokerClassGenerator(stub, reteEvaluator) + final ClassGenerator generator = createInvokerClassGenerator(stub, valueResolver) .setInterfaces(PredicateExpression.class, CompiledInvoker.class); generator.addMethod(ACC_PUBLIC, "createContext", generator.methodDescr(Object.class), new ClassGenerator.MethodBody() { @@ -58,14 +63,14 @@ public void body(MethodVisitor mv) { mv.visitInsn(ACONST_NULL); mv.visitInsn(ARETURN); } - }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(Boolean.TYPE, InternalFactHandle.class, Tuple.class, Declaration[].class, Declaration[].class, ReteEvaluator.class, Object.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { + }).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(Boolean.TYPE, FactHandle.class, BaseTuple.class, Declaration[].class, Declaration[].class, ValueResolver.class, Object.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { public void body(MethodVisitor mv) { objAstorePos = 9; int[] previousDeclarationsParamsPos = new int[previousDeclarations.length]; mv.visitVarInsn( ALOAD, 1 ); - invokeInterface( InternalFactHandle.class, "getObject", Object.class ); + invokeInterface( FactHandle.class, "getObject", Object.class ); mv.visitVarInsn( ASTORE, 1 ); @@ -73,7 +78,7 @@ public void body(MethodVisitor mv) { cast(LeftTuple.class); mv.visitVarInsn(ASTORE, 7); // LeftTuple - Tuple currentTuple = tuple; + BaseTuple currentTuple = tuple; for (DeclarationMatcher matcher : declarationMatchers) { int i = matcher.getMatcherIndex(); previousDeclarationsParamsPos[i] = objAstorePos; @@ -87,7 +92,7 @@ public void body(MethodVisitor mv) { mv.visitVarInsn(ALOAD, 7); invokeInterface(LeftTuple.class, "getFactHandle", InternalFactHandle.class); - invokeInterface(InternalFactHandle.class, "getObject", Object.class); // tuple.getFactHandle().getObject() + invokeInterface(FactHandle.class, "getObject", Object.class); // tuple.getFactHandle().getObject() storeObjectFromDeclaration(previousDeclarations[i], previousDeclarations[i].getTypeName()); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/PredicateStub.java b/drools-mvel/src/main/java/org/drools/mvel/asm/PredicateStub.java index 9449bad391a..a3c2aab0b16 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/PredicateStub.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/PredicateStub.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.asm; -import org.drools.core.rule.accessor.PredicateExpression; +import org.drools.base.rule.accessor.PredicateExpression; public interface PredicateStub extends PredicateExpression, InvokerStub { diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ReturnValueGenerator.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ReturnValueGenerator.java index 844636f7af5..dcec59f31d4 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ReturnValueGenerator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ReturnValueGenerator.java @@ -1,30 +1,35 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.util.List; +import org.drools.base.base.ValueResolver; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.reteoo.BaseTuple; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReturnValueExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReturnValueExpression; import org.drools.mvel.asm.GeneratorHelper.DeclarationMatcher; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.asm.MethodVisitor; import static org.drools.mvel.asm.GeneratorHelper.createInvokerClassGenerator; @@ -39,10 +44,10 @@ public class ReturnValueGenerator { public static void generate(final ReturnValueStub stub, - final Tuple tuple, + final BaseTuple tuple, final Declaration[] previousDeclarations, final Declaration[] localDeclarations, - final ReteEvaluator reteEvaluator) { + final ValueResolver valueResolver) { final String[] globals = stub.getGlobals(); final String[] globalTypes = stub.getGlobalTypes(); @@ -50,7 +55,7 @@ public static void generate(final ReturnValueStub stub, // Sort declarations based on their offset, so it can ascend the tuple's parents stack only once final List declarationMatchers = matchDeclarationsToTuple(previousDeclarations); - final ClassGenerator generator = createInvokerClassGenerator(stub, reteEvaluator) + final ClassGenerator generator = createInvokerClassGenerator(stub, valueResolver) .setInterfaces(ReturnValueExpression.class, CompiledInvoker.class); generator.addMethod(ACC_PUBLIC, "createContext", generator.methodDescr(Object.class), new ClassGenerator.MethodBody() { @@ -59,7 +64,7 @@ public void body(MethodVisitor mv) { mv.visitInsn(ARETURN); } }).addMethod(ACC_PUBLIC, "replaceDeclaration", generator.methodDescr(null, Declaration.class, Declaration.class) - ).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(FieldValue.class, Object.class, Tuple.class, Declaration[].class, Declaration[].class, ReteEvaluator.class, Object.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { + ).addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(FieldValue.class, FactHandle.class, BaseTuple.class, Declaration[].class, Declaration[].class, ValueResolver.class, Object.class), new String[]{"java/lang/Exception"}, new GeneratorHelper.EvaluateMethod() { public void body(MethodVisitor mv) { objAstorePos = 9; @@ -69,7 +74,7 @@ public void body(MethodVisitor mv) { cast(LeftTuple.class); mv.visitVarInsn(ASTORE, 7); // LeftTuple - Tuple currentTuple = tuple; + BaseTuple currentTuple = tuple; for (DeclarationMatcher matcher : declarationMatchers) { int i = matcher.getMatcherIndex(); previousDeclarationsParamsPos[i] = objAstorePos; diff --git a/drools-mvel/src/main/java/org/drools/mvel/asm/ReturnValueStub.java b/drools-mvel/src/main/java/org/drools/mvel/asm/ReturnValueStub.java index abebc899383..8eb494d42cf 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/asm/ReturnValueStub.java +++ b/drools-mvel/src/main/java/org/drools/mvel/asm/ReturnValueStub.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.asm; -import org.drools.core.rule.accessor.ReturnValueExpression; +import org.drools.base.rule.accessor.ReturnValueExpression; public interface ReturnValueStub extends ReturnValueExpression, InvokerStub { diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELAccumulateBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELAccumulateBuilder.java index 90e32f49b27..9064ba84c87 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELAccumulateBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELAccumulateBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import java.util.ArrayList; @@ -23,6 +27,7 @@ import org.drools.compiler.compiler.AnalysisResult; import org.drools.compiler.compiler.BoundIdentifiers; import org.drools.compiler.compiler.DescrBuildError; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.drl.ast.descr.AccumulateDescr; import org.drools.drl.ast.descr.AccumulateDescr.AccumulateFunctionCallDescr; import org.drools.drl.ast.descr.BaseDescr; @@ -31,22 +36,21 @@ import org.drools.compiler.rule.builder.RuleConditionBuilder; import org.drools.compiler.rule.builder.util.AccumulateUtil; import org.drools.compiler.rule.builder.util.PackageBuilderUtil; -import org.drools.core.base.extractors.ArrayElementReader; -import org.drools.core.base.extractors.SelfReferenceClassFieldReader; -import org.drools.core.reteoo.RuleTerminalNode.SortDeclarations; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.MultiAccumulate; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.SingleAccumulate; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.rule.constraint.Constraint; -import org.drools.core.rule.accessor.DeclarationScopeResolver; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.extractors.ArrayElementReader; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.MultiAccumulate; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.SingleAccumulate; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.rule.accessor.DeclarationScopeResolver; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.util.index.IndexUtil; import org.drools.mvel.MVELConstraint; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.asm.AsmUtil; @@ -246,7 +250,7 @@ private Accumulator[] buildExternalFunctions(final RuleBuildContext context, new Declaration[] { inner }, null, null, - IndexUtil.ConstraintType.EQUAL, + ConstraintTypeOperator.EQUAL, context.getDeclarationResolver().getDeclaration( func.getBind() ), accumDescr.isMultiFunction() ? new ArrayElementReader( arrayReader, index, function.getResultType() ) diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELAnalysisResult.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELAnalysisResult.java index 99e9e241bdf..0b1af813397 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELAnalysisResult.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELAnalysisResult.java @@ -1,15 +1,20 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ package org.drools.mvel.builder; diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELBeanCreator.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELBeanCreator.java index a3443aeb869..62a0895b004 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELBeanCreator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELBeanCreator.java @@ -1,23 +1,27 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import java.util.Map; import org.drools.compiler.kie.util.BeanCreator; -import org.drools.core.base.CoreComponentsBuilder; +import org.drools.base.base.CoreComponentsBuilder; import org.kie.api.builder.model.QualifierModel; import org.mvel2.MVEL; import org.mvel2.ParserConfiguration; diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELConsequenceBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELConsequenceBuilder.java index 9883bb4be27..27f6dd312a2 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELConsequenceBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELConsequenceBuilder.java @@ -1,39 +1,35 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; -import java.beans.Introspector; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.function.Function; - import org.drools.compiler.compiler.AnalysisResult; import org.drools.compiler.compiler.BoundIdentifiers; import org.drools.compiler.compiler.DescrBuildError; import org.drools.compiler.rule.builder.ConsequenceBuilder; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.reteoo.RuleTerminalNode.SortDeclarations; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.drl.ast.descr.RuleDescr; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.expr.MVELCompilationUnit; @@ -41,14 +37,18 @@ import org.mvel2.Macro; import org.mvel2.MacroProcessor; -import static org.drools.core.reteoo.PropertySpecificUtil.allSetButTraitBitMask; -import static org.drools.core.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; -import static org.drools.core.reteoo.PropertySpecificUtil.setPropertyOnMask; +import static org.drools.base.reteoo.PropertySpecificUtil.allSetButTraitBitMask; +import static org.drools.base.reteoo.PropertySpecificUtil.getEmptyPropertyReactiveMask; +import static org.drools.base.reteoo.PropertySpecificUtil.setPropertyOnMask; import static org.drools.mvel.asm.AsmUtil.copyErrorLocation; import static org.drools.util.StringUtils.findEndOfBlockIndex; import static org.drools.util.StringUtils.findEndOfMethodArgsIndex; import static org.drools.util.StringUtils.splitModifyBlock; -import static org.drools.util.StringUtils.splitStatements; +import static org.drools.util.StringUtils.splitStatementsAcrossBlocks; + +import java.beans.Introspector; +import java.util.*; +import java.util.function.Function; public class MVELConsequenceBuilder implements @@ -272,7 +272,7 @@ public static String rewriteUpdates( Function> classResolver, F BitMask modificationMask = getEmptyPropertyReactiveMask(settableProperties.size()); boolean directAccess = false; - for (String expr : splitStatements(text)) { + for (String expr : splitStatementsAcrossBlocks(text)) { if (expr.startsWith( identifier + "." )) { int fieldEnd = identifier.length()+1; while (Character.isJavaIdentifierPart( expr.charAt( fieldEnd ) )) fieldEnd++; diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELDialect.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELDialect.java index b105994d1ad..b6131ce7ad0 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELDialect.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELDialect.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import java.io.Externalizable; @@ -45,6 +49,7 @@ import org.drools.compiler.rule.builder.EvaluatorWrapper; import org.drools.compiler.rule.builder.ForallBuilder; import org.drools.compiler.rule.builder.FromBuilder; +import org.drools.compiler.rule.builder.GroupByBuilder; import org.drools.compiler.rule.builder.GroupElementBuilder; import org.drools.compiler.rule.builder.NamedConsequenceBuilder; import org.drools.compiler.rule.builder.PackageBuildContext; @@ -59,10 +64,10 @@ import org.drools.compiler.rule.builder.WindowReferenceBuilder; import org.drools.compiler.rule.builder.dialect.DialectUtil; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.LineMappings; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.LineMappings; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.drl.ast.descr.AccumulateDescr; import org.drools.drl.ast.descr.AndDescr; @@ -75,6 +80,7 @@ import org.drools.drl.ast.descr.ForallDescr; import org.drools.drl.ast.descr.FromDescr; import org.drools.drl.ast.descr.FunctionDescr; +import org.drools.drl.ast.descr.GroupByDescr; import org.drools.drl.ast.descr.ImportDescr; import org.drools.drl.ast.descr.NamedConsequenceDescr; import org.drools.drl.ast.descr.NotDescr; @@ -110,6 +116,7 @@ public class MVELDialect protected static final PatternBuilderForQuery QUERY_BUILDER = new PatternBuilderForQuery(); protected static final PatternBuilderForQuery ABDUCTIVE_QUERY_BUILDER = new PatternBuilderForAbductiveQuery(); protected static final MVELAccumulateBuilder ACCUMULATE_BUILDER = new MVELAccumulateBuilder(); + protected static final MVELGroupByBuilder GROUP_BY_BUILDER = new MVELGroupByBuilder(); protected static final SalienceBuilder SALIENCE_BUILDER = new MVELSalienceBuilder(); protected static final EnabledBuilder ENABLED_BUILDER = new MVELEnabledBuilder(); protected static final MVELEvalBuilder EVAL_BUILDER = new MVELEvalBuilder(); @@ -286,6 +293,9 @@ public static void reinitBuilder() { builders.put(AccumulateDescr.class, ACCUMULATE_BUILDER); + builders.put(GroupByDescr.class, + GROUP_BY_BUILDER); + builders.put(EvalDescr.class, EVAL_BUILDER); @@ -681,6 +691,10 @@ public AccumulateBuilder getAccumulateBuilder() { return ACCUMULATE_BUILDER; } + public GroupByBuilder getGroupByBuilder() { + return GROUP_BY_BUILDER; + } + public ConsequenceBuilder getConsequenceBuilder() { return CONSEQUENCE_BUILDER; } diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELDialectConfiguration.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELDialectConfiguration.java index 9d036e83b3e..c16471ef4c0 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELDialectConfiguration.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELDialectConfiguration.java @@ -1,24 +1,28 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.compiler.Dialect; import org.drools.compiler.compiler.DialectConfiguration; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; /** * The MVEL dialect. diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELEnabledBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELEnabledBuilder.java index fa5bbb1262c..ab83d9f95d8 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELEnabledBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELEnabledBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import java.util.Arrays; @@ -23,10 +27,10 @@ import org.drools.compiler.compiler.DescrBuildError; import org.drools.compiler.rule.builder.EnabledBuilder; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.reteoo.RuleTerminalNode.SortDeclarations; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.asm.AsmUtil; diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELEvalBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELEvalBuilder.java index 305421940e4..db6ccbead3d 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELEvalBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELEvalBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import java.util.Arrays; @@ -22,13 +26,13 @@ import org.drools.compiler.compiler.DescrBuildError; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.compiler.rule.builder.RuleConditionBuilder; -import org.drools.core.reteoo.RuleTerminalNode.SortDeclarations; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.EvalConditionFactory; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.EvalConditionFactory; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.EvalDescr; diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELExprAnalyzer.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELExprAnalyzer.java index 52296be17dc..4263cee2abf 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELExprAnalyzer.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELExprAnalyzer.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import java.lang.reflect.Type; @@ -29,8 +33,8 @@ import org.drools.compiler.rule.builder.PackageBuildContext; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.RuleConditionElement; import org.drools.drl.ast.descr.BaseDescr; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.asm.AsmUtil; diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELFromBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELFromBuilder.java index 3e8811c2a9b..6c71e7e1ee5 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELFromBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELFromBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import java.util.Arrays; @@ -25,13 +29,13 @@ import org.drools.drl.ast.descr.FromDescr; import org.drools.compiler.rule.builder.FromBuilder; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.reteoo.RuleTerminalNode.SortDeclarations; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.From; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.From; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.asm.AsmUtil; diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELGroupByBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELGroupByBuilder.java new file mode 100755 index 00000000000..1b87d322921 --- /dev/null +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELGroupByBuilder.java @@ -0,0 +1,508 @@ +/** + * 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. + */ +package org.drools.mvel.builder; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.UUID; +import java.util.function.Function; +import java.util.function.Supplier; + +import org.drools.base.rule.Accumulate; +import org.drools.compiler.compiler.AnalysisResult; +import org.drools.compiler.compiler.BoundIdentifiers; +import org.drools.compiler.compiler.DescrBuildError; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.drools.compiler.rule.builder.GroupByBuilder; +import org.drools.drl.ast.descr.AccumulateDescr.AccumulateFunctionCallDescr; +import org.drools.drl.ast.descr.BaseDescr; +import org.drools.compiler.rule.builder.RuleBuildContext; +import org.drools.compiler.rule.builder.RuleConditionBuilder; +import org.drools.compiler.rule.builder.util.AccumulateUtil; +import org.drools.compiler.rule.builder.util.PackageBuilderUtil; +import org.drools.base.base.extractors.ArrayElementReader; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.MultiAccumulate; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.SingleAccumulate; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.rule.accessor.DeclarationScopeResolver; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.core.rule.consequence.KnowledgeHelper; +import org.drools.drl.ast.descr.GroupByDescr; +import org.drools.mvel.MVELConstraint; +import org.drools.mvel.MVELDialectRuntimeData; +import org.drools.mvel.MVELGroupByAccumulate; +import org.drools.mvel.asm.AsmUtil; +import org.drools.mvel.expr.MVELAccumulator; +import org.drools.mvel.expr.MVELAccumulatorFunctionExecutor; +import org.drools.mvel.expr.MVELCompilationUnit; +import org.drools.mvel.expr.MVELCompileable; +import org.drools.mvel.expr.MVELReturnValueExpression; +import org.kie.api.runtime.rule.AccumulateFunction; +import org.kie.internal.builder.conf.AccumulateFunctionOption; + +/** + * A builder for the mvel dialect groupby version + */ +public class MVELGroupByBuilder + implements + GroupByBuilder { + + public RuleConditionElement build( final RuleBuildContext context, + final BaseDescr descr ) { + return build( context, + descr, + null ); + } + + @SuppressWarnings("unchecked") + public RuleConditionElement build( final RuleBuildContext context, + final BaseDescr descr, + final Pattern prefixPattern ) { + boolean typesafe = context.isTypesafe(); + try { + final GroupByDescr groupByDescr = (GroupByDescr) descr; + + if ( !groupByDescr.hasValidInput() ) { + return null; + } + + final RuleConditionBuilder builder = (RuleConditionBuilder) context.getDialect().getBuilder( groupByDescr.getInput().getClass() ); + + // create source CE + final RuleConditionElement source = builder.build( context, + groupByDescr.getInput() ); + + if ( source == null ) { + return null; + } + + MVELDialect dialect = (MVELDialect) context.getDialect(); + + Map decls = context.getDeclarationResolver().getDeclarations( context.getRule() ); + Map sourceOuterDeclr = source.getOuterDeclarations(); + + Map> declarationClasses = DeclarationScopeResolver.getDeclarationClasses( decls ); + declarationClasses.putAll( DeclarationScopeResolver.getDeclarationClasses( sourceOuterDeclr ) ); + + BoundIdentifiers boundIds = new BoundIdentifiers( declarationClasses, + context ); + + final boolean readLocalsFromTuple = PackageBuilderUtil.isReadLocalsFromTuple(context, groupByDescr, source); + + return addGroupingFunctionCompilation(context, + groupByDescr, + (Pattern) context.getDeclarationResolver().peekBuildStack(), + declarationClasses, + decls, + sourceOuterDeclr, + readLocalsFromTuple, + groupingFunctionCompilation -> { + Accumulator[] accumulators; + if ( groupByDescr.isExternalFunction() ) { + // uses accumulate functions + accumulators = buildExternalFunctions( context, + groupByDescr, + dialect, + decls, + sourceOuterDeclr, + boundIds, + readLocalsFromTuple, + source, + declarationClasses, + groupingFunctionCompilation); + } else { + // it is a custom accumulate + accumulators = buildCustomAccumulate( context, + groupByDescr, + dialect, + decls, + sourceOuterDeclr, + boundIds, + readLocalsFromTuple, + groupingFunctionCompilation); + } + + List requiredDeclarations = new ArrayList<>(); + for ( Accumulator acc : accumulators ) { + Collections.addAll( requiredDeclarations, acc.getRequiredDeclarations() ); + } + + Accumulate accumulate; + if (groupByDescr.isMultiFunction()) { + accumulate = new MultiAccumulate( source, + requiredDeclarations.toArray( new Declaration[ requiredDeclarations.size() ] ), + accumulators, + accumulators.length + 1); + } else { + accumulate = new SingleAccumulate( source, + requiredDeclarations.toArray( new Declaration[ requiredDeclarations.size() ] ), + accumulators[0] ); + } + + return accumulate; + }); + } catch ( Exception e ) { + AsmUtil.copyErrorLocation(e, descr); + context.addError( new DescrBuildError( context.getParentDescr(), + descr, + e, + "Unable to build expression for 'groupby' : " + e.getMessage() ) ); + return null; + } finally { + context.setTypesafe( typesafe ); + } + } + + private final class GroupingFunctionCompilationResult { + final AnalysisResult analysisResult; + final Declaration[] requiredDeclarations; + final MVELReturnValueExpression groupingFunction; + + public GroupingFunctionCompilationResult(AnalysisResult analysisResult, Declaration[] requiredDeclarations, + MVELReturnValueExpression groupingFunction) { + this.analysisResult = analysisResult; + this.requiredDeclarations = requiredDeclarations; + this.groupingFunction = groupingFunction; + } + } + + private MVELGroupByAccumulate addGroupingFunctionCompilation( + RuleBuildContext context, + GroupByDescr groupByDescr, + Pattern pattern, + Map> declCls, + Map decls, + Map sourceDeclarations, + boolean readLocalsFromTuple, + Function innerAccumulateSupplier) { + MVELDialect dialect = (MVELDialect) context.getDialect(); + // analyze the expression + Map groupByDeclsInScope = new HashMap<>(sourceDeclarations); + + final MVELAnalysisResult analysis = (MVELAnalysisResult) context.getDialect().analyzeExpression( context, + groupByDescr, + groupByDescr.getGroupingFunction(), + new BoundIdentifiers(DeclarationScopeResolver.getDeclarationClasses(groupByDeclsInScope), context) ); + + if ( analysis == null ) { + // not possible to get the analysis results - compilation error has been already logged + return null; + } + + // create the array of used declarations + final Declaration[] requiredDeclarations = getUsedDeclarations( decls, + analysis ); + + final Declaration[] previousDeclarations = getUsedDeclarations( sourceDeclarations, + analysis ); + + Class keyType = MVELExprAnalyzer.getExpressionType(context, DeclarationScopeResolver.getDeclarationClasses(groupByDeclsInScope), pattern, groupByDescr.getGroupingFunction()); + MVELCompilationUnit unit = dialect.getMVELCompilationUnit( groupByDescr.getGroupingFunction(), + analysis, + requiredDeclarations, + previousDeclarations, + analysis.getMvelVariables(), + context, + "drools", + KnowledgeHelper.class, + readLocalsFromTuple, + MVELCompilationUnit.Scope.EXPRESSION ); + MVELReturnValueExpression groupingFunction = new MVELReturnValueExpression(unit, UUID.randomUUID().toString()); + + MVELGroupByAccumulate out = new MVELGroupByAccumulate( + innerAccumulateSupplier.apply(new GroupingFunctionCompilationResult( + analysis, + bindGroupingFunctionReaderToDeclaration(context, + groupByDescr, + pattern, + declCls, + decls, + new ArrayElementReader( new SelfReferenceClassFieldReader(Object[].class), groupByDescr.getFunctions().size(), keyType ), + keyType), + groupingFunction)), + requiredDeclarations, + null, + true); + + MVELDialectRuntimeData data = ( MVELDialectRuntimeData ) context.getPkg().getDialectRuntimeRegistry().getDialectData( "mvel" ); + + data.addCompileable( out.new GroupingFunctionWirer( ), + groupingFunction ); + groupingFunction.compile(data, context.getRule()); + + if (out.getInnerAccumulate() instanceof MultiAccumulate) { + MultiAccumulate innerAccumulate = (MultiAccumulate) out.getInnerAccumulate(); + int index = 0; + for ( Accumulator accumulator : innerAccumulate.getAccumulators() ) { + data.addCompileable(innerAccumulate.new Wirer( index++ ), + ( MVELCompileable ) accumulator ); + ((MVELCompileable) accumulator).compile( data, context.getRule() ); + } + } else { + SingleAccumulate innerAccumulate = (SingleAccumulate) out.getInnerAccumulate(); + MVELCompileable accumulator = (MVELCompileable) innerAccumulate.getAccumulators()[0]; + data.addCompileable(innerAccumulate.new Wirer( ), + accumulator ); + accumulator.compile( data, context.getRule() ); + } + + return out; + } + + private Accumulator[] buildExternalFunctions(final RuleBuildContext context, + final GroupByDescr groupByDescr, + MVELDialect dialect, + Map decls, + Map sourceOuterDeclr, + BoundIdentifiers boundIds, + boolean readLocalsFromTuple, + RuleConditionElement source, + Map> declarationClasses, + GroupingFunctionCompilationResult groupingFunctionCompilationResult) { + Accumulator[] accumulators; + List functions = groupByDescr.getFunctions(); + + accumulators = new Accumulator[functions.size()]; + // creating the custom array reader + ReadAccessor arrayReader = new SelfReferenceClassFieldReader( Object[].class ); + + int index = 0; + Pattern pattern = (Pattern) context.getDeclarationResolver().peekBuildStack(); + for ( AccumulateFunctionCallDescr func : functions ) { + // build an external function executor + Supplier> classSupplier = () -> MVELExprAnalyzer.getExpressionType(context, + declarationClasses, + source, + func.getParams()[0]); + String functionName = AccumulateUtil.getFunctionName(classSupplier, func.getFunction()); + AccumulateFunction function = context.getConfiguration().getOption(AccumulateFunctionOption.KEY, functionName).getFunction(); + if( function == null ) { + // might have been imported in the package + function = context.getPkg().getAccumulateFunctions().get(func.getFunction()); + } + if ( function == null ) { + context.addError( new DescrBuildError( groupByDescr, + context.getRuleDescr(), + null, + "Unknown accumulate function: '" + func.getFunction() + "' on rule '" + context.getRuleDescr().getName() + + "'. All accumulate functions must be registered before building a resource." ) ); + return null; + } + + final AnalysisResult analysis = dialect.analyzeExpression( context, + groupByDescr, + func.getParams().length > 0 ? func.getParams()[0] : "\"\"", + boundIds ); + + MVELCompilationUnit unit = dialect.getMVELCompilationUnit( func.getParams().length > 0 ? func.getParams()[0] : "\"\"", + analysis, + getUsedDeclarations( decls, + analysis), + getUsedDeclarations( sourceOuterDeclr, + analysis), + null, + context, + "drools", + KnowledgeHelper.class, + readLocalsFromTuple, + MVELCompilationUnit.Scope.CONSTRAINT ); + + accumulators[index] = new MVELAccumulatorFunctionExecutor( unit, + function ); + // if there is a binding, create the binding + if ( func.getBind() != null ) { + if ( context.getDeclarationResolver().isDuplicated( context.getRule(), func.getBind(), function.getResultType().getName() ) ) { + if ( ! func.isUnification() ) { + context.addError( new DescrBuildError( context.getParentDescr(), + groupByDescr, + null, + "Duplicate declaration for variable '" + func.getBind() + "' in the rule '" + context.getRule().getName() + "'" ) ); + } else { + Declaration inner = context.getDeclarationResolver().getDeclaration( func.getBind() ); + MutableTypeConstraint c = new MVELConstraint(Collections.singletonList(context.getPkg().getName()), + groupByDescr.isMultiFunction() + ? "this[ " + index + " ] == " + func.getBind() + : "this == " + func.getBind(), + new Declaration[] { inner }, + null, + null, + ConstraintTypeOperator.EQUAL, + context.getDeclarationResolver().getDeclaration( func.getBind() ), + new ArrayElementReader(arrayReader, index, function.getResultType()), + true); + c.setType(Constraint.ConstraintType.BETA); + pattern.addConstraint( c ); + index++; + } + } else { + Declaration declr = pattern.addDeclaration( func.getBind() ); + if (groupByDescr.isMultiFunction()) { + declr.setReadAccessor(new ArrayElementReader(arrayReader, index, function.getResultType())); + } else { + declr.setReadAccessor(new ArrayElementReader( arrayReader, index, function.getResultType() )); + } + } + } + index++; + } + return accumulators; + } + + private Accumulator[] buildCustomAccumulate( final RuleBuildContext context, + final GroupByDescr groupByDescr, + MVELDialect dialect, + Map decls, + Map sourceOuterDeclr, + BoundIdentifiers boundIds, + boolean readLocalsFromTuple, + GroupingFunctionCompilationResult groupingFunctionCompilationResult) { + + Accumulator[] accumulators; + final MVELAnalysisResult initCodeAnalysis = (MVELAnalysisResult) dialect.analyzeBlock( context, + groupByDescr, + groupByDescr.getInitCode(), + boundIds ); + + // need to copy boundIds, as this as a "this" object. + final MVELAnalysisResult actionCodeAnalysis = (MVELAnalysisResult) dialect.analyzeBlock( context, + groupByDescr.getActionCode(), + boundIds, + initCodeAnalysis.getMvelVariables(), + "drools", + KnowledgeHelper.class ); + + final MVELAnalysisResult resultCodeAnalysis = (MVELAnalysisResult) dialect.analyzeExpression( context, + groupByDescr, + groupByDescr.getResultCode(), + boundIds, + initCodeAnalysis.getMvelVariables() ); + + context.setTypesafe( initCodeAnalysis.isTypesafe() ); + MVELCompilationUnit initUnit = dialect.getMVELCompilationUnit( groupByDescr.getInitCode(), + initCodeAnalysis, + getUsedDeclarations( decls, + initCodeAnalysis), + getUsedDeclarations( sourceOuterDeclr, + initCodeAnalysis), + initCodeAnalysis.getMvelVariables(), + context, + "drools", + KnowledgeHelper.class, + readLocalsFromTuple, + MVELCompilationUnit.Scope.CONSTRAINT ); + + context.setTypesafe( actionCodeAnalysis.isTypesafe() ); + MVELCompilationUnit actionUnit = dialect.getMVELCompilationUnit( groupByDescr.getActionCode(), + actionCodeAnalysis, + getUsedDeclarations( decls, + actionCodeAnalysis), + getUsedDeclarations( sourceOuterDeclr, + actionCodeAnalysis), + initCodeAnalysis.getMvelVariables(), + context, + "drools", + KnowledgeHelper.class, + readLocalsFromTuple, + MVELCompilationUnit.Scope.CONSTRAINT ); + + MVELCompilationUnit reverseUnit = null; + if ( groupByDescr.getReverseCode() != null ) { + context.setTypesafe( actionCodeAnalysis.isTypesafe() ); + reverseUnit = dialect.getMVELCompilationUnit( groupByDescr.getReverseCode(), + actionCodeAnalysis, + getUsedDeclarations( decls, + actionCodeAnalysis), + getUsedDeclarations( sourceOuterDeclr, + actionCodeAnalysis), + initCodeAnalysis.getMvelVariables(), + context, + "drools", + KnowledgeHelper.class, + readLocalsFromTuple, + MVELCompilationUnit.Scope.CONSTRAINT ); + } + + context.setTypesafe( resultCodeAnalysis.isTypesafe() ); + MVELCompilationUnit resultUnit = dialect.getMVELCompilationUnit( groupByDescr.getResultCode(), + resultCodeAnalysis, + getUsedDeclarations( decls, + resultCodeAnalysis), + getUsedDeclarations( sourceOuterDeclr, + resultCodeAnalysis), + initCodeAnalysis.getMvelVariables(), + context, + "drools", + KnowledgeHelper.class, + readLocalsFromTuple, + MVELCompilationUnit.Scope.CONSTRAINT ); + + accumulators = new Accumulator[]{new MVELAccumulator( initUnit, + actionUnit, + reverseUnit, + resultUnit )}; + return accumulators; + } + + private Declaration[] getUsedDeclarations( Map decls, + AnalysisResult analysis) { + final BoundIdentifiers usedIdentifiers = analysis.getBoundIdentifiers(); + List usedDeclarations = new ArrayList<>(); + for ( String id : usedIdentifiers.getDeclrClasses().keySet() ) { + if ( decls.containsKey( id ) ) { + usedDeclarations.add( decls.get( id ) ); + } + } + + if ( !usedDeclarations.isEmpty() ) { + Collections.sort( usedDeclarations, + SortDeclarations.instance ); + } + + return usedDeclarations.toArray( new Declaration[usedDeclarations.size()] ); + } + + private Declaration[] bindGroupingFunctionReaderToDeclaration( RuleBuildContext context, GroupByDescr groupByDescr, Pattern pattern, Map> declCls, Map decls, ReadAccessor readAccessor, Class resultType) { + if ( groupByDescr.getGroupingKey() != null ) { + if ( context.getDeclarationResolver().isDuplicated( context.getRule(), groupByDescr.getGroupingKey(), resultType.getName() ) ) { + context.addError( new DescrBuildError( context.getParentDescr(), + groupByDescr, + null, + "Duplicate declaration for variable '" + groupByDescr.getGroupingKey() + "' in the rule '" + context.getRule().getName() + "'" ) ); + } else { + Declaration declr = pattern.addDeclaration( groupByDescr.getGroupingKey() ); + declr.setDeclarationClass(resultType); + declr.setReadAccessor( readAccessor ); + declCls.put(groupByDescr.getGroupingKey(), resultType); + decls.put(groupByDescr.getGroupingKey(), declr); + return new Declaration[] {declr}; + } + } + return new Declaration[] {}; + } +} diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELObjectExpressionBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELObjectExpressionBuilder.java index c7ad6ec976b..5d03f0c4062 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELObjectExpressionBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELObjectExpressionBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import java.util.Arrays; @@ -20,9 +24,9 @@ import org.drools.compiler.compiler.BoundIdentifiers; import org.drools.compiler.compiler.DescrBuildError; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.asm.AsmUtil; @@ -57,7 +61,7 @@ public static MVELObjectExpression build( String expression, RuleBuildContext co for ( String id : usedIdentifiers.getDeclrClasses().keySet() ) { previousDeclarations[i++] = decls.get( id ); } - Arrays.sort(previousDeclarations, RuleTerminalNode.SortDeclarations.instance); + Arrays.sort(previousDeclarations, SortDeclarations.instance); MVELCompilationUnit unit = dialect.getMVELCompilationUnit( expression, analysis, diff --git a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELSalienceBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELSalienceBuilder.java index aaa14d68be9..51150b58b5b 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/builder/MVELSalienceBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/builder/MVELSalienceBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.builder; import java.util.Arrays; @@ -21,9 +25,9 @@ import org.drools.compiler.compiler.DescrBuildError; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.compiler.rule.builder.SalienceBuilder; -import org.drools.core.reteoo.RuleTerminalNode.SortDeclarations; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.expr.MVELCompilationUnit; diff --git a/drools-mvel/src/main/java/org/drools/mvel/dataproviders/ArrayIterator.java b/drools-mvel/src/main/java/org/drools/mvel/dataproviders/ArrayIterator.java index 0269ab9c15f..d823a4f0b57 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/dataproviders/ArrayIterator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/dataproviders/ArrayIterator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.dataproviders; import java.lang.reflect.Array; diff --git a/drools-mvel/src/main/java/org/drools/mvel/dataproviders/MVELDataProvider.java b/drools-mvel/src/main/java/org/drools/mvel/dataproviders/MVELDataProvider.java index 9f73b5a0eba..1b91e9e43f8 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/dataproviders/MVELDataProvider.java +++ b/drools-mvel/src/main/java/org/drools/mvel/dataproviders/MVELDataProvider.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.dataproviders; import java.io.Externalizable; @@ -23,12 +27,11 @@ import java.util.Iterator; import java.util.List; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.DataProvider; -import org.drools.core.common.PropagationContext; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.DataProvider; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.expr.MVELCompilationUnit; import org.drools.mvel.expr.MVELCompileable; @@ -117,15 +120,14 @@ public Object createContext() { return null; } - public Iterator getResults(final Tuple tuple, - final ReteEvaluator reteEvaluator, - final PropagationContext ctx, + public Iterator getResults(final BaseTuple tuple, + final ValueResolver valueResolver, final Object executionContext) { - return asIterator( evaluate( tuple, reteEvaluator ) ); + return asIterator( evaluate( tuple, valueResolver ) ); } - protected Object evaluate( Tuple tuple, ReteEvaluator reteEvaluator ) { - VariableResolverFactory factory = unit.getFactory( null, null, null, null, tuple, null, reteEvaluator, reteEvaluator.getGlobalResolver() ); + protected Object evaluate( BaseTuple tuple, ValueResolver valueResolver ) { + VariableResolverFactory factory = unit.getFactory( null, null, null, null, tuple, null, valueResolver, valueResolver.getGlobalResolver() ); return evaluator.evaluate( factory ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/dataproviders/ReactiveMVELDataProvider.java b/drools-mvel/src/main/java/org/drools/mvel/dataproviders/ReactiveMVELDataProvider.java index 96e55585570..d1c794f319b 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/dataproviders/ReactiveMVELDataProvider.java +++ b/drools-mvel/src/main/java/org/drools/mvel/dataproviders/ReactiveMVELDataProvider.java @@ -1,25 +1,28 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.dataproviders; import java.util.Iterator; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.phreak.ReactiveObject; -import org.drools.core.common.PropagationContext; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.phreak.ReactiveObject; +import org.drools.base.reteoo.BaseTuple; import org.drools.mvel.expr.MVELCompilationUnit; public class ReactiveMVELDataProvider extends MVELDataProvider { @@ -36,13 +39,12 @@ public boolean isReactive() { } @Override - public Iterator getResults( final Tuple tuple, - final ReteEvaluator reteEvaluator, - final PropagationContext ctx, + public Iterator getResults( final BaseTuple tuple, + final ValueResolver valueResolver, final Object executionContext ) { - Object result = evaluate( tuple, reteEvaluator ); + Object result = evaluate( tuple, valueResolver ); if (result instanceof ReactiveObject) { - ( (ReactiveObject) result ).addLeftTuple( tuple ); + ( (ReactiveObject) result ).addTuple(tuple); } return asIterator( result ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/AfterEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/AfterEvaluatorDefinition.java index db93a269c06..cf87ce25b67 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/AfterEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/AfterEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,14 +25,14 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.time.Interval; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the 'after' evaluator definition.

@@ -246,13 +248,13 @@ protected boolean evaluate( long rightTS, long leftTS ) { } @Override - protected long getLeftTimestamp( InternalFactHandle handle ) { - return ( (EventFactHandle) handle ).getEndTimestamp(); + protected long getLeftTimestamp( FactHandle handle) { + return ( (DefaultEventHandle) handle ).getEndTimestamp(); } @Override - protected long getRightTimestamp( InternalFactHandle handle ) { - return ( (EventFactHandle) handle ).getStartTimestamp(); + protected long getRightTimestamp( FactHandle handle ) { + return ( (DefaultEventHandle) handle ).getStartTimestamp(); } } } \ No newline at end of file diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/BaseEvaluator.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/BaseEvaluator.java index f57099d4c3f..1fe7a641d2a 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/BaseEvaluator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/BaseEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.Externalizable; @@ -21,10 +23,10 @@ import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.drl.parser.impl.Operator; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.time.Interval; /** * BaseEvaluator is an Object Comparator that is operator aware diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/BeforeEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/BeforeEvaluatorDefinition.java index af5f7056f3f..a7dbe51ed69 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/BeforeEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/BeforeEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,14 +25,14 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.time.Interval; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the 'before' evaluator definition.

@@ -243,13 +245,13 @@ protected boolean evaluate(long rightTS, long leftTS) { } @Override - protected long getLeftTimestamp( InternalFactHandle handle ) { - return ( (EventFactHandle) handle ).getStartTimestamp(); + protected long getLeftTimestamp( FactHandle handle) { + return ( (DefaultEventHandle) handle ).getStartTimestamp(); } @Override - protected long getRightTimestamp( InternalFactHandle handle ) { - return ( (EventFactHandle) handle ).getEndTimestamp(); + protected long getRightTimestamp( FactHandle handle ) { + return ( (DefaultEventHandle) handle ).getEndTimestamp(); } } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/CoincidesEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/CoincidesEvaluatorDefinition.java index 3be177b7461..949adf19132 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/CoincidesEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/CoincidesEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.TemporalVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the 'coincides' evaluator definition.

@@ -252,18 +254,18 @@ public Interval getInterval() { 0 ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'coincides' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } @@ -274,10 +276,10 @@ public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, rightEndTS = ((TemporalVariableContextEntry) context).endTS; if ( context.declaration.getExtractor().isSelfReference() ) { - leftStartTS = ((EventFactHandle) left).getStartTimestamp(); - leftEndTS = ((EventFactHandle) left).getEndTimestamp(); + leftStartTS = ((DefaultEventHandle) left).getStartTimestamp(); + leftEndTS = ((DefaultEventHandle) left).getEndTimestamp(); } else { - leftStartTS = context.declaration.getExtractor().getLongValue( reteEvaluator, left.getObject() ); + leftStartTS = context.declaration.getExtractor().getLongValue( valueResolver, left.getObject() ); leftEndTS = leftStartTS; } @@ -286,11 +288,11 @@ public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, return this.getOperator().isNegated() ^ (distStart <= this.startDev && distEnd <= this.endDev); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } @@ -298,10 +300,10 @@ public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, long leftStartTS, leftEndTS; if ( context.extractor.isSelfReference() ) { - rightStartTS = ((EventFactHandle) right).getStartTimestamp(); - rightEndTS = ((EventFactHandle) right).getEndTimestamp(); + rightStartTS = ((DefaultEventHandle) right).getStartTimestamp(); + rightEndTS = ((DefaultEventHandle) right).getEndTimestamp(); } else { - rightStartTS = context.extractor.getLongValue( reteEvaluator, right.getObject() ); + rightStartTS = context.extractor.getLongValue( valueResolver, right.getObject() ); rightEndTS = rightStartTS; } @@ -313,13 +315,13 @@ public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, return this.getOperator().isNegated() ^ (distStart <= this.startDev && distEnd <= this.endDev); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } @@ -327,18 +329,18 @@ public boolean evaluate(ReteEvaluator reteEvaluator, long leftStartTS, leftEndTS; if ( extractor1.isSelfReference() ) { - rightStartTS = ((EventFactHandle) handle1).getStartTimestamp(); - rightEndTS = ((EventFactHandle) handle1).getEndTimestamp(); + rightStartTS = ((DefaultEventHandle) handle1).getStartTimestamp(); + rightEndTS = ((DefaultEventHandle) handle1).getEndTimestamp(); } else { - rightStartTS = extractor1.getLongValue( reteEvaluator, handle1.getObject() ); + rightStartTS = extractor1.getLongValue( valueResolver, handle1.getObject() ); rightEndTS = rightStartTS; } if ( extractor2.isSelfReference() ) { - leftStartTS = ((EventFactHandle) handle2).getStartTimestamp(); - leftEndTS = ((EventFactHandle) handle2).getEndTimestamp(); + leftStartTS = ((DefaultEventHandle) handle2).getStartTimestamp(); + leftEndTS = ((DefaultEventHandle) handle2).getEndTimestamp(); } else { - leftStartTS = extractor2.getLongValue( reteEvaluator, handle2.getObject() ); + leftStartTS = extractor2.getLongValue( valueResolver, handle2.getObject() ); leftEndTS = leftStartTS; } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/DuringEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/DuringEvaluatorDefinition.java index 83bc519a77e..2a32044c3c3 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/DuringEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/DuringEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.TemporalVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the during evaluator definition.

@@ -267,51 +269,51 @@ public Interval getInterval() { Interval.MAX ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'during' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } - long distStart = ((TemporalVariableContextEntry) context).startTS - ((EventFactHandle) left).getStartTimestamp(); - long distEnd = ((EventFactHandle) left).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS; + long distStart = ((TemporalVariableContextEntry) context).startTS - ((DefaultEventHandle) left).getStartTimestamp(); + long distEnd = ((DefaultEventHandle) left).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS; return this.getOperator().isNegated() ^ (distStart >= this.startMinDev && distStart <= this.startMaxDev && distEnd >= this.endMinDev && distEnd <= this.endMaxDev); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } - long distStart = ((EventFactHandle) right).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS; - long distEnd = ((TemporalVariableContextEntry) context).endTS - ((EventFactHandle) right).getEndTimestamp(); + long distStart = ((DefaultEventHandle) right).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS; + long distEnd = ((TemporalVariableContextEntry) context).endTS - ((DefaultEventHandle) right).getEndTimestamp(); return this.getOperator().isNegated() ^ (distStart >= this.startMinDev && distStart <= this.startMaxDev && distEnd >= this.endMinDev && distEnd <= this.endMaxDev); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long distStart = ((EventFactHandle) handle1).getStartTimestamp() - ((EventFactHandle) handle2).getStartTimestamp(); - long distEnd = ((EventFactHandle) handle2).getEndTimestamp() - ((EventFactHandle) handle1).getEndTimestamp(); + long distStart = ((DefaultEventHandle) handle1).getStartTimestamp() - ((DefaultEventHandle) handle2).getStartTimestamp(); + long distEnd = ((DefaultEventHandle) handle2).getEndTimestamp() - ((DefaultEventHandle) handle1).getEndTimestamp(); return this.getOperator().isNegated() ^ (distStart >= this.startMinDev && distStart <= this.startMaxDev && distEnd >= this.endMinDev && distEnd <= this.endMaxDev); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/EvaluatorCache.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/EvaluatorCache.java index 54f7b082bd1..9bd6f70d71e 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/EvaluatorCache.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/EvaluatorCache.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.Externalizable; @@ -23,9 +25,9 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.drl.parser.impl.Operator; -import org.drools.core.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.Evaluator; /** * A simple helper class to store Evaluators for a given set of diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/FinishedByEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/FinishedByEvaluatorDefinition.java index 916020d3e7a..e8d13e33a38 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/FinishedByEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/FinishedByEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.TemporalVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the finishedby evaluator definition.

@@ -239,51 +241,51 @@ public Interval getInterval() { 0 ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'finishedby' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } - long distStart = ((EventFactHandle) left).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS; - long distEnd = Math.abs( ((EventFactHandle) left).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS ); + long distStart = ((DefaultEventHandle) left).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS; + long distEnd = Math.abs(((DefaultEventHandle) left).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS); return this.getOperator().isNegated() ^ (distStart > 0 && distEnd <= this.endDev); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } - long distStart = ((TemporalVariableContextEntry) context).startTS - ((EventFactHandle) right).getStartTimestamp(); - long distEnd = Math.abs( ((TemporalVariableContextEntry) context).endTS - ((EventFactHandle) right).getEndTimestamp() ); + long distStart = ((TemporalVariableContextEntry) context).startTS - ((DefaultEventHandle) right).getStartTimestamp(); + long distEnd = Math.abs( ((TemporalVariableContextEntry) context).endTS - ((DefaultEventHandle) right).getEndTimestamp()); return this.getOperator().isNegated() ^ (distStart > 0 && distEnd <= this.endDev); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long distStart = ((EventFactHandle) handle2).getStartTimestamp() - ((EventFactHandle) handle1).getStartTimestamp(); - long distEnd = Math.abs( ((EventFactHandle) handle2).getEndTimestamp() - ((EventFactHandle) handle1).getEndTimestamp() ); + long distStart = ((DefaultEventHandle) handle2).getStartTimestamp() - ((DefaultEventHandle) handle1).getStartTimestamp(); + long distEnd = Math.abs(((DefaultEventHandle) handle2).getEndTimestamp() - ((DefaultEventHandle) handle1).getEndTimestamp()); return this.getOperator().isNegated() ^ (distStart > 0 && distEnd <= this.endDev); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/FinishesEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/FinishesEvaluatorDefinition.java index 32fd41aaea9..632e1d22d2b 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/FinishesEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/FinishesEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.TemporalVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the finishes evaluator definition.

@@ -238,51 +240,51 @@ public Interval getInterval() { Interval.MAX ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'finishes' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } - long distStart = ((TemporalVariableContextEntry) context).startTS - ((EventFactHandle) left).getStartTimestamp(); - long distEnd = Math.abs( ((EventFactHandle) left).getEndTimestamp() -((TemporalVariableContextEntry) context).endTS ); + long distStart = ((TemporalVariableContextEntry) context).startTS - ((DefaultEventHandle) left).getStartTimestamp(); + long distEnd = Math.abs(((DefaultEventHandle) left).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS); return this.getOperator().isNegated() ^ (distStart > 0 && distEnd <= this.endDev); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } - long distStart = ((EventFactHandle) right).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS; - long distEnd = Math.abs( ((TemporalVariableContextEntry) context).endTS - ((EventFactHandle) right).getEndTimestamp() ); + long distStart = ((DefaultEventHandle) right).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS; + long distEnd = Math.abs( ((TemporalVariableContextEntry) context).endTS - ((DefaultEventHandle) right).getEndTimestamp()); return this.getOperator().isNegated() ^ (distStart > 0 && distEnd <= this.endDev); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long distStart = ((EventFactHandle) handle1).getStartTimestamp() - ((EventFactHandle) handle2).getStartTimestamp(); - long distEnd = Math.abs( ((EventFactHandle) handle2).getEndTimestamp() - ((EventFactHandle) handle1).getEndTimestamp() ); + long distStart = ((DefaultEventHandle) handle1).getStartTimestamp() - ((DefaultEventHandle) handle2).getStartTimestamp(); + long distEnd = Math.abs(((DefaultEventHandle) handle2).getEndTimestamp() - ((DefaultEventHandle) handle1).getEndTimestamp()); return this.getOperator().isNegated() ^ (distStart > 0 && distEnd <= this.endDev); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/IncludesEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/IncludesEvaluatorDefinition.java index 50a21ee3272..5c6e3c58f73 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/IncludesEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/IncludesEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.TemporalVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the includes evaluator definition.

@@ -266,51 +268,51 @@ public Interval getInterval() { 0 ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'includes' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } - long distStart = ((EventFactHandle) left).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS; - long distEnd = ((TemporalVariableContextEntry) context).endTS - ((EventFactHandle) left).getEndTimestamp(); + long distStart = ((DefaultEventHandle) left).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS; + long distEnd = ((TemporalVariableContextEntry) context).endTS - ((DefaultEventHandle) left).getEndTimestamp(); return this.getOperator().isNegated() ^ (distStart >= this.startMinDev && distStart <= this.startMaxDev && distEnd >= this.endMinDev && distEnd <= this.endMaxDev); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } - long distStart = ((TemporalVariableContextEntry) context).startTS- ((EventFactHandle) right).getStartTimestamp(); - long distEnd = ((EventFactHandle) right).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS; + long distStart = ((TemporalVariableContextEntry) context).startTS- ((DefaultEventHandle) right).getStartTimestamp(); + long distEnd = ((DefaultEventHandle) right).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS; return this.getOperator().isNegated() ^ (distStart >= this.startMinDev && distStart <= this.startMaxDev && distEnd >= this.endMinDev && distEnd <= this.endMaxDev); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long distStart = ((EventFactHandle) handle2).getStartTimestamp() - ((EventFactHandle) handle1).getStartTimestamp(); - long distEnd = ((EventFactHandle) handle1).getEndTimestamp() - ((EventFactHandle) handle2).getEndTimestamp(); + long distStart = ((DefaultEventHandle) handle2).getStartTimestamp() - ((DefaultEventHandle) handle1).getStartTimestamp(); + long distEnd = ((DefaultEventHandle) handle1).getEndTimestamp() - ((DefaultEventHandle) handle2).getEndTimestamp(); return this.getOperator().isNegated() ^ (distStart >= this.startMinDev && distStart <= this.startMaxDev && distEnd >= this.endMinDev && distEnd <= this.endMaxDev); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/MatchesEvaluatorsDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/MatchesEvaluatorsDefinition.java index 2dc6336345d..a1af47687cf 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/MatchesEvaluatorsDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/MatchesEvaluatorsDefinition.java @@ -1,35 +1,37 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; import org.drools.mvel.evaluators.VariableRestriction.ObjectVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.kie.api.runtime.rule.FactHandle; /** * This class defines the matches evaluator @@ -135,10 +137,10 @@ public StringMatchesEvaluator() { MATCHES ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, final FieldValue fieldValue) { - final String value1 = (String) extractor.getValue( reteEvaluator, handle1.getObject() ); + final FactHandle handle1, final FieldValue fieldValue) { + final String value1 = (String) extractor.getValue( valueResolver, handle1.getObject() ); final String value2 = (String) fieldValue.getValue(); if ( value1 == null ) { return false; @@ -146,30 +148,30 @@ public boolean evaluate(ReteEvaluator reteEvaluator, return value1.matches( value2 ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, - final VariableContextEntry context, final InternalFactHandle left) { + public boolean evaluateCachedRight(final ValueResolver valueResolver, + final VariableContextEntry context, final FactHandle left) { final String value = (String) ((ObjectVariableContextEntry) context).right; if ( value == null ) { return false; } - return value.matches( (String) context.declaration.getExtractor().getValue( reteEvaluator, left.getObject() ) ); + return value.matches( (String) context.declaration.getExtractor().getValue( valueResolver, left.getObject() ) ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, - final VariableContextEntry context, final InternalFactHandle right) { - final String value = (String) context.extractor.getValue( reteEvaluator, right.getObject() ); + public boolean evaluateCachedLeft(final ValueResolver valueResolver, + final VariableContextEntry context, final FactHandle right) { + final String value = (String) context.extractor.getValue( valueResolver, right.getObject() ); if ( value == null ) { return false; } return value.matches( (String) ((ObjectVariableContextEntry) context).left ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, - final ReadAccessor extractor2, final InternalFactHandle handle2) { - final Object value1 = extractor1.getValue( reteEvaluator, handle1.getObject() ); - final Object value2 = extractor2.getValue( reteEvaluator, handle2.getObject() ); + final FactHandle handle1, + final ReadAccessor extractor2, final FactHandle handle2) { + final Object value1 = extractor1.getValue( valueResolver, handle1.getObject() ); + final Object value2 = extractor2.getValue( valueResolver, handle2.getObject() ); if ( value1 == null ) { return false; } @@ -190,10 +192,11 @@ public StringNotMatchesEvaluator() { NOT_MATCHES ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, final FieldValue fieldValue) { - final String value1 = (String) extractor.getValue( reteEvaluator, handle1.getObject() ); + final FactHandle handle1, + final FieldValue fieldValue) { + final String value1 = (String) extractor.getValue( valueResolver, handle1.getObject() ); final String value2 = (String) fieldValue.getValue(); if ( value1 == null ) { return false; @@ -201,30 +204,32 @@ public boolean evaluate(ReteEvaluator reteEvaluator, return ! value1.matches( value2 ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, - final VariableContextEntry context, final InternalFactHandle left) { + public boolean evaluateCachedRight(final ValueResolver valueResolver, + final VariableContextEntry context, + final FactHandle left) { final String value = (String) ((ObjectVariableContextEntry) context).right; if ( value == null ) { return false; } - return ! value.matches( (String) context.declaration.getExtractor().getValue( reteEvaluator, left.getObject() ) ); + return ! value.matches( (String) context.declaration.getExtractor().getValue( valueResolver, left.getObject() ) ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, - final VariableContextEntry context, final InternalFactHandle right) { - final String value = (String) context.extractor.getValue( reteEvaluator, right.getObject() ); + public boolean evaluateCachedLeft(final ValueResolver valueResolver, + final VariableContextEntry context, + final FactHandle right) { + final String value = (String) context.extractor.getValue( valueResolver, right.getObject() ); if ( value == null ) { return false; } return ! value.matches( (String) ((ObjectVariableContextEntry) context).left ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, - final ReadAccessor extractor2, final InternalFactHandle handle2) { - final Object value1 = extractor1.getValue( reteEvaluator, handle1.getObject() ); - final Object value2 = extractor2.getValue( reteEvaluator, handle2.getObject() ); + final FactHandle handle1, + final ReadAccessor extractor2, final FactHandle handle2) { + final Object value1 = extractor1.getValue( valueResolver, handle1.getObject() ); + final Object value2 = extractor2.getValue( valueResolver, handle2.getObject() ); if ( value1 == null ) { return false; } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/MeetsEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/MeetsEvaluatorDefinition.java index e0899522e2e..202d3a6054e 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/MeetsEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/MeetsEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.LeftStartRightEndContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the meets evaluator definition.

@@ -237,51 +239,51 @@ public Interval getInterval() { Interval.MAX ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'meets' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } - long leftStartTS = ((EventFactHandle) left).getStartTimestamp(); + long leftStartTS = ((DefaultEventHandle) left).getStartTimestamp(); long dist = Math.abs( leftStartTS - ((LeftStartRightEndContextEntry) context).timestamp ); return this.getOperator().isNegated() ^ (dist <= this.finalRange); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } long leftStartTS = ((LeftStartRightEndContextEntry) context).timestamp; - long dist = Math.abs( leftStartTS - ((EventFactHandle) right).getEndTimestamp() ); + long dist = Math.abs( leftStartTS - ((DefaultEventHandle) right).getEndTimestamp()); return this.getOperator().isNegated() ^ (dist <= this.finalRange); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long obj2StartTS = ((EventFactHandle) handle2).getStartTimestamp(); - long dist = Math.abs( obj2StartTS - ((EventFactHandle) handle1).getEndTimestamp() ); + long obj2StartTS = ((DefaultEventHandle) handle2).getStartTimestamp(); + long dist = Math.abs( obj2StartTS - ((DefaultEventHandle) handle1).getEndTimestamp()); return this.getOperator().isNegated() ^ (dist <= this.finalRange); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/MetByEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/MetByEvaluatorDefinition.java index e467399bcca..36929fd24c8 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/MetByEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/MetByEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.LeftEndRightStartContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the metby evaluator definition.

@@ -237,52 +239,52 @@ public Interval getInterval() { 0 ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'metby' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } long rightStartTS = ((LeftEndRightStartContextEntry)context).timestamp; - long dist = Math.abs( rightStartTS - ((EventFactHandle) left).getEndTimestamp() ); + long dist = Math.abs( rightStartTS - ((DefaultEventHandle) left).getEndTimestamp()); return this.getOperator().isNegated() ^ ( dist <= this.finalRange ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } - long rightStartTS = ((EventFactHandle) right).getStartTimestamp(); + long rightStartTS = ((DefaultEventHandle) right).getStartTimestamp(); long dist = Math.abs( rightStartTS - ((LeftEndRightStartContextEntry)context).timestamp ); return this.getOperator().isNegated() ^ ( dist <= this.finalRange ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long obj1StartTS = ((EventFactHandle) handle1).getStartTimestamp(); - long dist = Math.abs( obj1StartTS - ((EventFactHandle) handle2).getEndTimestamp() ); + long obj1StartTS = ((DefaultEventHandle) handle1).getStartTimestamp(); + long dist = Math.abs( obj1StartTS - ((DefaultEventHandle) handle2).getEndTimestamp()); return this.getOperator().isNegated() ^ ( dist <= this.finalRange ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/MvelEvaluator.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/MvelEvaluator.java index 6075e859d4c..c86da6373b0 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/MvelEvaluator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/MvelEvaluator.java @@ -1,24 +1,26 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.evaluators; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.Evaluator; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.accessor.Evaluator; +import org.kie.api.runtime.rule.FactHandle; public interface MvelEvaluator extends Evaluator { @@ -38,7 +40,7 @@ public interface MvelEvaluator extends Evaluator { * iterate over the right memory (Person instances) evaluating * each occurrence. * - * @param reteEvaluator + * @param valueResolver * The current working memory * @param context * The previously cached context, including the left value @@ -50,9 +52,9 @@ public interface MvelEvaluator extends Evaluator { * * @return Returns true if evaluation is successful. false otherwise. */ - boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + boolean evaluateCachedLeft(ValueResolver valueResolver, VariableRestriction.VariableContextEntry context, - InternalFactHandle right); + FactHandle right); /** * Evaluates the expression using the provided parameters. @@ -70,7 +72,7 @@ boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, * iterate over the left memory comparing it to each "$someName" bound * values. * - * @param reteEvaluator + * @param valueResolver * The current working memory * @param context * The previously cached context, including the right value @@ -81,7 +83,7 @@ boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, * * @return Returns true if evaluation is successful. false otherwise. */ - boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + boolean evaluateCachedRight(ValueResolver valueResolver, VariableRestriction.VariableContextEntry context, - InternalFactHandle left); + FactHandle left); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/OverlappedByEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/OverlappedByEvaluatorDefinition.java index 77c6ae691df..1f520944560 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/OverlappedByEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/OverlappedByEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.TemporalVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the overlappedby evaluator definition.

@@ -209,9 +211,9 @@ public OverlappedByEvaluator() { } public OverlappedByEvaluator(final ValueType type, - final boolean isNegated, - final long[] parameters, - final String paramText) { + final boolean isNegated, + final long[] parameters, + final String paramText) { super( type, isNegated ? NOT_OVERLAPPED_BY : OVERLAPPED_BY ); this.paramText = paramText; @@ -245,62 +247,62 @@ public Interval getInterval() { return new Interval( 0, Interval.MAX ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'overlappedby' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } long rightStartTS = ((TemporalVariableContextEntry) context).startTS; - long leftEndTS = ((EventFactHandle) left ).getEndTimestamp(); + long leftEndTS = ((DefaultEventHandle) left ).getEndTimestamp(); long dist = leftEndTS - rightStartTS; - return this.getOperator().isNegated() ^ ( - ((EventFactHandle) left ).getStartTimestamp() < rightStartTS && + return this.getOperator().isNegated() ^ ( + ((DefaultEventHandle) left ).getStartTimestamp() < rightStartTS && leftEndTS < ((TemporalVariableContextEntry) context).endTS && dist >= this.minDev && dist <= maxDev ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } long leftEndTS = ((TemporalVariableContextEntry) context).endTS; - long rightStartTS = ((EventFactHandle) right ).getStartTimestamp(); + long rightStartTS = ((DefaultEventHandle) right ).getStartTimestamp(); long dist = leftEndTS - rightStartTS; return this.getOperator().isNegated() ^ ( ((TemporalVariableContextEntry) context).startTS < rightStartTS && - leftEndTS < ((EventFactHandle) right).getEndTimestamp() && + leftEndTS < ((DefaultEventHandle) right).getEndTimestamp() && dist >= this.minDev && dist <= maxDev ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long startTS = ((EventFactHandle) handle1).getStartTimestamp(); - long endTS = ((EventFactHandle) handle2).getEndTimestamp(); + long startTS = ((DefaultEventHandle) handle1).getStartTimestamp(); + long endTS = ((DefaultEventHandle) handle2).getEndTimestamp(); long dist = endTS - startTS; - return this.getOperator().isNegated() ^ ( ((EventFactHandle) handle2).getStartTimestamp() < startTS && - endTS < ((EventFactHandle) handle1).getEndTimestamp() && + return this.getOperator().isNegated() ^ (((DefaultEventHandle) handle2).getStartTimestamp() < startTS && + endTS < ((DefaultEventHandle) handle1).getEndTimestamp() && dist >= this.minDev && dist <= this.maxDev ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/OverlapsEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/OverlapsEvaluatorDefinition.java index 96404acc745..50047678cb4 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/OverlapsEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/OverlapsEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.TemporalVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the overlaps evaluator definition.

@@ -249,59 +251,59 @@ public Interval getInterval() { 0 ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'overlaps' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } - long leftStartTS = ((EventFactHandle) left).getStartTimestamp(); + long leftStartTS = ((DefaultEventHandle) left).getStartTimestamp(); long rightEndTS = ((TemporalVariableContextEntry) context).endTS; long dist = rightEndTS - leftStartTS; return this.getOperator().isNegated() ^ ( ((TemporalVariableContextEntry) context).startTS < leftStartTS && - rightEndTS < ((EventFactHandle) left).getEndTimestamp() && + rightEndTS < ((DefaultEventHandle) left).getEndTimestamp() && dist >= this.minDev && dist <= this.maxDev ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } long leftStartTS = ((TemporalVariableContextEntry) context).startTS; - long rightEndTS = ((EventFactHandle) right).getEndTimestamp(); + long rightEndTS = ((DefaultEventHandle) right).getEndTimestamp(); long dist = rightEndTS - leftStartTS; - return this.getOperator().isNegated() ^ ( ((EventFactHandle) right).getStartTimestamp() < leftStartTS && + return this.getOperator().isNegated() ^ (((DefaultEventHandle) right).getStartTimestamp() < leftStartTS && rightEndTS < ((TemporalVariableContextEntry) context).endTS && dist >= this.minDev && dist <= this.maxDev ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long startTS = ((EventFactHandle) handle2).getStartTimestamp(); - long endTS = ((EventFactHandle) handle1).getEndTimestamp(); + long startTS = ((DefaultEventHandle) handle2).getStartTimestamp(); + long endTS = ((DefaultEventHandle) handle1).getEndTimestamp(); long dist = endTS - startTS; - return this.getOperator().isNegated() ^ ( ((EventFactHandle) handle1).getStartTimestamp() < startTS && - endTS < ((EventFactHandle) handle2).getEndTimestamp() && + return this.getOperator().isNegated() ^ (((DefaultEventHandle) handle1).getStartTimestamp() < startTS && + endTS < ((DefaultEventHandle) handle2).getEndTimestamp() && dist >= this.minDev && dist <= this.maxDev ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/PointInTimeEvaluator.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/PointInTimeEvaluator.java index 5571741c24f..22a345c2693 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/PointInTimeEvaluator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/PointInTimeEvaluator.java @@ -1,33 +1,35 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.drl.parser.impl.Operator; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.kie.api.runtime.rule.FactHandle; -import static org.drools.core.util.TimeIntervalParser.getTimestampFromDate; +import static org.drools.base.util.TimeIntervalParser.getTimestampFromDate; public abstract class PointInTimeEvaluator extends BaseEvaluator { protected long initRange; @@ -80,9 +82,9 @@ public boolean isTemporal() { protected abstract boolean evaluate(long rightTS, long leftTS); - protected abstract long getLeftTimestamp( InternalFactHandle handle ); + protected abstract long getLeftTimestamp( FactHandle handle ); - protected abstract long getRightTimestamp( InternalFactHandle handle ); + protected abstract long getRightTimestamp( FactHandle handle ); private long getTimestamp(FieldValue value) { Object obj = value.getValue(); @@ -93,69 +95,69 @@ private long getTimestamp(FieldValue value) { } @Override - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { long rightTS = extractor.isSelfReference() ? getRightTimestamp( object1 ) : - extractor.getLongValue( reteEvaluator, object1.getObject() ); + extractor.getLongValue( valueResolver, object1.getObject() ); long leftTS = getTimestamp(object2); return evaluate(rightTS, leftTS); } @Override - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableRestriction.VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } long leftTS = ((VariableRestriction.TimestampedContextEntry)context).timestamp; long rightTS = context.getFieldExtractor().isSelfReference() ? getRightTimestamp(right) : - context.getFieldExtractor().getLongValue( reteEvaluator, right.getObject() ); + context.getFieldExtractor().getLongValue( valueResolver, right.getObject() ); return evaluate(rightTS, leftTS); } @Override - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableRestriction.VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } long rightTS = ((VariableRestriction.TimestampedContextEntry)context).timestamp; long leftTS = context.declaration.getExtractor().isSelfReference() ? getLeftTimestamp( left ) : - context.declaration.getExtractor().getLongValue( reteEvaluator, left.getObject() ); + context.declaration.getExtractor().getLongValue( valueResolver, left.getObject() ); return evaluate(rightTS, leftTS); } @Override - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } long rightTS = extractor1.isSelfReference() ? getRightTimestamp( handle1 ) : - extractor1.getLongValue( reteEvaluator, handle1.getObject() ); + extractor1.getLongValue( valueResolver, handle1.getObject() ); long leftTS = extractor2.isSelfReference() ? getLeftTimestamp( handle2 ) : - extractor2.getLongValue( reteEvaluator, handle2.getObject() ); + extractor2.getLongValue( valueResolver, handle2.getObject() ); return evaluate(rightTS, leftTS); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/SetEvaluatorsDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/SetEvaluatorsDefinition.java index 99101a61380..3d9f179ef9d 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/SetEvaluatorsDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/SetEvaluatorsDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,16 +25,16 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; import org.drools.mvel.evaluators.VariableRestriction.ObjectVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.kie.api.runtime.rule.FactHandle; /** * This class defines all the set built in evaluators like contains, memberOf, @@ -326,11 +328,11 @@ public ArrayContainsEvaluator() { CONTAINS ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, + final FactHandle handle1, final FieldValue fieldValue) { - final Object array = extractor.getValue( reteEvaluator, + final Object array = extractor.getValue( valueResolver, handle1.getObject() ); if ( array == null ) return false; @@ -339,22 +341,22 @@ public boolean evaluate(ReteEvaluator reteEvaluator, fieldValue ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { final Object array = ((ObjectVariableContextEntry) context).right; if ( array == null ) return false; return getArrayContains( array.getClass() ).contains( array, - reteEvaluator, + valueResolver, context.declaration.getExtractor(), left.getObject() ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { - final Object array = context.extractor.getValue( reteEvaluator, + final FactHandle right) { + final Object array = context.extractor.getValue( valueResolver, right.getObject() ); if ( array == null ) return false; @@ -362,23 +364,23 @@ public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, // the original object is passed, as the extractor // is used to cast to the correct type for the array comparison return getArrayContains( array.getClass() ).contains( array, - reteEvaluator, + valueResolver, context.declaration.getExtractor(), context.tuple.getObject( context.declaration ) ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - final Object array = extractor1.getValue( reteEvaluator, + final FactHandle handle2) { + final Object array = extractor1.getValue( valueResolver, handle1.getObject() ); if ( array == null ) return false; return getArrayContains( array.getClass() ).contains( array, - reteEvaluator, + valueResolver, extractor2, handle2.getObject() ); } @@ -397,11 +399,11 @@ public ArrayExcludesEvaluator() { EXCLUDES ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, + final FactHandle handle1, final FieldValue fieldValue) { - final Object array = extractor.getValue( reteEvaluator, + final Object array = extractor.getValue( valueResolver, handle1.getObject() ); if ( array == null ) return false; @@ -410,44 +412,44 @@ public boolean evaluate(ReteEvaluator reteEvaluator, fieldValue ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { final Object array = ((ObjectVariableContextEntry) context).right; if ( array == null ) return false; return !getArrayContains( array.getClass() ).contains( array, - reteEvaluator, + valueResolver, context.declaration.getExtractor(), left.getObject() ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { - final Object array = context.extractor.getValue( reteEvaluator, + final FactHandle right) { + final Object array = context.extractor.getValue( valueResolver, right.getObject() ); if ( array == null ) return false; return !getArrayContains( array.getClass() ).contains( array, - reteEvaluator, + valueResolver, context.declaration.getExtractor(), context.getTuple().getObject( context.getVariableDeclaration() ) ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - final Object array = extractor1.getValue( reteEvaluator, + final FactHandle handle2) { + final Object array = extractor1.getValue( valueResolver, handle1 .getObject()); if ( array == null ) return false; return !getArrayContains( array.getClass() ).contains( array, - reteEvaluator, + valueResolver, extractor2, handle2.getObject() ); } @@ -488,20 +490,20 @@ public ValueType getCoercedValueType() { return ValueType.OBJECT_TYPE; } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, + final FactHandle handle1, final FieldValue fieldValue) { if ( fieldValue.isNull() ) { return false; } else if ( fieldValue.isCollectionField() ) { final Collection col = (Collection) fieldValue.getValue(); - final Object value = extractor.getValue( reteEvaluator, + final Object value = extractor.getValue( valueResolver, handle1.getObject() ); return col.contains( value ); } else if ( fieldValue.getValue().getClass().isArray() ) { return getArrayContains( fieldValue.getValue().getClass() ).contains( fieldValue.getValue(), - reteEvaluator, + valueResolver, extractor, handle1.getObject() ); } else { @@ -509,10 +511,10 @@ public boolean evaluate(ReteEvaluator reteEvaluator, } } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { - final Object object = context.declaration.getExtractor().getValue( reteEvaluator, + final FactHandle left) { + final Object object = context.declaration.getExtractor().getValue( valueResolver, left.getObject() ); if ( object == null ) { return false; @@ -522,7 +524,7 @@ public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, return col.contains( value ); } else if ( object.getClass().isArray() ) { return getArrayContains( object.getClass() ).contains( object, - reteEvaluator, + valueResolver, context.extractor, context.object ); } else { @@ -530,20 +532,20 @@ public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, } } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { final Object object = ((ObjectVariableContextEntry) context).left; if ( object == null ) { return false; } else if ( object instanceof Collection ) { final Collection col = (Collection) object; - final Object value = context.extractor.getValue( reteEvaluator, + final Object value = context.extractor.getValue( valueResolver, right.getObject() ); return col.contains( value ); } else if ( object.getClass().isArray() ) { return getArrayContains( object.getClass() ).contains( object, - reteEvaluator, + valueResolver, context.extractor, right.getObject() ); } else { @@ -551,25 +553,25 @@ public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, } } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - final Object object = extractor2.getValue( reteEvaluator, + final FactHandle handle2) { + final Object object = extractor2.getValue( valueResolver, handle2.getObject() ); if ( object == null ) { return false; } else if ( object instanceof Collection ) { final Collection col = (Collection) object; - final Object value = extractor1.getValue( reteEvaluator, + final Object value = extractor1.getValue( valueResolver, handle1.getObject() ); return col.contains( value ); } else if ( object.getClass().isArray() ) { return getArrayContains( object.getClass() ).contains( object, - reteEvaluator, - extractor1, - handle1.getObject() ); + valueResolver, + extractor1, + handle1.getObject() ); } else { throw new ClassCastException( "Can't check if an attribute is member of an object of class " + object.getClass() ); } @@ -597,31 +599,31 @@ public ValueType getCoercedValueType() { return ValueType.OBJECT_TYPE; } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, + final FactHandle handle1, final FieldValue fieldValue) { if ( fieldValue.isNull() ) { return false; } else if ( fieldValue.isCollectionField() ) { final Collection col = (Collection) fieldValue.getValue(); - final Object value = extractor.getValue( reteEvaluator, + final Object value = extractor.getValue( valueResolver, handle1.getObject() ); return !col.contains( value ); } else if ( fieldValue.getValue().getClass().isArray() ) { return !getArrayContains( fieldValue.getValue().getClass() ).contains( fieldValue.getValue(), - reteEvaluator, - extractor, - handle1.getObject() ); + valueResolver, + extractor, + handle1.getObject() ); } else { throw new ClassCastException( "Can't check if an attribute is not member of an object of class " + fieldValue.getValue().getClass() ); } } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { - final Object object = context.declaration.getExtractor().getValue( reteEvaluator, + final FactHandle left) { + final Object object = context.declaration.getExtractor().getValue( valueResolver, left.getObject() ); if ( object == null ) { return false; @@ -633,55 +635,55 @@ public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, // the original object is passed, as the extractor // is used to cast to the correct type for the array comparison return !getArrayContains( object.getClass() ).contains( object, - reteEvaluator, - context.extractor, - context.object ); + valueResolver, + context.extractor, + context.object ); } else { throw new ClassCastException( "Can't check if an attribute is not member of an object of class " + object.getClass() ); } } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { final Object object = ((ObjectVariableContextEntry) context).left; if ( object == null ) { return false; } else if ( object instanceof Collection ) { final Collection col = (Collection) object; - final Object value = context.extractor.getValue( reteEvaluator, + final Object value = context.extractor.getValue( valueResolver, right.getObject() ); return !col.contains( value ); } else if ( object.getClass().isArray() ) { return !getArrayContains( object.getClass() ).contains( object, - reteEvaluator, - context.extractor, - right.getObject() ); + valueResolver, + context.extractor, + right.getObject() ); } else { throw new ClassCastException( "Can't check if an attribute is not member of an object of class " + object.getClass() ); } } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - final Object object = extractor2.getValue( reteEvaluator, + final FactHandle handle2) { + final Object object = extractor2.getValue( valueResolver, handle2.getObject() ); if ( object == null ) { return false; } else if ( object instanceof Collection ) { final Collection col = (Collection) object; - final Object value = extractor1.getValue( reteEvaluator, + final Object value = extractor1.getValue( valueResolver, handle1.getObject() ); return !col.contains( value ); } else if ( object.getClass().isArray() ) { return !getArrayContains( object.getClass() ).contains( object, - reteEvaluator, - extractor1, - handle1.getObject() ); + valueResolver, + extractor1, + handle1.getObject() ); } else { throw new ClassCastException( "Can't check if an attribute is not member of an object of class " + object.getClass() ); } @@ -999,42 +1001,42 @@ public ObjectContainsEvaluator() { CONTAINS ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, + final FactHandle handle1, final FieldValue fieldValue) { final Object value = fieldValue.getValue(); - final Collection col = (Collection) extractor.getValue( reteEvaluator, + final Collection col = (Collection) extractor.getValue( valueResolver, handle1.getObject() ); return (col == null) ? false : col.contains( value ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { - final Object value = context.declaration.getExtractor().getValue( reteEvaluator, + final FactHandle left) { + final Object value = context.declaration.getExtractor().getValue( valueResolver, left.getObject() ); final Collection col = (Collection) ((ObjectVariableContextEntry) context).right; return (col == null) ? false : col.contains( value ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { final Object value = ((ObjectVariableContextEntry) context).left; - final Collection col = (Collection) context.extractor.getValue( reteEvaluator, + final Collection col = (Collection) context.extractor.getValue( valueResolver, right.getObject() ); return (col == null) ? false : col.contains( value ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - final Object value = extractor2.getValue( reteEvaluator, + final FactHandle handle2) { + final Object value = extractor2.getValue( valueResolver, handle2.getObject() ); - final Collection col = (Collection) extractor1.getValue( reteEvaluator, + final Collection col = (Collection) extractor1.getValue( valueResolver, handle1.getObject() ); return (col == null) ? false : col.contains( value ); } @@ -1053,42 +1055,42 @@ public ObjectExcludesEvaluator() { EXCLUDES ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, + final FactHandle handle1, final FieldValue fieldValue) { final Object value = fieldValue.getValue(); - final Collection col = (Collection) extractor.getValue( reteEvaluator, + final Collection col = (Collection) extractor.getValue( valueResolver, handle1.getObject() ); return (col == null) ? true : !col.contains( value ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { - final Object value = context.declaration.getExtractor().getValue( reteEvaluator, + final FactHandle left) { + final Object value = context.declaration.getExtractor().getValue( valueResolver, left.getObject() ); final Collection col = (Collection) ((ObjectVariableContextEntry) context).right; return (col == null) ? true : !col.contains( value ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { final Object value = ((ObjectVariableContextEntry) context).left; - final Collection col = (Collection) context.extractor.getValue( reteEvaluator, + final Collection col = (Collection) context.extractor.getValue( valueResolver, right.getObject() ); return (col == null) ? true : !col.contains( value ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - final Object value = extractor2.getValue( reteEvaluator, + final FactHandle handle2) { + final Object value = extractor2.getValue( valueResolver, handle2.getObject() ); - final Collection col = (Collection) extractor1.getValue( reteEvaluator, + final Collection col = (Collection) extractor1.getValue( valueResolver, handle1.getObject() ); return (col == null) ? true : !col.contains( value ); } @@ -1195,7 +1197,7 @@ boolean contains(Object array, FieldValue value); boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object); // @@ -1226,13 +1228,13 @@ public boolean contains(Object array, } public boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object) { boolean[] boolArray = (boolean[]) array; for ( int i = 0, length = boolArray.length; i < length; i++ ) { - if ( boolArray[i] == accessor.getBooleanValue( reteEvaluator, + if ( boolArray[i] == accessor.getBooleanValue( valueResolver, object ) ) { return true; } @@ -1258,11 +1260,11 @@ public boolean contains(Object array, } public boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object) { return contains( (byte[]) array, - accessor.getByteValue( reteEvaluator, + accessor.getByteValue( valueResolver, object ) ); } @@ -1294,11 +1296,11 @@ public boolean contains(Object array, } public boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object) { return contains( (short[]) array, - accessor.getShortValue( reteEvaluator, + accessor.getShortValue( valueResolver, object ) ); } @@ -1329,11 +1331,11 @@ public boolean contains(Object array, } public boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object) { return contains( (char[]) array, - accessor.getCharValue( reteEvaluator, + accessor.getCharValue( valueResolver, object ) ); } @@ -1365,11 +1367,11 @@ public boolean contains(Object array, } public boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object) { return contains( (int[]) array, - accessor.getIntValue( reteEvaluator, + accessor.getIntValue( valueResolver, object ) ); } @@ -1401,11 +1403,11 @@ public boolean contains(Object array, } public boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object) { return contains( (long[]) array, - accessor.getLongValue( reteEvaluator, + accessor.getLongValue( valueResolver, object ) ); } @@ -1437,11 +1439,11 @@ public boolean contains(Object array, } public boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object) { return contains( (float[]) array, - accessor.getFloatValue( reteEvaluator, + accessor.getFloatValue( valueResolver, object ) ); } @@ -1472,11 +1474,11 @@ public boolean contains(Object array, } public boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object) { return contains( (double[]) array, - accessor.getDoubleValue( reteEvaluator, + accessor.getDoubleValue( valueResolver, object ) ); } @@ -1522,11 +1524,11 @@ public boolean contains(Object array, } public boolean contains(Object array, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, ReadAccessor accessor, Object object) { return contains( (Object[]) array, - accessor.getValue( reteEvaluator, + accessor.getValue( valueResolver, object ) ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/SoundslikeEvaluatorsDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/SoundslikeEvaluatorsDefinition.java index e6461acb92a..7d8ae7c23c0 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/SoundslikeEvaluatorsDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/SoundslikeEvaluatorsDefinition.java @@ -1,36 +1,38 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.base.CoreComponentsBuilder; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.CoreComponentsBuilder; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; import org.drools.mvel.evaluators.VariableRestriction.ObjectVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.kie.api.runtime.rule.FactHandle; /** * This class defines the soundslike evaluator @@ -157,35 +159,37 @@ public StringSoundsLikeEvaluator() { SOUNDSLIKE ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, final FieldValue handle2) { - final String value1 = (String) extractor.getValue( reteEvaluator, handle1.getObject() ); + final FactHandle handle1, + final FieldValue handle2) { + final String value1 = (String) extractor.getValue( valueResolver, handle1.getObject() ); final String value2 = (String) handle2.getValue(); return soundslike(value1,value2); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, - final VariableContextEntry context, final InternalFactHandle left) { + public boolean evaluateCachedRight(final ValueResolver valueResolver, + final VariableContextEntry context, final FactHandle left) { final String value = (String) ((ObjectVariableContextEntry) context).right; - return soundslike( value, (String) context.declaration.getExtractor().getValue( reteEvaluator, left.getObject() ) ); + return soundslike( value, (String) context.declaration.getExtractor().getValue( valueResolver, left.getObject() ) ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, - final VariableContextEntry context, final InternalFactHandle rightHandle) { - final String value = (String) context.extractor.getValue( reteEvaluator, rightHandle.getObject() ); + public boolean evaluateCachedLeft(final ValueResolver valueResolver, + final VariableContextEntry context, final FactHandle rightHandle) { + final String value = (String) context.extractor.getValue( valueResolver, rightHandle.getObject() ); return soundslike(value, (String) ((ObjectVariableContextEntry) context).left ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, - final ReadAccessor extractor2, final InternalFactHandle handle2) { - final Object value1 = extractor1.getValue( reteEvaluator, handle1.getObject() ); - final Object value2 = extractor2.getValue( reteEvaluator, handle2.getObject() ); + final FactHandle handle1, + final ReadAccessor extractor2, + final FactHandle handle2) { + final Object value1 = extractor1.getValue( valueResolver, handle1.getObject() ); + final Object value2 = extractor2.getValue( valueResolver, handle2.getObject() ); return soundslike( (String) value1, (String) value2 ); } @@ -205,35 +209,39 @@ public StringNotSoundsLikeEvaluator() { NOT_SOUNDSLIKE ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle handle1, final FieldValue object2) { - final String value1 = (String) extractor.getValue( reteEvaluator, handle1.getObject() ); + final FactHandle handle1, + final FieldValue object2) { + final String value1 = (String) extractor.getValue( valueResolver, handle1.getObject() ); final String value2 = (String) object2.getValue(); return ! soundslike( value1, value2 ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, - final VariableContextEntry context, final InternalFactHandle left) { + public boolean evaluateCachedRight(final ValueResolver valueResolver, + final VariableContextEntry context, + final FactHandle left) { final String value = (String) ((ObjectVariableContextEntry) context).right; - return ! soundslike( value, (String) context.declaration.getExtractor().getValue( reteEvaluator, left.getObject() ) ); + return ! soundslike( value, (String) context.declaration.getExtractor().getValue( valueResolver, left.getObject() ) ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, - final VariableContextEntry context, final InternalFactHandle right) { - final String value = (String) context.extractor.getValue( reteEvaluator, right.getObject() ); + public boolean evaluateCachedLeft(final ValueResolver valueResolver, + final VariableContextEntry context, + final FactHandle right) { + final String value = (String) context.extractor.getValue( valueResolver, right.getObject() ); return ! soundslike( value, (String) ((ObjectVariableContextEntry) context).left ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handl1, - final ReadAccessor extractor2, final InternalFactHandle handl2) { - final Object value1 = extractor1.getValue( reteEvaluator, handl1.getObject() ); - final Object value2 = extractor2.getValue( reteEvaluator, handl2.getObject() ); + final FactHandle handl1, + final ReadAccessor extractor2, + final FactHandle handl2) { + final Object value1 = extractor1.getValue( valueResolver, handl1.getObject() ); + final Object value2 = extractor2.getValue( valueResolver, handl2.getObject() ); return ! soundslike( (String) value1, (String) value2 ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/StartedByEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/StartedByEvaluatorDefinition.java index c982c668e27..a379ecbec50 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/StartedByEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/StartedByEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.TemporalVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the startedby evaluator definition.

@@ -200,9 +202,9 @@ public StartedByEvaluator() { } public StartedByEvaluator(final ValueType type, - final boolean isNegated, - final long[] params, - final String paramText) { + final boolean isNegated, + final long[] params, + final String paramText) { super( type, isNegated ? NOT_STARTED_BY : STARTED_BY ); this.paramText = paramText; @@ -235,51 +237,51 @@ public Interval getInterval() { return new Interval( 0, 0 ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'startedby' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, - final VariableContextEntry context, - final InternalFactHandle left) { + public boolean evaluateCachedRight(final ValueResolver valueResolver, + final VariableContextEntry context, + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } - long distStart = Math.abs(((TemporalVariableContextEntry) context).startTS - ((EventFactHandle) left ).getStartTimestamp()); - long distEnd = ((TemporalVariableContextEntry) context).endTS - ((EventFactHandle) left ).getEndTimestamp(); + long distStart = Math.abs(((TemporalVariableContextEntry) context).startTS - ((DefaultEventHandle) left ).getStartTimestamp()); + long distEnd = ((TemporalVariableContextEntry) context).endTS - ((DefaultEventHandle) left ).getEndTimestamp(); return this.getOperator().isNegated() ^ ( distStart <= this.startDev && distEnd > 0 ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, - final VariableContextEntry context, - final InternalFactHandle right) { + public boolean evaluateCachedLeft(final ValueResolver valueResolver, + final VariableContextEntry context, + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } - long distStart = Math.abs(((EventFactHandle) right ).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS); - long distEnd = ((EventFactHandle) right ).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS; + long distStart = Math.abs(((DefaultEventHandle) right ).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS); + long distEnd = ((DefaultEventHandle) right ).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS; return this.getOperator().isNegated() ^ ( distStart <= this.startDev && distEnd > 0 ); } - public boolean evaluate(ReteEvaluator reteEvaluator, - final ReadAccessor extractor1, - final InternalFactHandle handle1, - final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + public boolean evaluate(final ValueResolver valueResolver, + final ReadAccessor extractor1, + final FactHandle handle1, + final ReadAccessor extractor2, + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long distStart = Math.abs(((EventFactHandle) handle1 ).getStartTimestamp() - ((EventFactHandle) handle2 ).getStartTimestamp()); - long distEnd = ((EventFactHandle) handle1 ).getEndTimestamp() - ((EventFactHandle) handle2 ).getEndTimestamp(); + long distStart = Math.abs(((DefaultEventHandle) handle1 ).getStartTimestamp() - ((DefaultEventHandle) handle2 ).getStartTimestamp()); + long distEnd = ((DefaultEventHandle) handle1 ).getEndTimestamp() - ((DefaultEventHandle) handle2 ).getEndTimestamp(); return this.getOperator().isNegated() ^ ( distStart <= this.startDev && distEnd > 0 ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/StartsEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/StartsEvaluatorDefinition.java index 55cb578daa1..ee5082f191c 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/StartsEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/StartsEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -23,19 +25,19 @@ import java.util.HashMap; import java.util.Map; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.util.TimeIntervalParser; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.util.TimeIntervalParser; +import org.drools.core.common.DefaultEventHandle; import org.drools.mvel.evaluators.VariableRestriction.TemporalVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.time.Interval; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.time.Interval; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the starts evaluator definition.

@@ -238,51 +240,51 @@ public Interval getInterval() { 0 ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, - final InternalFactHandle object1, + final FactHandle object1, final FieldValue object2) { throw new RuntimeException( "The 'starts' operator can only be used to compare one event to another, and never to compare to literal constraints." ); } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle left) { + final FactHandle left) { if ( context.rightNull || - context.declaration.getExtractor().isNullValue( reteEvaluator, left.getObject() )) { + context.declaration.getExtractor().isNullValue( valueResolver, left.getObject() )) { return false; } - long distStart = Math.abs( ((TemporalVariableContextEntry) context).startTS - ((EventFactHandle) left).getStartTimestamp() ); - long distEnd = ((EventFactHandle) left).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS; + long distStart = Math.abs( ((TemporalVariableContextEntry) context).startTS - ((DefaultEventHandle) left).getStartTimestamp()); + long distEnd = ((DefaultEventHandle) left).getEndTimestamp() - ((TemporalVariableContextEntry) context).endTS; return this.getOperator().isNegated() ^ (distStart <= this.startDev && distEnd > 0 ); } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableContextEntry context, - final InternalFactHandle right) { + final FactHandle right) { if ( context.leftNull || - context.extractor.isNullValue( reteEvaluator, right.getObject() ) ) { + context.extractor.isNullValue( valueResolver, right.getObject() ) ) { return false; } - long distStart = Math.abs( ((EventFactHandle) right).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS); - long distEnd = ((TemporalVariableContextEntry) context).endTS - ((EventFactHandle) right).getEndTimestamp(); + long distStart = Math.abs(((DefaultEventHandle) right).getStartTimestamp() - ((TemporalVariableContextEntry) context).startTS); + long distEnd = ((TemporalVariableContextEntry) context).endTS - ((DefaultEventHandle) right).getEndTimestamp(); return this.getOperator().isNegated() ^ (distStart <= this.startDev && distEnd > 0 ); } - public boolean evaluate(ReteEvaluator reteEvaluator, + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor1, - final InternalFactHandle handle1, + final FactHandle handle1, final ReadAccessor extractor2, - final InternalFactHandle handle2) { - if ( extractor1.isNullValue( reteEvaluator, handle1.getObject() ) || - extractor2.isNullValue( reteEvaluator, handle2.getObject() ) ) { + final FactHandle handle2) { + if ( extractor1.isNullValue( valueResolver, handle1.getObject() ) || + extractor2.isNullValue( valueResolver, handle2.getObject() ) ) { return false; } - long distStart = Math.abs( ((EventFactHandle) handle1).getStartTimestamp() - ((EventFactHandle) handle2).getStartTimestamp() ); - long distEnd = ((EventFactHandle) handle2).getEndTimestamp() - ((EventFactHandle) handle1).getEndTimestamp(); + long distStart = Math.abs(((DefaultEventHandle) handle1).getStartTimestamp() - ((DefaultEventHandle) handle2).getStartTimestamp()); + long distEnd = ((DefaultEventHandle) handle2).getEndTimestamp() - ((DefaultEventHandle) handle1).getEndTimestamp(); return this.getOperator().isNegated() ^ (distStart <= this.startDev && distEnd > 0 ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/StrEvaluatorDefinition.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/StrEvaluatorDefinition.java index f78b8f2450f..e89b2b2d403 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/StrEvaluatorDefinition.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/StrEvaluatorDefinition.java @@ -1,34 +1,37 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.evaluators; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; import org.drools.mvel.evaluators.VariableRestriction.ObjectVariableContextEntry; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; +import org.kie.api.runtime.rule.FactHandle; /** *

The implementation of the 'str' evaluator definition.

@@ -156,9 +159,11 @@ public StrEvaluator(final ValueType type, final boolean isNegated) { /** * @inheridDoc */ - public boolean evaluate(ReteEvaluator reteEvaluator, - ReadAccessor extractor, InternalFactHandle factHandle, FieldValue value) { - final Object objectValue = extractor.getValue(reteEvaluator, factHandle.getObject()); + public boolean evaluate(final ValueResolver valueResolver, + final ReadAccessor extractor, + final FactHandle factHandle, + final FieldValue value) { + final Object objectValue = extractor.getValue(valueResolver, factHandle.getObject()); switch (parameter) { case startsWith: @@ -172,11 +177,11 @@ public boolean evaluate(ReteEvaluator reteEvaluator, } } - public boolean evaluate(ReteEvaluator reteEvaluator, - ReadAccessor leftExtractor, InternalFactHandle left, - ReadAccessor rightExtractor, InternalFactHandle right) { - final Object value1 = leftExtractor.getValue(reteEvaluator, left.getObject()); - final Object value2 = rightExtractor.getValue(reteEvaluator, right.getObject()); + public boolean evaluate(final ValueResolver valueResolver, + final ReadAccessor leftExtractor, final FactHandle left, + final ReadAccessor rightExtractor, final FactHandle right) { + final Object value1 = leftExtractor.getValue(valueResolver, left.getObject()); + final Object value2 = rightExtractor.getValue(valueResolver, right.getObject()); switch (parameter) { case startsWith: @@ -191,8 +196,9 @@ public boolean evaluate(ReteEvaluator reteEvaluator, } - public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, - VariableContextEntry context, InternalFactHandle right) { + public boolean evaluateCachedLeft(final ValueResolver valueResolver, + final VariableContextEntry context, + final FactHandle right) { switch (parameter) { case startsWith: @@ -210,8 +216,9 @@ public boolean evaluateCachedLeft(ReteEvaluator reteEvaluator, } - public boolean evaluateCachedRight(ReteEvaluator reteEvaluator, - VariableContextEntry context, InternalFactHandle left) { + public boolean evaluateCachedRight(final ValueResolver valueResolver, + final VariableContextEntry context, + final FactHandle left) { switch (parameter) { case startsWith: return this.getOperator().isNegated() ^ (((String)left.getObject()).startsWith((String)((ObjectVariableContextEntry) diff --git a/drools-mvel/src/main/java/org/drools/mvel/evaluators/VariableRestriction.java b/drools-mvel/src/main/java/org/drools/mvel/evaluators/VariableRestriction.java index 6e46fecd928..d1a54d536a1 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/evaluators/VariableRestriction.java +++ b/drools-mvel/src/main/java/org/drools/mvel/evaluators/VariableRestriction.java @@ -1,38 +1,42 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.base.ValueType; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.evaluators.AfterEvaluatorDefinition.AfterEvaluator; import org.drools.mvel.evaluators.BeforeEvaluatorDefinition.BeforeEvaluator; import org.drools.mvel.evaluators.MeetsEvaluatorDefinition.MeetsEvaluator; import org.drools.mvel.evaluators.MetByEvaluatorDefinition.MetByEvaluator; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.Evaluator; +import org.drools.core.common.DefaultEventHandle; +import org.drools.base.rule.accessor.Evaluator; import org.drools.core.reteoo.Tuple; +import org.kie.api.runtime.rule.EventHandle; +import org.kie.api.runtime.rule.FactHandle; public class VariableRestriction { @@ -94,11 +98,11 @@ public static abstract class VariableContextEntry public Evaluator evaluator; public Object object; public Declaration declaration; - public Tuple tuple; + public BaseTuple tuple; public ContextEntry entry; public boolean leftNull; public boolean rightNull; - public ReteEvaluator reteEvaluator; + public ValueResolver valueResolver; public VariableContextEntry() { } @@ -113,7 +117,7 @@ public VariableContextEntry(final ReadAccessor extractor, public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { - reteEvaluator = (ReteEvaluator) in.readObject(); + valueResolver = (ValueResolver) in.readObject(); extractor = (ReadAccessor) in.readObject(); evaluator = (Evaluator) in.readObject(); object = in.readObject(); @@ -125,7 +129,7 @@ public void readExternal(ObjectInput in) throws IOException, } public void writeExternal(ObjectOutput out) throws IOException { - out.writeObject( reteEvaluator ); + out.writeObject( valueResolver ); out.writeObject( extractor ); out.writeObject( evaluator ); out.writeObject( object ); @@ -152,7 +156,7 @@ public Object getObject() { return this.object; } - public Tuple getTuple() { + public BaseTuple getTuple() { return this.tuple; } @@ -207,23 +211,23 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeObject( right ); } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; - this.leftNull = this.declaration.getExtractor().isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.leftNull = this.declaration.getExtractor().isNullValue( valueResolver, tuple.getObject( this.declaration ) ); - this.left = this.declaration.getExtractor().getValue( reteEvaluator, + this.left = this.declaration.getExtractor().getValue( valueResolver, tuple.getObject( this.declaration ) ); } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { this.object = handle.getObject(); - this.reteEvaluator = reteEvaluator; - this.rightNull = this.extractor.isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.rightNull = this.extractor.isNullValue( valueResolver, handle.getObject() ); - this.right = this.extractor.getValue( reteEvaluator, + this.right = this.extractor.getValue( valueResolver, handle.getObject() ); } @@ -268,30 +272,30 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeLong( right ); } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; - this.leftNull = this.declaration.getExtractor().isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.leftNull = this.declaration.getExtractor().isNullValue( valueResolver, tuple.getObject( this.declaration ) ); if ( !leftNull ) { - this.left = this.declaration.getExtractor().getLongValue( reteEvaluator, + this.left = this.declaration.getExtractor().getLongValue( valueResolver, tuple.getObject( this.declaration ) ); } else { this.left = 0; } } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { this.object = handle.getObject(); - this.reteEvaluator = reteEvaluator; - this.rightNull = this.extractor.isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.rightNull = this.extractor.isNullValue( valueResolver, handle.getObject()); if ( !rightNull ) { // avoid a NullPointerException - this.right = this.extractor.getLongValue( reteEvaluator, + this.right = this.extractor.getLongValue( valueResolver, handle.getObject() ); } else { this.right = 0; @@ -330,30 +334,30 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeChar( right ); } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; - this.leftNull = this.declaration.getExtractor().isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.leftNull = this.declaration.getExtractor().isNullValue( valueResolver, tuple.getObject( this.declaration )); if ( !leftNull ) { - this.left = this.declaration.getExtractor().getCharValue( reteEvaluator, + this.left = this.declaration.getExtractor().getCharValue( valueResolver, tuple.getObject( this.declaration ) ); } else { this.left = 0; } } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { this.object = handle.getObject(); - this.reteEvaluator = reteEvaluator; - this.rightNull = this.extractor.isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.rightNull = this.extractor.isNullValue( valueResolver, handle.getObject()); if ( !rightNull ) { // avoid a NullPointerException - this.right = this.extractor.getCharValue( reteEvaluator, + this.right = this.extractor.getCharValue( valueResolver, handle.getObject() ); } else { this.right = 0; @@ -392,30 +396,30 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeDouble( right ); } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; - this.leftNull = this.declaration.getExtractor().isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.leftNull = this.declaration.getExtractor().isNullValue( valueResolver, tuple.getObject( this.declaration ) ); if ( !leftNull ) { - this.left = this.declaration.getExtractor().getDoubleValue( reteEvaluator, + this.left = this.declaration.getExtractor().getDoubleValue( valueResolver, tuple.getObject( this.declaration ) ); } else { this.left = 0; } } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { this.object = handle.getObject(); - this.reteEvaluator = reteEvaluator; - this.rightNull = this.extractor.isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.rightNull = this.extractor.isNullValue( valueResolver, handle.getObject() ); if ( !rightNull ) { // avoid a NullPointerException - this.right = this.extractor.getDoubleValue( reteEvaluator, + this.right = this.extractor.getDoubleValue( valueResolver, handle.getObject() ); } else { this.right = 0; @@ -453,25 +457,25 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeBoolean( right ); } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; - this.leftNull = this.declaration.getExtractor().isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.leftNull = this.declaration.getExtractor().isNullValue( valueResolver, tuple.getObject( this.declaration ) ); - this.left = !leftNull && this.declaration.getExtractor().getBooleanValue( reteEvaluator, tuple.getObject( this.declaration ) ); + this.left = !leftNull && this.declaration.getExtractor().getBooleanValue( valueResolver, tuple.getObject( this.declaration ) ); } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { this.object = handle.getObject(); - this.reteEvaluator = reteEvaluator; - this.rightNull = this.extractor.isNullValue( reteEvaluator, + this.valueResolver = valueResolver; + this.rightNull = this.extractor.isNullValue( valueResolver, handle.getObject() ); // avoid a NullPointerException - this.right = !rightNull && this.extractor.getBooleanValue( reteEvaluator, handle.getObject() ); + this.right = !rightNull && this.extractor.getBooleanValue( valueResolver, handle.getObject() ); } } @@ -501,22 +505,22 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeLong( timestamp ); } - protected abstract long getTimestampFromTuple( Tuple tuple ); - protected abstract long getTimestampFromFactHandle( InternalFactHandle handle ); + protected abstract long getTimestampFromTuple( BaseTuple tuple ); + protected abstract long getTimestampFromFactHandle( FactHandle handle ); @Override - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; if ( this.declaration.getExtractor().isSelfReference() ) { this.timestamp = getTimestampFromTuple( tuple ); } else { - this.leftNull = this.declaration.getExtractor().isNullValue( reteEvaluator, + this.leftNull = this.declaration.getExtractor().isNullValue( valueResolver, tuple.getObject( this.declaration ) ); if ( !leftNull ) { // avoid a NullPointerException - this.timestamp = this.declaration.getExtractor().getLongValue( reteEvaluator, + this.timestamp = this.declaration.getExtractor().getLongValue( valueResolver, tuple.getObject( this.declaration ) ); } else { this.timestamp = 0; @@ -525,18 +529,18 @@ public void updateFromTuple(final ReteEvaluator reteEvaluator, } @Override - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { this.object = handle.getObject(); - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; if ( this.extractor.isSelfReference() ) { this.timestamp = getTimestampFromFactHandle( handle ); } else { - this.rightNull = this.extractor.isNullValue( reteEvaluator, + this.rightNull = this.extractor.isNullValue( valueResolver, handle.getObject()); if ( !rightNull ) { // avoid a NullPointerException - this.timestamp = this.extractor.getLongValue( reteEvaluator, + this.timestamp = this.extractor.getLongValue( valueResolver, handle.getObject() ); } else { this.timestamp = 0; @@ -561,13 +565,13 @@ public LeftStartRightEndContextEntry(final ReadAccessor extractor, } @Override - protected long getTimestampFromTuple( Tuple tuple ) { - return ((EventFactHandle) tuple.get( this.declaration )).getStartTimestamp(); + protected long getTimestampFromTuple( BaseTuple tuple ) { + return ((EventHandle) tuple.get(this.declaration)).getStartTimestamp(); } @Override - protected long getTimestampFromFactHandle( InternalFactHandle handle ) { - return ((EventFactHandle)handle).getEndTimestamp(); + protected long getTimestampFromFactHandle( FactHandle handle ) { + return ((EventHandle)handle).getEndTimestamp(); } } @@ -587,13 +591,13 @@ public LeftEndRightStartContextEntry(final ReadAccessor extractor, } @Override - protected long getTimestampFromTuple( Tuple tuple ) { - return ((EventFactHandle) tuple.get( this.declaration )).getEndTimestamp(); + protected long getTimestampFromTuple( BaseTuple tuple ) { + return ((EventHandle) tuple.get(this.declaration)).getEndTimestamp(); } @Override - protected long getTimestampFromFactHandle( InternalFactHandle handle ) { - return ((EventFactHandle)handle).getStartTimestamp(); + protected long getTimestampFromFactHandle( FactHandle handle ) { + return ((EventHandle)handle).getStartTimestamp(); } } @@ -627,20 +631,20 @@ public void writeExternal(ObjectOutput out) throws IOException { out.writeLong( startTS ); } - public void updateFromTuple(final ReteEvaluator reteEvaluator, - final Tuple tuple) { + public void updateFromTuple(final ValueResolver valueResolver, + final BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; if ( this.declaration.getExtractor().isSelfReference() ) { - EventFactHandle efh = ((EventFactHandle)tuple.get( this.declaration )); + DefaultEventHandle efh = ((DefaultEventHandle)tuple.get(this.declaration)); this.startTS = efh.getStartTimestamp(); this.endTS = efh.getEndTimestamp(); } else { - this.leftNull = this.declaration.getExtractor().isNullValue( reteEvaluator, + this.leftNull = this.declaration.getExtractor().isNullValue( valueResolver, tuple.getObject( this.declaration ) ); if ( !leftNull ) { // avoid a NullPointerException - this.startTS = this.declaration.getExtractor().getLongValue( reteEvaluator, + this.startTS = this.declaration.getExtractor().getLongValue( valueResolver, tuple.getObject( this.declaration ) ); } else { this.startTS = 0; @@ -649,19 +653,19 @@ public void updateFromTuple(final ReteEvaluator reteEvaluator, } } - public void updateFromFactHandle(final ReteEvaluator reteEvaluator, - final InternalFactHandle handle) { + public void updateFromFactHandle(final ValueResolver valueResolver, + final FactHandle handle) { this.object = handle.getObject(); - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; if ( this.extractor.isSelfReference() ) { - this.startTS = ((EventFactHandle)handle).getStartTimestamp(); - this.endTS = ((EventFactHandle)handle).getEndTimestamp(); + this.startTS = ((DefaultEventHandle)handle).getStartTimestamp(); + this.endTS = ((DefaultEventHandle)handle).getEndTimestamp(); } else { - this.rightNull = this.extractor.isNullValue( reteEvaluator, + this.rightNull = this.extractor.isNullValue( valueResolver, handle.getObject()); if ( !rightNull ) { // avoid a NullPointerException - this.startTS = this.extractor.getLongValue( reteEvaluator, + this.startTS = this.extractor.getLongValue( valueResolver, handle.getObject() ); } else { this.startTS = 0; diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/ActivationPropertyHandler.java b/drools-mvel/src/main/java/org/drools/mvel/expr/ActivationPropertyHandler.java index 8399e436e74..b39e79617fe 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/ActivationPropertyHandler.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/ActivationPropertyHandler.java @@ -1,20 +1,24 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.drools.core.rule.consequence.InternalMatch; import org.mvel2.integration.PropertyHandler; import org.mvel2.integration.VariableResolver; diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELAccumulator.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELAccumulator.java index a1a242fbdc2..a7d36e38f24 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELAccumulator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELAccumulator.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Externalizable; @@ -23,15 +27,16 @@ import java.util.HashSet; import java.util.Set; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.expr.MVELCompilationUnit.DroolsVarFactory; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.integration.VariableResolverFactory; import static org.drools.mvel.expr.MvelEvaluator.createMvelEvaluator; @@ -109,16 +114,16 @@ public Object createContext() { */ public Object init(Object workingMemoryContext, Object context, - Tuple tuple, + BaseTuple tuple, Declaration[] declarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { Object[] localVars = new Object[initUnit.getOtherIdentifiers().length]; MVELAccumulatorFactoryContext factoryContext = (MVELAccumulatorFactoryContext)workingMemoryContext; VariableResolverFactory factory = factoryContext.getInitFactory(); - initUnit.updateFactory( null, tuple, localVars, reteEvaluator, reteEvaluator.getGlobalResolver(), factory ); + initUnit.updateFactory( null, tuple, localVars, valueResolver, valueResolver.getGlobalResolver(), factory ); - InternalKnowledgePackage pkg = reteEvaluator.getKnowledgeBase().getPackage( "MAIN" ); + InternalKnowledgePackage pkg = ((InternalKnowledgeBase)valueResolver.getRuleBase()).getPackage("MAIN"); if ( pkg != null ) { MVELDialectRuntimeData data = ( MVELDialectRuntimeData ) pkg.getDialectRuntimeRegistry().getDialectData( "mvel" ); factory.setNextFactory( data.getFunctionFactory() ); @@ -143,15 +148,15 @@ public Object init(Object workingMemoryContext, */ public Object accumulate(Object workingMemoryContext, Object context, - Tuple tuple, - InternalFactHandle handle, + BaseTuple tuple, + FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { Object[] localVars = ((MVELAccumulatorContext) context).getVariables(); MVELAccumulatorFactoryContext factoryContext = (MVELAccumulatorFactoryContext)workingMemoryContext; VariableResolverFactory factory = factoryContext.getActionFactory(); - actionUnit.updateFactory( handle, tuple, localVars, reteEvaluator, reteEvaluator.getGlobalResolver(), factory ); + actionUnit.updateFactory( handle, tuple, localVars, valueResolver, valueResolver.getGlobalResolver(), factory ); DroolsVarFactory df = ( DroolsVarFactory ) factory.getNextFactory(); @@ -178,12 +183,12 @@ public Object accumulate(Object workingMemoryContext, public boolean tryReverse(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, + BaseTuple leftTuple, + FactHandle handle, Object value, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { if (!supportsReverse()) { return false; @@ -224,14 +229,14 @@ public boolean tryReverse(Object workingMemoryContext, */ public Object getResult(Object workingMemoryContext, Object context, - Tuple tuple, + BaseTuple tuple, Declaration[] declarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { Object[] localVars = ((MVELAccumulatorContext) context).getVariables(); MVELAccumulatorFactoryContext factoryContext = (MVELAccumulatorFactoryContext)workingMemoryContext; VariableResolverFactory factory = factoryContext.getResultFactory(); - resultUnit.updateFactory( null, tuple, localVars, reteEvaluator, reteEvaluator.getGlobalResolver(), factory ); + resultUnit.updateFactory( null, tuple, localVars, valueResolver, valueResolver.getGlobalResolver(), factory ); return this.result.evaluate( factory ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELAccumulatorFunctionExecutor.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELAccumulatorFunctionExecutor.java index e94631332cd..f96565512a7 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELAccumulatorFunctionExecutor.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELAccumulatorFunctionExecutor.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Externalizable; @@ -20,13 +24,13 @@ import java.io.ObjectOutput; import java.io.Serializable; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Accumulator; import org.drools.mvel.MVELDialectRuntimeData; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.integration.VariableResolverFactory; import static org.drools.mvel.expr.MvelEvaluator.createMvelEvaluator; @@ -89,9 +93,9 @@ public Object createContext() { */ public Object init(Object workingMemoryContext, Object context, - Tuple leftTuple, + BaseTuple leftTuple, Declaration[] declarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { return this.function.initContext( (Serializable) context ); } @@ -100,13 +104,13 @@ public Object init(Object workingMemoryContext, */ public Object accumulate(Object workingMemoryContext, Object context, - Tuple tuple, - InternalFactHandle handle, + BaseTuple tuple, + FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { - VariableResolverFactory factory = unit.getFactory( null, null, null, handle, tuple, null, reteEvaluator, reteEvaluator.getGlobalResolver() ); + VariableResolverFactory factory = unit.getFactory( null, null, null, handle, tuple, null, valueResolver, valueResolver.getGlobalResolver() ); final Object value = evaluator.evaluate( handle.getObject(), factory ); return this.function.accumulateValue( (Serializable) context, value ); @@ -114,12 +118,12 @@ public Object accumulate(Object workingMemoryContext, public boolean tryReverse(Object workingMemoryContext, Object context, - Tuple leftTuple, - InternalFactHandle handle, - Object value, + BaseTuple leftTuple, + FactHandle handle, + Object value, Declaration[] declarations, Declaration[] innerDeclarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { return this.function.tryReverse( (Serializable) context, value ); } @@ -128,9 +132,9 @@ public boolean tryReverse(Object workingMemoryContext, */ public Object getResult(Object workingMemoryContext, Object context, - Tuple leftTuple, + BaseTuple leftTuple, Declaration[] declarations, - ReteEvaluator reteEvaluator) { + ValueResolver valueResolver) { try { return this.function.getResult( (Serializable) context); } catch (Exception e) { diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCalendarCoercion.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCalendarCoercion.java index e18a9eeed5f..f0e39728bfb 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCalendarCoercion.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCalendarCoercion.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.util.Calendar; diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCompilationUnit.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCompilationUnit.java index 72a3b11c9b5..bbf09b0a6f8 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCompilationUnit.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCompilationUnit.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Externalizable; @@ -27,17 +31,17 @@ import java.util.Map; import java.util.Set; +import org.drools.base.base.ValueResolver; import org.drools.compiler.rule.builder.EvaluatorWrapper; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; +import org.drools.base.reteoo.BaseTuple; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.GlobalResolver; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.GlobalResolver; import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.reteoo.Tuple; import org.drools.mvel.MVELDialectRuntimeData; import org.kie.api.definition.rule.Rule; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.DataConversion; import org.mvel2.MVEL; import org.mvel2.ParserConfiguration; @@ -296,45 +300,45 @@ public VariableResolverFactory createFactory() { public VariableResolverFactory getFactory(final Object knowledgeHelper, final Declaration[] prevDecl, final Rule rule, - final Tuple tuples, + final BaseTuple tuples, final Object[] otherVars, - final ReteEvaluator reteEvaluator, + final ValueResolver valueResolver, final GlobalResolver globals) { VariableResolverFactory factory = createFactory(); - updateFactory(knowledgeHelper, prevDecl, rule, null, knowledgeHelper, tuples, otherVars, reteEvaluator, globals, factory ); + updateFactory(knowledgeHelper, prevDecl, rule, null, knowledgeHelper, tuples, otherVars, valueResolver, globals, factory ); return factory; } public VariableResolverFactory getFactory(final Object knowledgeHelper, final Declaration[] prevDecl, final Rule rule, - final InternalFactHandle rightHandle, - final Tuple tuple, + final FactHandle rightHandle, + final BaseTuple tuple, final Object[] otherVars, - final ReteEvaluator reteEvaluator, + final ValueResolver valueResolver, final GlobalResolver globals) { VariableResolverFactory factory = createFactory(); - updateFactory(knowledgeHelper, prevDecl, rule, rightHandle, rightHandle != null ? rightHandle.getObject() : null, tuple, otherVars, reteEvaluator, globals, factory); + updateFactory(knowledgeHelper, prevDecl, rule, rightHandle, rightHandle != null ? rightHandle.getObject() : null, tuple, otherVars, valueResolver, globals, factory); return factory; } - public void updateFactory( InternalFactHandle rightHandle, - Tuple tuple, + public void updateFactory( FactHandle rightHandle, + BaseTuple tuple, Object[] localVars, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, GlobalResolver globalResolver, VariableResolverFactory factory ) { - updateFactory( null, null, null, rightHandle, rightHandle != null ? rightHandle.getObject() : null, tuple, localVars, reteEvaluator, globalResolver, factory ); + updateFactory( null, null, null, rightHandle, rightHandle != null ? rightHandle.getObject() : null, tuple, localVars, valueResolver, globalResolver, factory ); } private void updateFactory( Object knowledgeHelper, Declaration[] prevDecl, Rule rule, - InternalFactHandle rightHandle, + FactHandle rightHandle, Object rightObject, - Tuple tuple, + BaseTuple tuple, Object[] otherVars, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, GlobalResolver globals, VariableResolverFactory factory ) { int varLength = inputIdentifiers.length; @@ -352,14 +356,14 @@ private void updateFactory( Object knowledgeHelper, if ( globalIdentifiers != null ) { for (String globalIdentifier : globalIdentifiers) { if (WM_ARGUMENT.equals( globalIdentifier )) { - factory.getIndexedVariableResolver( i++ ).setValue( reteEvaluator ); + factory.getIndexedVariableResolver( i++ ).setValue( valueResolver ); } else { factory.getIndexedVariableResolver( i++ ).setValue( globals.resolveGlobal( globalIdentifier ) ); } } } - InternalFactHandle[] handles = tuple instanceof LeftTuple ? tuple.toFactHandles() : null; + FactHandle[] handles = tuple instanceof LeftTuple ? tuple.toFactHandles() : null; if ( operators.length > 0 ) { for (EvaluatorWrapper operator : operators) { // TODO: need to have one operator per working memory @@ -383,7 +387,7 @@ private void updateFactory( Object knowledgeHelper, } for (Declaration decl : prevDecl) { - Object o = decl.getValue(reteEvaluator, objs != null ? objs[decl.getObjectIndex()] : + Object o = decl.getValue(valueResolver, objs != null ? objs[decl.getObjectIndex()] : handles[decl.getObjectIndex()].getObject()); factory.getIndexedVariableResolver(i++).setValue(o); } @@ -394,11 +398,11 @@ private void updateFactory( Object knowledgeHelper, for ( Declaration decl : this.localDeclarations ) { Object value; if( readLocalsFromTuple && tuple != null ) { - value = decl.getValue( reteEvaluator, + value = decl.getValue( valueResolver, objs != null ? objs[decl.getObjectIndex()] : handles[decl.getObjectIndex()].getObject()); } else { - value = decl.getValue( reteEvaluator, + value = decl.getValue( valueResolver, rightObject ); } factory.getIndexedVariableResolver( i++ ).setValue( value ); diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCompileable.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCompileable.java index 90966f3e97e..60fe3d31c1a 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCompileable.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELCompileable.java @@ -1,20 +1,24 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.mvel.MVELDialectRuntimeData; public interface MVELCompileable { diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELConsequence.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELConsequence.java index 924725f4832..5ef933b5b54 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELConsequence.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELConsequence.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Externalizable; @@ -20,11 +24,12 @@ import java.io.ObjectOutput; import java.io.Serializable; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.MVELDialectRuntimeData; import org.mvel2.integration.VariableResolverFactory; @@ -32,7 +37,7 @@ public class MVELConsequence implements - Consequence, + Consequence, MVELCompileable, Externalizable { private static final long serialVersionUID = 510l; @@ -77,13 +82,13 @@ public void compile( MVELDialectRuntimeData runtimeData, RuleImpl rule) { } public void evaluate(final KnowledgeHelper knowledgeHelper, - final ReteEvaluator reteEvaluator) throws Exception { + final ValueResolver valueResolver) throws Exception { VariableResolverFactory factory = unit.getFactory(knowledgeHelper, knowledgeHelper.getMatch().getTerminalNode().getRequiredDeclarations(), - knowledgeHelper.getRule(), knowledgeHelper.getTuple(), null, reteEvaluator, reteEvaluator.getGlobalResolver()); + knowledgeHelper.getRule(), knowledgeHelper.getTuple(), null, valueResolver, valueResolver.getGlobalResolver()); // do we have any functions for this namespace? - InternalKnowledgePackage pkg = reteEvaluator.getKnowledgeBase().getPackage("MAIN"); + InternalKnowledgePackage pkg = ((InternalKnowledgeBase)valueResolver.getRuleBase()).getPackage("MAIN"); if (pkg != null) { MVELDialectRuntimeData data = (MVELDialectRuntimeData) pkg.getDialectRuntimeRegistry().getDialectData(this.id); factory.setNextFactory(data.getFunctionFactory()); diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELDateCoercion.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELDateCoercion.java index 779509f1bca..047c2524221 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELDateCoercion.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELDateCoercion.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.util.Date; diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELDebugHandler.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELDebugHandler.java index a692b333087..464d4a0074c 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELDebugHandler.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELDebugHandler.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import org.mvel2.MVELRuntime; diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELEnabledExpression.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELEnabledExpression.java index c915d527fb5..4d2deca706d 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELEnabledExpression.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELEnabledExpression.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Externalizable; @@ -21,13 +25,14 @@ import java.util.Arrays; import java.util.Map; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Enabled; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Enabled; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.MVELDialectRuntimeData; import org.mvel2.integration.VariableResolverFactory; @@ -78,15 +83,15 @@ public void compile( MVELDialectRuntimeData runtimeData, RuleImpl rule ) { evaluator = createMvelEvaluator( unit.getCompiledExpression( runtimeData, rule.toRuleNameAndPathString() ) ); } - public boolean getValue(final Tuple tuple, + public boolean getValue(final BaseTuple tuple, final Declaration[] declarations, final RuleImpl rule, - final ReteEvaluator reteEvaluator) { + final ValueResolver valueResolver) { VariableResolverFactory factory = unit.getFactory( null, declarations, - rule, null, tuple, null, reteEvaluator, reteEvaluator.getGlobalResolver() ); + rule, null, tuple, null, valueResolver, valueResolver.getGlobalResolver() ); // do we have any functions for this namespace? - InternalKnowledgePackage pkg = reteEvaluator.getKnowledgeBase().getPackage( "MAIN" ); + InternalKnowledgePackage pkg = ((InternalKnowledgeBase)valueResolver.getRuleBase()).getPackage("MAIN"); if ( pkg != null ) { MVELDialectRuntimeData data = ( MVELDialectRuntimeData ) pkg.getDialectRuntimeRegistry().getDialectData( this.id ); factory.setNextFactory( data.getFunctionFactory() ); @@ -108,7 +113,7 @@ public Declaration[] findDeclarations( Map decls) { for ( Declaration declr : declrs ) { enabledDeclarations[i++] = decls.get( declr.getIdentifier() ); } - Arrays.sort( enabledDeclarations, RuleTerminalNode.SortDeclarations.instance ); + Arrays.sort(enabledDeclarations, SortDeclarations.instance); return enabledDeclarations; } } diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELEvalExpression.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELEvalExpression.java index 657c17d36b9..02e607df248 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELEvalExpression.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELEvalExpression.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Externalizable; @@ -19,12 +23,13 @@ import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.EvalExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.EvalExpression; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.MVELDialectRuntimeData; import org.mvel2.integration.VariableResolverFactory; @@ -75,21 +80,21 @@ public Object createContext() { return this.unit.createFactory(); } - public boolean evaluate(final Tuple tuple, + public boolean evaluate(final BaseTuple tuple, final Declaration[] requiredDeclarations, - final ReteEvaluator reteEvaluator, + final ValueResolver valueResolver, final Object context) throws Exception { VariableResolverFactory factory = ( VariableResolverFactory ) context; unit.updateFactory( null, tuple, null, - reteEvaluator, - reteEvaluator.getGlobalResolver(), + valueResolver, + valueResolver.getGlobalResolver(), factory ); // do we have any functions for this namespace? - InternalKnowledgePackage pkg = reteEvaluator.getKnowledgeBase().getPackage( "MAIN" ); + InternalKnowledgePackage pkg = ((InternalKnowledgeBase)valueResolver.getRuleBase()).getPackage("MAIN"); if ( pkg != null ) { MVELDialectRuntimeData data = ( MVELDialectRuntimeData ) pkg.getDialectRuntimeRegistry().getDialectData( this.id ); factory.setNextFactory( data.getFunctionFactory() ); diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELObjectExpression.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELObjectExpression.java index ddd37e1d3ae..dc05b59be50 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELObjectExpression.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELObjectExpression.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Externalizable; @@ -19,12 +23,13 @@ import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.reteoo.Tuple; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; import org.drools.core.time.TimerExpression; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.MVELDialectRuntimeData; import org.mvel2.ParserConfiguration; import org.mvel2.integration.VariableResolverFactory; @@ -82,14 +87,12 @@ public Declaration[] getDeclarations() { } @Override - public Object getValue(final Tuple leftTuple, - final Declaration[] declrs, - final ReteEvaluator reteEvaluator) { + public Object getValue(BaseTuple leftTuple, Declaration[] declrs, ValueResolver valueResolver) { VariableResolverFactory factory = unit.getFactory( null, declrs, - null, null, leftTuple, null, reteEvaluator, reteEvaluator.getGlobalResolver() ); + null, null, leftTuple, null, valueResolver, valueResolver.getGlobalResolver() ); // do we have any functions for this namespace? - InternalKnowledgePackage pkg = reteEvaluator.getKnowledgeBase().getPackage( "MAIN" ); + InternalKnowledgePackage pkg = ((InternalKnowledgeBase)valueResolver.getRuleBase()).getPackage("MAIN"); if ( pkg != null ) { MVELDialectRuntimeData data = ( MVELDialectRuntimeData ) pkg.getDialectRuntimeRegistry().getDialectData( this.id ); factory.setNextFactory( data.getFunctionFactory() ); diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELReturnValueExpression.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELReturnValueExpression.java index 46b0e141297..f526aafe564 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELReturnValueExpression.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELReturnValueExpression.java @@ -1,34 +1,41 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; - -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReturnValueExpression; -import org.drools.core.reteoo.Tuple; +import java.util.Arrays; + +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; +import org.drools.core.impl.KnowledgeBaseImpl; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReturnValueExpression; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.field.FieldFactory; +import org.kie.api.runtime.rule.FactHandle; import org.mvel2.integration.VariableResolverFactory; import static org.drools.mvel.expr.MvelEvaluator.createMvelEvaluator; @@ -77,19 +84,19 @@ public Object createContext() { return this.unit.createFactory(); } - public FieldValue evaluate(final InternalFactHandle handle, - final Tuple tuple, + public FieldValue evaluate(final FactHandle handle, + final BaseTuple tuple, final Declaration[] previousDeclarations, final Declaration[] requiredDeclarations, - final ReteEvaluator reteEvaluator, + final ValueResolver valueResolver, final Object ctx) throws Exception { VariableResolverFactory factory = ( VariableResolverFactory )ctx; - unit.updateFactory( handle, tuple, null, reteEvaluator, reteEvaluator.getGlobalResolver(), factory ); + unit.updateFactory( handle, tuple, null, valueResolver, valueResolver.getGlobalResolver(), factory ); // do we have any functions for this namespace? - InternalKnowledgePackage pkg = reteEvaluator.getKnowledgeBase().getPackage( "MAIN" ); + InternalKnowledgePackage pkg = ((InternalRuleBase)valueResolver.getRuleBase()).getPackage("MAIN"); if ( pkg != null ) { MVELDialectRuntimeData data = ( MVELDialectRuntimeData ) pkg.getDialectRuntimeRegistry().getDialectData( this.id ); factory.setNextFactory( data.getFunctionFactory() ); diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELSalienceExpression.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELSalienceExpression.java index c811c83e9b1..e93af57c3c0 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MVELSalienceExpression.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MVELSalienceExpression.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Externalizable; @@ -21,16 +25,18 @@ import java.util.Arrays; import java.util.Map; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Declaration; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.accessor.Salience; -import org.drools.core.time.TimeUtils; +import org.drools.base.rule.accessor.Salience; +import org.drools.base.time.TimeUtils; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.MVELDialectRuntimeData; import org.kie.api.definition.rule.Rule; +import org.kie.api.runtime.rule.Match; import org.mvel2.integration.VariableResolverFactory; import static org.drools.mvel.expr.MvelEvaluator.createMvelEvaluator; @@ -80,17 +86,18 @@ public void compile( MVELDialectRuntimeData runtimeData, RuleImpl rule ) { evaluator = createMvelEvaluator( unit.getCompiledExpression( runtimeData, rule.toRuleNameAndPathString() ) ); } - public int getValue(final InternalMatch internalMatch, + public int getValue(final Match match, final Rule rule, - final ReteEvaluator reteEvaluator) { - VariableResolverFactory factory = unit.getFactory( reteEvaluator, - reteEvaluator != null ? internalMatch.getTerminalNode().getSalienceDeclarations() : null, + final ValueResolver valueResolver) { + InternalMatch internalMatch = (InternalMatch) match; + VariableResolverFactory factory = unit.getFactory( valueResolver, + valueResolver != null ? internalMatch.getTerminalNode().getSalienceDeclarations() : null, rule, null, - reteEvaluator != null ? internalMatch.getTuple() : null, - null, reteEvaluator, reteEvaluator.getGlobalResolver() ); + valueResolver != null ? internalMatch.getTuple() : null, + null, valueResolver, valueResolver.getGlobalResolver() ); // do we have any functions for this namespace? - InternalKnowledgePackage pkg = reteEvaluator.getKnowledgeBase().getPackage( "MAIN" ); + InternalKnowledgePackage pkg = ((InternalKnowledgeBase)valueResolver.getRuleBase()).getPackage("MAIN"); if ( pkg != null ) { MVELDialectRuntimeData data = ( MVELDialectRuntimeData ) pkg.getDialectRuntimeRegistry().getDialectData( this.id ); factory.setNextFactory( data.getFunctionFactory() ); @@ -112,7 +119,7 @@ public Declaration[] findDeclarations( Map decls) { for ( Declaration declr : declrs ) { salienceDeclarations[i++] = decls.get( declr.getIdentifier() ); } - Arrays.sort( salienceDeclarations, RuleTerminalNode.SortDeclarations.instance ); + Arrays.sort(salienceDeclarations, SortDeclarations.instance); return salienceDeclarations; } diff --git a/drools-mvel/src/main/java/org/drools/mvel/expr/MvelEvaluator.java b/drools-mvel/src/main/java/org/drools/mvel/expr/MvelEvaluator.java index 5a96322147e..766f2062662 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/expr/MvelEvaluator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/expr/MvelEvaluator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.mvel.expr; import java.io.Serializable; diff --git a/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELClassFieldReader.java index 88e6bd52c73..34f76347f68 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELClassFieldReader.java @@ -1,20 +1,24 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.mvel2.compiler.ExecutableStatement; public interface MVELClassFieldReader { diff --git a/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELDateClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELDateClassFieldReader.java index d957162deab..a53abfa6e5c 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELDateClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELDateClassFieldReader.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import java.io.Externalizable; @@ -19,9 +23,9 @@ import java.io.ObjectInput; import java.io.ObjectOutput; +import org.drools.base.base.ValueResolver; import org.drools.mvel.accessors.BaseDateClassFieldReader; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.expr.MVELCompileable; import org.drools.mvel.expr.MvelEvaluator; @@ -110,7 +114,7 @@ public void compile( MVELDialectRuntimeData runtimeData, RuleImpl rule) { /* (non-Javadoc) * @see org.kie.base.extractors.BaseObjectClassFieldExtractor#getValue(java.lang.Object) */ - public Object getValue(ReteEvaluator reteEvaluator, Object object) { + public Object getValue(ValueResolver valueResolver, Object object) { return evaluator.evaluate( object ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELNumberClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELNumberClassFieldReader.java index 060514110f4..50f11b7bc2d 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELNumberClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELNumberClassFieldReader.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import java.io.Externalizable; @@ -19,9 +23,9 @@ import java.io.ObjectInput; import java.io.ObjectOutput; +import org.drools.base.base.ValueResolver; import org.drools.mvel.accessors.BaseNumberClassFieldReader; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.expr.MVELCompileable; import org.drools.mvel.expr.MvelEvaluator; @@ -110,7 +114,7 @@ public void compile( MVELDialectRuntimeData runtimeData, RuleImpl rule ) { /* (non-Javadoc) * @see org.kie.base.extractors.BaseObjectClassFieldExtractor#getValue(java.lang.Object) */ - public Object getValue(ReteEvaluator reteEvaluator, Object object) { + public Object getValue(ValueResolver valueResolver, Object object) { return evaluator.evaluate( object ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELObjectClassFieldReader.java b/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELObjectClassFieldReader.java index 5e3909535d5..65eff70226a 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELObjectClassFieldReader.java +++ b/drools-mvel/src/main/java/org/drools/mvel/extractors/MVELObjectClassFieldReader.java @@ -1,27 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; -import org.drools.core.base.ValueType; -import org.drools.core.base.extractors.BaseObjectClassFieldReader; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; +import org.drools.base.base.extractors.BaseObjectClassFieldReader; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.mvel.MVELDialectRuntimeData; import org.drools.mvel.expr.MVELCompileable; import org.drools.mvel.expr.MvelEvaluator; @@ -136,7 +140,7 @@ public static void doCompile( MVELClassFieldReader target, MVELDialectRuntimeDat /* (non-Javadoc) * @see org.kie.base.extractors.BaseObjectClassFieldExtractor#getValue(java.lang.Object) */ - public Object getValue(ReteEvaluator reteEvaluator, Object object) { + public Object getValue(ValueResolver valueResolver, Object object) { return evaluator.evaluate( object ); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/field/BooleanFieldImpl.java b/drools-mvel/src/main/java/org/drools/mvel/field/BooleanFieldImpl.java index 059a9440f2c..4038a5fa91c 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/field/BooleanFieldImpl.java +++ b/drools-mvel/src/main/java/org/drools/mvel/field/BooleanFieldImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.field; import java.io.Externalizable; @@ -24,7 +26,7 @@ import java.math.BigDecimal; import java.math.BigInteger; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.FieldValue; public class BooleanFieldImpl implements diff --git a/drools-mvel/src/main/java/org/drools/mvel/field/ClassFieldImpl.java b/drools-mvel/src/main/java/org/drools/mvel/field/ClassFieldImpl.java index eb1b5599971..80a26eef1f4 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/field/ClassFieldImpl.java +++ b/drools-mvel/src/main/java/org/drools/mvel/field/ClassFieldImpl.java @@ -1,24 +1,26 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.field; -import org.drools.core.common.DroolsObjectInput; +import org.drools.base.common.DroolsObjectInput; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.FieldValue; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-mvel/src/main/java/org/drools/mvel/field/DoubleFieldImpl.java b/drools-mvel/src/main/java/org/drools/mvel/field/DoubleFieldImpl.java index 3a2aac05d3b..a0c51faf1f9 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/field/DoubleFieldImpl.java +++ b/drools-mvel/src/main/java/org/drools/mvel/field/DoubleFieldImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.field; import java.io.Externalizable; @@ -24,7 +26,7 @@ import java.math.BigDecimal; import java.math.BigInteger; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.FieldValue; public class DoubleFieldImpl implements diff --git a/drools-mvel/src/main/java/org/drools/mvel/field/FieldDataFactory.java b/drools-mvel/src/main/java/org/drools/mvel/field/FieldDataFactory.java index ff4144271c9..a065a2bd6de 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/field/FieldDataFactory.java +++ b/drools-mvel/src/main/java/org/drools/mvel/field/FieldDataFactory.java @@ -1,24 +1,25 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - - package org.drools.mvel.field; -import org.drools.core.base.ValueType; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.base.ValueType; +import org.drools.base.rule.accessor.FieldValue; public interface FieldDataFactory { diff --git a/drools-mvel/src/main/java/org/drools/mvel/field/FieldFactory.java b/drools-mvel/src/main/java/org/drools/mvel/field/FieldFactory.java index ae302703fe2..297d2e7e2f1 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/field/FieldFactory.java +++ b/drools-mvel/src/main/java/org/drools/mvel/field/FieldFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.field; import java.io.Serializable; @@ -21,9 +23,9 @@ import java.text.ParseException; import java.util.Date; -import org.drools.core.base.ValueType; -import org.drools.core.base.field.ObjectFieldImpl; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.base.ValueType; +import org.drools.base.base.field.ObjectFieldImpl; +import org.drools.base.rule.accessor.FieldValue; import org.drools.util.DateUtils; import org.drools.util.MathUtils; diff --git a/drools-mvel/src/main/java/org/drools/mvel/field/IntegerFieldImpl.java b/drools-mvel/src/main/java/org/drools/mvel/field/IntegerFieldImpl.java index 07e0301595c..ca3443731ac 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/field/IntegerFieldImpl.java +++ b/drools-mvel/src/main/java/org/drools/mvel/field/IntegerFieldImpl.java @@ -1,22 +1,24 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.field; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.FieldValue; import java.io.Externalizable; import java.io.IOException; diff --git a/drools-mvel/src/main/java/org/drools/mvel/field/LongFieldImpl.java b/drools-mvel/src/main/java/org/drools/mvel/field/LongFieldImpl.java index b7db86da23a..26a30f122cc 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/field/LongFieldImpl.java +++ b/drools-mvel/src/main/java/org/drools/mvel/field/LongFieldImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.field; import java.io.Externalizable; @@ -24,7 +26,7 @@ import java.math.BigDecimal; import java.math.BigInteger; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.FieldValue; public class LongFieldImpl implements diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaAccumulateBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaAccumulateBuilder.java index 256649d5f16..3577c5c2c6f 100755 --- a/drools-mvel/src/main/java/org/drools/mvel/java/JavaAccumulateBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaAccumulateBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.java; import java.lang.reflect.Type; @@ -36,21 +40,21 @@ import org.drools.compiler.rule.builder.util.AccumulateUtil; import org.drools.compiler.rule.builder.util.PackageBuilderUtil; import org.drools.core.base.accumulators.JavaAccumulatorFunctionExecutor; -import org.drools.core.base.extractors.ArrayElementReader; -import org.drools.core.base.extractors.SelfReferenceClassFieldReader; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Accumulate; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.MultiAccumulate; -import org.drools.core.rule.MutableTypeConstraint; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; -import org.drools.core.rule.SingleAccumulate; -import org.drools.core.rule.accessor.Accumulator; -import org.drools.core.rule.accessor.DeclarationScopeResolver; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.constraint.Constraint; -import org.drools.core.util.index.IndexUtil; +import org.drools.base.base.extractors.ArrayElementReader; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.MultiAccumulate; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.SingleAccumulate; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.accessor.DeclarationScopeResolver; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.constraint.Constraint; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.drl.ast.descr.AccumulateDescr; import org.drools.drl.ast.descr.AccumulateDescr.AccumulateFunctionCallDescr; import org.drools.drl.ast.descr.AndDescr; @@ -139,7 +143,7 @@ private Accumulate buildExternalFunctionCall( RuleBuildContext context, final List funcCalls = accumDescr.getFunctions(); // list of available source declarations final Declaration[] sourceDeclArr = source.getOuterDeclarations().values().toArray( new Declaration[source.getOuterDeclarations().size()] ); - Arrays.sort( sourceDeclArr, RuleTerminalNode.SortDeclarations.instance ); + Arrays.sort(sourceDeclArr, SortDeclarations.instance); // set of required previous declarations Set requiredDecl = new HashSet<>(); @@ -211,7 +215,7 @@ private void bindReaderToDeclaration( RuleBuildContext context, AccumulateDescr new Declaration[] { inner }, null, null, - IndexUtil.ConstraintType.EQUAL, + ConstraintTypeOperator.EQUAL, context.getDeclarationResolver().getDeclaration( fc.getBind() ), index >= 0 ? new ArrayElementReader( readAccessor, index, resultType ) @@ -377,7 +381,7 @@ private Accumulate buildInlineAccumulate( final RuleBuildContext context, declarations[i] = decls.get( it.next() ); } final Declaration[] sourceDeclArr = source.getOuterDeclarations().values().toArray( new Declaration[source.getOuterDeclarations().size()] ); - Arrays.sort( sourceDeclArr, RuleTerminalNode.SortDeclarations.instance ); + Arrays.sort(sourceDeclArr, SortDeclarations.instance); final Map map = createVariableContext( className, null, diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaAnalysisResult.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaAnalysisResult.java index 27cc50dfe72..841fe909cd1 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/java/JavaAnalysisResult.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaAnalysisResult.java @@ -1,15 +1,20 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ package org.drools.mvel.java; diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialect.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialect.java index bfb10027df8..ae2ec1f294f 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialect.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialect.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.java; import java.io.File; @@ -39,6 +43,7 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.kie.builder.impl.CompilationProblemAdapter; import org.drools.compiler.kie.builder.impl.InternalKieModule.CompilationCacheEntry; +import org.drools.compiler.rule.builder.GroupByBuilder; import org.drools.drl.ast.descr.AccumulateDescr; import org.drools.drl.ast.descr.AndDescr; import org.drools.drl.ast.descr.BaseDescr; @@ -50,6 +55,7 @@ import org.drools.drl.ast.descr.ForallDescr; import org.drools.drl.ast.descr.FromDescr; import org.drools.drl.ast.descr.FunctionDescr; +import org.drools.drl.ast.descr.GroupByDescr; import org.drools.drl.ast.descr.ImportDescr; import org.drools.drl.ast.descr.NamedConsequenceDescr; import org.drools.drl.ast.descr.NotDescr; @@ -84,14 +90,14 @@ import org.drools.compiler.rule.builder.WindowReferenceBuilder; import org.drools.compiler.rule.builder.dialect.DialectUtil; import org.drools.util.TypeResolver; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.io.InternalResource; -import org.drools.core.rule.Function; +import org.drools.base.rule.Function; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.LineMappings; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.rule.accessor.Wireable; +import org.drools.base.rule.LineMappings; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.rule.accessor.Wireable; import org.drools.util.IoUtils; import org.drools.util.StringUtils; import org.drools.mvel.asm.ASMConsequenceStubBuilder; @@ -124,6 +130,8 @@ public class JavaDialect implements Dialect { protected static final EnabledBuilder ENABLED_BUILDER = new MVELEnabledBuilder(); protected static final JavaAccumulateBuilder ACCUMULATE_BUILDER = new JavaAccumulateBuilder(); + protected static final JavaGroupByBuilder GROUP_BY_BUILDER = new JavaGroupByBuilder(); + protected static final RuleConditionBuilder EVAL_BUILDER = new ASMEvalStubBuilder(); protected static final PredicateBuilder PREDICATE_BUILDER = new ASMPredicateStubBuilder(); protected static final ConsequenceBuilder CONSEQUENCE_BUILDER = new ASMConsequenceStubBuilder(); @@ -241,6 +249,9 @@ public static synchronized void reinitBuilder() { builders.put(AccumulateDescr.class, ACCUMULATE_BUILDER); + builders.put(GroupByDescr.class, + GROUP_BY_BUILDER); + builders.put(EvalDescr.class, EVAL_BUILDER); @@ -360,6 +371,10 @@ public AccumulateBuilder getAccumulateBuilder() { return ACCUMULATE_BUILDER; } + public GroupByBuilder getGroupByBuilder() { + return GROUP_BY_BUILDER; + } + public RuleConditionBuilder getEvalBuilder() { return EVAL_BUILDER; } diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialectError.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialectError.java index a9d70b0e94a..53b3c9cf2e3 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialectError.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialectError.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.java; import org.drools.drl.parser.DroolsError; diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialectSession.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialectSession.java index 8ece7d09db2..78a00ca0e59 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialectSession.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaDialectSession.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.java; public class JavaDialectSession { diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaExprAnalyzer.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaExprAnalyzer.java index a8f7bdb9c95..68c9e98a180 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/java/JavaExprAnalyzer.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaExprAnalyzer.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.java; import java.lang.reflect.Type; diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaForMvelDialectConfiguration.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaForMvelDialectConfiguration.java index 918ad924cbc..fe465fa45c9 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/java/JavaForMvelDialectConfiguration.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaForMvelDialectConfiguration.java @@ -1,24 +1,28 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.java; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.compiler.Dialect; import org.drools.compiler.compiler.JavaDialectConfiguration; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -27,7 +31,7 @@ * There are options to use various flavours of runtime compilers. * Apache JCI is used as the interface to all the runtime compilers. * - * You can also use the system property "drools.compiler" to set the desired compiler. + * You can also use the system property "drools.dialect.java.compiler" to set the desired compiler. * The valid values are "ECLIPSE" and "NATIVE" only. * * drools.dialect.java.compiler = diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaFunctionBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaFunctionBuilder.java index 045efe2d842..f24c2051620 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/java/JavaFunctionBuilder.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaFunctionBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.java; import java.io.BufferedReader; @@ -27,8 +31,8 @@ import org.drools.drl.ast.descr.FunctionDescr; import org.drools.compiler.rule.builder.FunctionBuilder; import org.drools.util.TypeResolver; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.LineMappings; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.LineMappings; import org.drools.util.IoUtils; import org.drools.util.StringUtils; import org.kie.internal.builder.KnowledgeBuilderResult; diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaGroupByBuilder.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaGroupByBuilder.java new file mode 100755 index 00000000000..a97fb39e262 --- /dev/null +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaGroupByBuilder.java @@ -0,0 +1,607 @@ +/** + * 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. + */ +package org.drools.mvel.java; + +import java.lang.reflect.Type; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.TreeSet; +import java.util.function.Function; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +import org.drools.base.base.ValueType; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.util.index.ConstraintTypeOperator; +import org.drools.compiler.compiler.AnalysisResult; +import org.drools.compiler.compiler.BoundIdentifiers; +import org.drools.compiler.compiler.DescrBuildError; +import org.drools.compiler.rule.builder.GroupByBuilder; +import org.drools.compiler.rule.builder.RuleBuildContext; +import org.drools.compiler.rule.builder.RuleConditionBuilder; +import org.drools.compiler.rule.builder.dialect.java.parser.JavaLocalDeclarationDescr; +import org.drools.compiler.rule.builder.util.AccumulateUtil; +import org.drools.compiler.rule.builder.util.PackageBuilderUtil; +import org.drools.core.base.accumulators.JavaAccumulatorFunctionExecutor; +import org.drools.base.base.extractors.ArrayElementReader; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; +import org.drools.base.rule.Accumulate; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.MultiAccumulate; +import org.drools.base.rule.MutableTypeConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; +import org.drools.base.rule.SingleAccumulate; +import org.drools.base.rule.accessor.Accumulator; +import org.drools.base.rule.accessor.DeclarationScopeResolver; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.constraint.Constraint; +import org.drools.drl.ast.descr.AccumulateDescr.AccumulateFunctionCallDescr; +import org.drools.drl.ast.descr.AndDescr; +import org.drools.drl.ast.descr.BaseDescr; +import org.drools.drl.ast.descr.GroupByDescr; +import org.drools.mvel.MVELConstraint; +import org.drools.mvel.MVELGroupByAccumulate; +import org.drools.mvel.builder.MVELExprAnalyzer; +import org.kie.api.runtime.rule.AccumulateFunction; +import org.kie.internal.builder.conf.AccumulateFunctionOption; + +import static org.drools.mvel.java.JavaRuleBuilderHelper.createVariableContext; +import static org.drools.mvel.java.JavaRuleBuilderHelper.generateTemplates; + +/** + * A builder for the java dialect groupby version + */ +public class JavaGroupByBuilder + implements + GroupByBuilder { + + public RuleConditionElement build( final RuleBuildContext context, + final BaseDescr descr ) { + return build( context, + descr, + null ); + } + + public RuleConditionElement build( final RuleBuildContext context, + final BaseDescr descr, + final Pattern prefixPattern ) { + + final GroupByDescr groupByDescr = (GroupByDescr) descr; + if ( !groupByDescr.hasValidInput() ) { + return null; + } + + // build source + BaseDescr input = groupByDescr.getInput(); + if( input instanceof AndDescr && ((AndDescr) input).getDescrs().size() == 1 ) { + input = ((AndDescr) input).getDescrs().get( 0 ); + } + + final RuleConditionBuilder builder = (RuleConditionBuilder) context.getDialect().getBuilder( input.getClass() ); + final RuleConditionElement source = builder.build( context, + input ); + if ( source == null ) { + return null; + } + + final boolean readLocalsFromTuple = PackageBuilderUtil.isReadLocalsFromTuple(context, groupByDescr, source); + + Map declsInScope = context.getDeclarationResolver().getDeclarations( context.getRule() ); + if (prefixPattern != null && prefixPattern.getDeclaration() != null) { + declsInScope.remove( prefixPattern.getDeclaration().getIdentifier() ); + } + Map> declCls = DeclarationScopeResolver.getDeclarationClasses( declsInScope ); + + Accumulate accumulate; + if ( groupByDescr.isExternalFunction() ) { + // if it uses 1+ external function, build methods for them + accumulate = buildExternalFunctionCall( context, + groupByDescr, + source, + declsInScope, + declCls, + readLocalsFromTuple ); + } else { + // if it uses inline code, build the class for it + accumulate = buildInlineAccumulate( context, + groupByDescr, + source, + declsInScope, + declCls, + readLocalsFromTuple ); + } + + return accumulate; + } + + private MVELGroupByAccumulate addGroupingFunctionCompilation( + RuleBuildContext context, + GroupByDescr groupByDescr, + Pattern pattern, + Map> declCls, + Declaration[] sourceDeclArr, + boolean readLocalsFromTuple, + Function, Accumulate> innerAccumulateSupplier) { + // analyze the expression + Map groupByDeclsInScope = new HashMap<>(); + groupByDeclsInScope.putAll(Arrays.stream(sourceDeclArr) + .collect(Collectors.toMap(Declaration::getIdentifier, Function.identity()))); + + final JavaAnalysisResult analysis = (JavaAnalysisResult) context.getDialect().analyzeExpression( context, + groupByDescr, + groupByDescr.getGroupingFunction(), + new BoundIdentifiers(DeclarationScopeResolver.getDeclarationClasses(groupByDeclsInScope), context) ); + + if ( analysis == null ) { + // not possible to get the analysis results - compilation error has been already logged + return null; + } + + // create the array of used declarations + final BoundIdentifiers usedIdentifiers = analysis.getBoundIdentifiers(); + final Declaration[] requiredDeclarations = collectRequiredDeclarations( groupByDeclsInScope, + new HashSet<>(), + usedIdentifiers ); + + final String className = "groupbyExpression" + context.getNextId(); + + Class keyType = MVELExprAnalyzer.getExpressionType(context, DeclarationScopeResolver.getDeclarationClasses(groupByDeclsInScope), pattern, groupByDescr.getGroupingFunction()); + MVELGroupByAccumulate out = new MVELGroupByAccumulate( + innerAccumulateSupplier.apply(bindGroupingFunctionReaderToDeclaration(context, + groupByDescr, + pattern, + declCls, + new ArrayElementReader( new SelfReferenceClassFieldReader(Object[].class), groupByDescr.getFunctions().size(), keyType ), + keyType)), + requiredDeclarations, + null, + false); + + final Map map = createVariableContext( className, + groupByDescr.getGroupingFunction(), + context, + requiredDeclarations, + new Declaration[] {}, + usedIdentifiers.getGlobals() + ); + map.put( "readLocalsFromTuple", + readLocalsFromTuple ? Boolean.TRUE : Boolean.FALSE ); + + generateTemplates("returnValueMethod", + "returnValueInvoker", + context, + className, + map, + out.new GroupingFunctionWirer(), + groupByDescr); + + return out; + } + + private Accumulate buildExternalFunctionCall( RuleBuildContext context, + GroupByDescr groupByDescr, + RuleConditionElement source, + Map declsInScope, + Map> declCls, + boolean readLocalsFromTuple) { + // list of functions to build + final List funcCalls = groupByDescr.getFunctions(); + // list of available source declarations + final Declaration[] sourceDeclArr = source.getOuterDeclarations().values().toArray( new Declaration[source.getOuterDeclarations().size()] ); + Arrays.sort( sourceDeclArr, SortDeclarations.instance ); + + // set of required previous declarations + Set requiredDecl = new HashSet<>(); + + Pattern pattern = (Pattern) context.getDeclarationResolver().peekBuildStack(); + + Function, Accumulate> accumulateSupplier; + if (groupByDescr.isMultiFunction()) { + accumulateSupplier = keyDecls -> { + for (Declaration declaration : keyDecls) { + declsInScope.put(declaration.getIdentifier(), declaration); + } + requiredDecl.addAll(keyDecls); + + Accumulator[] accumulators = new Accumulator[funcCalls.size()]; + // creating the custom array reader + ReadAccessor reader = new SelfReferenceClassFieldReader( Object[].class ); + + int index = 0; + for ( AccumulateFunctionCallDescr fc : funcCalls ) { + AccumulateFunction function = getAccumulateFunction(context, groupByDescr, fc, source, declCls); + if (function == null) { + return null; + } + + bindReaderToDeclaration(context, groupByDescr, pattern, fc, new ArrayElementReader(reader, index, function.getResultType()), function.getResultType(), index); + accumulators[index++] = buildAccumulator(context, groupByDescr, declsInScope, declCls, readLocalsFromTuple, sourceDeclArr, requiredDecl, keyDecls, fc, function); + } + requiredDecl.addAll(List.of(sourceDeclArr)); + return new MultiAccumulate(source, requiredDecl.toArray(new Declaration[requiredDecl.size()]), accumulators, accumulators.length + 1); + }; + } else { + accumulateSupplier = keyDecls -> { + for (Declaration declaration : keyDecls) { + declsInScope.put(declaration.getIdentifier(), declaration); + } + requiredDecl.addAll(keyDecls); + AccumulateFunctionCallDescr fc = groupByDescr.getFunctions().get(0); + AccumulateFunction function = getAccumulateFunction(context, groupByDescr, fc, source, declCls); + if (function == null) { + return null; + } + + Class returnType = function.getResultType(); + if (!pattern.isCompatibleWithAccumulateReturnType(returnType)) { + context.addError( new DescrBuildError( groupByDescr, + context.getRuleDescr(), + null, + "Pattern of type: '" + pattern.getObjectType() + "' on rule '" + context.getRuleDescr().getName() + + "' is not compatible with type " + returnType.getCanonicalName() + " returned by accumulate function.") ); + return null; + } + + bindReaderToDeclaration(context, groupByDescr, pattern, fc, new ArrayElementReader( new SelfReferenceClassFieldReader(Object[].class), 0, function.getResultType() ), function.getResultType(), -1); + Accumulator accumulator = buildAccumulator(context, groupByDescr, declsInScope, declCls, readLocalsFromTuple, sourceDeclArr, requiredDecl, keyDecls, fc, function); + + requiredDecl.addAll(List.of(sourceDeclArr)); + return new SingleAccumulate( source, + requiredDecl.toArray(new Declaration[requiredDecl.size()]), + accumulator ); + }; + } + return addGroupingFunctionCompilation(context, + groupByDescr, + pattern, + declCls, + sourceDeclArr, + readLocalsFromTuple, + accumulateSupplier); + } + + private Collection bindGroupingFunctionReaderToDeclaration( RuleBuildContext context, GroupByDescr groupByDescr, Pattern pattern, Map> declCls, ReadAccessor readAccessor, Class resultType) { + if ( groupByDescr.getGroupingKey() != null ) { + if ( context.getDeclarationResolver().isDuplicated( context.getRule(), groupByDescr.getGroupingKey(), resultType.getName() ) ) { + context.addError( new DescrBuildError( context.getParentDescr(), + groupByDescr, + null, + "Duplicate declaration for variable '" + groupByDescr.getGroupingKey() + "' in the rule '" + context.getRule().getName() + "'" ) ); + } else { + Declaration declr = pattern.addDeclaration( groupByDescr.getGroupingKey() ); + declr.setDeclarationClass(resultType); + declr.setReadAccessor( readAccessor ); + declCls.put(groupByDescr.getGroupingKey(), resultType); + return Collections.singletonList(declr); + } + } + return Collections.emptyList(); + } + + private void bindReaderToDeclaration( RuleBuildContext context, GroupByDescr groupByDescr, Pattern pattern, AccumulateFunctionCallDescr fc, ReadAccessor readAccessor, Class resultType, int index ) { + if ( fc.getBind() != null ) { + if ( context.getDeclarationResolver().isDuplicated( context.getRule(), fc.getBind(), resultType.getName() ) ) { + if ( ! fc.isUnification() ) { + context.addError( new DescrBuildError( context.getParentDescr(), + groupByDescr, + null, + "Duplicate declaration for variable '" + fc.getBind() + "' in the rule '" + context.getRule().getName() + "'" ) ); + } else { + Declaration inner = context.getDeclarationResolver().getDeclaration( fc.getBind() ); + MutableTypeConstraint c = new MVELConstraint(Collections.singletonList(context.getPkg().getName()), + index >= 0 + ? "this[ " + index + " ] == " + fc.getBind() + : "this == " + fc.getBind(), + new Declaration[] { inner }, + null, + null, + ConstraintTypeOperator.EQUAL, + context.getDeclarationResolver().getDeclaration( fc.getBind() ), + index >= 0 + ? new ArrayElementReader( readAccessor, index, resultType ) + : readAccessor, + true); + c.setType(Constraint.ConstraintType.BETA); + pattern.addConstraint( c ); + } + } else { + Declaration declr = pattern.addDeclaration( fc.getBind() ); + declr.setReadAccessor( readAccessor ); + } + } + } + + private AccumulateFunction getAccumulateFunction(RuleBuildContext context, + GroupByDescr groupByDescr, + AccumulateFunctionCallDescr fc, + RuleConditionElement source, + Map> declCls) { + String functionName = AccumulateUtil.getFunctionName(() -> MVELExprAnalyzer.getExpressionType(context, declCls, source, fc.getParams()[0]), fc.getFunction()); + + // find the corresponding function + AccumulateFunction function = context.getConfiguration().getOption(AccumulateFunctionOption.KEY, functionName).getFunction(); + if( function == null ) { + // might have been imported in the package + function = context.getPkg().getAccumulateFunctions().get( functionName ); + } + if ( function == null ) { + context.addError( new DescrBuildError( groupByDescr, + context.getRuleDescr(), + null, + "Unknown accumulate function: '" + functionName + "' on rule '" + context.getRuleDescr().getName() + "'. All accumulate functions must be registered before building a resource." ) ); + } + return function; + } + + private Accumulator buildAccumulator(RuleBuildContext context, GroupByDescr groupByDescr, Map declsInScope, Map> declCls, boolean readLocalsFromTuple, Declaration[] sourceDeclArr, Set requiredDecl, Collection keyDeclarations, AccumulateFunctionCallDescr fc, AccumulateFunction function) { + // analyze the expression + final JavaAnalysisResult analysis = (JavaAnalysisResult) context.getDialect().analyzeBlock( context, + groupByDescr, + fc.getParams().length > 0 ? fc.getParams()[0] : "\"\"", + new BoundIdentifiers( declCls, context ) ); + + if ( analysis == null ) { + // not possible to get the analysis results - compilation error has been already logged + return null; + } + + // TODO: Find out why the grouping key is not put into BoundIdentifier despite + // being accessible in context and being in declCls + final BoundIdentifiers usedIdentifiers = analysis.getBoundIdentifiers(); + if (groupByDescr.getGroupingKey() != null && Stream.of(fc.getParams()).anyMatch(parameter -> parameter.contains(groupByDescr.getGroupingKey()))) { + usedIdentifiers.getDeclrClasses().put(groupByDescr.getGroupingKey(), declCls.get(groupByDescr.getGroupingKey())); + } + + // create the array of used declarations + Declaration[] previousDeclarations = collectRequiredDeclarations( declsInScope, + requiredDecl, + usedIdentifiers ); + + + // generate the code template + return generateFunctionCallCodeTemplate( context, + groupByDescr, + sourceDeclArr, + fc, + function, + usedIdentifiers, + previousDeclarations, + readLocalsFromTuple ); + } + + private Declaration[] collectRequiredDeclarations( Map declsInScope, + Set requiredDecl, + final BoundIdentifiers usedIdentifiers ) { + final Declaration[] previousDeclarations = new Declaration[usedIdentifiers.getDeclrClasses().size()]; + int i = 0; + for ( String key : usedIdentifiers.getDeclrClasses().keySet() ) { + Declaration d = declsInScope.get( key ); + previousDeclarations[i++] = d; + requiredDecl.add( d ); + } + return previousDeclarations; + } + + private JavaAccumulatorFunctionExecutor generateFunctionCallCodeTemplate( final RuleBuildContext context, + final GroupByDescr groupByDescr, + final Declaration[] sourceDeclArr, + AccumulateFunctionCallDescr fc, + AccumulateFunction function, + final BoundIdentifiers usedIdentifiers, + final Declaration[] previousDeclarations, + final boolean readLocalsFromTuple ) { + final String className = "accumulateExpression" + context.getNextId(); + final Map map = createVariableContext( className, + fc.getParams().length > 0 ? fc.getParams()[ 0 ] : "\"\"", + context, + previousDeclarations, + sourceDeclArr, + usedIdentifiers.getGlobals() + ); + map.put( "readLocalsFromTuple", + readLocalsFromTuple ? Boolean.TRUE : Boolean.FALSE ); + + JavaAccumulatorFunctionExecutor accumulator = new JavaAccumulatorFunctionExecutor( function ); + + generateTemplates("returnValueMethod", + "returnValueInvoker", + context, + className, + map, + accumulator, + groupByDescr); + return accumulator; + } + + private Accumulate buildInlineAccumulate( final RuleBuildContext context, + final GroupByDescr groupByDescr, + final RuleConditionElement source, + Map decls, + Map> declCls, + final boolean readLocalsFromTuple) { + // ELSE, if it is not an external function, build it using the regular java builder + final Declaration[] sourceDeclArr = source.getOuterDeclarations().values().toArray( new Declaration[source.getOuterDeclarations().size()] ); + Arrays.sort( sourceDeclArr, SortDeclarations.instance ); + return addGroupingFunctionCompilation(context, + groupByDescr, + (Pattern) context.getDeclarationResolver().peekBuildStack(), + new HashMap<>(), + sourceDeclArr, + readLocalsFromTuple, + keyDecls -> { + final String className = "Accumulate" + context.getNextId(); + groupByDescr.setClassName( className ); + + BoundIdentifiers available = new BoundIdentifiers( declCls, context ); + + final JavaAnalysisResult initCodeAnalysis = (JavaAnalysisResult) context.getDialect().analyzeBlock( context, + groupByDescr, + groupByDescr.getInitCode(), + available ); + final AnalysisResult actionCodeAnalysis = context.getDialect().analyzeBlock( context, + groupByDescr, + groupByDescr.getActionCode(), + available ); + + final AnalysisResult resultCodeAnalysis = context.getDialect().analyzeExpression( context, + groupByDescr, + groupByDescr.getResultCode(), + available ); + + if ( initCodeAnalysis == null || actionCodeAnalysis == null || resultCodeAnalysis == null ) { + // not possible to get the analysis results - compilation error has been already logged + return null; + } + + final Set requiredDeclarations = new HashSet<>( initCodeAnalysis.getBoundIdentifiers().getDeclrClasses().keySet() ); + requiredDeclarations.addAll( actionCodeAnalysis.getBoundIdentifiers().getDeclrClasses().keySet() ); + requiredDeclarations.addAll( resultCodeAnalysis.getBoundIdentifiers().getDeclrClasses().keySet() ); + + final Map requiredGlobals = new HashMap<>( initCodeAnalysis.getBoundIdentifiers().getGlobals() ); + requiredGlobals.putAll( actionCodeAnalysis.getBoundIdentifiers().getGlobals() ); + requiredGlobals.putAll( resultCodeAnalysis.getBoundIdentifiers().getGlobals() ); + + if ( groupByDescr.getReverseCode() != null ) { + final AnalysisResult reverseCodeAnalysis = context.getDialect().analyzeBlock( context, + groupByDescr, + groupByDescr.getActionCode(), + available ); + requiredDeclarations.addAll( reverseCodeAnalysis.getBoundIdentifiers().getDeclrClasses().keySet() ); + requiredGlobals.putAll( reverseCodeAnalysis.getBoundIdentifiers().getGlobals() ); + } + + final Declaration[] declarations = new Declaration[requiredDeclarations.size()]; + int i = 0; + for ( Iterator it = requiredDeclarations.iterator(); it.hasNext(); i++ ) { + declarations[i] = decls.get( it.next() ); + } + + final Map map = createVariableContext( className, + null, + context, + declarations, + null, + requiredGlobals + ); + + map.put( "className", + groupByDescr.getClassName() ); + map.put( "innerDeclarations", + sourceDeclArr ); + map.put( "isMultiPattern", + readLocalsFromTuple ? Boolean.TRUE : Boolean.FALSE ); + + final String initCode = this.fixInitCode( initCodeAnalysis, + groupByDescr.getInitCode() ); + final String actionCode = groupByDescr.getActionCode(); + final String resultCode = groupByDescr.getResultCode(); + + String[] attributesTypes = new String[initCodeAnalysis.getLocalVariablesMap().size()]; + String[] attributes = new String[initCodeAnalysis.getLocalVariablesMap().size()]; + int index = 0; + for ( Map.Entry entry : initCodeAnalysis.getLocalVariablesMap().entrySet() ) { + attributes[index] = entry.getKey(); + attributesTypes[index] = entry.getValue().getType(); + index++; + } + + map.put( "attributes", + attributes ); + map.put( "attributesTypes", + attributesTypes ); + + map.put( "initCode", + initCode ); + map.put( "actionCode", + actionCode ); + map.put( "resultCode", + resultCode ); + if ( groupByDescr.getReverseCode() == null ) { + map.put( "reverseCode", + "" ); + map.put( "supportsReverse", + "false" ); + } else { + map.put( "reverseCode", + groupByDescr.getReverseCode() ); + map.put( "supportsReverse", + "true" ); + } + + map.put( "hashCode", + actionCode.hashCode()); + + SingleAccumulate accumulate = new SingleAccumulate(source, declarations); + + generateTemplates("accumulateInnerClass", + "accumulateInvoker", + context, + className, + map, + accumulate.new Wirer(), + groupByDescr); + + return accumulate; + }); + } + + public String fixInitCode( JavaAnalysisResult analysis, + final String originalCode ) { + TreeSet locals = new TreeSet<>( new Comparator() { + public int compare( JavaLocalDeclarationDescr o1, + JavaLocalDeclarationDescr o2 ) { + return o1.getStart() - o2.getStart(); + } + } ); + + locals.addAll(analysis.getLocalVariablesMap().values()); + + StringBuilder initCode = new StringBuilder(); + int lastAdded = 0; + for ( JavaLocalDeclarationDescr d : locals ) { + // adding chunk + initCode.append( originalCode.substring( lastAdded, + d.getStart() ) ); + lastAdded = d.getEnd(); + // adding variable initializations + for ( JavaLocalDeclarationDescr.IdentifierDescr id : d.getIdentifiers() ) { + initCode.append( originalCode.substring( id.getStart(), + id.getEnd() ) ); + initCode.append( ";" ); + lastAdded = id.getEnd(); + while ( lastAdded < originalCode.length() && (Character.isWhitespace( originalCode.charAt( lastAdded ) ) || originalCode.charAt( lastAdded ) == ';') ) { + lastAdded++; + } + } + } + initCode.append( originalCode.substring( lastAdded ) ); + + return initCode.toString(); + } + +} diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/JavaRuleBuilderHelper.java b/drools-mvel/src/main/java/org/drools/mvel/java/JavaRuleBuilderHelper.java index 14e4d0fc33e..3117d47ee3f 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/java/JavaRuleBuilderHelper.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/JavaRuleBuilderHelper.java @@ -1,41 +1,36 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.java; -import java.io.IOException; -import java.io.InputStream; -import java.lang.reflect.Type; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; -import java.util.Map.Entry; - import org.drools.compiler.compiler.BoundIdentifiers; import org.drools.compiler.compiler.DescrBuildError; -import org.drools.drl.ast.descr.BaseDescr; -import org.drools.drl.ast.descr.RuleDescr; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.Declaration; +import org.drools.base.base.AcceptsClassObjectType; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.SortDeclarations; +import org.drools.base.rule.Declaration; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.base.AcceptsClassObjectType; -import org.drools.core.rule.accessor.DeclarationScopeResolver; -import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.rule.accessor.Wireable; +import org.drools.base.rule.accessor.DeclarationScopeResolver; +import org.drools.base.rule.accessor.Wireable; +import org.drools.base.rule.consequence.ConsequenceContext; +import org.drools.drl.ast.descr.BaseDescr; +import org.drools.drl.ast.descr.RuleDescr; import org.drools.util.StringUtils; import org.mvel2.integration.impl.MapVariableResolverFactory; import org.mvel2.templates.SimpleTemplateRegistry; @@ -45,6 +40,15 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.IOException; +import java.io.InputStream; +import java.lang.reflect.Type; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; + public final class JavaRuleBuilderHelper { private static final Logger logger = LoggerFactory.getLogger(JavaRuleBuilderHelper.class); @@ -109,7 +113,7 @@ public static JavaAnalysisResult createJavaAnalysisResult(final RuleBuildContext BoundIdentifiers bindings = new BoundIdentifiers( DeclarationScopeResolver.getDeclarationClasses( decls ), context, Collections.EMPTY_MAP, - KnowledgeHelper.class ); + ConsequenceContext.class ); String consequenceStr = ( RuleImpl.DEFAULT_CONSEQUENCE_NAME.equals( consequenceName ) ) ? (String) ruleDescr.getConsequence() : @@ -136,7 +140,7 @@ public static Map createConsequenceContext(final RuleBuildContex declrStr[j] = str; declarations[j++] = decls.get( str ); } - Arrays.sort( declarations, RuleTerminalNode.SortDeclarations.instance ); + Arrays.sort(declarations, SortDeclarations.instance); for ( int i = 0; i < declrStr.length; i++) { declrStr[i] = declarations[i].getIdentifier(); } diff --git a/drools-mvel/src/main/java/org/drools/mvel/java/PackageStore.java b/drools-mvel/src/main/java/org/drools/mvel/java/PackageStore.java index b049b812d47..4b4bac2cc5a 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/java/PackageStore.java +++ b/drools-mvel/src/main/java/org/drools/mvel/java/PackageStore.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.java; import java.util.List; diff --git a/drools-mvel/src/main/java/org/drools/mvel/util/MVELEvaluator.java b/drools-mvel/src/main/java/org/drools/mvel/util/MVELEvaluator.java index 0385c7dae84..568e16e637a 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/util/MVELEvaluator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/util/MVELEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.util; diff --git a/drools-mvel/src/main/java/org/drools/mvel/util/RawMVELEvaluator.java b/drools-mvel/src/main/java/org/drools/mvel/util/RawMVELEvaluator.java index 7855743497a..f570555bb28 100644 --- a/drools-mvel/src/main/java/org/drools/mvel/util/RawMVELEvaluator.java +++ b/drools-mvel/src/main/java/org/drools/mvel/util/RawMVELEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.util; diff --git a/drools-mvel/src/main/resources/META-INF/services/org.drools.core.base.CoreComponentsBuilder b/drools-mvel/src/main/resources/META-INF/services/org.drools.base.base.CoreComponentsBuilder similarity index 100% rename from drools-mvel/src/main/resources/META-INF/services/org.drools.core.base.CoreComponentsBuilder rename to drools-mvel/src/main/resources/META-INF/services/org.drools.base.base.CoreComponentsBuilder diff --git a/drools-mvel/src/main/resources/org/drools/mvel/java/javaInvokers.mvel b/drools-mvel/src/main/resources/org/drools/mvel/java/javaInvokers.mvel index e604c8cc423..0129c773793 100644 --- a/drools-mvel/src/main/resources/org/drools/mvel/java/javaInvokers.mvel +++ b/drools-mvel/src/main/resources/org/drools/mvel/java/javaInvokers.mvel @@ -7,10 +7,10 @@ @declare{"equals"} public boolean equals(Object object) { - if ( object == null || !(object instanceof org.drools.core.rule.accessor.CompiledInvoker) ) { + if ( object == null || !(object instanceof org.drools.base.rule.accessor.CompiledInvoker) ) { return false; } - return org.drools.mvel.asm.MethodComparator.compareBytecode( getMethodBytecode(), (( org.drools.core.rule.accessor.CompiledInvoker ) object).getMethodBytecode() ); + return org.drools.mvel.asm.MethodComparator.compareBytecode( getMethodBytecode(), (( org.drools.base.rule.accessor.CompiledInvoker ) object).getMethodBytecode() ); } @end{} @@ -21,8 +21,8 @@ @end{} @declare{"replaceDeclaration"} - public void replaceDeclaration(org.drools.core.rule.Declaration declaration, - org.drools.core.rule.Declaration resolved) { + public void replaceDeclaration(org.drools.base.rule.Declaration declaration, + org.drools.base.rule.Declaration resolved) { // this class does not cache declarations } @end{} @@ -31,32 +31,32 @@ @declare{"returnValueInvoker"} package @{package}; -public class @{invokerClassName} implements org.drools.core.rule.accessor.ReturnValueExpression, org.drools.core.rule.accessor.CompiledInvoker +public class @{invokerClassName} implements org.drools.base.rule.accessor.ReturnValueExpression, org.drools.base.rule.accessor.CompiledInvoker { private static final long serialVersionUID = 510l; public Object createContext() { return null; } - public org.drools.core.rule.accessor.FieldValue evaluate(org.drools.core.common.InternalFactHandle handle, - org.drools.core.reteoo.Tuple tuple, - org.drools.core.rule.Declaration[] previousDeclarations, - org.drools.core.rule.Declaration[] localDeclarations, - org.drools.core.common.ReteEvaluator reteEvaluator, + public org.drools.base.rule.accessor.FieldValue evaluate(org.kie.api.runtime.rule.FactHandle handle, + org.drools.base.reteoo.BaseTuple tuple, + org.drools.base.rule.Declaration[] previousDeclarations, + org.drools.base.rule.Declaration[] localDeclarations, + org.drools.base.base.ValueResolver valueResolver, Object context ) throws Exception { - @code{i0=0}@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) previousDeclarations[@{i0}].getValue( reteEvaluator, tuple ); + @code{i0=0}@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) previousDeclarations[@{i0}].getValue( valueResolver, tuple ); @code{i0++} @end{} @if{readLocalsFromTuple} - @code{i0=0}@foreach{declr : localDeclarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) localDeclarations[@{i0}].getValue( reteEvaluator, tuple ); + @code{i0=0}@foreach{declr : localDeclarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) localDeclarations[@{i0}].getValue( valueResolver, tuple ); @code{i0++} @end{} @else{} - @code{i0=0}@foreach{declr : localDeclarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) localDeclarations[@{i0}].getValue( reteEvaluator, handle ); + @code{i0=0}@foreach{declr : localDeclarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) localDeclarations[@{i0}].getValue( valueResolver, handle ); @code{i0++} @end{} @end{} - @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) reteEvaluator.getGlobal( "@{identifier}" ); + @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) valueResolver.getGlobal( "@{identifier}" ); @end{} return @{ruleClassName}.@{methodName}( @@ -81,26 +81,26 @@ public class @{invokerClassName} implements org.drools.core.rule.accessor.Return @declare{"predicateInvoker"} package @{package}; -public class @{invokerClassName} implements org.drools.core.rule.accessor.PredicateExpression, org.drools.core.rule.accessor.CompiledInvoker +public class @{invokerClassName} implements org.drools.base.rule.accessor.PredicateExpression, org.drools.base.rule.accessor.CompiledInvoker { private static final long serialVersionUID = 510l; public Object createContext() { return null; } - public boolean evaluate(org.drools.core.common.InternalFactHandle handle, - org.drools.core.reteoo.Tuple tuple, - org.drools.core.rule.Declaration[] previousDeclarations, - org.drools.core.rule.Declaration[] localDeclarations, - org.drools.core.common.ReteEvaluator reteEvaluator, + public boolean evaluate(org.kie.api.runtime.rule.FactHandle handle, + org.drools.base.reteoo.BaseTuple tuple, + org.drools.base.rule.Declaration[] previousDeclarations, + org.drools.base.rule.Declaration[] localDeclarations, + org.drools.base.base.ValueResolver valueResolver, Object context ) throws Exception { - @code{i0=0}@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) previousDeclarations[@{i0}].getValue( reteEvaluator, tuple ) ); + @code{i0=0}@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) previousDeclarations[@{i0}].getValue( valueResolver, tuple ) ); @code{i0++} @end{} - @code{i0=0}@foreach{declr : localDeclarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) localDeclarations[@{i0}].getValue( reteEvaluator, handle ); + @code{i0=0}@foreach{declr : localDeclarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) localDeclarations[@{i0}].getValue( valueResolver, handle ); @code{i0++} @end{} - @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) reteEvaluator.getGlobal( "@{identifier}" ); + @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) valueResolver.getGlobal( "@{identifier}" ); @end{} return @{ruleClassName}.@{methodName}( @@ -123,22 +123,22 @@ public class @{invokerClassName} implements org.drools.core.rule.accessor.Predic @declare{"evalInvoker"} package @{package}; -public class @{invokerClassName} implements org.drools.core.rule.accessor.EvalExpression, org.drools.core.rule.accessor.CompiledInvoker +public class @{invokerClassName} implements org.drools.base.rule.accessor.EvalExpression, org.drools.base.rule.accessor.CompiledInvoker { private static final long serialVersionUID = 510l; // no need for context public Object createContext() { return null; } - public boolean evaluate(org.drools.core.reteoo.Tuple tuple, - org.drools.core.rule.Declaration[] declarations, - org.drools.core.common.ReteEvaluator reteEvaluator, + public boolean evaluate(org.drools.base.reteoo.BaseTuple tuple, + org.drools.base.rule.Declaration[] declarations, + org.drools.base.base.ValueResolver valueResolver, Object context ) throws Exception { - @code{i0=0}@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( reteEvaluator, tuple ) ); + @code{i0=0}@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( valueResolver, tuple ) ); @code{i0++} @end{} - @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) reteEvaluator.getGlobal( "@{identifier}" ); + @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) valueResolver.getGlobal( "@{identifier}" ); @end{} return @{ruleClassName}.@{methodName}( @@ -148,7 +148,7 @@ public class @{invokerClassName} implements org.drools.core.rule.accessor.EvalEx @end{","} ); } - public org.drools.core.rule.accessor.EvalExpression clone() { + public org.drools.base.rule.accessor.EvalExpression clone() { // this class is stateless, so no cloning needed return this; } @@ -167,7 +167,7 @@ public class @{invokerClassName} implements org.drools.core.rule.accessor.EvalEx @declare{"accumulateInvoker"} package @{package}; -public class @{invokerClassName} implements org.drools.core.rule.accessor.Accumulator, org.drools.core.rule.accessor.CompiledInvoker +public class @{invokerClassName} implements org.drools.base.rule.accessor.Accumulator, org.drools.base.rule.accessor.CompiledInvoker { private static final long serialVersionUID = 510l; @@ -177,13 +177,13 @@ public class @{invokerClassName} implements org.drools.core.rule.accessor.Accumu public Object init(java.lang.Object workingMemoryContext, java.lang.Object context, - org.drools.core.reteoo.Tuple tuple, - org.drools.core.rule.Declaration[] declarations, - org.drools.core.common.ReteEvaluator reteEvaluator) { - @code{i0=0}@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( reteEvaluator, tuple ); + org.drools.base.reteoo.BaseTuple tuple, + org.drools.base.rule.Declaration[] declarations, + org.drools.base.base.ValueResolver valueResolver) { + @code{i0=0}@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( valueResolver, tuple ); @code{i0++} @end{} - @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) reteEvaluator.getGlobal( "@{identifier}" ); + @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) valueResolver.getGlobal( "@{identifier}" ); @end{} try { @@ -199,29 +199,29 @@ public class @{invokerClassName} implements org.drools.core.rule.accessor.Accumu public Object accumulate(java.lang.Object workingMemoryContext, java.lang.Object context, - org.drools.core.reteoo.Tuple tuple, - org.drools.core.common.InternalFactHandle handle, - org.drools.core.rule.Declaration[] declarations, - org.drools.core.rule.Declaration[] innerDeclarations, - org.drools.core.common.ReteEvaluator reteEvaluator) { - @code{ i0 = 0 }@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( reteEvaluator, tuple ); + org.drools.base.reteoo.BaseTuple tuple, + org.kie.api.runtime.rule.FactHandle handle, + org.drools.base.rule.Declaration[] declarations, + org.drools.base.rule.Declaration[] innerDeclarations, + org.drools.base.base.ValueResolver valueResolver) { + @code{ i0 = 0 }@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( valueResolver, tuple ); @code{ i0++ } @end{} - @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) reteEvaluator.getGlobal( "@{identifier}" ); + @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) valueResolver.getGlobal( "@{identifier}" ); @end{} @if{isMultiPattern} - @code{ i0 = 0 }@foreach{declr : innerDeclarations} @{declr.extractor.extractToClassName} @{declr.identifier} = (@{declr.extractor.extractToClassName}) innerDeclarations[@{i0}].getValue( reteEvaluator, tuple ); + @code{ i0 = 0 }@foreach{declr : innerDeclarations} @{declr.extractor.extractToClassName} @{declr.identifier} = (@{declr.extractor.extractToClassName}) innerDeclarations[@{i0}].getValue( valueResolver, tuple ); @code{ i0++ } @end{} @else{} - @code{ i0 = 0 }@foreach{declr : innerDeclarations} @{declr.extractor.extractToClassName} @{declr.identifier} = (@{declr.extractor.extractToClassName}) innerDeclarations[@{i0}].getValue( reteEvaluator, handle ); + @code{ i0 = 0 }@foreach{declr : innerDeclarations} @{declr.extractor.extractToClassName} @{declr.identifier} = (@{declr.extractor.extractToClassName}) innerDeclarations[@{i0}].getValue( valueResolver, handle ); @code{ i0++ } @end{} @end{} try { return ((@{ruleClassName}.@{className})context).accumulate( - reteEvaluator, + valueResolver, handle, innerDeclarations@if{declarations != empty},@end{} @foreach{declr : declarations} @{declr.identifier}@end{","}@if{globals != empty},@end{} @@ -234,34 +234,34 @@ public class @{invokerClassName} implements org.drools.core.rule.accessor.Accumu public boolean tryReverse(java.lang.Object workingMemoryContext, java.lang.Object context, - org.drools.core.reteoo.Tuple tuple, - org.drools.core.common.InternalFactHandle handle, + org.drools.base.reteoo.BaseTuple tuple, + org.kie.api.runtime.rule.FactHandle handle, java.lang.Object value, - org.drools.core.rule.Declaration[] declarations, - org.drools.core.rule.Declaration[] innerDeclarations, - org.drools.core.common.ReteEvaluator reteEvaluator) { + org.drools.base.rule.Declaration[] declarations, + org.drools.base.rule.Declaration[] innerDeclarations, + org.drools.base.base.ValueResolver valueResolver) { if (!supportsReverse()) { return false; } - @code{ i0 = 0 }@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( reteEvaluator, tuple ); + @code{ i0 = 0 }@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( valueResolver, tuple ); @code{ i0++ } @end{} - @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) reteEvaluator.getGlobal( "@{identifier}" ); + @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) valueResolver.getGlobal( "@{identifier}" ); @end{} @if{isMultiPattern} - @code{ i0 = 0}@foreach{declr : innerDeclarations} @{declr.extractor.extractToClassName} @{declr.identifier} = (@{declr.extractor.extractToClassName}) innerDeclarations[@{i0}].getValue( reteEvaluator, tuple ); + @code{ i0 = 0}@foreach{declr : innerDeclarations} @{declr.extractor.extractToClassName} @{declr.identifier} = (@{declr.extractor.extractToClassName}) innerDeclarations[@{i0}].getValue( valueResolver, tuple ); @code{ i0++ } @end{} @else{} - @code{ i0 = 0 }@foreach{declr : innerDeclarations} @{declr.extractor.extractToClassName} @{declr.identifier} = (@{declr.extractor.extractToClassName}) innerDeclarations[@{i0}].getValue( reteEvaluator, handle ); + @code{ i0 = 0 }@foreach{declr : innerDeclarations} @{declr.extractor.extractToClassName} @{declr.identifier} = (@{declr.extractor.extractToClassName}) innerDeclarations[@{i0}].getValue( valueResolver, handle ); @code{ i0++ } @end{} @end{} try { ((@{ruleClassName}.@{className})context).reverse( - reteEvaluator, + valueResolver, handle, value@if{globals != empty},@end{} @foreach{identifier : globals} @{identifier}@end{","}); @@ -274,13 +274,13 @@ public class @{invokerClassName} implements org.drools.core.rule.accessor.Accumu public Object getResult(java.lang.Object workingMemoryContext, java.lang.Object context, - org.drools.core.reteoo.Tuple tuple, - org.drools.core.rule.Declaration[] declarations, - org.drools.core.common.ReteEvaluator reteEvaluator) { - @code{ i0 = 0 }@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( reteEvaluator, tuple ); + org.drools.base.reteoo.BaseTuple tuple, + org.drools.base.rule.Declaration[] declarations, + org.drools.base.base.ValueResolver valueResolver) { + @code{ i0 = 0 }@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} = ( @{declr.boxedTypeName} ) declarations[@{i0}].getValue( valueResolver, tuple ); @code{ i0++ } @end{} - @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) reteEvaluator.getGlobal( "@{identifier}" ); + @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) valueResolver.getGlobal( "@{identifier}" ); @end{} try { @@ -328,13 +328,13 @@ public class @{invokerClassName} implements org.drools.core.rule.accessor.Accumu @declare{"returnValueEvaluatorInvoker"} package @{package}; -public class @{invokerClassName} implements org.drools.core.rule.accessor.ReturnValueEvaluator, org.drools.core.rule.accessor.CompiledInvoker +public class @{invokerClassName} implements org.drools.base.rule.accessor.ReturnValueEvaluator, org.drools.base.rule.accessor.CompiledInvoker { private static final long serialVersionUID = 510l; - public Object evaluate(org.drools.core.common.ReteEvaluator reteEvaluator, org.drools.core.process.ProcessContext processContext) throws Exception { + public Object evaluate(org.drools.base.base.ValueResolver valueResolver, org.drools.base.process.ProcessContext processContext) throws Exception { - @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) reteEvaluator.getGlobal( "@{identifier}" ); + @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} = ( @{type} ) valueResolver.getGlobal( "@{identifier}" ); @end{} @foreach{type : variableTypes, identifier : variables} @{type} @{identifier} = ( @{type} ) processContext.getVariable( "@{identifier}" ); diff --git a/drools-mvel/src/main/resources/org/drools/mvel/java/javaRule.mvel b/drools-mvel/src/main/resources/org/drools/mvel/java/javaRule.mvel index b548c3ab6ad..58069842ee1 100644 --- a/drools-mvel/src/main/resources/org/drools/mvel/java/javaRule.mvel +++ b/drools-mvel/src/main/resources/org/drools/mvel/java/javaRule.mvel @@ -1,5 +1,5 @@ @declare{"returnValueMethod"} -public static org.drools.core.rule.accessor.FieldValue @{methodName}(@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} @end{","} @if{localDeclarations != empty && declarations != empty},@end{} +public static org.drools.base.rule.accessor.FieldValue @{methodName}(@foreach{declr : declarations} @{declr.typeName} @{declr.identifier} @end{","} @if{localDeclarations != empty && declarations != empty},@end{} @foreach{declr : localDeclarations} @{declr.typeName} @{declr.identifier} @end{","} @if{globals != empty && (localDeclarations != empty || declarations != empty)},@end{} @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} @end{","} ) throws java.lang.Exception { return org.drools.mvel.field.FieldFactory.getInstance().getFieldValue( @{text} ); @@ -40,9 +40,9 @@ public static class @{className} implements java.io.Serializable { @{initCode} } - public Object accumulate(org.drools.core.common.ReteEvaluator reteEvaluator, - org.drools.core.common.InternalFactHandle handle, - org.drools.core.rule.Declaration[] innerDeclarations@if{declarations != empty}, @end{} + public Object accumulate(org.drools.base.base.ValueResolver valueResolver, + org.kie.api.runtime.rule.FactHandle handle, + org.drools.base.rule.Declaration[] innerDeclarations@if{declarations != empty}, @end{} @foreach{declr : declarations} @{declr.typeName} @{declr.identifier}@end{","}@if{globals != empty},@end{} @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} @end{","}@if{innerDeclarations != empty},@end{} @foreach{declr : innerDeclarations}@{declr.extractor.extractToClassName} @{declr.identifier}@end{","} @@ -60,8 +60,8 @@ public static class @{className} implements java.io.Serializable { return value; } - public void reverse(org.drools.core.common.ReteEvaluator reteEvaluator, - org.drools.core.common.InternalFactHandle handle, + public void reverse(org.drools.base.base.ValueResolver valueResolver, + org.kie.api.runtime.rule.FactHandle handle, Object value@if{globals != empty},@end{} @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} @end{","} ) throws java.lang.Exception { @@ -100,7 +100,9 @@ public static class @{className} implements java.io.Serializable { @end{} @declare{"consequenceMethod"} -public static void @{methodName}(KnowledgeHelper drools@if{declarations != empty},@end{} @foreach{declr : declarations} @{declr.typeName} @{declr.identifier}, org.kie.api.runtime.rule.FactHandle @{declr.identifier}__Handle__ @end{","}@if{globals != empty},@end{} @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} @end{","} ) throws java.lang.Exception { org.kie.api.runtime.rule.RuleContext kcontext = drools; +public static void @{methodName}(org.drools.base.rule.consequence.ConsequenceContext consequenceCtx @if{declarations != empty},@end{} @foreach{declr : declarations} @{declr.typeName} @{declr.identifier}, org.kie.api.runtime.rule.FactHandle @{declr.identifier}__Handle__ @end{","}@if{globals != empty},@end{} @foreach{type : globalTypes, identifier : globals} @{type} @{identifier} @end{","} ) throws java.lang.Exception { + org.kie.api.runtime.rule.RuleContext kcontext = (org.kie.api.runtime.rule.RuleContext) consequenceCtx; + KnowledgeHelper drools = (KnowledgeHelper) consequenceCtx; @{text} } @end{} diff --git a/drools-mvel/src/main/resources/org/drools/mvel/reports.mvel b/drools-mvel/src/main/resources/org/drools/mvel/reports.mvel index 89c215bf545..f81aaaa220c 100755 --- a/drools-mvel/src/main/resources/org/drools/mvel/reports.mvel +++ b/drools-mvel/src/main/resources/org/drools/mvel/reports.mvel @@ -11,8 +11,7 @@ User facts count : @{session.externalFactCount} ============== Nodes Info ================== @foreach{node : session.nodeInfos}Node: @{node.node} - @if{node.memoryEnabled == "true"}Memory: @if{node.factMemorySize!="-1"}facts: @{node.factMemorySize} @end{}@if{node.tupleMemorySize!="-1"}tuples: @{node.tupleMemorySize} @end{}@if{node.createdFactHandles!="-1"}created handles: @{node.createdFactHandles}@end{}@if{node.actionQueueSize!="-1"}action queue: @{node.actionQueueSize}@end{}@else{}Node memory disabled@end{} -@if{node.sinkList.empty == "false"} Connects to nodes: + @if{node.sinkList.empty == "false"} Connects to nodes: @foreach{child : node.sinkList}@{child} @end{} @end{} Rules: diff --git a/drools-mvel/src/test/java/org/drools/mvel/BuildUtilsTest.java b/drools-mvel/src/test/java/org/drools/mvel/BuildUtilsTest.java index b304efaa42f..4e0f558957b 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/BuildUtilsTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/BuildUtilsTest.java @@ -1,39 +1,41 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ValueType; -import org.drools.core.base.extractors.SelfReferenceClassFieldReader; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ValueType; +import org.drools.base.base.extractors.SelfReferenceClassFieldReader; import org.drools.core.reteoo.builder.BuildUtils; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElement.Type; -import org.drools.core.rule.Pattern; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElement.Type; +import org.drools.base.rule.Pattern; import org.drools.core.test.model.StockTick; -import org.drools.core.time.Interval; +import org.drools.base.time.Interval; import org.drools.core.time.TemporalDependencyMatrix; import org.drools.mvel.evaluators.AfterEvaluatorDefinition; import org.junit.Before; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; -import static org.drools.core.time.Interval.MAX; -import static org.drools.core.time.Interval.MIN; +import static org.drools.base.time.Interval.MAX; +import static org.drools.base.time.Interval.MIN; public class BuildUtilsTest { @@ -45,7 +47,7 @@ public void setUp() throws Exception { } /** - * Test method for {@link org.drools.core.reteoo.builder.BuildUtils#calculateTemporalDistance(org.drools.core.rule.GroupElement)}. + * Test method for {@link org.drools.core.reteoo.builder.BuildUtils#calculateTemporalDistance(GroupElement)}. */ @Test public void testCalculateTemporalDistance() { diff --git a/drools-mvel/src/test/java/org/drools/mvel/CommonTestMethodBase.java b/drools-mvel/src/test/java/org/drools/mvel/CommonTestMethodBase.java index 4f3b21ea9ce..77c9a4f8df4 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/CommonTestMethodBase.java +++ b/drools-mvel/src/test/java/org/drools/mvel/CommonTestMethodBase.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.ByteArrayInputStream; diff --git a/drools-mvel/src/test/java/org/drools/mvel/MVELCalendarCoercionTest.java b/drools-mvel/src/test/java/org/drools/mvel/MVELCalendarCoercionTest.java index 139b2a5e583..748dcaa7eef 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/MVELCalendarCoercionTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/MVELCalendarCoercionTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.text.SimpleDateFormat; diff --git a/drools-mvel/src/test/java/org/drools/mvel/MVELConstraintTestUtil.java b/drools-mvel/src/test/java/org/drools/mvel/MVELConstraintTestUtil.java index a95d2b28209..3bd52694e57 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/MVELConstraintTestUtil.java +++ b/drools-mvel/src/test/java/org/drools/mvel/MVELConstraintTestUtil.java @@ -1,27 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.util.ArrayList; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.test.model.Cheese; -import org.drools.core.util.index.IndexUtil; +import org.drools.base.util.index.ConstraintTypeOperator; import org.mvel2.MVEL; import org.mvel2.ParserConfiguration; @@ -43,39 +47,39 @@ public MVELConstraintTestUtil( String expression, Declaration declaration, ReadA } public MVELConstraintTestUtil( String expression, String operator, Declaration declaration, ReadAccessor extractor) { - this(expression, IndexUtil.ConstraintType.decode(operator), declaration, extractor); + this(expression, ConstraintTypeOperator.decode(operator), declaration, extractor); } - public MVELConstraintTestUtil( String expression, IndexUtil.ConstraintType constraintType, Declaration declaration, ReadAccessor extractor) { + public MVELConstraintTestUtil(String expression, ConstraintTypeOperator constraintType, Declaration declaration, ReadAccessor extractor) { super(new ArrayList(), expression, new Declaration[] { declaration }, null, null, constraintType, declaration, extractor, expression.contains(":=")); } @Override - protected ParserConfiguration getParserConfiguration(ReteEvaluator reteEvaluator) { + protected ParserConfiguration getParserConfiguration(ValueResolver valueResolver) { ParserConfiguration parserConfiguration = new ParserConfiguration(); parserConfiguration.addImport(Cheese.class); return parserConfiguration; } - private static IndexUtil.ConstraintType findConstraintTypeForExpression(String expression) { + private static ConstraintTypeOperator findConstraintTypeForExpression(String expression) { if (expression.contains("==")) { - return IndexUtil.ConstraintType.EQUAL; + return ConstraintTypeOperator.EQUAL; } if (expression.contains("!=")) { - return IndexUtil.ConstraintType.NOT_EQUAL; + return ConstraintTypeOperator.NOT_EQUAL; } if (expression.contains(">")) { - return IndexUtil.ConstraintType.GREATER_THAN; + return ConstraintTypeOperator.GREATER_THAN; } if (expression.contains(">=")) { - return IndexUtil.ConstraintType.GREATER_OR_EQUAL; + return ConstraintTypeOperator.GREATER_OR_EQUAL; } if (expression.contains("<")) { - return IndexUtil.ConstraintType.LESS_THAN; + return ConstraintTypeOperator.LESS_THAN; } if (expression.contains("<=")) { - return IndexUtil.ConstraintType.LESS_OR_EQUAL; + return ConstraintTypeOperator.LESS_OR_EQUAL; } - return IndexUtil.ConstraintType.UNKNOWN; + return ConstraintTypeOperator.UNKNOWN; } } diff --git a/drools-mvel/src/test/java/org/drools/mvel/MVELDateCoercionTest.java b/drools-mvel/src/test/java/org/drools/mvel/MVELDateCoercionTest.java index 64388397426..4eec3e14162 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/MVELDateCoercionTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/MVELDateCoercionTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.text.SimpleDateFormat; diff --git a/drools-mvel/src/test/java/org/drools/mvel/asm/ClassFieldInspectorTest.java b/drools-mvel/src/test/java/org/drools/mvel/asm/ClassFieldInspectorTest.java index 7d9a579140e..ed6aaee232c 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/asm/ClassFieldInspectorTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/asm/ClassFieldInspectorTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.io.IOException; diff --git a/drools-mvel/src/test/java/org/drools/mvel/asm/KnowledgeHelperFixerTest.java b/drools-mvel/src/test/java/org/drools/mvel/asm/KnowledgeHelperFixerTest.java index 949fa3751df..7f134ae42ed 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/asm/KnowledgeHelperFixerTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/asm/KnowledgeHelperFixerTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import org.junit.Test; diff --git a/drools-mvel/src/test/java/org/drools/mvel/asm/LambdaIntrospectorTest.java b/drools-mvel/src/test/java/org/drools/mvel/asm/LambdaIntrospectorTest.java index 68180f65209..75323f6476c 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/asm/LambdaIntrospectorTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/asm/LambdaIntrospectorTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.io.Serializable; diff --git a/drools-mvel/src/test/java/org/drools/mvel/asm/MethodComparerTest.java b/drools-mvel/src/test/java/org/drools/mvel/asm/MethodComparerTest.java index 087741737a9..955e5134e54 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/asm/MethodComparerTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/asm/MethodComparerTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import java.io.InputStream; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/Address.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/Address.java index 2c08c1b7ce3..2a62a69f1e7 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/Address.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/Address.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/Cheese.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/Cheese.java index a1dc0b496f3..6002a3915ec 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/Cheese.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/Cheese.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/Option.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/Option.java index 06bbd212327..d0bfa775955 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/Option.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/Option.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Option { diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java index a356782f801..13641acfe0b 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/Person.java @@ -1,22 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/PersonInterface.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/PersonInterface.java index e0544fc4baa..9f7ca9cf9db 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/PersonInterface.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/PersonInterface.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.math.BigDecimal; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/Pet.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/Pet.java index 761889f9457..0bac2215ba0 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/Pet.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/Pet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.util.HashMap; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/asm/ClassGeneratorTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/asm/ClassGeneratorTest.java index 84ddac7285c..da95070e0d3 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/asm/ClassGeneratorTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/asm/ClassGeneratorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.asm; import org.drools.mvel.asm.ClassGenerator; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/asm/InvokerGeneratorTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/asm/InvokerGeneratorTest.java index 3d850b363e0..49e2435e3de 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/asm/InvokerGeneratorTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/asm/InvokerGeneratorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.asm; import java.util.Arrays; @@ -22,7 +25,7 @@ import java.util.Map; import java.util.Set; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.drools.mvel.asm.ClassGenerator; import org.drools.mvel.asm.InvokerContext; import org.drools.mvel.asm.InvokerGenerator; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaAccumulateBuilderTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaAccumulateBuilderTest.java index 6524307bdda..a9d787379fa 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaAccumulateBuilderTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaAccumulateBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.java; import java.util.HashMap; @@ -24,8 +27,8 @@ import org.drools.compiler.compiler.DialectCompiletimeRegistry; import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.Accumulate; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.Accumulate; import org.drools.drl.ast.descr.AccumulateDescr; import org.drools.drl.ast.descr.BindingDescr; import org.drools.drl.ast.descr.PackageDescr; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaConsequenceBuilderPRAlwaysTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaConsequenceBuilderPRAlwaysTest.java index 54df6144947..9df48d8dcdc 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaConsequenceBuilderPRAlwaysTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaConsequenceBuilderPRAlwaysTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.java; import java.util.HashMap; @@ -27,16 +30,16 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.rule.builder.PatternBuilder; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.base.ClassObjectType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.ImportDeclaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.ImportDeclaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.consequence.Consequence; import org.drools.drl.ast.descr.BindingDescr; import org.drools.drl.ast.descr.RuleDescr; import org.drools.mvel.compiler.Cheese; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaConsequenceBuilderTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaConsequenceBuilderTest.java index a530182f43a..47f439c985a 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaConsequenceBuilderTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaConsequenceBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.java; import java.util.HashMap; @@ -27,16 +30,16 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.rule.builder.PatternBuilder; import org.drools.compiler.rule.builder.RuleBuildContext; -import org.drools.core.base.ClassObjectType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.ImportDeclaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.CompiledInvoker; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.ImportDeclaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.CompiledInvoker; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.consequence.Consequence; import org.drools.drl.ast.descr.BindingDescr; import org.drools.drl.ast.descr.RuleDescr; import org.drools.mvel.compiler.Cheese; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaExprAnalyzerTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaExprAnalyzerTest.java index 7528cd91cfc..4b116b27dde 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaExprAnalyzerTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaExprAnalyzerTest.java @@ -1,19 +1,20 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on Jul 1, 2007 + * 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. */ package org.drools.mvel.compiler.rule.builder.dialect.java; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaForMvelDialectConfigurationTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaForMvelDialectConfigurationTest.java index 4bf556f7daa..f00ff3c2ae2 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaForMvelDialectConfigurationTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/JavaForMvelDialectConfigurationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.rule.builder.dialect.java; import org.drools.mvel.java.JavaForMvelDialectConfiguration; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/InstrumentedDeclarationScopeResolver.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/InstrumentedDeclarationScopeResolver.java index 23abd312775..1eff08489dd 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/InstrumentedDeclarationScopeResolver.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/InstrumentedDeclarationScopeResolver.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.mvel; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.DeclarationScopeResolver; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.DeclarationScopeResolver; import java.util.Map; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELAccumulateBuilderTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELAccumulateBuilderTest.java index 9bd0efd2ec2..924a8e48d7d 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELAccumulateBuilderTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELAccumulateBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.mvel; import java.util.Collections; @@ -27,16 +30,15 @@ import org.drools.drl.ast.descr.RuleDescr; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.AccumulateNode; -import org.drools.core.reteoo.InitialFactImpl; +import org.drools.base.reteoo.InitialFactImpl; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.JoinNodeLeftTuple; import org.drools.core.reteoo.MockLeftTupleSink; import org.drools.core.reteoo.MockTupleSource; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Accumulate; +import org.drools.base.rule.Accumulate; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.drools.mvel.MVELDialectRuntimeData; @@ -133,7 +135,6 @@ public void testSimpleExpression() { accContext, tuple, f1, - null, match, ksession); diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELConsequenceBuilderTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELConsequenceBuilderTest.java index 53406f0c724..38667d6a00a 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELConsequenceBuilderTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELConsequenceBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.mvel; import java.io.InputStreamReader; @@ -23,6 +26,7 @@ import java.util.Map.Entry; import java.util.Properties; +import org.drools.base.base.ValueResolver; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; import org.drools.compiler.compiler.Dialect; @@ -34,14 +38,14 @@ import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.compiler.rule.builder.RuleBuilder; import org.drools.core.RuleBaseConfiguration; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.EmptyBetaConstraints; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.Memory; import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.LeftTuple; @@ -57,12 +61,12 @@ import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.reteoo.Sink; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.ImportDeclaration; -import org.drools.core.rule.Pattern; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.accessor.PatternExtractor; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.ImportDeclaration; +import org.drools.base.rule.Pattern; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.accessor.PatternExtractor; import org.drools.core.common.PropagationContext; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.PackageDescr; @@ -481,7 +485,7 @@ protected boolean doRemove( RuleRemovalContext context, ReteooBuilder builder) { public void assertObject(final InternalFactHandle factHandle, final PropagationContext pctx, - final ReteEvaluator reteEvaluator) { + final ValueResolver valueResolver) { } @Override @@ -502,8 +506,8 @@ public void modifyRightTuple(RightTuple rightTuple, ReteEvaluator reteEvaluator) { } - public LeftTuple createLeftTuple( InternalFactHandle factHandle, - boolean leftTupleMemoryEnabled) { + public LeftTuple createLeftTuple(InternalFactHandle factHandle, + boolean leftTupleMemoryEnabled) { return new JoinNodeLeftTuple(factHandle, this, leftTupleMemoryEnabled ); } diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELDebugTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELDebugTest.java index fb29ce5b0ff..def1708a344 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELDebugTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELDebugTest.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.mvel; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; import org.drools.drl.parser.DrlParser; import org.drools.drl.ast.descr.PackageDescr; import org.drools.drl.ast.descr.RuleDescr; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.mvel.expr.MVELConsequence; import org.junit.Test; import org.kie.internal.builder.conf.LanguageLevelOption; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELEvalBuilderTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELEvalBuilderTest.java index 7e92a70dcf3..1edbb6118bb 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELEvalBuilderTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELEvalBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.mvel; import java.util.Collections; @@ -24,22 +27,22 @@ import org.drools.compiler.compiler.DialectCompiletimeRegistry; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.core.base.ClassFieldAccessorCache; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.JoinNodeLeftTuple; import org.drools.core.reteoo.MockLeftTupleSink; import org.drools.core.reteoo.MockTupleSource; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.drl.ast.descr.EvalDescr; import org.drools.drl.ast.descr.RuleDescr; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.drools.mvel.MVELDialectRuntimeData; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELExprAnalyzerTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELExprAnalyzerTest.java index cffbdc318a7..919a07b1953 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELExprAnalyzerTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELExprAnalyzerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.mvel; import org.drools.mvel.builder.MVELExprAnalyzer; diff --git a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELSalienceBuilderTest.java b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELSalienceBuilderTest.java index 186e825a9ed..988ece816c1 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELSalienceBuilderTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/mvel/MVELSalienceBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.mvel; import java.util.Collections; @@ -24,25 +27,23 @@ import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.compiler.rule.builder.SalienceBuilder; import org.drools.core.WorkingMemory; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.PropagationContext; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.JoinNodeLeftTuple; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.JoinNodeLeftTuple; import org.drools.core.reteoo.MockLeftTupleSink; import org.drools.core.reteoo.MockTupleSource; import org.drools.core.reteoo.RuleTerminalNode; import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.Pattern; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.accessor.PatternExtractor; -import org.drools.core.rule.accessor.Salience; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.Pattern; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.accessor.PatternExtractor; +import org.drools.base.rule.accessor.Salience; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.RuleDescr; import org.drools.kiesession.rulebase.InternalKnowledgeBase; diff --git a/drools-mvel/src/test/java/org/drools/mvel/evaluators/TemporalEvaluatorFactoryTest.java b/drools-mvel/src/test/java/org/drools/mvel/evaluators/TemporalEvaluatorFactoryTest.java index 90174b20ebd..d22c95224f8 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/evaluators/TemporalEvaluatorFactoryTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/evaluators/TemporalEvaluatorFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.evaluators; import java.io.IOException; @@ -21,17 +23,17 @@ import java.io.ObjectOutput; import java.lang.reflect.Method; +import org.drools.base.base.ValueResolver; import org.drools.mvel.field.FieldFactory; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.compiler.builder.impl.EvaluatorRegistry; import org.drools.kiesession.entrypoints.DisconnectedWorkingMemoryEntryPoint; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.core.common.DefaultEventHandle; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; @@ -47,24 +49,24 @@ public class TemporalEvaluatorFactoryTest { public void testAfter() { registry.addEvaluatorDefinition( AfterEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 1, - 2, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" )); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 4, - 3, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 5, - 2, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 1, + 2, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" )); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 4, + 3, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 5, + 2, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {drool, "after", foo, Boolean.TRUE}, @@ -136,24 +138,24 @@ public void testAfter() { public void testBefore() { registry.addEvaluatorDefinition( BeforeEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 1, - 2, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 2, - 2, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 5, - 3, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 1, + 2, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 2, + 2, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 5, + 3, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {foo, "before", drool, Boolean.TRUE}, @@ -225,30 +227,30 @@ public void testBefore() { public void testCoincides() { registry.addEvaluatorDefinition( CoincidesEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 2, - 3, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 2, - 3, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 2, - 2, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 1, - 2, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 2, + 3, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 2, + 3, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 2, + 2, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 1, + 2, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {foo, "coincides", bar, Boolean.TRUE}, @@ -292,30 +294,30 @@ public void testCoincides() { public void testDuring() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 4, - 7, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 1, - 5, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 7, - 6, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 4, + 7, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 1, + 5, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 7, + 6, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {foo, "during", bar, Boolean.FALSE}, @@ -362,30 +364,30 @@ public void testDuring() { public void testIncludes() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 4, - 7, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 1, - 5, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 7, - 6, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 4, + 7, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 1, + 5, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 7, + 6, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {bar, "includes", foo, Boolean.FALSE}, @@ -432,30 +434,30 @@ public void testIncludes() { public void testFinishes() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 5, - 7, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 7, - 6, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 5, + 7, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 7, + 6, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {bar, "finishes", foo, Boolean.TRUE}, @@ -489,30 +491,30 @@ public void testFinishes() { public void testFinishedBy() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 5, - 7, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 7, - 6, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 5, + 7, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 7, + 6, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {foo, "finishedby", bar, Boolean.TRUE}, @@ -546,30 +548,30 @@ public void testFinishedBy() { public void testStarts() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 2, - 7, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 1, - 4, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 2, + 7, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 1, + 4, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {bar, "starts", foo, Boolean.TRUE}, @@ -603,30 +605,30 @@ public void testStarts() { public void testStartedBy() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 2, - 7, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 2, - 10, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 1, - 6, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 2, + 7, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 2, + 10, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 1, + 6, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {foo, "startedby", bar, Boolean.TRUE}, @@ -660,30 +662,30 @@ public void testStartedBy() { public void testMeets() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 2, - 8, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 10, - 7, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 8, - 5, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 11, - 4, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 2, + 8, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 10, + 7, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 8, + 5, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 11, + 4, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {foo, "meets", bar, Boolean.TRUE}, @@ -713,30 +715,30 @@ public void testMeets() { public void testMetBy() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 10, - 8, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 2, - 8, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 5, - 3, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 4, - 7, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 10, + 8, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 2, + 8, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 5, + 3, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 4, + 7, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {foo, "metby", bar, Boolean.TRUE}, @@ -766,30 +768,30 @@ public void testMetBy() { public void testOverlaps() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 2, - 8, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 7, - 7, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 11, - 5, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 5, - 5, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 2, + 8, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 7, + 7, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 11, + 5, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 5, + 5, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {foo, "overlaps", bar, Boolean.TRUE}, @@ -833,30 +835,30 @@ public void testOverlaps() { public void testOverlapedBy() { registry.addEvaluatorDefinition( DuringEvaluatorDefinition.class.getName() ); - EventFactHandle foo = new EventFactHandle( 1, - "foo", - 1, - 7, - 8, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle bar = new EventFactHandle( 2, - "bar", - 1, - 2, - 8, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle drool = new EventFactHandle( 1, - "drool", - 1, - 11, - 5, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); - EventFactHandle mole = new EventFactHandle( 1, - "mole", - 1, - 7, - 3, - new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle foo = new DefaultEventHandle(1, + "foo", + 1, + 7, + 8, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle bar = new DefaultEventHandle(2, + "bar", + 1, + 2, + 8, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle drool = new DefaultEventHandle(1, + "drool", + 1, + 11, + 5, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); + DefaultEventHandle mole = new DefaultEventHandle(1, + "mole", + 1, + 7, + 3, + new DisconnectedWorkingMemoryEntryPoint( "DEFAULT" ) ); final Object[][] data = { {foo, "overlappedby", bar, Boolean.TRUE}, @@ -943,9 +945,9 @@ private void checkEvaluatorMethodWith2Extractors(final ValueType valueType, final MvelEvaluator evaluator) { final boolean result = evaluator.evaluate( null, extractor, - ( EventFactHandle ) row[0], + (DefaultEventHandle) row[0], extractor, - ( EventFactHandle ) row[2] ); + (DefaultEventHandle) row[2]); final String message = "The evaluator type: [" + valueType + "] with 2 extractors incorrectly returned " + result + " for [" + row[0] + " " + row[1] + " " + row[2] + "]. It was asserted to return " + row[3]; if ( row[3] == Boolean.TRUE ) { @@ -966,7 +968,7 @@ private void checkEvaluatorMethodCachedRight(final ValueType valueType, false ); final boolean result = evaluator.evaluateCachedRight( null, context, - ( EventFactHandle ) row[2] ); + (DefaultEventHandle) row[2]); final String message = "The evaluator type: [" + valueType + "] with CachedRight incorrectly returned " + result + " for [" + row[0] + " " + row[1] + " " + row[2] + "]. It was asserted to return " + row[3]; if ( row[3] == Boolean.TRUE ) { @@ -987,7 +989,7 @@ private void checkEvaluatorMethodCachedLeft(final ValueType valueType, true ); final boolean result = evaluator.evaluateCachedLeft( null, context, - ( EventFactHandle ) row[0] ); + (DefaultEventHandle) row[0]); final String message = "The evaluator type: [" + valueType + "] with CachedLeft incorrectly returned " + result + " for [" + row[0] + " " + row[1] + " " + row[2] + "]. It was asserted to return " + row[3]; if ( row[3] == Boolean.TRUE ) { @@ -1006,7 +1008,7 @@ private void checkEvaluatorMethodWithFieldValue(final ValueType valueType, try { evaluator.evaluate( null, extractor, - ( EventFactHandle ) row[0], + (DefaultEventHandle) row[0], value ); } catch ( RuntimeException e ) { exc = e; @@ -1030,9 +1032,9 @@ private VariableRestriction.VariableContextEntry getContextEntry(final Evaluator declaration, evaluator ); if (left) { - context.timestamp = ((EventFactHandle) row[2]).getStartTimestamp(); + context.timestamp = ((DefaultEventHandle) row[2]).getStartTimestamp(); } else { - context.timestamp = ((EventFactHandle) row[0]).getEndTimestamp(); + context.timestamp = ((DefaultEventHandle) row[0]).getEndTimestamp(); } return context; } @@ -1042,9 +1044,9 @@ private VariableRestriction.VariableContextEntry getContextEntry(final Evaluator declaration, evaluator ); if (left) { - context.timestamp = ((EventFactHandle) row[2]).getEndTimestamp(); + context.timestamp = ((DefaultEventHandle) row[2]).getEndTimestamp(); } else { - context.timestamp = ((EventFactHandle) row[0]).getStartTimestamp(); + context.timestamp = ((DefaultEventHandle) row[0]).getStartTimestamp(); } return context; } @@ -1054,11 +1056,11 @@ private VariableRestriction.VariableContextEntry getContextEntry(final Evaluator declaration, evaluator ); if (left) { - context.startTS = ((EventFactHandle) row[2]).getStartTimestamp(); - context.endTS = ((EventFactHandle) row[2]).getEndTimestamp(); + context.startTS = ((DefaultEventHandle) row[2]).getStartTimestamp(); + context.endTS = ((DefaultEventHandle) row[2]).getEndTimestamp(); } else { - context.startTS = ((EventFactHandle) row[0]).getStartTimestamp(); - context.endTS = ((EventFactHandle) row[0]).getEndTimestamp(); + context.startTS = ((DefaultEventHandle) row[0]).getStartTimestamp(); + context.endTS = ((DefaultEventHandle) row[0]).getEndTimestamp(); } return context; } @@ -1166,22 +1168,22 @@ public boolean isSelfReference() { return true; } - public boolean getBooleanValue(ReteEvaluator reteEvaluator, + public boolean getBooleanValue(ValueResolver valueResolver, final Object object) { return object != null ? ((Boolean) object).booleanValue() : false; } - public byte getByteValue(ReteEvaluator reteEvaluator, + public byte getByteValue(ValueResolver valueResolver, final Object object) { return object != null ? ((Number) object).byteValue() : (byte) 0; } - public char getCharValue(ReteEvaluator reteEvaluator, + public char getCharValue(ValueResolver valueResolver, final Object object) { return object != null ? ((Character) object).charValue() : '\0'; } - public double getDoubleValue(ReteEvaluator reteEvaluator, + public double getDoubleValue(ValueResolver valueResolver, final Object object) { return object != null ? ((Number) object).doubleValue() : 0.0; } @@ -1194,22 +1196,22 @@ public String getExtractToClassName() { return null; } - public float getFloatValue(ReteEvaluator reteEvaluator, + public float getFloatValue(ValueResolver valueResolver, final Object object) { return object != null ? ((Number) object).floatValue() : (float) 0.0; } - public int getHashCode(ReteEvaluator reteEvaluator, + public int getHashCode(ValueResolver valueResolver, final Object object) { return 0; } - public int getIntValue(ReteEvaluator reteEvaluator, + public int getIntValue(ValueResolver valueResolver, final Object object) { return object != null ? ((Number) object).intValue() : 0; } - public long getLongValue(ReteEvaluator reteEvaluator, + public long getLongValue(ValueResolver valueResolver, final Object object) { return object != null ? ((Number) object).longValue() : 0; } @@ -1222,17 +1224,17 @@ public String getNativeReadMethodName() { return null; } - public short getShortValue(ReteEvaluator reteEvaluator, + public short getShortValue(ValueResolver valueResolver, final Object object) { return object != null ? ((Number) object).shortValue() : (short) 0; } - public Object getValue(ReteEvaluator reteEvaluator, + public Object getValue(ValueResolver valueResolver, final Object object) { return object; } - public boolean isNullValue(ReteEvaluator reteEvaluator, + public boolean isNullValue(ValueResolver valueResolver, final Object object) { return object == null; } diff --git a/drools-mvel/src/test/java/org/drools/mvel/field/FieldFactoryTest.java b/drools-mvel/src/test/java/org/drools/mvel/field/FieldFactoryTest.java index 18bcdeae740..1d62ec02953 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/field/FieldFactoryTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/field/FieldFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.field; import java.math.BigDecimal; @@ -22,8 +24,8 @@ import java.util.Date; import java.util.Locale; -import org.drools.core.base.ValueType; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.base.ValueType; +import org.drools.base.rule.accessor.FieldValue; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; diff --git a/drools-mvel/src/test/java/org/drools/mvel/field/FieldValueTest.java b/drools-mvel/src/test/java/org/drools/mvel/field/FieldValueTest.java index 589c8943fdb..d1722a22f8f 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/field/FieldValueTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/field/FieldValueTest.java @@ -1,22 +1,24 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.field; -import org.drools.core.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.FieldValue; import org.junit.Before; import org.junit.Test; diff --git a/drools-mvel/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java b/drools-mvel/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java index f938158679a..697e8808d74 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java +++ b/drools-mvel/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-mvel/src/test/java/org/drools/mvel/integrationtests/LogicTransformerTest.java b/drools-mvel/src/test/java/org/drools/mvel/integrationtests/LogicTransformerTest.java index 82ccc7d777a..ec98c674545 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/integrationtests/LogicTransformerTest.java +++ b/drools-mvel/src/test/java/org/drools/mvel/integrationtests/LogicTransformerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.File; @@ -22,14 +24,14 @@ import java.io.IOException; import java.util.Collections; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ObjectType; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElementFactory; -import org.drools.core.rule.InvalidPatternException; -import org.drools.core.rule.InvalidRuleException; -import org.drools.core.rule.LogicTransformer; -import org.drools.core.rule.Pattern; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ObjectType; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElementFactory; +import org.drools.base.rule.InvalidPatternException; +import org.drools.base.rule.InvalidRuleException; +import org.drools.base.rule.LogicTransformer; +import org.drools.base.rule.Pattern; import org.drools.core.util.DroolsStreamUtils; import org.junit.Test; diff --git a/drools-mvel/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java b/drools-mvel/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java index 4ca8c2af912..15d7e6e0edd 100644 --- a/drools-mvel/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java +++ b/drools-mvel/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.IOException; diff --git a/drools-mvel/src/test/resources/logback-test.xml b/drools-mvel/src/test/resources/logback-test.xml index 7bdfe15c127..6f99a4f0d2a 100644 --- a/drools-mvel/src/test/resources/logback-test.xml +++ b/drools-mvel/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-persistence/drools-persistence-api/pom.xml b/drools-persistence/drools-persistence-api/pom.xml index d8e0d7af5b7..c5b64655419 100644 --- a/drools-persistence/drools-persistence-api/pom.xml +++ b/drools-persistence/drools-persistence-api/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-persistence - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-persistence-api diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/OrderedTransactionSynchronization.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/OrderedTransactionSynchronization.java index 670d1ffaf61..cd84d03ea2b 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/OrderedTransactionSynchronization.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/OrderedTransactionSynchronization.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.api; public abstract class OrderedTransactionSynchronization implements TransactionSynchronization, Comparable { diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContext.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContext.java index f3580032efc..7d37f55a3f5 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContext.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.api; import org.kie.api.runtime.KieSession; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java index d64ee3b8e37..1037ab3c35d 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistenceContextManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.api; import org.kie.api.runtime.ExecutableRunner; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistentSession.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistentSession.java index 5563ab9e01b..f27e8b13171 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistentSession.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistentSession.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat Inc - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.persistence.api; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistentWorkItem.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistentWorkItem.java index 0d25c0b7a85..70b424d6f48 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistentWorkItem.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/PersistentWorkItem.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat Inc - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.persistence.api; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/SessionNotFoundException.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/SessionNotFoundException.java index b049f6ddb76..0ec01adcfe8 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/SessionNotFoundException.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/SessionNotFoundException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.persistence.api; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionAware.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionAware.java index 2e566144bc0..3c4ba7c5a6a 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionAware.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionAware.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.api; public interface TransactionAware { diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManager.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManager.java index a3e84da2ab0..136e4cbe913 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManager.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.persistence.api; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManagerFactory.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManagerFactory.java index 8bff8455496..f9587ec60ac 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManagerFactory.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManagerFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.persistence.api; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManagerHelper.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManagerHelper.java index e870d3a6f92..3b0e4a5ef8e 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManagerHelper.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionManagerHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.api; import java.util.Collections; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronization.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronization.java index 2b34bd88370..86189eb7927 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronization.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronization.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.api; public interface TransactionSynchronization { diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationContainer.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationContainer.java index 0ae8b00a55e..1fb9c5bef93 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationContainer.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationContainer.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.api; import org.slf4j.Logger; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java index 5d4a3b36d47..647c178f2b2 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/TransactionSynchronizationRegistryHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.api; import javax.transaction.TransactionSynchronizationRegistry; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/Transformable.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/Transformable.java index 0d06269116a..6a05404658b 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/Transformable.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/api/Transformable.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.api; public interface Transformable { diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java index 9ed3486b10e..967365339f9 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.persistence.jta; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java index 7572b105d10..e7c3b5eb52f 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionManagerFactory.java @@ -1,16 +1,20 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. + * 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. */ package org.drools.persistence.jta; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java index d1d8dcc3a9d..fa387cd3a4d 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/JtaTransactionSynchronizationAdapter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.jta; import javax.transaction.Status; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java index 228078eec75..7673604692a 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/jta/TransactionLockInterceptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.persistence.jta; import java.util.Set; diff --git a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/processinstance/InternalWorkItemManager.java b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/processinstance/InternalWorkItemManager.java index dd9d6edd2a9..48bdc44fe1c 100644 --- a/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/processinstance/InternalWorkItemManager.java +++ b/drools-persistence/drools-persistence-api/src/main/java/org/drools/persistence/processinstance/InternalWorkItemManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.persistence.processinstance; import java.util.Set; diff --git a/drools-persistence/drools-persistence-jpa/pom.xml b/drools-persistence/drools-persistence-jpa/pom.xml index a694f0fabd5..7706d4c6556 100644 --- a/drools-persistence/drools-persistence-jpa/pom.xml +++ b/drools-persistence/drools-persistence-jpa/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-persistence - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-persistence-jpa diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/PersistableRunner.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/PersistableRunner.java index 152f27e3822..0e39c934786 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/PersistableRunner.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/PersistableRunner.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.persistence; @@ -27,7 +30,6 @@ import org.drools.commands.fluent.PseudoClockRunner; import org.drools.commands.impl.AbstractInterceptor; import org.drools.commands.impl.CommandBasedEntryPoint; -import org.drools.core.SessionConfiguration; import org.drools.core.common.EndOperationListener; import org.drools.core.common.InternalKnowledgeRuntime; import org.drools.core.common.InternalWorkingMemory; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/SessionMarshallingHelper.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/SessionMarshallingHelper.java index a7103ec1a4d..9d45e075dee 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/SessionMarshallingHelper.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/SessionMarshallingHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence; import java.io.ByteArrayInputStream; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java index d71fbda7278..82114ee5644 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/TriggerUpdateTransactionSynchronization.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence; import java.util.Set; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java index 52cc91c1367..ec5069ad65a 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/SessionInfo.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.info; import java.util.Date; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java index 65e07c870cc..3db72569d34 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/info/WorkItemInfo.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.info; import java.io.ByteArrayInputStream; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java index a36e1b48430..0e2bf94fd71 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/AbstractPersistenceContextManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.persistence.jpa; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JDKCallableJobCommand.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JDKCallableJobCommand.java index 99ffaf526d7..c0346e3597d 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JDKCallableJobCommand.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JDKCallableJobCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.jpa; import org.kie.api.command.ExecutableCommand; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaJDKTimerService.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaJDKTimerService.java index 7abcecc4067..da779a80fbd 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaJDKTimerService.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaJDKTimerService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.persistence.jpa; import java.util.Collection; @@ -26,7 +28,7 @@ import org.drools.core.time.JobContext; import org.drools.core.time.SelfRemovalJob; import org.drools.core.time.SelfRemovalJobContext; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.drools.core.time.impl.DefaultTimerJobInstance; import org.drools.core.time.impl.JDKTimerService; import org.drools.core.time.impl.TimerJobInstance; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java index 9cf810eef75..08c24f246f3 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.jpa; import java.lang.reflect.Field; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java index 407ff42b024..2663169c075 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.persistence.jpa; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaTimeJobFactoryManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaTimeJobFactoryManager.java index 3b7d1e06510..d7b225cab9d 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaTimeJobFactoryManager.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaTimeJobFactoryManager.java @@ -1,27 +1,30 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.jpa; import org.kie.api.runtime.ExecutableRunner; import org.drools.core.time.InternalSchedulerService; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; +import org.drools.base.time.JobHandle; import org.drools.core.time.SelfRemovalJob; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.drools.core.time.impl.CommandServiceTimerJobFactoryManager; import org.drools.core.time.impl.ThreadSafeTrackableTimeJobFactoryManager; import org.drools.core.time.impl.TimerJobInstance; @@ -40,6 +43,7 @@ public ExecutableRunner getRunner() { return runner; } + @Override public TimerJobInstance createTimerJobInstance(Job job, JobContext ctx, Trigger trigger, diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaTimerJobInstance.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaTimerJobInstance.java index 50c89f53066..b25d76849ac 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaTimerJobInstance.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaTimerJobInstance.java @@ -1,27 +1,30 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.jpa; import org.kie.api.runtime.ExecutableRunner; import org.drools.core.time.InternalSchedulerService; import org.drools.core.time.Job; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; +import org.drools.base.time.JobHandle; import org.drools.core.time.TimerService; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.drools.core.time.impl.CommandServiceTimerJobFactoryManager; import org.drools.core.time.impl.DefaultTimerJobInstance; import org.slf4j.Logger; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/KnowledgeStoreServiceImpl.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/KnowledgeStoreServiceImpl.java index d28de17f5be..686151ee91b 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/KnowledgeStoreServiceImpl.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/KnowledgeStoreServiceImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.persistence.jpa; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java index b5bea39c668..ec5e1d68a5b 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/OptimisticLockRetryInterceptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.persistence.jpa; import org.drools.commands.impl.AbstractInterceptor; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java index 231e8e2ee96..31c97addfb7 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/EntityPersister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.persistence.jpa.marshaller; import java.util.ArrayList; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java index 062523d9f12..9e4b4469f6b 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/JPAPlaceholderResolverStrategy.java @@ -1,17 +1,19 @@ -/* - * Copyright 2010 salaboy. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.persistence.jpa.marshaller; @@ -30,7 +32,7 @@ import javax.persistence.Persistence; import javax.persistence.metamodel.EntityType; import javax.persistence.metamodel.Metamodel; -import org.drools.core.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectInputStream; import org.drools.persistence.api.TransactionAware; import org.drools.persistence.api.TransactionManager; import org.drools.serialization.protobuf.ProtobufProcessMarshallerWriteContext; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java index 604fe48ceaa..5448b4c2ebb 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/MappedVariable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.persistence.jpa.marshaller; import java.io.Serializable; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java index 445d9eb17f8..1cbe51e3229 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/marshaller/VariableEntity.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.persistence.jpa.marshaller; import java.io.Serializable; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/processinstance/JPAWorkItemManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/processinstance/JPAWorkItemManager.java index 5da7f96d438..6526270e597 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/processinstance/JPAWorkItemManager.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/processinstance/JPAWorkItemManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.jpa.processinstance; import org.drools.core.WorkItemHandlerNotFoundException; @@ -232,7 +235,7 @@ public WorkItem getWorkItem( long id ) { private WorkItem internalGetWorkItem( WorkItemInfo workItemInfo ) { Environment env = kruntime.getEnvironment(); - WorkItem workItem = workItemInfo.getWorkItem( env, (InternalKnowledgeBase) kruntime.getKieBase() ); + WorkItem workItem = workItemInfo.getWorkItem( env, (InternalKnowledgeBase) kruntime.getKieBase()); return workItem; } diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/processinstance/JPAWorkItemManagerFactory.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/processinstance/JPAWorkItemManagerFactory.java index ece398ec92d..5c996d5ab30 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/processinstance/JPAWorkItemManagerFactory.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/processinstance/JPAWorkItemManagerFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.jpa.processinstance; import org.drools.core.common.InternalKnowledgeRuntime; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/EnvironmentBuilder.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/EnvironmentBuilder.java index a46e1fd4cee..da11c7e629a 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/EnvironmentBuilder.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/EnvironmentBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.map; import org.drools.persistence.api.PersistenceContextManager; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/KnowledgeSessionStorage.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/KnowledgeSessionStorage.java index 82cabb1223a..17b24a9f3d1 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/KnowledgeSessionStorage.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/KnowledgeSessionStorage.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.map; import org.drools.persistence.api.PersistentSession; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/KnowledgeSessionStorageEnvironmentBuilder.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/KnowledgeSessionStorageEnvironmentBuilder.java index 84f0ead5645..efc9f2c4549 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/KnowledgeSessionStorageEnvironmentBuilder.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/KnowledgeSessionStorageEnvironmentBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.map; import org.drools.persistence.api.PersistenceContextManager; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/ManualTransactionManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/ManualTransactionManager.java index 5b178aefca8..8fbac3a3383 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/ManualTransactionManager.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/ManualTransactionManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.persistence.map; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/MapBasedPersistenceContext.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/MapBasedPersistenceContext.java index 731ca72206e..e4212a5d463 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/MapBasedPersistenceContext.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/MapBasedPersistenceContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.map; import java.util.ArrayList; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/MapPersistenceContextManager.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/MapPersistenceContextManager.java index 2a208c43766..e2f6f3e3c1a 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/MapPersistenceContextManager.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/MapPersistenceContextManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.map; import org.drools.persistence.api.PersistenceContext; diff --git a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/NonTransactionalPersistentSession.java b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/NonTransactionalPersistentSession.java index d4b4b8a4fe9..f0e854ad561 100644 --- a/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/NonTransactionalPersistentSession.java +++ b/drools-persistence/drools-persistence-jpa/src/main/java/org/drools/persistence/map/NonTransactionalPersistentSession.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.persistence.map; import java.util.List; diff --git a/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml b/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml index 6c29cb4771f..36800ba01f5 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml +++ b/drools-persistence/drools-persistence-jpa/src/test/filtered-resources/META-INF/persistence.xml @@ -1,4 +1,24 @@ + + \ No newline at end of file diff --git a/drools-persistence/drools-persistence-jpa/src/test/resources/META-INF/kmodule.xml b/drools-persistence/drools-persistence-jpa/src/test/resources/META-INF/kmodule.xml index 958e554b4c5..254dac17369 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/resources/META-INF/kmodule.xml +++ b/drools-persistence/drools-persistence-jpa/src/test/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-persistence/drools-persistence-jpa/src/test/resources/jndi.properties b/drools-persistence/drools-persistence-jpa/src/test/resources/jndi.properties index 6594b914b11..71b1c389405 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/resources/jndi.properties +++ b/drools-persistence/drools-persistence-jpa/src/test/resources/jndi.properties @@ -1,3 +1,22 @@ +# +# 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. +# + java.naming.factory.initial=org.kie.test.util.db.CloseSafeMemoryContextFactory org.osjava.sj.root=target/test-classes/config org.osjava.jndi.delimiter=/ diff --git a/drools-persistence/drools-persistence-jpa/src/test/resources/logback-test.xml b/drools-persistence/drools-persistence-jpa/src/test/resources/logback-test.xml index 746ec95fc75..9444605a1e6 100644 --- a/drools-persistence/drools-persistence-jpa/src/test/resources/logback-test.xml +++ b/drools-persistence/drools-persistence-jpa/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-persistence/pom.xml b/drools-persistence/pom.xml index 9a0212adec0..00bef440d26 100644 --- a/drools-persistence/pom.xml +++ b/drools-persistence/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-reliability/.gitignore b/drools-reliability/.gitignore new file mode 100644 index 00000000000..a5e7ecdc52e --- /dev/null +++ b/drools-reliability/.gitignore @@ -0,0 +1 @@ +h2mvstore.db diff --git a/drools-reliability/drools-reliability-core/pom.xml b/drools-reliability/drools-reliability-core/pom.xml index d6fcbccf8f9..c7068938535 100644 --- a/drools-reliability/drools-reliability-core/pom.xml +++ b/drools-reliability/drools-reliability-core/pom.xml @@ -1,15 +1,34 @@ + org.drools drools-reliability - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 - org.drools drools-reliability-core Drools :: Reliability :: Core diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BaseStoredEvent.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BaseStoredEvent.java new file mode 100644 index 00000000000..108820d460d --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BaseStoredEvent.java @@ -0,0 +1,53 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +import org.drools.core.common.DefaultEventHandle; +import org.drools.core.common.InternalWorkingMemoryEntryPoint; +import org.drools.core.rule.accessor.FactHandleFactory; + +public abstract class BaseStoredEvent extends BaseStoredObject implements StoredEvent { + + protected final long timestamp; + protected final long duration; + + protected BaseStoredEvent(boolean propagated, long timestamp, long duration) { + super(propagated); + this.timestamp = timestamp; + this.duration = duration; + } + + @Override + public long getTimestamp() { + return timestamp; + } + + @Override + public long getDuration() { + return duration; + } + + @Override + public long repropagate(InternalWorkingMemoryEntryPoint ep) { + FactHandleFactory fhFactory = ep.getHandleFactory(); + DefaultEventHandle eFh = fhFactory.createEventFactHandle(fhFactory.getNextId(), getObject(), fhFactory.getNextRecency(), ep, timestamp, duration); + ep.insert(eFh); + return eFh.getId(); + } +} \ No newline at end of file diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BaseStoredObject.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BaseStoredObject.java new file mode 100644 index 00000000000..f48f1c52210 --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BaseStoredObject.java @@ -0,0 +1,45 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +import java.io.Serializable; + +import org.drools.core.common.InternalWorkingMemoryEntryPoint; +import org.kie.api.runtime.rule.FactHandle; + +public abstract class BaseStoredObject implements StoredObject, + Serializable { + + protected final boolean propagated; + + protected BaseStoredObject(boolean propagated) { + this.propagated = propagated; + } + + @Override + public boolean isPropagated() { + return propagated; + } + + @Override + public long repropagate(InternalWorkingMemoryEntryPoint ep) { + FactHandle factHandle = ep.insert(getObject()); + return factHandle.getId(); + } +} \ No newline at end of file diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BatchingStorageDecorator.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BatchingStorageDecorator.java index d756d921656..8e6ba2b30b0 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BatchingStorageDecorator.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/BatchingStorageDecorator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.Storage; diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/FullReliableObjectStore.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/FullReliableObjectStore.java index 35f85e726ce..94cd8bf0274 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/FullReliableObjectStore.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/FullReliableObjectStore.java @@ -1,27 +1,69 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; +import org.drools.core.common.IdentityObjectStore; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.MapObjectStore; import org.drools.core.common.Storage; -public class FullReliableObjectStore extends MapObjectStore { +public class FullReliableObjectStore extends IdentityObjectStore { + + private final transient Storage storage; + + public FullReliableObjectStore(){ + super(); + this.storage = null; + } + + public FullReliableObjectStore(Storage storage) { + super(); + this.storage = storage; + } + + @Override + public void addHandle(InternalFactHandle handle, Object object) { + super.addHandle(handle, object); + putIntoPersistedCache(handle, handle.hasMatches()); + } + + @Override + public void removeHandle(InternalFactHandle handle) { + removeFromPersistedCache(handle.getObject()); + super.removeHandle(handle); + } + + void putIntoPersistedCache(InternalFactHandle handle, boolean propagated) { + Object object = handle.getObject(); + StoredObject storedObject = new SerializableStoredObject(object, propagated); + storage.put(getHandleForObject(object).getId(), storedObject); + } + + void removeFromPersistedCache(Object object) { + InternalFactHandle fh = getHandleForObject(object); + if (fh != null) { + storage.remove(fh.getId()); + } + } - public FullReliableObjectStore(Storage fhStorage) { - super(fhStorage); + public void reInit() { + for (StoredObject entry : storage.values()) { + super.addHandle(getHandleForObject(entry.getObject()),entry.getObject()); + } } } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReferenceWireable.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReferenceWireable.java new file mode 100644 index 00000000000..1159d8bf0cf --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReferenceWireable.java @@ -0,0 +1,28 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +import org.drools.core.common.Storage; + +public interface ReferenceWireable { + + void addReferencedObject(String fieldName, Long refObjectKey); + + StoredObject updateReferencedObjects(Storage storage); +} diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliabilityConfigurationException.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliabilityConfigurationException.java index 80bf9925c28..4980547a4a7 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliabilityConfigurationException.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliabilityConfigurationException.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; public class ReliabilityConfigurationException extends RuntimeException { diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliabilityRuntimeException.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliabilityRuntimeException.java new file mode 100644 index 00000000000..45ed096988a --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliabilityRuntimeException.java @@ -0,0 +1,30 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +public class ReliabilityRuntimeException extends RuntimeException { + + public ReliabilityRuntimeException(String message) { + super(message); + } + + public ReliabilityRuntimeException(Throwable cause) { + super(cause); + } +} diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableAgenda.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableAgenda.java index 01d2bc2d2cf..cfc4b4ec9a1 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableAgenda.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableAgenda.java @@ -1,52 +1,45 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Storage; -import org.drools.core.impl.RuleBase; import org.drools.core.phreak.PropagationList; import org.drools.kiesession.agenda.DefaultAgenda; -public class ReliableAgenda extends DefaultAgenda { +import static org.drools.reliability.core.ReliablePropagationList.PROPAGATION_LIST; - public ReliableAgenda() { } - - public ReliableAgenda(RuleBase kBase) { - super( kBase ); - } - - public ReliableAgenda(RuleBase kBase, boolean initMain) { - super( kBase, initMain ); - } +public class ReliableAgenda extends DefaultAgenda { - @Override - public void setWorkingMemory(InternalWorkingMemory workingMemory) { - super.setWorkingMemory(workingMemory); + public ReliableAgenda(InternalWorkingMemory workingMemory) { + super( workingMemory ); } @Override protected PropagationList createPropagationList() { Storage componentsStorage = StorageManagerFactory.get().getStorageManager().getOrCreateStorageForSession(workingMemory, "components"); - ReliablePropagationList propagationList = (ReliablePropagationList) componentsStorage.get("PropagationList"); + ReliablePropagationList propagationList = (ReliablePropagationList) componentsStorage.get(PROPAGATION_LIST); if (propagationList == null) { propagationList = new ReliablePropagationList(workingMemory); - componentsStorage.put("PropagationList", propagationList); + componentsStorage.put(PROPAGATION_LIST, propagationList); } else { - propagationList = new ReliablePropagationList(workingMemory, propagationList); + propagationList.setReteEvaluator(workingMemory); } return propagationList; } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableAgendaFactory.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableAgendaFactory.java index 819e59a8923..b910973b2d3 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableAgendaFactory.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableAgendaFactory.java @@ -1,25 +1,27 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.AgendaFactory; import org.drools.core.common.InternalAgenda; -import org.drools.core.impl.RuleBase; +import org.drools.core.common.InternalWorkingMemory; import java.io.Serializable; @@ -33,11 +35,7 @@ public static AgendaFactory getInstance() { private ReliableAgendaFactory() { } - public InternalAgenda createAgenda(RuleBase kBase, boolean initMain) { - return new ReliableAgenda( kBase, initMain ); - } - - public InternalAgenda createAgenda(RuleBase kBase) { - return new ReliableAgenda( kBase ); + public InternalAgenda createAgenda(InternalWorkingMemory workingMemory) { + return new ReliableAgenda( workingMemory ); } } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableGlobalResolver.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableGlobalResolver.java index 03badf78e8e..b4bb231ea10 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableGlobalResolver.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableGlobalResolver.java @@ -1,31 +1,33 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.Storage; -import org.drools.core.rule.accessor.GlobalResolver; +import org.drools.base.rule.accessor.GlobalResolver; import java.util.HashMap; import java.util.Map; public class ReliableGlobalResolver implements GlobalResolver { - private final Storage storage; + protected final Storage storage; - private final Map toBeRefreshed = new HashMap<>(); + protected final Map toBeRefreshed = new HashMap<>(); public ReliableGlobalResolver(Storage storage) { this.storage = storage; diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableGlobalResolverFactory.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableGlobalResolverFactory.java new file mode 100644 index 00000000000..7e669086044 --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableGlobalResolverFactory.java @@ -0,0 +1,88 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +import org.drools.core.common.Storage; +import org.kie.api.internal.utils.KieService; + +public interface ReliableGlobalResolverFactory extends KieService { + + ReliableGlobalResolver createReliableGlobalResolver(Storage storage); + + class Tag { + + private Tag() { + // hide constructor + } + + private static String reliabilityPersistanceLayer = null; + } + + class Holder { + + private static final ReliableGlobalResolverFactory INSTANCE = createInstance(); + + private Holder() { + } + + static ReliableGlobalResolverFactory createInstance() { + ReliableGlobalResolverFactory factory = KieService.loadWithTag(ReliableGlobalResolverFactory.class, Tag.reliabilityPersistanceLayer); + if (factory == null) { + return new ReliableGlobalResolverFactoryImpl(); + } + return factory; + } + } + + static ReliableGlobalResolverFactory get() { + return ReliableGlobalResolverFactory.Holder.INSTANCE; + } + + /** + * Use this method first to specify reliabilityPersistanceLayer when you have dependencies covering multiple persistence layers (e.g. infinispan and core) + * Once a factory is instantiated, get() is enough to get the same instance. + */ + static ReliableGlobalResolverFactory get(String reliabilityPersistanceLayer) { + if (Tag.reliabilityPersistanceLayer != null && !Tag.reliabilityPersistanceLayer.equals(reliabilityPersistanceLayer)) { + throw new IllegalStateException("You must call the same service with the same reliabilityPersistanceLayer. " + + "Previous reliabilityPersistanceLayer was " + Tag.reliabilityPersistanceLayer + + " and current reliabilityPersistanceLayer is " + reliabilityPersistanceLayer); + } + Tag.reliabilityPersistanceLayer = reliabilityPersistanceLayer; + return ReliableGlobalResolverFactory.Holder.INSTANCE; + } + + static class ReliableGlobalResolverFactoryImpl implements ReliableGlobalResolverFactory { + + @Override + public ReliableGlobalResolver createReliableGlobalResolver(Storage storage) { + return new ReliableGlobalResolver(storage); + } + + @Override + public int servicePriority() { + return 0; + } + + @Override + public String serviceTag() { + return "core"; + } + } +} diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableKieSession.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableKieSession.java index 35b1c4506a7..7a400078b3b 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableKieSession.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableKieSession.java @@ -1,22 +1,30 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; +import org.drools.core.common.Storage; import org.kie.api.runtime.KieSession; public interface ReliableKieSession extends KieSession { void safepoint(); + + Storage getActivationsStorage(); + + void setActivationsStorage(Storage activationsStorage); } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableNamedEntryPoint.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableNamedEntryPoint.java index ea3c865a66b..8be2a9ef747 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableNamedEntryPoint.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableNamedEntryPoint.java @@ -1,25 +1,28 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.ObjectStore; import org.drools.core.common.ReteEvaluator; import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.kie.api.runtime.conf.PersistedSessionOption; @@ -33,7 +36,8 @@ public ReliableNamedEntryPoint(EntryPointId entryPoint, EntryPointNode entryPoin protected ObjectStore createObjectStore(EntryPointId entryPoint, RuleBaseConfiguration conf, ReteEvaluator reteEvaluator) { boolean storesOnlyStrategy = reteEvaluator.getSessionConfiguration().getPersistedSessionOption().getPersistenceStrategy() == PersistedSessionOption.PersistenceStrategy.STORES_ONLY; return storesOnlyStrategy ? - SimpleReliableObjectStoreFactory.get().createSimpleReliableObjectStore(StorageManagerFactory.get().getStorageManager().getOrCreateStorageForSession(reteEvaluator, "ep" + getEntryPointId())) : + SimpleReliableObjectStoreFactory.get().createSimpleReliableObjectStore(StorageManagerFactory.get().getStorageManager().getOrCreateStorageForSession(reteEvaluator, "ep" + getEntryPointId()), + reteEvaluator.getSessionConfiguration().getPersistedSessionOption()) : new FullReliableObjectStore(StorageManagerFactory.get().getStorageManager().getOrCreateStorageForSession(reteEvaluator, "ep" + getEntryPointId())); } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableNamedEntryPointFactory.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableNamedEntryPointFactory.java index aaafdaec494..f51d7fdebf5 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableNamedEntryPointFactory.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableNamedEntryPointFactory.java @@ -1,23 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.ReteEvaluator; import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.drools.kiesession.entrypoints.NamedEntryPointFactory; diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePhreakWorkingMemoryFactory.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePhreakWorkingMemoryFactory.java index 9a1f1f99819..936272d6450 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePhreakWorkingMemoryFactory.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePhreakWorkingMemoryFactory.java @@ -1,22 +1,24 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.SessionConfiguration; -import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.rule.accessor.FactHandleFactory; import org.drools.kiesession.factory.PhreakWorkingMemoryFactory; @@ -38,7 +40,7 @@ public InternalWorkingMemory createWorkingMemory(long id, InternalKnowledgeBase } @Override - public InternalWorkingMemory createWorkingMemory(long id, InternalKnowledgeBase kBase, FactHandleFactory handleFactory, long propagationContext, SessionConfiguration config, InternalAgenda agenda, Environment environment) { - return new ReliableStatefulKnowledgeSessionImpl(id, kBase, handleFactory, propagationContext, config, agenda, environment); + public InternalWorkingMemory createWorkingMemory(long id, InternalKnowledgeBase kBase, FactHandleFactory handleFactory, long propagationContext, SessionConfiguration config, Environment environment) { + return new ReliableStatefulKnowledgeSessionImpl(id, kBase, handleFactory, propagationContext, config, environment); } } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePropagationList.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePropagationList.java index 08da47c3399..85fb52a0d60 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePropagationList.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePropagationList.java @@ -1,34 +1,73 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.ReteEvaluator; +import org.drools.core.common.Storage; +import org.drools.core.phreak.PropagationEntry; import org.drools.core.phreak.SynchronizedPropagationList; -import java.io.Serializable; +import java.io.Externalizable; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; + +public class ReliablePropagationList extends SynchronizedPropagationList implements Externalizable { -public class ReliablePropagationList extends SynchronizedPropagationList implements Serializable { + public static final String PROPAGATION_LIST = "PropagationList"; public ReliablePropagationList(ReteEvaluator reteEvaluator) { super(reteEvaluator); } + public ReliablePropagationList(){super();} + + public void setReteEvaluator(ReteEvaluator reteEvaluator){this.reteEvaluator=reteEvaluator;} + public ReliablePropagationList(ReteEvaluator reteEvaluator, ReliablePropagationList originalList) { super(reteEvaluator); this.head = originalList.head; this.tail = originalList.tail; } + + @Override + public synchronized PropagationEntry takeAll() { + PropagationEntry p = super.takeAll(); + Storage componentsStorage = StorageManagerFactory.get().getStorageManager().getOrCreateStorageForSession(this.reteEvaluator, "components"); + componentsStorage.put(PROPAGATION_LIST, this); + return p; + } + + @Override + public void writeExternal(ObjectOutput out) throws IOException { + out.writeObject(head); + out.writeObject(tail); + out.writeBoolean(disposed); + out.writeBoolean(hasEntriesDeferringExpiration); + out.writeBoolean(firingUntilHalt); + } + @Override + public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { + this.head = (PropagationEntry) in.readObject(); + this.tail = (PropagationEntry) in.readObject(); + this.disposed = in.readBoolean(); + this.hasEntriesDeferringExpiration = in.readBoolean(); + this.firingUntilHalt = in.readBoolean(); + } } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePseudoClockScheduler.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePseudoClockScheduler.java index 20bffce5fe2..8f6c964c0c3 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePseudoClockScheduler.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliablePseudoClockScheduler.java @@ -1,38 +1,57 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.reliability.core; -import org.drools.core.common.Storage; -import org.drools.core.time.impl.PseudoClockScheduler; - +import java.util.ArrayList; +import java.util.List; import java.util.PriorityQueue; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; +import java.util.stream.Collectors; + +import org.drools.core.common.Storage; +import org.drools.core.phreak.PhreakTimerNode.TimerNodeJob; +import org.drools.core.reteoo.ObjectTypeNode.ExpireJob; +import org.drools.core.time.impl.PseudoClockScheduler; +import org.drools.core.time.impl.TimerJobInstance; public class ReliablePseudoClockScheduler extends PseudoClockScheduler { - private final Storage storage; + private final transient Storage storage; + private AtomicLong persistedTimer; + + public ReliablePseudoClockScheduler() { + throw new UnsupportedOperationException("This constructor should not be used"); + } @SuppressWarnings("unchecked") public ReliablePseudoClockScheduler(Storage storage) { this.storage = storage; - this.timer = new AtomicLong( (Long) storage.getOrDefault("timer", 0L) ); + this.timer = new AtomicLong(0); + this.persistedTimer = new AtomicLong((Long) storage.getOrDefault("timer", 0L)); this.idCounter = new AtomicLong( (Long) storage.getOrDefault("idCounter", 0L) ); - this.queue = (PriorityQueue) storage.getOrDefault("queue", new PriorityQueue<>()); + List internalQueue = (List) storage.getOrDefault("internalQueue", new ArrayList<>()); + this.queue = new PriorityQueue<>(internalQueue); + } + + public AtomicLong getPersistedTimer() { + return persistedTimer; } @Override @@ -45,6 +64,15 @@ public long advanceTime(long amount, TimeUnit unit) { private void updateStorage() { storage.put("timer", timer.get()); storage.put("idCounter", idCounter.get()); - storage.put("queue", queue); + storage.put("internalQueue", createFilteredInternalQueueForPersistence(queue)); + } + + /** + * ExpireJob and TimerNodeJob are recreated by repropagate, so we don't need to persist + */ + public List createFilteredInternalQueueForPersistence(PriorityQueue queue) { + return queue.stream() + .filter(job -> !(job.getJob() instanceof ExpireJob || job.getJob() instanceof TimerNodeJob)) + .collect(Collectors.toList()); } } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableRuntimeComponentFactoryImpl.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableRuntimeComponentFactoryImpl.java index de8ef9764c7..58be3e8d163 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableRuntimeComponentFactoryImpl.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableRuntimeComponentFactoryImpl.java @@ -1,28 +1,33 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; +import java.util.concurrent.atomic.AtomicLong; + +import org.drools.base.RuleBase; +import org.drools.base.rule.accessor.GlobalResolver; import org.drools.core.SessionConfiguration; import org.drools.core.common.AgendaFactory; import org.drools.core.common.EntryPointFactory; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.Storage; -import org.drools.core.impl.RuleBase; -import org.drools.core.rule.accessor.GlobalResolver; import org.drools.core.time.TimerService; import org.drools.kiesession.factory.RuntimeComponentFactoryImpl; import org.drools.kiesession.factory.WorkingMemoryFactory; @@ -30,8 +35,6 @@ import org.kie.api.runtime.Environment; import org.kie.api.runtime.conf.PersistedSessionOption; -import java.util.concurrent.atomic.AtomicLong; - import static org.drools.reliability.core.ReliableSessionInitializer.initReliableSession; public class ReliableRuntimeComponentFactoryImpl extends RuntimeComponentFactoryImpl { @@ -39,8 +42,8 @@ public class ReliableRuntimeComponentFactoryImpl extends RuntimeComponentFactory private static final AtomicLong RELIABLE_SESSIONS_COUNTER = new AtomicLong(0); private static final String NEXT_SESSION_ID = "nextSessionId"; - private final WorkingMemoryFactory wmFactory = ReliablePhreakWorkingMemoryFactory.getInstance(); - private final AgendaFactory agendaFactory = ReliableAgendaFactory.getInstance(); + private final transient WorkingMemoryFactory wmFactory = ReliablePhreakWorkingMemoryFactory.getInstance(); + private final transient AgendaFactory agendaFactory = ReliableAgendaFactory.getInstance(); public ReliableRuntimeComponentFactoryImpl() { refreshReliableSessionsCounterUsingStorage(); @@ -84,7 +87,7 @@ public GlobalResolver createGlobalResolver(ReteEvaluator reteEvaluator, Environm if (!reteEvaluator.getSessionConfiguration().hasPersistedSessionOption()) { return super.createGlobalResolver(reteEvaluator, environment); } - return new ReliableGlobalResolver(StorageManagerFactory.get().getStorageManager().getOrCreateStorageForSession(reteEvaluator, PersistedSessionOption.SafepointStrategy.ALWAYS, "globals")); + return ReliableGlobalResolverFactory.get().createReliableGlobalResolver(StorageManagerFactory.get().getStorageManager().getOrCreateStorageForSession(reteEvaluator, PersistedSessionOption.SafepointStrategy.ALWAYS, "globals")); } @Override diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableSessionInitializer.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableSessionInitializer.java index 2c469b9844a..049fd4f66b0 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableSessionInitializer.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableSessionInitializer.java @@ -1,26 +1,39 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + import org.drools.core.SessionConfiguration; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.InternalWorkingMemoryEntryPoint; +import org.drools.core.common.Storage; import org.drools.core.phreak.PropagationEntry; +import org.drools.reliability.core.util.ReliabilityUtils; +import org.kie.api.event.rule.AfterMatchFiredEvent; +import org.kie.api.event.rule.DefaultAgendaEventListener; +import org.kie.api.event.rule.MatchCancelledEvent; +import org.kie.api.event.rule.MatchCreatedEvent; import org.kie.api.event.rule.ObjectDeletedEvent; import org.kie.api.event.rule.ObjectInsertedEvent; import org.kie.api.event.rule.ObjectUpdatedEvent; @@ -28,9 +41,7 @@ import org.kie.api.runtime.conf.PersistedSessionOption; import org.kie.api.runtime.rule.EntryPoint; -import java.util.HashMap; -import java.util.List; -import java.util.Map; +import static org.drools.reliability.core.ReliablePropagationList.PROPAGATION_LIST; public class ReliableSessionInitializer { @@ -51,13 +62,24 @@ static class StoresOnlySessionInitializer implements SessionInitializer { @Override public InternalWorkingMemory init(InternalWorkingMemory session, PersistedSessionOption persistedSessionOption) { + + if (persistedSessionOption.getActivationStrategy() == PersistedSessionOption.ActivationStrategy.ACTIVATION_KEY) { + Storage activationsStorage = StorageManagerFactory.get().getStorageManager().getOrCreateStorageForSession(session, "activations"); + ((ReliableKieSession)session).setActivationsStorage(activationsStorage); + } + if (!persistedSessionOption.isNewSession()) { // re-propagate objects from the storage to the new session populateSessionFromStorage(session); } + // These listeners should be added after populateSessionFromStorage() session.setWorkingMemoryActionListener(entry -> onWorkingMemoryAction(session, entry)); session.getRuleRuntimeEventSupport().addEventListener(new SimpleStoreRuntimeEventListener(session)); + if (persistedSessionOption.getActivationStrategy() == PersistedSessionOption.ActivationStrategy.ACTIVATION_KEY) { + ((ReliableKieSession)session).getActivationsStorage().clear(); + session.getAgendaEventSupport().addEventListener(new SimpleStoreAgendaEventListener((ReliableKieSession)session)); + } return session; } @@ -65,8 +87,10 @@ public InternalWorkingMemory init(InternalWorkingMemory session, PersistedSessio private void onWorkingMemoryAction(InternalWorkingMemory session, PropagationEntry entry) { if (entry instanceof PropagationEntry.Insert) { InternalFactHandle fh = ((PropagationEntry.Insert) entry).getHandle(); - WorkingMemoryEntryPoint ep = fh.getEntryPoint(session); - ((SimpleReliableObjectStore) ep.getObjectStore()).putIntoPersistedStorage(fh, true); + if (fh.isValid()) { + WorkingMemoryEntryPoint ep = fh.getEntryPoint(session); + ((SimpleReliableObjectStore) ep.getObjectStore()).putIntoPersistedStorage(fh, true); + } } } @@ -90,9 +114,11 @@ static class SimpleStoreRuntimeEventListener implements RuleRuntimeEventListener } public void objectInserted(ObjectInsertedEvent ev) { + // no-op. The object is already added in the storage by addHandle } public void objectDeleted(ObjectDeletedEvent ev) { + // no-op. The object is already removed in the storage by removeHandle } public void objectUpdated(ObjectUpdatedEvent ev) { @@ -101,13 +127,72 @@ public void objectUpdated(ObjectUpdatedEvent ev) { store.putIntoPersistedStorage(fh, false); } } + + static class SimpleStoreAgendaEventListener extends DefaultAgendaEventListener { + + private final ReliableKieSession session; + + public SimpleStoreAgendaEventListener(ReliableKieSession session) { + this.session = session; + } + + @Override + public void matchCreated(MatchCreatedEvent event) { + session.getActivationsStorage().put(ReliabilityUtils.getActivationKey(event.getMatch()), true); + } + + @Override + public void matchCancelled(MatchCancelledEvent event) { + session.getActivationsStorage().remove(ReliabilityUtils.getActivationKey(event.getMatch())); + } + + @Override + public void afterMatchFired(AfterMatchFiredEvent event) { + session.getActivationsStorage().remove(ReliabilityUtils.getActivationKey(event.getMatch())); + } + } } static class FullReliableSessionInitializer implements SessionInitializer { @Override public InternalWorkingMemory init(InternalWorkingMemory session, PersistedSessionOption persistedSessionOption) { + if (!persistedSessionOption.isNewSession()) { + // re-propagate objects from the storage to the new session + populateSessionFromStorage(session); + } + session.getRuleRuntimeEventSupport().addEventListener(new FullReliableSessionInitializer.FullStoreRuntimeEventListener(session)); return session; } + + private void populateSessionFromStorage(InternalWorkingMemory session) { + for (EntryPoint ep : session.getEntryPoints()) { + FullReliableObjectStore store = (FullReliableObjectStore) ((WorkingMemoryEntryPoint) ep).getObjectStore(); + store.reInit(); + } + } + + static class FullStoreRuntimeEventListener implements RuleRuntimeEventListener { + + private final Storage componentsCache; + private final ReliablePropagationList propagationList; + + FullStoreRuntimeEventListener(InternalWorkingMemory session) { + this.componentsCache = StorageManagerFactory.get().getStorageManager().getOrCreateStorageForSession(session, "components"); + this.propagationList = (ReliablePropagationList) ((ReliableAgenda) session.getAgenda()).getPropagationList(); + } + + public void objectInserted(ObjectInsertedEvent ev) { + componentsCache.put(PROPAGATION_LIST, propagationList); + } + + public void objectDeleted(ObjectDeletedEvent ev) { + componentsCache.put(PROPAGATION_LIST, propagationList); + } + + public void objectUpdated(ObjectUpdatedEvent ev) { + componentsCache.put(PROPAGATION_LIST, propagationList); + } + } } } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableStatefulKnowledgeSessionImpl.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableStatefulKnowledgeSessionImpl.java index 18f2868e921..37e48261f8f 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableStatefulKnowledgeSessionImpl.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/ReliableStatefulKnowledgeSessionImpl.java @@ -1,30 +1,37 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.SessionConfiguration; -import org.drools.core.common.InternalAgenda; +import org.drools.core.common.Storage; import org.drools.core.rule.accessor.FactHandleFactory; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.kie.api.runtime.Environment; import org.kie.api.runtime.conf.PersistedSessionOption; +import static org.drools.reliability.core.StorageManager.getSessionIdentifier; + public class ReliableStatefulKnowledgeSessionImpl extends StatefulKnowledgeSessionImpl implements ReliableKieSession { + private transient Storage activationsStorage; + public ReliableStatefulKnowledgeSessionImpl() { } @@ -41,15 +48,14 @@ public ReliableStatefulKnowledgeSessionImpl(long id, FactHandleFactory handleFactory, long propagationContext, SessionConfiguration config, - InternalAgenda agenda, Environment environment) { - super(id, kBase, handleFactory, propagationContext, config, agenda, environment); + super(id, kBase, handleFactory, propagationContext, config, environment); } @Override public void dispose() { + StorageManagerFactory.get().getStorageManager().removeStoragesBySessionId(String.valueOf(getSessionIdentifier(this))); super.dispose(); - StorageManagerFactory.get().getStorageManager().removeStoragesBySessionId(String.valueOf(this.id)); } @Override @@ -72,8 +78,22 @@ public void endOperation(InternalOperationType operationType) { } } + @Override + public Storage getActivationsStorage() { + return activationsStorage; + } + + @Override + public void setActivationsStorage(Storage activationsStorage) { + this.activationsStorage = activationsStorage; + } + @Override public void safepoint() { getEntryPoints().stream().map(ReliableNamedEntryPoint.class::cast).forEach(ReliableNamedEntryPoint::safepoint); + if (getSessionConfiguration().getPersistedSessionOption().getActivationStrategy() == PersistedSessionOption.ActivationStrategy.ACTIVATION_KEY + && activationsStorage.requiresFlush()) { + activationsStorage.flush(); + } } } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredEvent.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredEvent.java new file mode 100644 index 00000000000..17d7f9f837c --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredEvent.java @@ -0,0 +1,49 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +import java.io.Serializable; + +public class SerializableStoredEvent extends BaseStoredEvent { + + protected final Serializable object; + + public SerializableStoredEvent(Object object, boolean propagated, long timestamp, long duration) { + super(propagated, timestamp, duration); + if (!(object instanceof Serializable)) { + throw new IllegalArgumentException("Object must be serializable : " + object.getClass().getCanonicalName()); + } + this.object = (Serializable) object; + } + + @Override + public Serializable getObject() { + return object; + } + + @Override + public String toString() { + return "SerializableStoredEvent{" + + "object=" + object + + ", propagated=" + propagated + + ", timestamp=" + timestamp + + ", duration=" + duration + + '}'; + } +} \ No newline at end of file diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredObject.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredObject.java index 8b411c08ccf..617e3c95b31 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredObject.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredObject.java @@ -1,80 +1,47 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import java.io.Serializable; -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalWorkingMemoryEntryPoint; -import org.drools.core.rule.accessor.FactHandleFactory; +public class SerializableStoredObject extends BaseStoredObject { -public class SerializableStoredObject implements StoredObject, Serializable { - private final Object object; - private final boolean propagated; - private final long timestamp; - private final long duration; + protected final Serializable object; public SerializableStoredObject(Object object, boolean propagated) { - this(object, propagated, -1, -1); - } - - public SerializableStoredObject(Object object, boolean propagated, long timestamp, long duration) { - this.object = object; - this.propagated = propagated; - this.timestamp = timestamp; - this.duration = duration; - } - - public boolean isEvent() { - return timestamp >= 0; - } - - public boolean isPropagated() { - return propagated; + super(propagated); + if (!(object instanceof Serializable)) { + throw new IllegalArgumentException("Object must be serializable : " + object.getClass().getCanonicalName()); + } + this.object = (Serializable) object; } - public Object getObject() { + @Override + public Serializable getObject() { return object; } - public long getTimestamp() { - return timestamp; - } - - public long getDuration() { - return duration; - } - - public void repropagate(InternalWorkingMemoryEntryPoint ep) { - if (isEvent()) { - FactHandleFactory fhFactory = ep.getHandleFactory(); - EventFactHandle eFh = fhFactory.createEventFactHandle(fhFactory.getNextId(), object, fhFactory.getNextRecency(), ep, timestamp, duration); - ep.insert(eFh); - } else { - ep.insert(object); - } - } - @Override public String toString() { - return "StoredObject{" + + return "SerializableStoredObject{" + "object=" + object + ", propagated=" + propagated + - ", timestamp=" + timestamp + - ", duration=" + duration + '}'; } } \ No newline at end of file diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredRefEvent.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredRefEvent.java new file mode 100644 index 00000000000..e6444e9d01a --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredRefEvent.java @@ -0,0 +1,46 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +import java.util.HashMap; +import java.util.Map; + +import org.drools.core.common.Storage; +import org.drools.reliability.core.util.ReliabilityUtils; + +public class SerializableStoredRefEvent extends SerializableStoredEvent implements ReferenceWireable { + + private final Map referencedObjects; + + public SerializableStoredRefEvent(Object object, boolean propagated, long timestamp, long duration) { + super(object, propagated, timestamp, duration); + referencedObjects = new HashMap<>(); + } + + @Override + public void addReferencedObject(String fieldName, Long refObjectKey) { + this.referencedObjects.put(fieldName, refObjectKey); + } + + @Override + public StoredObject updateReferencedObjects(Storage storage) { + ReliabilityUtils.updateReferencedObjects(storage, this.referencedObjects, this.object); + return this; + } +} diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredRefObject.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredRefObject.java new file mode 100644 index 00000000000..fb30805c305 --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SerializableStoredRefObject.java @@ -0,0 +1,46 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +import java.util.HashMap; +import java.util.Map; + +import org.drools.core.common.Storage; +import org.drools.reliability.core.util.ReliabilityUtils; + +public class SerializableStoredRefObject extends SerializableStoredObject implements ReferenceWireable { + + private final Map referencedObjects; + + public SerializableStoredRefObject(Object object, boolean propagated) { + super(object, propagated); + referencedObjects=new HashMap<>(); + } + + @Override + public void addReferencedObject(String fieldName, Long refObjectKey){ + this.referencedObjects.put(fieldName, refObjectKey); + } + + @Override + public StoredObject updateReferencedObjects(Storage storage){ + ReliabilityUtils.updateReferencedObjects(storage, this.referencedObjects, this.object); + return this; + } +} diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleReliableObjectStore.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleReliableObjectStore.java index 879e306675e..59d73473445 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleReliableObjectStore.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleReliableObjectStore.java @@ -1,27 +1,30 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; +import java.util.List; + import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.InternalWorkingMemoryEntryPoint; import org.drools.core.common.ObjectStore; -import java.util.List; - public interface SimpleReliableObjectStore extends ObjectStore { List reInit(InternalWorkingMemory session, InternalWorkingMemoryEntryPoint ep); diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleReliableObjectStoreFactory.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleReliableObjectStoreFactory.java index e0e36d4d256..7df96fe715c 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleReliableObjectStoreFactory.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleReliableObjectStoreFactory.java @@ -1,33 +1,49 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.Storage; import org.kie.api.internal.utils.KieService; +import org.kie.api.runtime.conf.PersistedSessionOption; public interface SimpleReliableObjectStoreFactory extends KieService { - SimpleReliableObjectStore createSimpleReliableObjectStore(Storage storage); + SimpleReliableObjectStore createSimpleReliableObjectStore(Storage storage, PersistedSessionOption persistedSessionOption); + + class Tag { + + private Tag() { + // hide constructor + } + + private static String reliabilityPersistanceLayer = null; + } class Holder { private static final SimpleReliableObjectStoreFactory INSTANCE = createInstance(); + private Holder() { + } + static SimpleReliableObjectStoreFactory createInstance() { - SimpleReliableObjectStoreFactory factory = KieService.load(SimpleReliableObjectStoreFactory.class); + SimpleReliableObjectStoreFactory factory = KieService.loadWithTag(SimpleReliableObjectStoreFactory.class, Tag.reliabilityPersistanceLayer); if (factory == null) { return new SimpleSerializationReliableObjectStoreFactory(); } @@ -35,6 +51,20 @@ static SimpleReliableObjectStoreFactory createInstance() { } } + /** + * Use this method first to specify reliabilityPersistanceLayer when you have dependencies covering multiple persistence layers (e.g. infinispan and core) + * Once a factory is instantiated, get() is enough to get the same instance. + */ + static SimpleReliableObjectStoreFactory get(String reliabilityPersistanceLayer) { + if (Tag.reliabilityPersistanceLayer != null && !Tag.reliabilityPersistanceLayer.equals(reliabilityPersistanceLayer)) { + throw new IllegalStateException("You must call the same service with the same reliabilityPersistanceLayer. " + + "Previous reliabilityPersistanceLayer was " + Tag.reliabilityPersistanceLayer + + " and current reliabilityPersistanceLayer is " + reliabilityPersistanceLayer); + } + Tag.reliabilityPersistanceLayer = reliabilityPersistanceLayer; + return SimpleReliableObjectStoreFactory.Holder.INSTANCE; + } + static SimpleReliableObjectStoreFactory get() { return SimpleReliableObjectStoreFactory.Holder.INSTANCE; } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableObjectStore.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableObjectStore.java index 9d1c116f184..e427d22987d 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableObjectStore.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableObjectStore.java @@ -1,36 +1,50 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; -import org.drools.core.common.EventFactHandle; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.TimeUnit; + +import org.drools.core.ClockType; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.IdentityObjectStore; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.InternalWorkingMemoryEntryPoint; import org.drools.core.common.Storage; - -import java.util.ArrayList; -import java.util.List; +import org.drools.reliability.core.util.ReliabilityUtils; +import org.kie.api.runtime.conf.PersistedSessionOption; public class SimpleSerializationReliableObjectStore extends IdentityObjectStore implements SimpleReliableObjectStore { - protected final Storage storage; + protected transient Storage storage; protected boolean reInitPropagated = false; + public SimpleSerializationReliableObjectStore() { + throw new UnsupportedOperationException("This constructor should never be called"); + } + public SimpleSerializationReliableObjectStore(Storage storage) { super(); this.storage = storage; @@ -51,26 +65,88 @@ public void removeHandle(InternalFactHandle handle) { @Override public List reInit(InternalWorkingMemory session, InternalWorkingMemoryEntryPoint ep) { reInitPropagated = true; - List propagated = new ArrayList<>(); + Map propagated = new HashMap<>(); List notPropagated = new ArrayList<>(); - for (StoredObject entry : storage.values()) { - if (entry.isPropagated()) { - propagated.add(entry); + for (Long factHandleId : storage.keySet()) { + StoredObject storedObject = storage.get(factHandleId); + if (storedObject.isPropagated()) { + propagated.put(factHandleId, storedObject); } else { - notPropagated.add(entry); + notPropagated.add(storedObject); } } + storage.clear(); - // fact handles with a match have been already propagated in the original session, so they shouldn't fire - propagated.forEach(obj -> obj.repropagate(ep)); - session.fireAllRules(match -> false); + if (session.getSessionConfiguration().getClockType() == ClockType.PSEUDO_CLOCK) { + repropagateWithPseudoClock(session, ep, propagated); + } else { + repropagate(session, ep, propagated); + } + reInitPropagated = false; // fact handles without any match have never been propagated in the original session, so they should fire return notPropagated; } + private void repropagate(InternalWorkingMemory session, InternalWorkingMemoryEntryPoint ep, Map propagated) { + Map factHandleIdMap = new HashMap<>(); + propagated.forEach((oldFactHandleId, storedObject) -> { + long newFactHandleId = storedObject.repropagate(ep); + factHandleIdMap.put(newFactHandleId, oldFactHandleId); + }); + + fireOnlyWhenActivationRemaining(session, factHandleIdMap); + } + + private void fireOnlyWhenActivationRemaining(InternalWorkingMemory session, Map factHandleIdMap) { + if (session.getSessionConfiguration().getPersistedSessionOption().getActivationStrategy() == PersistedSessionOption.ActivationStrategy.ACTIVATION_KEY) { + // fact handles with a match have been already propagated in the original session, so they shouldn't fire unless remained in activationsStorage + Storage activationsStorage = ((ReliableKieSession)session).getActivationsStorage(); + Set activationKeySet = activationsStorage.keySet(); + session.fireAllRules(match -> { + String activationKey = ReliabilityUtils.getActivationKeyReplacingNewIdWithOldId(match, factHandleIdMap); + if (activationKeySet.contains(activationKey)) { + // If there is a remaining activation, it can fire + activationsStorage.remove(activationKey); + return true; + } else { + return false; + } + }); + } else { + session.fireAllRules(match -> false); + } + } + + private void repropagateWithPseudoClock(InternalWorkingMemory session, InternalWorkingMemoryEntryPoint ep, Map propagated) { + ReliablePseudoClockScheduler clock = (ReliablePseudoClockScheduler) session.getSessionClock(); + Map factHandleIdMap = new HashMap<>(); + for (Map.Entry entry : propagated.entrySet()) { + StoredObject storedObject = entry.getValue(); + if (storedObject.isEvent()) { + StoredEvent storedEvent = (StoredEvent) storedObject; + long currentTime = clock.getCurrentTime(); + long timestamp = storedEvent.getTimestamp(); + if (currentTime < timestamp) { + clock.advanceTime(timestamp - currentTime, TimeUnit.MILLISECONDS); + } + } + long newFactHandleId = storedObject.repropagate(ep); // This may schedule an expiration + factHandleIdMap.put(newFactHandleId, entry.getKey()); + } + + fireOnlyWhenActivationRemaining(session, factHandleIdMap); + + // Finally, meet with the persistedTime + long currentTime = clock.getCurrentTime(); + long persistedTime = clock.getPersistedTimer().longValue(); + if (currentTime < persistedTime) { + clock.advanceTime(persistedTime - currentTime, TimeUnit.MILLISECONDS); // This may trigger an expiration + } + } + @Override public void putIntoPersistedStorage(InternalFactHandle handle, boolean propagated) { Object object = handle.getObject(); @@ -78,9 +154,9 @@ public void putIntoPersistedStorage(InternalFactHandle handle, boolean propagate storage.put(getHandleForObject(object).getId(), storedObject); } - private StoredObject factHandleToStoredObject(InternalFactHandle handle, boolean propagated, Object object) { + protected StoredObject factHandleToStoredObject(InternalFactHandle handle, boolean propagated, Object object) { return handle.isEvent() ? - createStoredObject(propagated, object, ((EventFactHandle) handle).getStartTimestamp(), ((EventFactHandle) handle).getDuration()) : + createStoredEvent(propagated, object, ((DefaultEventHandle) handle).getStartTimestamp(), ((DefaultEventHandle) handle).getDuration()) : createStoredObject(propagated, object); } @@ -88,8 +164,8 @@ protected StoredObject createStoredObject(boolean propagated, Object object) { return new SerializableStoredObject(object, propagated); } - protected StoredObject createStoredObject(boolean propagated, Object object, long timestamp, long duration) { - return new SerializableStoredObject(object, propagated, timestamp, duration); + protected StoredEvent createStoredEvent(boolean propagated, Object object, long timestamp, long duration) { + return new SerializableStoredEvent(object, propagated, timestamp, duration); } @Override diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableObjectStoreFactory.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableObjectStoreFactory.java index 694e4ef9464..adf6f3c8121 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableObjectStoreFactory.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableObjectStoreFactory.java @@ -1,31 +1,47 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.Storage; +import org.kie.api.runtime.conf.PersistedSessionOption; public class SimpleSerializationReliableObjectStoreFactory implements SimpleReliableObjectStoreFactory { - static final SimpleSerializationReliableObjectStoreFactory INSTANCE = new SimpleSerializationReliableObjectStoreFactory(); + public SimpleReliableObjectStore createSimpleReliableObjectStore(Storage storage) { + return new SimpleSerializationReliableObjectStore(storage); + } - public static SimpleSerializationReliableObjectStoreFactory get() { - return INSTANCE; + public SimpleReliableObjectStore createSimpleReliableObjectStore(Storage storage, PersistedSessionOption persistedSessionOption) { + switch (persistedSessionOption.getPersistenceObjectsStrategy()){ + case SIMPLE: return new SimpleSerializationReliableObjectStore(storage); + case OBJECT_REFERENCES: return new SimpleSerializationReliableRefObjectStore(storage); + default: throw new UnsupportedOperationException(); + } } - public SimpleReliableObjectStore createSimpleReliableObjectStore(Storage storage) { - return new SimpleSerializationReliableObjectStore(storage); + @Override + public int servicePriority() { + return 0; + } + + @Override + public String serviceTag() { + return "core"; } } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableRefObjectStore.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableRefObjectStore.java new file mode 100644 index 00000000000..53edfafa269 --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/SimpleSerializationReliableRefObjectStore.java @@ -0,0 +1,150 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.Storage; + +import java.lang.reflect.Field; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.IdentityHashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.function.Function; +import java.util.stream.Collectors; + +public class SimpleSerializationReliableRefObjectStore extends SimpleSerializationReliableObjectStore { + + private Map uniqueObjectTypesInStore; // object type name, occurances + private transient IdentityHashMap inverseStorage; + + public SimpleSerializationReliableRefObjectStore(Storage storage) { + super(storage); + uniqueObjectTypesInStore = new HashMap<>(); + setInverseStorage(storage); + if (!storage.isEmpty()) { + updateObjectTypesList(); + this.storage = updateObjectReferences(storage); + } + } + + private void setInverseStorage(Storage storage){ + inverseStorage = new IdentityHashMap<>(); + storage.keySet().forEach(key -> inverseStorage.put((storage.get(key)).getObject(),key)); + } + + private Storage updateObjectReferences(Storage storage) { + Storage updateStorage = storage; + + for (Long key : storage.keySet()) { + updateStorage.put(key, ((ReferenceWireable) storage.get(key)).updateReferencedObjects(storage)); + } + return updateStorage; + } + + @Override + public void putIntoPersistedStorage(InternalFactHandle handle, boolean propagated) { + Object object = handle.getObject(); + StoredObject storedObject = factHandleToStoredObject(handle, reInitPropagated || propagated, object); + storage.put(getHandleForObject(object).getId(), setReferencedObjects(storedObject)); + inverseStorage.put(object, getHandleForObject(object).getId()); + // also add the type of the object into the uniqueObjectTypesInStore list (if not already there) + this.updateObjectTypesList(object); + } + + @Override + public void removeFromPersistedStorage(Object object) { + super.removeFromPersistedStorage(object); + inverseStorage.remove(object); + // also remove instance from uniqueObjectTypesInStore + this.updateObjectTypesList(object); + } + + @Override + protected StoredObject createStoredObject(boolean propagated, Object object) { + return new SerializableStoredRefObject(object, propagated); + } + + @Override + protected StoredEvent createStoredEvent(boolean propagated, Object object, long timestamp, long duration) { + return new SerializableStoredRefEvent(object, propagated, timestamp, duration); + } + + @SuppressWarnings("squid:S3011") // SONAR IGNORE "Make sure that this accessibility update is safe here." + private StoredObject setReferencedObjects(StoredObject object) { + List referencedObjects = getReferencedObjects(object.getObject()); + if (!referencedObjects.isEmpty()) { + // for each referenced object in sObject + // lookup in storage, find the object of reference, get its fact handle id + // save this association in the StoredObject + referencedObjects.forEach(field -> { + field.setAccessible(true); + Object fieldObject = null; + try { + fieldObject = field.get(object.getObject()); + } catch (IllegalAccessException e) { + throw new ReliabilityRuntimeException(e); + } + Long objectKey = fromObjectToFactHandleId(fieldObject); + if (objectKey != null) { + ((ReferenceWireable) object).addReferencedObject(field.getName(), objectKey); + } + }); + } + return object; + } + + private Long fromObjectToFactHandleId(Object object) { + return this.inverseStorage.get(object); + } + + private List getReferencedObjects(Object object) { + Field[] fields = object.getClass().getDeclaredFields(); + + return Arrays.stream(fields) + .filter(field -> uniqueObjectTypesInStore.containsKey(field.getType().getName())) + .collect(Collectors.toList()); + } + + private void updateObjectTypesList(Object object) { + uniqueObjectTypesInStore.put(object.getClass().getName(), + storage.values().stream().filter(sObject -> sObject.getObject().getClass().equals(object.getClass())).count()); + // if count==0 then remove entry + if (uniqueObjectTypesInStore.get(object.getClass().getName()) == 0) { + uniqueObjectTypesInStore.remove(object.getClass().getName()); + } + } + + private void updateObjectTypesList() { + // list of unique object types in storage + Set uTypeNames = new HashSet(); + storage.values().forEach(sObject -> { + uTypeNames.add(sObject.getObject().getClass().getName()); + }); + // add unique object types + their occurrences in the uniqueObjectTypesInStore + uniqueObjectTypesInStore.putAll(storage.values().stream() + .map(sObject -> sObject.getObject().getClass().getName()) + .filter(uTypeNames::contains) + .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()))); + } +} + diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StorageManager.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StorageManager.java index 268c6519539..f5bc1d17332 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StorageManager.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StorageManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.ReteEvaluator; @@ -55,7 +58,7 @@ static String createStorageId(ReteEvaluator reteEvaluator, String storageName) { return StorageManagerFactory.SESSION_STORAGE_PREFIX + getSessionIdentifier(reteEvaluator) + StorageManagerFactory.DELIMITER + storageName; } - private static long getSessionIdentifier(ReteEvaluator reteEvaluator) { + public static long getSessionIdentifier(ReteEvaluator reteEvaluator) { PersistedSessionOption persistedSessionOption = reteEvaluator.getSessionConfiguration().getPersistedSessionOption(); if (persistedSessionOption != null) { return persistedSessionOption.isNewSession() ? reteEvaluator.getIdentifier() : persistedSessionOption.getSessionId(); diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StorageManagerFactory.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StorageManagerFactory.java index 3331396e1bb..60eb613b636 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StorageManagerFactory.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StorageManagerFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.kie.api.internal.utils.KieService; @@ -27,15 +30,29 @@ public interface StorageManagerFactory extends KieService { StorageManager getStorageManager(); + class Tag { + + private Tag() { + // hide constructor + } + + private static String reliabilityPersistanceLayer = null; + } + class Holder { + private static final StorageManagerFactory INSTANCE = createInstance(); + private Holder() { + } + static StorageManagerFactory createInstance() { - StorageManagerFactory factory = KieService.load( StorageManagerFactory.class ); + StorageManagerFactory factory = KieService.loadWithTag(StorageManagerFactory.class, Tag.reliabilityPersistanceLayer); if (factory == null) { throwExceptionForMissingRuntime(); return null; } + factory.getStorageManager().initStorageManager(); return factory; } } @@ -44,7 +61,21 @@ static StorageManagerFactory get() { return StorageManagerFactory.Holder.INSTANCE; } + /** + * Use this method first to specify reliabilityPersistanceLayer when you have dependencies covering multiple persistence layers (e.g. infinispan and h2mvstore) + * Once a factory is instantiated, get() is enough to get the same instance. + */ + static StorageManagerFactory get(String reliabilityPersistanceLayer) { + if (Tag.reliabilityPersistanceLayer != null && !Tag.reliabilityPersistanceLayer.equals(reliabilityPersistanceLayer)) { + throw new IllegalStateException("You must call the same service with the same reliabilityPersistanceLayer. " + + "Previous reliabilityPersistanceLayer was " + Tag.reliabilityPersistanceLayer + + " and current reliabilityPersistanceLayer is " + reliabilityPersistanceLayer); + } + Tag.reliabilityPersistanceLayer = reliabilityPersistanceLayer; + return StorageManagerFactory.Holder.INSTANCE; + } + static T throwExceptionForMissingRuntime() { - throw new RuntimeException("Cannot find any persistence implementation"); + throw new ReliabilityConfigurationException("Cannot find any persistence implementation"); } } diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StoredEvent.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StoredEvent.java new file mode 100644 index 00000000000..bc5de02538e --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StoredEvent.java @@ -0,0 +1,31 @@ +/** + * 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. + */ +package org.drools.reliability.core; + +public interface StoredEvent extends StoredObject { + + @Override + default boolean isEvent() { + return true; + } + + long getTimestamp(); + + long getDuration(); +} \ No newline at end of file diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StoredObject.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StoredObject.java index 18044068a60..86d9dc82b5c 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StoredObject.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/StoredObject.java @@ -1,33 +1,34 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; import org.drools.core.common.InternalWorkingMemoryEntryPoint; public interface StoredObject { - boolean isEvent(); + default boolean isEvent() { + return false; + } boolean isPropagated(); Object getObject(); - long getTimestamp(); - - long getDuration(); - - void repropagate(InternalWorkingMemoryEntryPoint ep); + long repropagate(InternalWorkingMemoryEntryPoint ep); } \ No newline at end of file diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/TestableStorageManager.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/TestableStorageManager.java index 297ec35fd48..6eebf8bc072 100644 --- a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/TestableStorageManager.java +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/TestableStorageManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.core; public interface TestableStorageManager extends StorageManager { diff --git a/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/util/ReliabilityUtils.java b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/util/ReliabilityUtils.java new file mode 100644 index 00000000000..0d89485871b --- /dev/null +++ b/drools-reliability/drools-reliability-core/src/main/java/org/drools/reliability/core/util/ReliabilityUtils.java @@ -0,0 +1,92 @@ +/** + * 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. + */ +package org.drools.reliability.core.util; + +import java.lang.reflect.Field; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.stream.Collectors; + +import org.drools.core.common.Storage; +import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; +import org.drools.reliability.core.ReliabilityRuntimeException; +import org.drools.reliability.core.StoredObject; +import org.kie.api.runtime.rule.FactHandle; +import org.kie.api.runtime.rule.Match; + +public class ReliabilityUtils { + + private ReliabilityUtils() { + // no constructor + } + + /** + * Returns a String representation of the activation. + */ + public static String getActivationKey(Match match) { + return getActivationKey(match, null); + } + + /** + * Returns a String representation of the activation, replacing the new fact handle id with the old fact handle id. + * Used to find an activation key in the persisted storage. + */ + public static String getActivationKeyReplacingNewIdWithOldId(Match match, Map factHandleIdMap) { + return getActivationKey(match, factHandleIdMap); + } + + private static String getActivationKey(Match match, Map factHandleIdMap) { + if (!(match instanceof RuleTerminalNodeLeftTuple)) { + throw new ReliabilityRuntimeException("getActivationKey doesn't support " + match.getClass()); + } + RuleTerminalNodeLeftTuple ruleTerminalNodeLeftTuple = (RuleTerminalNodeLeftTuple) match; + String packageName = ruleTerminalNodeLeftTuple.getRule().getPackageName(); + String ruleName = ruleTerminalNodeLeftTuple.getRule().getName(); + List factHandles = ruleTerminalNodeLeftTuple.getFactHandles(); + List factHandleIdList = factHandles.stream() + .map(FactHandle::getId) + .map(handleId -> { + if (factHandleIdMap != null) { + return factHandleIdMap.get(handleId); // replace new id with old id + } else { + return handleId; // don't replace + } + }) + .collect(Collectors.toList()); + return "ActivationKey [packageName=" + packageName + ", ruleName=" + ruleName + ", factHandleIdList=" + factHandleIdList + "]"; + } + + @SuppressWarnings("squid:S3011") // SONAR IGNORE "Make sure that this accessibility update is safe here." + public static void updateReferencedObjects(Storage storage, Map referencedObjects, Object object) { + referencedObjects.keySet().forEach(fieldName -> { + Optional refField = Arrays.stream(object.getClass().getDeclaredFields()) + .filter(f -> f.getName().equals(fieldName)).findFirst(); + if (refField.isPresent()){ + refField.get().setAccessible(true); + try { + refField.get().set(object, storage.get(referencedObjects.get(refField.get().getName())).getObject()); + } catch (IllegalAccessException e) { + throw new ReliabilityRuntimeException(e); + } + } + }); + } +} diff --git a/drools-reliability/drools-reliability-h2mvstore/.gitignore b/drools-reliability/drools-reliability-h2mvstore/.gitignore new file mode 100644 index 00000000000..124f1fd6349 --- /dev/null +++ b/drools-reliability/drools-reliability-h2mvstore/.gitignore @@ -0,0 +1,2 @@ +tmp/ +h2mvstore.db diff --git a/drools-reliability/drools-reliability-h2mvstore/pom.xml b/drools-reliability/drools-reliability-h2mvstore/pom.xml new file mode 100644 index 00000000000..46125f79c37 --- /dev/null +++ b/drools-reliability/drools-reliability-h2mvstore/pom.xml @@ -0,0 +1,100 @@ + + + + + org.drools + drools-reliability + 8.45.0-SNAPSHOT + + 4.0.0 + + drools-reliability-h2mvstore + + Drools :: Reliability :: H2 MVStore persistence + + + org.drools.reliability.h2mvstore + + + + + org.drools + drools-reliability-core + + + + com.h2database + h2 + + + + org.drools + drools-engine + test + + + + junit + junit + test + + + org.assertj + assertj-core + test + + + org.junit.vintage + junit-vintage-engine + test + + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.junit.jupiter + junit-jupiter-params + test + + + + ch.qos.logback + logback-classic + test + + + org.drools + drools-model-codegen + test + + + + diff --git a/drools-reliability/drools-reliability-h2mvstore/src/main/java/org/drools/reliability/h2mvstore/H2MVStoreStorage.java b/drools-reliability/drools-reliability-h2mvstore/src/main/java/org/drools/reliability/h2mvstore/H2MVStoreStorage.java new file mode 100644 index 00000000000..4f08158cb63 --- /dev/null +++ b/drools-reliability/drools-reliability-h2mvstore/src/main/java/org/drools/reliability/h2mvstore/H2MVStoreStorage.java @@ -0,0 +1,100 @@ +/** + * 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. + */ +package org.drools.reliability.h2mvstore; + +import java.util.Collection; +import java.util.Map; +import java.util.Set; + +import org.drools.core.common.Storage; +import org.h2.mvstore.MVMap; + +public class H2MVStoreStorage implements Storage { + + private MVMap mvMap; + + public static Storage fromMVMap(MVMap mvMap) { + return new H2MVStoreStorage<>(mvMap); + } + + private H2MVStoreStorage(MVMap mvMap) { + this.mvMap = mvMap; + } + + @Override + public V get(K key) { + return mvMap.get(key); + } + + @Override + public V getOrDefault(K key, V value) { + return mvMap.getOrDefault(key, value); + } + + @Override + public V put(K key, V value) { + V previousValue = mvMap.put(key, value); + mvMap.store.commit(); + return previousValue; + } + + @Override + public void putAll(Map otherMap) { + mvMap.putAll(otherMap); + mvMap.store.commit(); + } + + @Override + public boolean containsKey(K key) { + return mvMap.containsKey(key); + } + + @Override + public V remove(K key) { + V previousValue = mvMap.remove(key); + mvMap.store.commit(); + return previousValue; + } + + @Override + public void clear() { + mvMap.clear(); + mvMap.store.commit(); + } + + @Override + public Collection values() { + return mvMap.values(); + } + + @Override + public Set keySet() { + return mvMap.keySet(); + } + + @Override + public int size() { + return mvMap.size(); + } + + @Override + public boolean isEmpty() { + return mvMap.isEmpty(); + } +} diff --git a/drools-reliability/drools-reliability-h2mvstore/src/main/java/org/drools/reliability/h2mvstore/H2MVStoreStorageManager.java b/drools-reliability/drools-reliability-h2mvstore/src/main/java/org/drools/reliability/h2mvstore/H2MVStoreStorageManager.java new file mode 100644 index 00000000000..8f00696fa1a --- /dev/null +++ b/drools-reliability/drools-reliability-h2mvstore/src/main/java/org/drools/reliability/h2mvstore/H2MVStoreStorageManager.java @@ -0,0 +1,142 @@ +/** + * 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. + */ +package org.drools.reliability.h2mvstore; + +import java.io.IOException; +import java.io.UncheckedIOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.Set; + +import org.drools.core.common.ReteEvaluator; +import org.drools.core.common.Storage; +import org.drools.reliability.core.TestableStorageManager; +import org.h2.mvstore.MVMap; +import org.h2.mvstore.MVStore; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import static org.drools.reliability.core.StorageManager.createStorageId; +import static org.drools.reliability.core.StorageManagerFactory.DELIMITER; +import static org.drools.reliability.core.StorageManagerFactory.SESSION_STORAGE_PREFIX; +import static org.drools.reliability.core.StorageManagerFactory.SHARED_STORAGE_PREFIX; + +public class H2MVStoreStorageManager implements TestableStorageManager { + + private static final Logger LOG = LoggerFactory.getLogger(H2MVStoreStorageManager.class); + + static final H2MVStoreStorageManager INSTANCE = new H2MVStoreStorageManager(); + + public static final String STORE_FILE_NAME = "h2mvstore.db"; + + private MVStore mvStore; + + private H2MVStoreStorageManager() { + } + + @Override + public void initStorageManager() { + LOG.info("Using H2MVStoreStorageManager"); + mvStore = MVStore.open(STORE_FILE_NAME); + } + + @Override + public Storage internalGetOrCreateStorageForSession(ReteEvaluator reteEvaluator, String cacheName) { + MVMap mvMap = mvStore.openMap(createStorageId(reteEvaluator, cacheName)); + return H2MVStoreStorage.fromMVMap(mvMap); + } + + @Override + public Storage getOrCreateSharedStorage(String cacheName) { + MVMap mvMap = mvStore.openMap(SHARED_STORAGE_PREFIX + cacheName); + return H2MVStoreStorage.fromMVMap(mvMap); + } + + @Override + public void close() { + mvStore.close(); + } + + @Override + public void removeStorage(String storageName) { + mvStore.removeMap(storageName); + } + + @Override + public void removeStoragesBySessionId(String sessionId) { + mvStore.getMapNames() + .stream() + .filter(mapName -> mapName.startsWith(SESSION_STORAGE_PREFIX + sessionId + DELIMITER)) + .forEach(this::removeStorage); + } + + @Override + public void removeAllSessionStorages() { + mvStore.getMapNames() + .stream() + .filter(mapName -> mapName.startsWith(SESSION_STORAGE_PREFIX)) + .forEach(this::removeStorage); + } + + @Override + public Set getStorageNames() { + return mvStore.getMapNames(); + } + + //--- test purpose + + @Override + public void restart() { + // JVM crashed + mvStore.close(); + mvStore = null; + + // Reboot + initStorageManager(); + } + + @Override + public void restartWithCleanUp() { + // JVM crashed + mvStore.close(); + mvStore = null; + + // remove database file + cleanUpDatabase(); + + // Reboot + initStorageManager(); + } + + @Override + public boolean isRemote() { + return false; + } + + public static void cleanUpDatabase() { + // remove database file + Path path = Paths.get(STORE_FILE_NAME); + try { + Files.deleteIfExists(path); + } catch (IOException e) { + throw new UncheckedIOException(e); + } + } +} diff --git a/drools-reliability/drools-reliability-h2mvstore/src/main/java/org/drools/reliability/h2mvstore/H2MVStoreStorageManagerFactory.java b/drools-reliability/drools-reliability-h2mvstore/src/main/java/org/drools/reliability/h2mvstore/H2MVStoreStorageManagerFactory.java new file mode 100644 index 00000000000..2ee07652583 --- /dev/null +++ b/drools-reliability/drools-reliability-h2mvstore/src/main/java/org/drools/reliability/h2mvstore/H2MVStoreStorageManagerFactory.java @@ -0,0 +1,48 @@ +/** + * 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. + */ +package org.drools.reliability.h2mvstore; + +import org.drools.reliability.core.StorageManager; +import org.drools.reliability.core.StorageManagerFactory; + +public class H2MVStoreStorageManagerFactory implements StorageManagerFactory { + + private final StorageManager storageManager; + + public H2MVStoreStorageManagerFactory() { + storageManager = H2MVStoreStorageManager.INSTANCE; + + // initStorageManager() is called by StorageManagerFactory.Holder.createInstance() + } + + @Override + public StorageManager getStorageManager() { + return storageManager; + } + + @Override + public int servicePriority() { + return 0; + } + + @Override + public String serviceTag() { + return "h2mvstore"; + } +} diff --git a/drools-reliability/drools-reliability-h2mvstore/src/main/resources/META-INF/services/org.drools.reliability.core.ReliableGlobalResolverFactory b/drools-reliability/drools-reliability-h2mvstore/src/main/resources/META-INF/services/org.drools.reliability.core.ReliableGlobalResolverFactory new file mode 100644 index 00000000000..4b0c4d92401 --- /dev/null +++ b/drools-reliability/drools-reliability-h2mvstore/src/main/resources/META-INF/services/org.drools.reliability.core.ReliableGlobalResolverFactory @@ -0,0 +1 @@ +org.drools.reliability.core.ReliableGlobalResolverFactory$ReliableGlobalResolverFactoryImpl \ No newline at end of file diff --git a/drools-reliability/drools-reliability-h2mvstore/src/main/resources/META-INF/services/org.drools.reliability.core.SimpleReliableObjectStoreFactory b/drools-reliability/drools-reliability-h2mvstore/src/main/resources/META-INF/services/org.drools.reliability.core.SimpleReliableObjectStoreFactory new file mode 100644 index 00000000000..2e349e80803 --- /dev/null +++ b/drools-reliability/drools-reliability-h2mvstore/src/main/resources/META-INF/services/org.drools.reliability.core.SimpleReliableObjectStoreFactory @@ -0,0 +1 @@ +org.drools.reliability.core.SimpleSerializationReliableObjectStoreFactory \ No newline at end of file diff --git a/drools-reliability/drools-reliability-h2mvstore/src/main/resources/META-INF/services/org.drools.reliability.core.StorageManagerFactory b/drools-reliability/drools-reliability-h2mvstore/src/main/resources/META-INF/services/org.drools.reliability.core.StorageManagerFactory new file mode 100644 index 00000000000..526abb39087 --- /dev/null +++ b/drools-reliability/drools-reliability-h2mvstore/src/main/resources/META-INF/services/org.drools.reliability.core.StorageManagerFactory @@ -0,0 +1 @@ +org.drools.reliability.h2mvstore.H2MVStoreStorageManagerFactory \ No newline at end of file diff --git a/drools-reliability/drools-reliability-infinispan/pom.xml b/drools-reliability/drools-reliability-infinispan/pom.xml index c60b638498a..1e735e0b826 100644 --- a/drools-reliability/drools-reliability-infinispan/pom.xml +++ b/drools-reliability/drools-reliability-infinispan/pom.xml @@ -1,22 +1,40 @@ + org.drools drools-reliability - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 - org.drools drools-reliability-infinispan Drools :: Reliability :: Infinispan org.drools.reliability.infinispan - 14.0.6.Final @@ -24,7 +42,7 @@ org.infinispan infinispan-bom - ${version.infinispan} + ${version.org.infinispan} pom import @@ -49,78 +67,6 @@ org.drools drools-reliability-core - - - org.drools - drools-mvel - test - - - - junit - junit - test - - - org.assertj - assertj-core - test - - - org.junit.vintage - junit-vintage-engine - test - - - org.junit.jupiter - junit-jupiter-api - test - - - org.junit.jupiter - junit-jupiter-engine - test - - - org.junit.jupiter - junit-jupiter-params - test - - - - org.infinispan - infinispan-server-testdriver-core - test - - - org.apache.logging.log4j - log4j-api - - - org.apache.logging.log4j - log4j-core - - - org.apache.logging.log4j - log4j-slf4j-impl - - - org.infinispan - infinispan-jboss-marshalling - - - - - org.infinispan - infinispan-component-annotations - test - - - - ch.qos.logback - logback-classic - test - @@ -157,53 +103,4 @@ - - - remote - - - remote - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - REMOTE - - - - - - - - remote-proto - - - remote-proto - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - REMOTE - PROTOSTREAM - org.drools.reliability.infinispan.proto.TestProtoStreamSchemaImpl - - - - - - - - \ No newline at end of file diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/EmbeddedStorageManager.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/EmbeddedStorageManager.java index 95d6e076942..65538365471 100644 --- a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/EmbeddedStorageManager.java +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/EmbeddedStorageManager.java @@ -1,20 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.infinispan; +import java.nio.file.Paths; +import java.util.Set; + import org.drools.core.common.ReteEvaluator; import org.drools.core.common.Storage; import org.drools.util.FileUtils; @@ -27,13 +33,9 @@ import org.infinispan.configuration.global.GlobalConfigurationBuilder; import org.infinispan.globalstate.ConfigurationStorage; import org.infinispan.manager.DefaultCacheManager; -import org.kie.api.runtime.conf.PersistedSessionOption; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.nio.file.Paths; -import java.util.Set; - import static org.drools.reliability.core.StorageManager.createStorageId; import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.DELIMITER; import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_DIRECTORY; @@ -92,14 +94,14 @@ public void initStorageManager() { } @Override - public Storage internalGetOrCreateStorageForSession(ReteEvaluator reteEvaluator, String cacheName) { - Cache cache = embeddedCacheManager.administration().getOrCreateCache(createStorageId(reteEvaluator, cacheName), cacheConfiguration); + public Storage internalGetOrCreateStorageForSession(ReteEvaluator reteEvaluator, String cacheName) { + Cache cache = embeddedCacheManager.administration().getOrCreateCache(createStorageId(reteEvaluator, cacheName), cacheConfiguration); return InfinispanStorage.fromCache(cache); } @Override - public Storage getOrCreateSharedStorage(String cacheName) { - Cache cache = embeddedCacheManager.administration().getOrCreateCache(SHARED_STORAGE_PREFIX + cacheName, cacheConfiguration); + public Storage getOrCreateSharedStorage(String cacheName) { + Cache cache = embeddedCacheManager.administration().getOrCreateCache(SHARED_STORAGE_PREFIX + cacheName, cacheConfiguration); return InfinispanStorage.fromCache(cache); } diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanReliableGlobalResolverFactory.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanReliableGlobalResolverFactory.java new file mode 100644 index 00000000000..ef3c5db4db0 --- /dev/null +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanReliableGlobalResolverFactory.java @@ -0,0 +1,47 @@ +/** + * 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. + */ +package org.drools.reliability.infinispan; + +import org.drools.core.common.Storage; +import org.drools.reliability.core.ReliableGlobalResolver; +import org.drools.reliability.core.ReliableGlobalResolverFactory; +import org.drools.reliability.core.StorageManagerFactory; +import org.drools.reliability.infinispan.proto.ProtoStreamReliableGlobalResolver; + +public class InfinispanReliableGlobalResolverFactory implements ReliableGlobalResolverFactory { + + @Override + public ReliableGlobalResolver createReliableGlobalResolver(Storage storage) { + if (((InfinispanStorageManager) StorageManagerFactory.get().getStorageManager()).isProtoStream()) { + return new ProtoStreamReliableGlobalResolver(storage); + } else { + return new ReliableGlobalResolver(storage); + } + } + + @Override + public int servicePriority() { + return 0; + } + + @Override + public String serviceTag() { + return "infinispan"; + } +} diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorage.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorage.java index 21e5d859c68..9bd81384c04 100644 --- a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorage.java +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorage.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.infinispan; import org.drools.core.common.Storage; diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorageManager.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorageManager.java index 6aa83ffa537..01fe4c9928f 100644 --- a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorageManager.java +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorageManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.infinispan; import org.drools.reliability.core.ReliabilityConfigurationException; diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorageManagerFactory.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorageManagerFactory.java index 416d79b09b3..b99a07a6dfb 100644 --- a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorageManagerFactory.java +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/InfinispanStorageManagerFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.infinispan; import org.drools.reliability.core.StorageManager; @@ -43,11 +46,21 @@ public InfinispanStorageManagerFactory() { storageManager = EmbeddedStorageManager.INSTANCE; } - storageManager.initStorageManager(); + // initStorageManager() is called by StorageManagerFactory.Holder.createInstance() } @Override public StorageManager getStorageManager() { return storageManager; } + + @Override + public int servicePriority() { + return 0; + } + + @Override + public String serviceTag() { + return "infinispan"; + } } diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/RemoteStorageManager.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/RemoteStorageManager.java index ca97346cfb9..c24dede929c 100644 --- a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/RemoteStorageManager.java +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/RemoteStorageManager.java @@ -1,20 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.infinispan; +import java.util.Optional; +import java.util.Set; + import org.drools.core.common.ReteEvaluator; import org.drools.core.common.Storage; import org.infinispan.client.hotrod.RemoteCache; @@ -24,13 +30,9 @@ import org.infinispan.manager.DefaultCacheManager; import org.infinispan.protostream.SerializationContext; import org.infinispan.protostream.SerializationContextInitializer; -import org.kie.api.runtime.conf.PersistedSessionOption; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.Optional; -import java.util.Set; - import static org.drools.reliability.core.StorageManager.createStorageId; import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.DELIMITER; import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.SESSION_STORAGE_PREFIX; @@ -47,7 +49,6 @@ public class RemoteStorageManager implements InfinispanStorageManager { private MarshallerType marshallerType; private Optional protoMarshaller; - private Optional serializationContextInitializer; private RemoteStorageManager() { } @@ -88,7 +89,7 @@ private void configureMarshaller(ConfigurationBuilder builder) { .addJavaSerialAllowList(InfinispanStorageManager.getAllowedPackages()); } else if (marshallerType == MarshallerType.PROTOSTREAM) { protoMarshaller = Optional.of(new ProtoStreamMarshaller()); - serializationContextInitializer = findSerializationContextInitializer(); + Optional serializationContextInitializer = findSerializationContextInitializer(); if (serializationContextInitializer.isEmpty()) { throw new IllegalStateException("ProtoStream serialization context initializer not found"); } @@ -99,14 +100,14 @@ private void configureMarshaller(ConfigurationBuilder builder) { } @Override - public Storage internalGetOrCreateStorageForSession(ReteEvaluator reteEvaluator, String cacheName) { - RemoteCache cache = remoteCacheManager.administration().getOrCreateCache(createStorageId(reteEvaluator, cacheName), (String) null); + public Storage internalGetOrCreateStorageForSession(ReteEvaluator reteEvaluator, String cacheName) { + RemoteCache cache = remoteCacheManager.administration().getOrCreateCache(createStorageId(reteEvaluator, cacheName), (String) null); return InfinispanStorage.fromCache(cache); } @Override - public Storage getOrCreateSharedStorage(String cacheName) { - RemoteCache cache = remoteCacheManager.administration().getOrCreateCache(SHARED_STORAGE_PREFIX + cacheName, (String) null); + public Storage getOrCreateSharedStorage(String cacheName) { + RemoteCache cache = remoteCacheManager.administration().getOrCreateCache(SHARED_STORAGE_PREFIX + cacheName, (String) null); return InfinispanStorage.fromCache(cache); } diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/SimpleInfinispanReliableObjectStoreFactory.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/SimpleInfinispanReliableObjectStoreFactory.java index cad637d8182..aee4ed5557e 100644 --- a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/SimpleInfinispanReliableObjectStoreFactory.java +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/SimpleInfinispanReliableObjectStoreFactory.java @@ -1,27 +1,32 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.infinispan; import org.drools.core.common.Storage; import org.drools.reliability.core.SimpleReliableObjectStore; import org.drools.reliability.core.SimpleReliableObjectStoreFactory; import org.drools.reliability.core.SimpleSerializationReliableObjectStore; +import org.drools.reliability.core.SimpleSerializationReliableRefObjectStore; import org.drools.reliability.core.StorageManagerFactory; import org.drools.reliability.core.StoredObject; import org.drools.reliability.infinispan.proto.SimpleProtoStreamReliableObjectStore; +import org.kie.api.runtime.conf.PersistedSessionOption; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -29,19 +34,29 @@ public class SimpleInfinispanReliableObjectStoreFactory implements SimpleReliabl private static final Logger LOG = LoggerFactory.getLogger(SimpleInfinispanReliableObjectStoreFactory.class); - static final SimpleInfinispanReliableObjectStoreFactory INSTANCE = new SimpleInfinispanReliableObjectStoreFactory(); - - public static SimpleInfinispanReliableObjectStoreFactory get() { - return INSTANCE; - } - - public SimpleReliableObjectStore createSimpleReliableObjectStore(Storage storage) { + public SimpleReliableObjectStore createSimpleReliableObjectStore(Storage storage, PersistedSessionOption persistedSessionOption) { if (((InfinispanStorageManager)StorageManagerFactory.get().getStorageManager()).isProtoStream()) { LOG.debug("Using SimpleProtoStreamReliableObjectStore"); return new SimpleProtoStreamReliableObjectStore(storage); } else { - LOG.debug("Using SimpleSerializationReliableObjectStore"); - return new SimpleSerializationReliableObjectStore(storage); + if (persistedSessionOption.getPersistenceObjectsStrategy()== PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES){ + LOG.debug("Using SimpleSerializationReliableRefObjectStore"); + return new SimpleSerializationReliableRefObjectStore(storage); + }else{ + LOG.debug("Using SimpleSerializationReliableObjectStore"); + return new SimpleSerializationReliableObjectStore(storage); + } } } + + @Override + public int servicePriority() { + return 0; + } + + @Override + public String serviceTag() { + return "infinispan"; + } + } diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamGlobal.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamGlobal.java new file mode 100644 index 00000000000..7386eadf06d --- /dev/null +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamGlobal.java @@ -0,0 +1,86 @@ +/** + * 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. + */ +package org.drools.reliability.infinispan.proto; + +import java.util.ArrayList; +import java.util.List; + +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; +import org.infinispan.protostream.types.protobuf.AnySchema; + +/** + * Currently this class supports only one object or an ArrayList of objects. Users should implement Adaptor classes for their own objects. + */ +public class ProtoStreamGlobal { + + private final Object object; + private boolean typeArrayList; + + public ProtoStreamGlobal(Object object) { + this.object = object; + this.typeArrayList = object instanceof ArrayList; + } + + @ProtoFactory + public ProtoStreamGlobal(AnySchema.Any protoObject, List protoObjectList, boolean typeArrayList) { + if (typeArrayList) { + List list = new ArrayList<>(); + for (AnySchema.Any any : protoObjectList) { + list.add(ProtoStreamUtils.fromAnySchema(any)); + } + this.object = list; + } else { + this.object = ProtoStreamUtils.fromAnySchema(protoObject); + } + } + + @ProtoField(number = 1) + public AnySchema.Any getProtoObject() { + if (typeArrayList) { + return null; + } else { + return ProtoStreamUtils.toAnySchema(object); + } + } + + @ProtoField(number = 2, collectionImplementation = ArrayList.class) + public List getProtoObjectList() { + if (typeArrayList) { + List list = (List) object; + List protoObjectList = new ArrayList<>(); + for (Object o : list) { + AnySchema.Any any = ProtoStreamUtils.toAnySchema(o); + protoObjectList.add(any); + } + return protoObjectList; + } else { + return new ArrayList<>(); + } + } + + @ProtoField(number = 3, required = true) + public boolean isTypeArrayList() { + return typeArrayList; + } + + public Object getObject() { + return object; + } +} diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamReliableGlobalResolver.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamReliableGlobalResolver.java new file mode 100644 index 00000000000..be83f859c44 --- /dev/null +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamReliableGlobalResolver.java @@ -0,0 +1,54 @@ +/** + * 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. + */ +package org.drools.reliability.infinispan.proto; + +import org.drools.core.common.Storage; +import org.drools.reliability.core.ReliableGlobalResolver; + +public class ProtoStreamReliableGlobalResolver extends ReliableGlobalResolver { + + public ProtoStreamReliableGlobalResolver(Storage storage) { + super(storage); + } + + @Override + public Object resolveGlobal(String identifier) { + // Use an in-memory global reference. Avoid getting a stale object from storage + if (toBeRefreshed.containsKey(identifier)) { + return toBeRefreshed.get(identifier); + } + ProtoStreamGlobal protoGlobal = (ProtoStreamGlobal)storage.get(identifier); + Object global = protoGlobal.getObject(); + toBeRefreshed.put(identifier, global); + return global; + } + + @Override + public void setGlobal(String identifier, Object value) { + storage.put(identifier, new ProtoStreamGlobal(value)); + } + + @Override + public void updateStorage() { + if (!toBeRefreshed.isEmpty()) { + toBeRefreshed.forEach((k, v) -> storage.put(k, new ProtoStreamGlobal(v))); + toBeRefreshed.clear(); + } + } +} diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamStoredEvent.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamStoredEvent.java new file mode 100644 index 00000000000..bb079da697b --- /dev/null +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamStoredEvent.java @@ -0,0 +1,82 @@ +/** + * 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. + */ +package org.drools.reliability.infinispan.proto; + +import org.drools.reliability.core.BaseStoredEvent; +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; +import org.infinispan.protostream.types.protobuf.AnySchema; + +/** + * This class is used to store objects in Infinispan using ProtoStream. + * This class inherits Serializable from BaseStoredEvent, but it uses ProtoStream instead of Java serialization. + */ +public class ProtoStreamStoredEvent extends BaseStoredEvent { + + private final transient Object object; + + public ProtoStreamStoredEvent(Object object, boolean propagated, long timestamp, long duration) { + super(propagated, timestamp, duration); + this.object = object; + } + + @ProtoFactory + public ProtoStreamStoredEvent(AnySchema.Any protoObject, boolean propagated, long timestamp, long duration) { + super(propagated, timestamp, duration); + this.object = ProtoStreamUtils.fromAnySchema(protoObject); + } + + @ProtoField(number = 1, required = true) + public AnySchema.Any getProtoObject() { + return ProtoStreamUtils.toAnySchema(object); + } + + @Override + @ProtoField(number = 2, required = true) + public boolean isPropagated() { + return propagated; + } + + @Override + @ProtoField(number = 3, required = true) + public long getTimestamp() { + return timestamp; + } + + @Override + @ProtoField(number = 4, required = true) + public long getDuration() { + return duration; + } + + @Override + public Object getObject() { + return object; + } + + @Override + public String toString() { + return "ProtoStreamStoredEvent{" + + "object=" + object + + ", propagated=" + propagated + + ", timestamp=" + timestamp + + ", duration=" + duration + + '}'; + } +} \ No newline at end of file diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamStoredObject.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamStoredObject.java index 89d635ca76e..43283495648 100644 --- a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamStoredObject.java +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamStoredObject.java @@ -1,130 +1,68 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.infinispan.proto; -import java.io.IOException; -import java.io.UncheckedIOException; - -import org.drools.core.common.EventFactHandle; -import org.drools.core.common.InternalWorkingMemoryEntryPoint; -import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.reliability.core.StorageManagerFactory; -import org.drools.reliability.core.StoredObject; -import org.drools.reliability.infinispan.InfinispanStorageManager; -import org.infinispan.protostream.ProtobufUtil; -import org.infinispan.protostream.SerializationContext; +import org.drools.reliability.core.BaseStoredObject; import org.infinispan.protostream.annotations.ProtoFactory; import org.infinispan.protostream.annotations.ProtoField; import org.infinispan.protostream.types.protobuf.AnySchema; -public class ProtoStreamStoredObject implements StoredObject { - - private final Object object; - private final boolean propagated; - private final long timestamp; - private final long duration; +/** + * This class is used to store objects in Infinispan using ProtoStream. + * This class inherits Serializable from BaseStoredObject, but it uses ProtoStream instead of Java serialization. + */ +public class ProtoStreamStoredObject extends BaseStoredObject { - private final String typeUrl; - private final AnySchema.Any protoObject; + private final transient Object object; public ProtoStreamStoredObject(Object object, boolean propagated) { - this(object, propagated, -1, -1); - } - - public ProtoStreamStoredObject(Object object, boolean propagated, long timestamp, long duration) { + super(propagated); this.object = object; - this.propagated = propagated; - this.timestamp = timestamp; - this.duration = duration; - - this.typeUrl = object.getClass().getCanonicalName(); - SerializationContext serializationContext = ((InfinispanStorageManager) StorageManagerFactory.get().getStorageManager()).getSerializationContext(); - byte[] objectBytes; - try { - objectBytes = ProtobufUtil.toByteArray(serializationContext, object); - } catch (IOException e) { - throw new UncheckedIOException(e); - } - this.protoObject = new AnySchema.Any(typeUrl, objectBytes); } @ProtoFactory - public ProtoStreamStoredObject(AnySchema.Any protoObject, boolean propagated, long timestamp, long duration) { - this.propagated = propagated; - this.timestamp = timestamp; - this.duration = duration; - - this.protoObject = protoObject; - this.typeUrl = protoObject.getTypeUrl(); - - SerializationContext serializationContext = ((InfinispanStorageManager) StorageManagerFactory.get().getStorageManager()).getSerializationContext(); - try { - Class type = Class.forName(this.typeUrl); - this.object = ProtobufUtil.fromByteArray(serializationContext, protoObject.getValue(), type); - } catch (IOException | ClassNotFoundException e) { - throw new RuntimeException(e); - } + public ProtoStreamStoredObject(AnySchema.Any protoObject, boolean propagated) { + super(propagated); + this.object = ProtoStreamUtils.fromAnySchema(protoObject); } - @ProtoField(value = 1, required = true) + @ProtoField(number = 1, required = true) public AnySchema.Any getProtoObject() { - return protoObject; + return ProtoStreamUtils.toAnySchema(object); } - @ProtoField(value = 2, required = true) + @Override + @ProtoField(number = 2, required = true) public boolean isPropagated() { return propagated; } - @ProtoField(value = 3, required = true) - public long getTimestamp() { - return timestamp; - } - - @ProtoField(value = 4, required = true) - public long getDuration() { - return duration; - } - - public boolean isEvent() { - return timestamp >= 0; - } - + @Override public Object getObject() { return object; } - public void repropagate(InternalWorkingMemoryEntryPoint ep) { - if (isEvent()) { - FactHandleFactory fhFactory = ep.getHandleFactory(); - EventFactHandle eFh = fhFactory.createEventFactHandle(fhFactory.getNextId(), object, fhFactory.getNextRecency(), ep, timestamp, duration); - ep.insert(eFh); - } else { - ep.insert(object); - } - } - @Override public String toString() { return "ProtoStreamStoredObject{" + "object=" + object + ", propagated=" + propagated + - ", timestamp=" + timestamp + - ", duration=" + duration + - ", typeUrl='" + typeUrl + '\'' + '}'; } } \ No newline at end of file diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamUtils.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamUtils.java new file mode 100644 index 00000000000..07abe5104a6 --- /dev/null +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/ProtoStreamUtils.java @@ -0,0 +1,58 @@ +/** + * 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. + */ +package org.drools.reliability.infinispan.proto; + +import java.io.IOException; + +import org.drools.reliability.core.ReliabilityRuntimeException; +import org.drools.reliability.core.StorageManagerFactory; +import org.drools.reliability.infinispan.InfinispanStorageManager; +import org.infinispan.protostream.ProtobufUtil; +import org.infinispan.protostream.SerializationContext; +import org.infinispan.protostream.types.protobuf.AnySchema; + +public class ProtoStreamUtils { + + private ProtoStreamUtils() { + // util class + } + + public static AnySchema.Any toAnySchema(Object object) { + SerializationContext serializationContext = ((InfinispanStorageManager) StorageManagerFactory.get().getStorageManager()).getSerializationContext(); + byte[] objectBytes; + try { + objectBytes = ProtobufUtil.toByteArray(serializationContext, object); + } catch (IOException e) { + throw new ReliabilityRuntimeException(e); + } + return new AnySchema.Any(object.getClass().getCanonicalName(), objectBytes); + } + + public static Object fromAnySchema(AnySchema.Any protoObject) { + final Object object; + SerializationContext serializationContext = ((InfinispanStorageManager) StorageManagerFactory.get().getStorageManager()).getSerializationContext(); + try { + Class type = Class.forName(protoObject.getTypeUrl()); + object = ProtobufUtil.fromByteArray(serializationContext, protoObject.getValue(), type); + } catch (IOException | ClassNotFoundException e) { + throw new ReliabilityRuntimeException(e); + } + return object; + } +} diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/SimpleProtoStreamReliableObjectStore.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/SimpleProtoStreamReliableObjectStore.java index a81ee323094..438ba4f9e27 100644 --- a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/SimpleProtoStreamReliableObjectStore.java +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/proto/SimpleProtoStreamReliableObjectStore.java @@ -1,26 +1,34 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.reliability.infinispan.proto; import org.drools.core.common.Storage; import org.drools.reliability.core.SimpleSerializationReliableObjectStore; +import org.drools.reliability.core.StoredEvent; import org.drools.reliability.core.StoredObject; public class SimpleProtoStreamReliableObjectStore extends SimpleSerializationReliableObjectStore { + public SimpleProtoStreamReliableObjectStore() { + throw new UnsupportedOperationException("This constructor should never be called"); + } + public SimpleProtoStreamReliableObjectStore(Storage storage) { super(storage); } @@ -31,7 +39,7 @@ protected StoredObject createStoredObject(boolean propagated, Object object) { } @Override - protected StoredObject createStoredObject(boolean propagated, Object object, long timestamp, long duration) { - return new ProtoStreamStoredObject(object, propagated, timestamp, duration); + protected StoredEvent createStoredEvent(boolean propagated, Object object, long timestamp, long duration) { + return new ProtoStreamStoredEvent(object, propagated, timestamp, duration); } } diff --git a/drools-reliability/drools-reliability-infinispan/src/main/resources/META-INF/services/org.drools.reliability.core.ReliableGlobalResolverFactory b/drools-reliability/drools-reliability-infinispan/src/main/resources/META-INF/services/org.drools.reliability.core.ReliableGlobalResolverFactory new file mode 100644 index 00000000000..d3bea4cd4e9 --- /dev/null +++ b/drools-reliability/drools-reliability-infinispan/src/main/resources/META-INF/services/org.drools.reliability.core.ReliableGlobalResolverFactory @@ -0,0 +1 @@ +org.drools.reliability.infinispan.InfinispanReliableGlobalResolverFactory \ No newline at end of file diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityCepTest.java b/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityCepTest.java deleted file mode 100644 index da946092cc0..00000000000 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityCepTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.reliability.infinispan; - -import org.junit.jupiter.api.condition.DisabledIf; -import org.junit.jupiter.api.extension.ExtendWith; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.MethodSource; -import org.kie.api.conf.EventProcessingOption; -import org.kie.api.runtime.conf.ClockTypeOption; -import org.kie.api.runtime.conf.PersistedSessionOption; -import org.kie.api.time.SessionPseudoClock; -import org.test.domain.StockTick; - -import java.util.concurrent.TimeUnit; - -import static org.assertj.core.api.Assertions.assertThat; - -@DisabledIf("isProtoStream") -@ExtendWith(BeforeAllMethodExtension.class) -class ReliabilityCepTest extends ReliabilityTestBasics { - - private static final String CEP_RULE = - "import " + StockTick.class.getCanonicalName() + ";" + - "global java.util.List results;" + - "rule R when\n" + - " $a : StockTick( company == \"DROO\" )\n" + - " $b : StockTick( company == \"ACME\", this after[5s,8s] $a )\n" + - "then\n" + - " results.add(\"fired\");\n" + - "end\n"; - - @ParameterizedTest - @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" - void insertAdvanceInsertFailoverFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { - - createSession(CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); - - SessionPseudoClock clock = session.getSessionClock(); - - session.insert( new StockTick( "DROO" ) ); - clock.advanceTime( 6, TimeUnit.SECONDS ); - session.insert( new StockTick( "ACME" ) ); - - //-- Assume JVM down here. Fail-over to other JVM or rebooted JVM - //-- ksession and kbase are lost. CacheManager is recreated. Client knows only "id" - failover(); - restoreSession(CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); - clock = session.getSessionClock(); - - assertThat(session.fireAllRules()).isEqualTo(1); - assertThat(getResults()).containsExactlyInAnyOrder("fired"); - clearResults(); - - clock.advanceTime( 1, TimeUnit.SECONDS ); - session.insert( new StockTick( "ACME" ) ); - - assertThat(session.fireAllRules()).isEqualTo(1); - assertThat(getResults()).containsExactlyInAnyOrder("fired"); - clearResults(); - - clock.advanceTime( 3, TimeUnit.SECONDS ); - session.insert( new StockTick( "ACME" ) ); - - assertThat(session.fireAllRules()).isEqualTo(0); - assertThat(getResults()).isEmpty(); - } -} diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityTest.java b/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityTest.java deleted file mode 100644 index 384558deba1..00000000000 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityTest.java +++ /dev/null @@ -1,243 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.reliability.infinispan; - -import org.drools.reliability.core.ReliableKieSession; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.MethodSource; -import org.kie.api.runtime.conf.PersistedSessionOption; -import org.kie.api.runtime.rule.FactHandle; -import org.test.domain.Person; - -import static org.assertj.core.api.Assertions.assertThat; - -@ExtendWith(BeforeAllMethodExtension.class) -class ReliabilityTest extends ReliabilityTestBasics { - - private static final String BASIC_RULE = - "import " + Person.class.getCanonicalName() + ";" + - "global java.util.List results;" + - "rule X when\n" + - " $s: String()\n" + - " $p: Person( getName().startsWith($s) )\n" + - "then\n" + - " results.add( $p.getName() );\n" + - "end"; - - @Test - void createAndUseOfNonReliableSession_shouldWorkNormally() { - createSession(BASIC_RULE, null); - - insertString("M"); - insertMatchingPerson("Matching Person One", 37); - - insertNonMatchingPerson("Toshiya", 35); - insertMatchingPerson("Matching Person Two", 40); - - session.fireAllRules(); - - assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); - } - - @ParameterizedTest - @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" - void insertFailoverInsertFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { - createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - insertString("M"); - insertMatchingPerson("Matching Person One", 37); - - //-- Assume JVM down here. Fail-over to other JVM or rebooted JVM - //-- ksession and kbase are lost. CacheManager is recreated. Client knows only "id" - failover(); - - restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - insertNonMatchingPerson("Toshiya", 35); - insertMatchingPerson("Matching Person Two", 40); - - session.fireAllRules(); - - assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); - } - - - @ParameterizedTest - @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // With Remote, FULL fails with "ReliablePropagationList; no valid constructor" even without failover - void noFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { - - createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - insertString("M"); - insertMatchingPerson("Matching Person One", 37); - - if (safepointStrategy == PersistedSessionOption.SafepointStrategy.EXPLICIT) { - ((ReliableKieSession) session).safepoint(); - } - restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - insertNonMatchingPerson("Toshiya", 41); - insertMatchingPerson("Matching Person Two", 40); - - session.fireAllRules(); - - assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); - } - - - @ParameterizedTest - @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" - void insertFireInsertFailoverInsertFire_shouldMatchFactInsertedBeforeFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { - - createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - insertString("M"); - insertMatchingPerson("Matching Person One", 37); - - session.fireAllRules(); - - insertMatchingPerson("Matching Person Two", 40); - - failover(); - - restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - clearResults(); - - insertNonMatchingPerson("Toshiya", 35); - insertMatchingPerson("Matching Person Three", 41); - - session.fireAllRules(); - - assertThat(getResults()).containsExactlyInAnyOrder("Matching Person Two", "Matching Person Three"); - } - - @ParameterizedTest - @MethodSource("strategyProviderStoresOnlyWithAllSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" - void insertFireFailoverInsertFire_shouldNotRepeatFiredMatch(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { - createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - insertString("M"); - insertMatchingPerson("Matching Person One", 37); - - session.fireAllRules(); - - failover(); - - restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - insertNonMatchingPerson("Toshiya", 35); - insertMatchingPerson("Matching Person Two", 40); - - session.fireAllRules(); - - assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); - } - - @ParameterizedTest - @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" - void updateBeforeFailover_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { - - createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - insertString("M"); - Person p1 = new Person("Mario", 49); - FactHandle fh1 = session.insert(p1); - Person p2 = new Person("Toshiya", 45); - FactHandle fh2 = session.insert(p2); - - assertThat(session.fireAllRules()).isEqualTo(1); - assertThat(getResults()).containsExactlyInAnyOrder("Mario"); - - p1.setName("SuperMario"); - session.update(fh1, p1); - p2.setName("MegaToshiya"); - session.update(fh2, p2); - - failover(); - restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - assertThat(session.fireAllRules()).isEqualTo(1); - assertThat(getResults()).containsExactlyInAnyOrder("Mario", "MegaToshiya"); - - failover(); - restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - clearResults(); - - assertThat(session.fireAllRules()).isEqualTo(0); - assertThat(getResults()).isEmpty(); - } - - @ParameterizedTest - @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" - void deleteBeforeFailover_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { - - createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - FactHandle fhString = insertString("M"); - insertMatchingPerson("Matching Person One",37); - insertNonMatchingPerson("Toshiya",35); - - assertThat(session.fireAllRules()).isEqualTo(1); - assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One"); - - session.delete(fhString); - - failover(); - restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - clearResults(); - - insertMatchingPerson("Matching Person Two",40); - - assertThat(session.fireAllRules()).isEqualTo(0); - assertThat(getResults()).isEmpty(); - - insertString("T"); - - failover(); - restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - assertThat(session.fireAllRules()).isEqualTo(1); - assertThat(getResults()).containsExactlyInAnyOrder("Toshiya"); - } - - @ParameterizedTest - @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") - void updateByObjectBeforeFailover_shouldMatchUpdatedFact(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy){ - - createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - insertString("M"); - insertMatchingPerson("Mark", 37); - FactHandle fhNicole = insertNonMatchingPerson("Nicole", 32); - - assertThat(session.fireAllRules()).isEqualTo(1); - - updateWithMatchingPerson(fhNicole,new Person("Mary", 32)); - - failover(); - - restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); - - assertThat(session.fireAllRules()).isEqualTo(1); - - failover(); - - assertThat(session.fireAllRules()).isEqualTo(0); - } - -} diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityTestBasics.java b/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityTestBasics.java deleted file mode 100644 index 4564171bef6..00000000000 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityTestBasics.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.reliability.infinispan; - -import org.drools.core.ClassObjectFilter; -import org.drools.reliability.core.ReliableKieSession; -import org.drools.reliability.core.ReliableRuntimeComponentFactoryImpl; -import org.drools.reliability.core.StorageManagerFactory; -import org.drools.reliability.core.TestableStorageManager; -import org.infinispan.client.hotrod.RemoteCacheManager; -import org.infinispan.server.test.core.InfinispanContainer; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.extension.ExtendWith; -import org.junit.jupiter.params.provider.Arguments; -import org.kie.api.KieBase; -import org.kie.api.KieServices; -import org.kie.api.conf.KieBaseOption; -import org.kie.api.conf.Option; -import org.kie.api.io.ResourceType; -import org.kie.api.runtime.KieSession; -import org.kie.api.runtime.KieSessionConfiguration; -import org.kie.api.runtime.conf.KieSessionOption; -import org.kie.api.runtime.conf.PersistedSessionOption; -import org.kie.api.runtime.rule.FactHandle; -import org.kie.internal.utils.KieHelper; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.test.domain.Person; - -import java.util.ArrayList; -import java.util.List; -import java.util.Optional; -import java.util.stream.Stream; - -import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_MARSHALLER; -import static org.drools.util.Config.getConfig; -import static org.junit.jupiter.params.provider.Arguments.arguments; - -@ExtendWith(BeforeAllMethodExtension.class) -public abstract class ReliabilityTestBasics { - - private static final Logger LOG = LoggerFactory.getLogger(ReliabilityTestBasics.class); - - private InfinispanContainer container; - protected long savedSessionId; - protected KieSession session; - protected PersistedSessionOption.SafepointStrategy safepointStrategy; - - static Stream strategyProvider() { - return Stream.of(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.PersistenceStrategy.FULL); - } - - static Stream strategyProviderStoresOnly() { - return Stream.of(arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY)); - } - - static Stream strategyProviderStoresOnlyWithExplicitSafepoints() { - return Stream.of( - arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.ALWAYS), - arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.EXPLICIT) - ); - } - - static Stream strategyProviderStoresOnlyWithAllSafepoints() { - return Stream.of( - arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.ALWAYS), - arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.EXPLICIT), - arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.AFTER_FIRE) - ); - } - - static boolean isProtoStream() { - return "PROTOSTREAM".equalsIgnoreCase(getConfig(INFINISPAN_STORAGE_MARSHALLER)); - } - - @BeforeEach - public void setUp() { - if (((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).isRemote()) { - LOG.info("Starting InfinispanContainer"); - container = new InfinispanContainer(); - container.start(); - LOG.info("InfinispanContainer started"); // takes about 10 seconds - InfinispanStorageManager cacheManager = (InfinispanStorageManager) StorageManagerFactory.get().getStorageManager(); - RemoteCacheManager remoteCacheManager = container.getRemoteCacheManager(cacheManager.provideAdditionalRemoteConfigurationBuilder()); - cacheManager.setRemoteCacheManager(remoteCacheManager); - } - } - - @AfterEach - public void tearDown() { - if (((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).isRemote()) { - StorageManagerFactory.get().getStorageManager().removeAllSessionStorages(); - StorageManagerFactory.get().getStorageManager().close(); // close remoteCacheManager - container.stop(); // stop remote infinispan - } else { - // clean up embedded Infinispan including GlobalState and FireStore so that test methods can be isolated - ((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).restartWithCleanUp(); - } - ReliableRuntimeComponentFactoryImpl.resetCounter(); - } - - public void failover() { - if (safepointStrategy == PersistedSessionOption.SafepointStrategy.EXPLICIT) { - ((ReliableKieSession) session).safepoint(); - } - - if (((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).isRemote()) { - // fail-over means restarting Drools instance. Assuming remote infinispan keeps alive - StorageManagerFactory.get().getStorageManager().close(); // close remoteCacheManager - // Reclaim RemoteCacheManager - InfinispanStorageManager cacheManager = (InfinispanStorageManager) StorageManagerFactory.get().getStorageManager(); - RemoteCacheManager remoteCacheManager = container.getRemoteCacheManager(cacheManager.provideAdditionalRemoteConfigurationBuilder()); - cacheManager.setRemoteCacheManager(remoteCacheManager); - } else { - ((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).restart(); // restart embedded infinispan cacheManager. GlobalState and FireStore are kept - } - ReliableRuntimeComponentFactoryImpl.refreshCounterUsingStorage(); - } - - protected FactHandle insertString(String str) { - return session.insert(str); - } - - protected FactHandle insertInteger(Integer number) { - return session.insert(number); - } - - protected FactHandle insertMatchingPerson(String name, Integer age) { - return session.insert(new Person(name, age)); - } - - protected void updateWithMatchingPerson(FactHandle nonMatching, Object matching){ - session.update(nonMatching,matching); - } - - protected void updateWithNonMatchingPerson(FactHandle matching, Object nonMatching){ - session.update(matching, nonMatching); - } - - protected FactHandle insertNonMatchingPerson(String name, Integer age) { - return session.insert(new Person(name, age)); - } - - protected List getResults() { - return (List) session.getGlobal("results"); - } - - protected void clearResults() { - ((List) session.getGlobal("results")).clear(); - } - - protected KieSession createSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, Option... options) { - return createSession(drl, persistenceStrategy, PersistedSessionOption.SafepointStrategy.ALWAYS, options); - } - - protected KieSession createSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, Option... options) { - getKieSession(drl, persistenceStrategy != null ? PersistedSessionOption.newSession().withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy) : null, options); - savedSessionId = session.getIdentifier(); - return session; - } - - protected KieSession restoreSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, Option... options) { - return restoreSession(drl, persistenceStrategy, PersistedSessionOption.SafepointStrategy.ALWAYS, options); - } - - protected KieSession restoreSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, Option... options) { - return getKieSession(drl, PersistedSessionOption.fromSession(savedSessionId).withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy), options); - } - - protected void disposeSession() { - session.dispose(); - } - - protected KieSession getKieSession(String drl, PersistedSessionOption persistedSessionOption, Option... options) { - OptionsFilter optionsFilter = new OptionsFilter(options); - KieBase kbase = new KieHelper().addContent(drl, ResourceType.DRL).build(optionsFilter.getKieBaseOptions()); - KieSessionConfiguration conf = KieServices.get().newKieSessionConfiguration(); - if (persistedSessionOption != null) { - conf.setOption(persistedSessionOption); - safepointStrategy = persistedSessionOption.getSafepointStrategy(); - } - Stream.of(optionsFilter.getKieSessionOption()).forEach(conf::setOption); - session = kbase.newKieSession(conf, null); - if (persistedSessionOption == null || persistedSessionOption.isNewSession()) { - List results = new ArrayList<>(); - session.setGlobal("results", results); - } - return session; - } - - protected Optional getPersonByName(KieSession kieSession, String name) { - return kieSession.getObjects(new ClassObjectFilter(Person.class)) - .stream() - .map(Person.class::cast) - .filter(p -> p.getName().equals(name) ).findFirst(); - } - - private static class OptionsFilter { - private final Option[] options; - - OptionsFilter(Option[] options) { - this.options = options; - } - - KieBaseOption[] getKieBaseOptions() { - return options == null ? new KieBaseOption[0] : Stream.of(options).filter(KieBaseOption.class::isInstance).toArray(KieBaseOption[]::new); - } - - KieSessionOption[] getKieSessionOption() { - return options == null ? new KieSessionOption[0] : Stream.of(options).filter(KieSessionOption.class::isInstance).toArray(KieSessionOption[]::new); - } - } -} diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityTestUpdateInDrl.java b/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityTestUpdateInDrl.java deleted file mode 100644 index d5ba9f7859f..00000000000 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/ReliabilityTestUpdateInDrl.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.reliability.infinispan; - -import org.test.domain.Person; -import org.junit.jupiter.api.extension.ExtendWith; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.MethodSource; -import org.kie.api.runtime.conf.PersistedSessionOption; - -import static org.assertj.core.api.Assertions.assertThat; - -@ExtendWith(BeforeAllMethodExtension.class) -public class ReliabilityTestUpdateInDrl extends ReliabilityTestBasics { - - private static final String RULE_UPDATE = - "import " + Person.class.getCanonicalName() + ";" + - "global java.util.List results;" + - "rule X when\n" + - " $s: String()\n" + - " $p: Person( getName().startsWith($s), getAge()>17 )\n" + - "then\n" + - " results.add( $p.getAge() );\n" + - "end\n" + - "rule Birthday when\n" + - " $a: Integer()\n" + - " $p: Person( getAge() == $a )\n" + - "then\n" + - " $p.setAge( $a + 1 );\n" + - " update($p);\n" + - "end"; - - @ParameterizedTest - @MethodSource("strategyProviderStoresOnly") - void updateInRHS_insertFireFailoverFire_shouldMatchUpdatesFromFirstSession(PersistedSessionOption.PersistenceStrategy strategy){ - - createSession(RULE_UPDATE, strategy); - - insertString("M"); - insertMatchingPerson("Mike",22); - insertNonMatchingPerson("Eleven", 17); - insertInteger(17); // person with age=17 will change to 18 (17+1) - - assertThat(session.fireAllRules()).isEqualTo(2); // person with name that starts with M and has age>17 will be added to the results list - assertThat(getResults()).containsExactlyInAnyOrder(22); - - failover(); - - restoreSession(RULE_UPDATE, strategy); - clearResults(); - - insertString("E"); // NonMatchingPerson will match rule X - - assertThat(session.fireAllRules()).isEqualTo(1); - assertThat(getResults()).containsExactlyInAnyOrder(18); - - failover(); - - restoreSession(RULE_UPDATE, strategy); - clearResults(); - - assertThat(session.fireAllRules()).isEqualTo(0); - assertThat(getResults()).isEmpty(); - } - -} - diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/example/RemoteCacheManagerExampleAfterFailOver.java b/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/example/RemoteCacheManagerExampleAfterFailOver.java deleted file mode 100644 index 3bfc1cfd5b1..00000000000 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/example/RemoteCacheManagerExampleAfterFailOver.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.reliability.infinispan.example; - -import org.kie.api.runtime.KieSession; -import org.kie.api.runtime.conf.PersistedSessionOption; - -/** - * Example class to demonstrate how to use RemoteCacheManager. - * - * See RemoteCacheManagerExample for more details. - */ -public class RemoteCacheManagerExampleAfterFailOver { - - public static void main(String[] args) { - // Here we use the savedSessionId to retrieve the session. Explicitly 0 for now, but it could be different. - KieSession session = RemoteCacheManagerExample.getKieSession(PersistedSessionOption.fromSession(0).withPersistenceStrategy(PersistedSessionOption.PersistenceStrategy.STORES_ONLY)); - - try { - System.out.println("fireAllRules"); - session.fireAllRules(); - Object results = session.getGlobal("results"); - System.out.println("results = " + results); - } finally { - session.dispose(); - } - } -} diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/proto/PersonAdaptor.java b/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/proto/PersonAdaptor.java deleted file mode 100644 index 96f865c9df7..00000000000 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/proto/PersonAdaptor.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.reliability.infinispan.proto; - -import org.infinispan.protostream.annotations.ProtoAdapter; -import org.infinispan.protostream.annotations.ProtoFactory; -import org.infinispan.protostream.annotations.ProtoField; -import org.test.domain.Person; - -@ProtoAdapter(Person.class) -public class PersonAdaptor { - - @ProtoFactory - Person create(String name, int age) { - return new Person(name, age); - } - - @ProtoField(1) - String getName(Person person) { - return person.getName(); - } - - @ProtoField(number = 2, defaultValue = "0") - int getAge(Person person) { - return person.getAge(); - } -} diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/proto/TestProtoStreamSchema.java b/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/proto/TestProtoStreamSchema.java deleted file mode 100644 index 7edbc2b2d91..00000000000 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/proto/TestProtoStreamSchema.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. - */ - -package org.drools.reliability.infinispan.proto; - -import org.infinispan.protostream.GeneratedSchema; -import org.infinispan.protostream.annotations.AutoProtoSchemaBuilder; -import org.infinispan.protostream.types.protobuf.AnySchema; - -@AutoProtoSchemaBuilder(includeClasses = {ProtoStreamStoredObject.class, StringAdaptor.class, PersonAdaptor.class}, - dependsOn = AnySchema.class, - schemaPackageName = "org.drools.reliability.infinispan", - schemaFileName = "test-store-object.proto", schemaFilePath = "proto") -public interface TestProtoStreamSchema extends GeneratedSchema { -} diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/test/domain/StockFact.java b/drools-reliability/drools-reliability-infinispan/src/test/java/org/test/domain/StockFact.java deleted file mode 100644 index 95638881643..00000000000 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/test/domain/StockFact.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2005 JBoss Inc - * - * Licensed 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. - */ - -package org.test.domain; - -import java.io.Serializable; - -public class StockFact implements Serializable { - private final String company; - private final long duration; - - public StockFact(String company ) { - this( company, 0 ); - } - - public StockFact(String company, long duration ) { - this.company = company; - this.duration = duration; - } - - public String getCompany() { - return company; - } - - public long getDuration() { - return duration; - } -} \ No newline at end of file diff --git a/drools-reliability/drools-reliability-infinispan/src/test/resources/logback-test.xml b/drools-reliability/drools-reliability-infinispan/src/test/resources/logback-test.xml deleted file mode 100644 index a2f169f3630..00000000000 --- a/drools-reliability/drools-reliability-infinispan/src/test/resources/logback-test.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - %date{HH:mm:ss.SSS} [%thread] %-5level %class.%method:%line - %msg%n - - - - - - - - - - - - - - diff --git a/drools-reliability/drools-reliability-tests/.gitignore b/drools-reliability/drools-reliability-tests/.gitignore new file mode 100644 index 00000000000..3b05d2a3165 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/.gitignore @@ -0,0 +1,3 @@ +tmp/ +global/ +h2mvstore.db \ No newline at end of file diff --git a/drools-reliability/drools-reliability-tests/infinispan-remote-config/infinispan-local.xml b/drools-reliability/drools-reliability-tests/infinispan-remote-config/infinispan-local.xml new file mode 100644 index 00000000000..ba003cff8b8 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/infinispan-remote-config/infinispan-local.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/drools-reliability/drools-reliability-tests/pom.xml b/drools-reliability/drools-reliability-tests/pom.xml new file mode 100644 index 00000000000..270bbb193fb --- /dev/null +++ b/drools-reliability/drools-reliability-tests/pom.xml @@ -0,0 +1,330 @@ + + + + + org.drools + drools-reliability + 8.45.0-SNAPSHOT + + 4.0.0 + + drools-reliability-tests + + Drools :: Reliability :: Tests + + + org.drools.reliability.infinispan + 1.17.2 + + + + + + org.infinispan + infinispan-bom + ${version.org.infinispan} + pom + import + + + org.testcontainers + junit-jupiter + ${version.testcontainers} + test + + + + + + + + org.drools + drools-reliability-core + test + + + org.drools + drools-reliability-infinispan + test + + + org.infinispan.protostream + protostream-processor + test + + + org.drools + drools-reliability-h2mvstore + test + + + + org.drools + drools-engine + test + + + + junit + junit + test + + + org.assertj + assertj-core + test + + + org.junit.vintage + junit-vintage-engine + test + + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test + + + org.junit.jupiter + junit-jupiter-params + test + + + org.testcontainers + junit-jupiter + test + + + + org.infinispan + infinispan-server-testdriver-core + test + + + org.apache.logging.log4j + log4j-api + + + org.apache.logging.log4j + log4j-core + + + org.apache.logging.log4j + log4j-slf4j-impl + + + org.infinispan + infinispan-jboss-marshalling + + + + + org.infinispan + infinispan-component-annotations + test + + + + ch.qos.logback + logback-classic + test + + + org.drools + drools-model-codegen + test + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + ban-duplicated-classes + + + + + + + org.infinispan + infinispan-objectfilter + jar + + com.fasterxml.jackson.* + com.github.benmanes.* + com.squareup.protoparser.* + org.infinispan.* + + + + + + + + + + + + + + + default + + true + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + + + default-test + + + INFINISPAN + EMBEDDED + + + **/*SmokeTest.java + + + + + smoke-tests-remote + + + INFINISPAN + REMOTE + + + **/smoke/remote/*SmokeTest.java + + + + test + + + + smoke-tests-remote-proto + + + INFINISPAN + REMOTE + PROTOSTREAM + org.drools.reliability.test.proto.TestProtoStreamSchemaImpl + + + **/smoke/proto/*SmokeTest.java + + + + test + + + + h2mvstore-test + + + H2MVSTORE + + + **/*SmokeTest.java + + + + test + + + + + + + + + remote + + + remote + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + INFINISPAN + REMOTE + + + + + + + + remote-proto + + + remote-proto + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + INFINISPAN + REMOTE + PROTOSTREAM + org.drools.reliability.test.proto.TestProtoStreamSchemaImpl + + + + + + + + + \ No newline at end of file diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/BeforeAllMethodExtension.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/BeforeAllMethodExtension.java similarity index 57% rename from drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/BeforeAllMethodExtension.java rename to drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/BeforeAllMethodExtension.java index e0ab3a54284..8765931c7fb 100644 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/BeforeAllMethodExtension.java +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/BeforeAllMethodExtension.java @@ -1,22 +1,28 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - -package org.drools.reliability.infinispan; +package org.drools.reliability.test; import java.nio.file.Path; +import org.drools.reliability.h2mvstore.H2MVStoreStorageManager; +import org.drools.reliability.infinispan.EmbeddedStorageManager; +import org.drools.reliability.test.util.TestConfigurationUtils; import org.drools.util.FileUtils; import org.junit.jupiter.api.extension.BeforeAllCallback; import org.junit.jupiter.api.extension.ExtensionContext; @@ -25,7 +31,6 @@ import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_ALLOWED_PACKAGES; import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_MARSHALLER; -import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_MODE; import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_SERIALIZATION_CONTEXT_INITIALIZER; public class BeforeAllMethodExtension implements BeforeAllCallback { @@ -45,11 +50,18 @@ public void beforeAll(ExtensionContext context) { return; } initialized = true; + System.setProperty(INFINISPAN_STORAGE_ALLOWED_PACKAGES, "org.test.domain"); FileUtils.deleteDirectory(Path.of(EmbeddedStorageManager.GLOBAL_STATE_DIR)); LOG.info("### Deleted directory {}", EmbeddedStorageManager.GLOBAL_STATE_DIR); + H2MVStoreStorageManager.cleanUpDatabase(); + LOG.info("### Deleted database file {}", H2MVStoreStorageManager.STORE_FILE_NAME); + LOG.info("### Set marshaller to {}", System.getProperty(INFINISPAN_STORAGE_MARSHALLER)); LOG.info("### Set initializer to {}", System.getProperty(INFINISPAN_STORAGE_SERIALIZATION_CONTEXT_INITIALIZER)); + + // configureServicePriorities triggers Factory instantiation, so should be called after directory cleanup + TestConfigurationUtils.configureServicePriorities(); } } diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/CachePersistenceTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/CachePersistenceTest.java similarity index 50% rename from drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/CachePersistenceTest.java rename to drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/CachePersistenceTest.java index 97dd0de51c8..a6181439d82 100644 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/CachePersistenceTest.java +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/CachePersistenceTest.java @@ -1,26 +1,28 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - -package org.drools.reliability.infinispan; +package org.drools.reliability.test; import org.drools.reliability.core.StorageManagerFactory; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.runtime.KieSession; import org.kie.api.runtime.conf.PersistedSessionOption; import org.test.domain.Person; @@ -42,7 +44,6 @@ class CachePersistenceTest extends ReliabilityTestBasics { "then\n" + "end"; - @DisabledOnOs(OS.WINDOWS) // temporarily disabled until DROOLS-7393 is fixed @ParameterizedTest @MethodSource("strategyProviderStoresOnly") void removeAllSessionCaches_shouldRemoveAllSessionCachesEvenAfterFailover(PersistedSessionOption.PersistenceStrategy strategy) { @@ -57,7 +58,7 @@ void removeAllSessionCaches_shouldRemoveAllSessionCachesEvenAfterFailover(Persis restoreSession(EMPTY_RULE, strategy); // restored but no objects in the cache - Optional toshiya = getPersonByName(session, "Toshiya"); + Optional toshiya = getPersonByName("Toshiya"); assertThat(toshiya).isEmpty(); // So cannot recover the fact } @@ -66,46 +67,66 @@ void removeAllSessionCaches_shouldRemoveAllSessionCachesEvenAfterFailover(Persis void ksessionDispose_shouldRemoveCache(PersistedSessionOption.PersistenceStrategy strategy){ createSession(EMPTY_RULE, strategy); // sessionId = 0. This creates session_0_epDEFAULT and session_0_globals + long sessionId = getSessionIdentifier(); insertNonMatchingPerson("Toshiya", 10); disposeSession(); // This should clean up session's cache - assertThat(StorageManagerFactory.get().getStorageManager().getStorageNames()).allMatch(name -> !name.startsWith(SESSION_STORAGE_PREFIX + savedSessionId)); + assertThat(StorageManagerFactory.get().getStorageManager().getStorageNames()).allMatch(name -> !name.startsWith(SESSION_STORAGE_PREFIX + sessionId)); } @ParameterizedTest @MethodSource("strategyProviderStoresOnly") - void missingDispose_shouldNotReuseOrphanedCache(PersistedSessionOption.PersistenceStrategy strategy) { - createSession(EMPTY_RULE, strategy); // sessionId = 0 - insertNonMatchingPerson("Toshiya", 10); + void missingDispose_shouldNotReuseOrphanedCache(PersistedSessionOption.PersistenceStrategy strategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + KieSession firstSession = createSession(EMPTY_RULE, strategy, safepointStrategy); + assertThat(persistedSessionIds.get(firstSession.getIdentifier())) + .as("firstSession's persisted session id = 0") + .isEqualTo(0); + + insertNonMatchingPerson(firstSession,"Toshiya", 10); + + Optional toshiyaInFirstSession = getPersonByName(firstSession, "Toshiya"); + assertThat(toshiyaInFirstSession).isNotEmpty(); - // disposeSession() is missing + // disposeSession() for the first session is missing. Simulating that the first session is completely lost from client side. failover(); - createSession(EMPTY_RULE, strategy); // new session. If sessionId = 0, it will potentially reuse the orphaned cache + // create a new session. + KieSession secondSession = createSession(EMPTY_RULE, strategy, safepointStrategy); + assertThat(persistedSessionIds.get(secondSession.getIdentifier())) + .as("second session's persisted session id = 1. Don't reuse the orphaned cache") + .isEqualTo(1); - Optional toshiya = getPersonByName(session, "Toshiya"); - assertThat(toshiya).isEmpty(); // new session doesn't trigger re-propagation + Optional toshiyaInSecondSession = getPersonByName(secondSession, "Toshiya"); + assertThat(toshiyaInSecondSession) + .as("new session doesn't have the fact") + .isEmpty(); failover(); - restoreSession(EMPTY_RULE, strategy); // restoreSession triggers re-propagation + // restore secondSession + KieSession thirdSession = restoreSession(secondSession.getIdentifier(), EMPTY_RULE, strategy, safepointStrategy); + assertThat(persistedSessionIds.get(thirdSession.getIdentifier())) + .as("third session's persisted session id = 1. Don't reuse the orphaned cache") + .isEqualTo(1); - toshiya = getPersonByName(session, "Toshiya"); - assertThat(toshiya).isEmpty(); // should not reuse the orphaned cache + Optional toshiyaInThirdSession = getPersonByName(thirdSession, "Toshiya"); + assertThat(toshiyaInThirdSession) + .as("thirdSession takes over the secondSession's cache. It doesn't have the fact") + .isEmpty(); } @ParameterizedTest @MethodSource("strategyProviderStoresOnly") void reliableSessionCounter_shouldNotHaveTheSameIdAsPreviousKsession(PersistedSessionOption.PersistenceStrategy strategy) { createSession(EMPTY_RULE, strategy); // new session. sessionId = 0 - long firstSessionId = session.getIdentifier(); + long firstSessionId = getSessionIdentifier(); failover(); createSession(EMPTY_RULE, strategy); // new session. sessionId = 1 - long secondSessionId = session.getIdentifier(); + long secondSessionId = getSessionIdentifier(); assertThat(secondSessionId).isNotEqualTo(firstSessionId); // sessionId should not be the same } diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/EmbeddedStorageManagerTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/EmbeddedStorageManagerTest.java similarity index 73% rename from drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/EmbeddedStorageManagerTest.java rename to drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/EmbeddedStorageManagerTest.java index 4295b0593fb..d00568737ea 100644 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/EmbeddedStorageManagerTest.java +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/EmbeddedStorageManagerTest.java @@ -1,26 +1,30 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - -package org.drools.reliability.infinispan; +package org.drools.reliability.test; import org.drools.reliability.core.StorageManagerFactory; import org.drools.reliability.core.TestableStorageManager; +import org.drools.reliability.infinispan.InfinispanStorageManager; import org.infinispan.manager.DefaultCacheManager; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledIf; +import org.junit.jupiter.api.condition.EnabledIf; import org.junit.jupiter.api.extension.ExtendWith; import java.util.Map; @@ -31,12 +35,13 @@ import static org.drools.reliability.core.StorageManagerFactory.SESSION_STORAGE_PREFIX; import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_ALLOWED_PACKAGES; import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_MODE; +import static org.drools.reliability.test.util.TestConfigurationUtils.DROOLS_RELIABILITY_MODULE_TEST; import static org.drools.util.Config.getConfig; /** * This class is a unit test for EmbeddedCacheManager methods with a fake cacheManager instead of Infinispan DefaultCacheManager. */ -@DisabledIf("isRemote") +@EnabledIf("isEmbeddedInfinispan") @ExtendWith(BeforeAllMethodExtension.class) class EmbeddedStorageManagerTest { @@ -49,8 +54,9 @@ public void tearDown() { ((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).restart(); // make sure that FakeCacheManager is removed } - private static boolean isRemote() { - return "REMOTE".equalsIgnoreCase(getConfig(INFINISPAN_STORAGE_MODE)); + static boolean isEmbeddedInfinispan() { + return "INFINISPAN".equalsIgnoreCase(getConfig(DROOLS_RELIABILITY_MODULE_TEST)) + && "EMBEDDED".equalsIgnoreCase(getConfig(INFINISPAN_STORAGE_MODE)); } @Test diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/FactoryServiceTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/FactoryServiceTest.java new file mode 100644 index 00000000000..babb5e3ff36 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/FactoryServiceTest.java @@ -0,0 +1,56 @@ +/** + * 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. + */ + +package org.drools.reliability.test; + +import org.drools.reliability.core.ReliableGlobalResolverFactory; +import org.drools.reliability.core.SimpleReliableObjectStoreFactory; +import org.drools.reliability.core.StorageManagerFactory; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; + +import static org.assertj.core.api.Assertions.assertThatExceptionOfType; + +@ExtendWith(BeforeAllMethodExtension.class) +class FactoryServiceTest { + + @Test + void getStorageManagerFactoryWithDifferentReliabilityPersistanceLayer_shouldThrowException() { + assertThatExceptionOfType(IllegalStateException.class).isThrownBy(() -> { + StorageManagerFactory.get("infinispan"); + StorageManagerFactory.get("h2mvstore"); + }); + } + + @Test + void getReliableGlobalResolverFactoryWithDifferentReliabilityPersistanceLayer_shouldThrowException() { + assertThatExceptionOfType(IllegalStateException.class).isThrownBy(() -> { + ReliableGlobalResolverFactory.get("infinispan"); + ReliableGlobalResolverFactory.get("core"); + }); + } + + @Test + void getSimpleReliableObjectStoreFactoryWithDifferentReliabilityPersistanceLayer_shouldThrowException() { + assertThatExceptionOfType(IllegalStateException.class).isThrownBy(() -> { + SimpleReliableObjectStoreFactory.get("infinispan"); + SimpleReliableObjectStoreFactory.get("core"); + }); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ObjectReferenceEventTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ObjectReferenceEventTest.java new file mode 100644 index 00000000000..3575407bd3c --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ObjectReferenceEventTest.java @@ -0,0 +1,72 @@ +/** + * 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. + */ + +package org.drools.reliability.test; + +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.conf.EventProcessingOption; +import org.kie.api.runtime.conf.ClockTypeOption; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.api.time.SessionPseudoClock; +import org.test.domain.ControlEvent; +import org.test.domain.StockTick; + +import static java.util.concurrent.TimeUnit.SECONDS; +import static org.assertj.core.api.Assertions.assertThat; + +class ObjectReferenceEventTest extends ReliabilityTestBasics { + + // This is not a very meaningful rule. Just to demonstrate object reference with events + private static final String REF_EVENT = + "import " + StockTick.class.getCanonicalName() + ";\n" + + "import " + ControlEvent.class.getCanonicalName() + ";\n" + + "global java.util.List results;\n" + + "rule R1 when\n" + + " $s : StockTick()\n" + + " $c : ControlEvent(stockTick == $s, this after[1s,5s] $s)\n" + + "then\n" + + " results.add( \"R1\" );\n" + + "end"; + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // does not support PersistedSessionOption.PersistenceObjectsStrategy.SIMPLE + void testInsertFailover_ShouldFireRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(REF_EVENT, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES, + EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + SessionPseudoClock clock = getSessionClock(); + + StockTick stockTick = new StockTick("DROO"); + insert(stockTick); + + clock.advanceTime(2, SECONDS); + + ControlEvent controlEvent = new ControlEvent(stockTick); + insert(controlEvent); + + failover(); + restoreSession(REF_EVENT, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES, + EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + fireAllRules(); + + assertThat(getResults()).containsExactly("R1"); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityAccumulateTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityAccumulateTest.java new file mode 100644 index 00000000000..dc00419a44d --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityAccumulateTest.java @@ -0,0 +1,197 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import java.util.Optional; + +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.api.runtime.rule.FactHandle; +import org.test.domain.Person; + +import static org.assertj.core.api.Assertions.assertThat; + +@ExtendWith(BeforeAllMethodExtension.class) +class ReliabilityAccumulateTest extends ReliabilityTestBasics { + + public static final String ACCUMULATE_RULE = + "import " + Person.class.getCanonicalName() + ";" + + "global java.util.List results;" + + "rule X when\n" + + " accumulate ( $p: Person ( getName().startsWith(\"M\") ); \n" + + " $sum : sum($p.getAge()) \n" + + " ) \n" + + "then\n" + + " results.add($sum);\n" + + "end"; + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFailoverInsertFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + + insertMatchingPerson("Matching Person One", 37); + + failover(); + + restoreSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + + insertNonMatchingPerson("Non-matching Person", 35); + insertMatchingPerson("Matching Person Two", 40); + + fireAllRules(); + + assertThat(getResults()).as("sum = 37 + 40").containsExactly(77); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFireInsertFailoverInsertFire_shouldMatchFactInsertedBeforeFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + + insertMatchingPerson("Matching Person One", 37); + + fireAllRules(); + + insertMatchingPerson("Matching Person Two", 40); + + failover(); + + restoreSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + + insertNonMatchingPerson("Non-matching Person", 35); + insertMatchingPerson("Matching Person Three", 41); + + fireAllRules(); + + assertThat(getResults()).as("first sum is 37. second sum is 37 + 40 + 41 = 118").containsExactly(37, 118); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void updateBeforeFailover_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + + Person p1 = new Person("Mario", 49); + FactHandle fh1 = insert(p1); + Person p2 = new Person("Toshiya", 45); + FactHandle fh2 = insert(p2); + + fireAllRules(); + + assertThat(getResults()).as("Matching only Mario. sum = 49").containsExactly(49); + clearResults(); + + p1.setName("SuperMario"); + update(fh1, p1); + p2.setName("MegaToshiya"); + update(fh2, p2); + + failover(); + restoreSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + + fireAllRules(); + assertThat(getResults()).as("Matching only MegaToshiya. sum = 45").containsExactly(45); + + failover(); + restoreSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + clearResults(); + + assertThat(fireAllRules()).as("No new insertion doesn't trigger firing").isZero(); + assertThat(getResults()).isEmpty(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void deleteBeforeFailover_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + + FactHandle matchingPersonOnefactHandle = insertMatchingPerson("Matching Person One", 37); + insertNonMatchingPerson("Toshiya", 35); + + fireAllRules(); + assertThat(getResults()).containsExactly(37); + + delete(matchingPersonOnefactHandle); + + failover(); + restoreSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + clearResults(); + + insertMatchingPerson("Matching Person Two", 40); + + fireAllRules(); + assertThat(getResults()).as("Matching Person One is deleted").containsExactly(40); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void deleteAfterFailover_shouldNotMatch(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + + Person matchingPersonOne = new Person("Matching Person One", 37); + insert(matchingPersonOne); + + insertMatchingPerson("Matching Person Two", 40); + + failover(); + restoreSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy); + + Optional matchingPersonOneFactHandleOpt = getFactHandle(matchingPersonOne); + assertThat(matchingPersonOneFactHandleOpt).isPresent(); + + delete(matchingPersonOneFactHandleOpt.get()); + + fireAllRules(); + assertThat(getResults()).as("Matching Person One is deleted").containsExactly(40); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") + void multipleKieSessions_insertFailoverInsertFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + KieSession session1 = createSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + KieSession session2 = createSession(ACCUMULATE_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + insert(session1, new Person("Mike-session1", 27)); // insert matching person + insert(session2, new Person("Toshiya-session2", 34)); // insert non matching person + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(fireAllRules(session2)).as("If there is no matching fact, accumulate sum returns '0' and the rule is fired").isEqualTo(1); + + failover(); + + session1 = restoreSession(session1.getIdentifier(), ACCUMULATE_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + session2 = restoreSession(session2.getIdentifier(), ACCUMULATE_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + insert(session1, new Person("Michael-session1", 42)); // insert matching person + insert(session2, new Person("Max-session2", 25)); // insert matching person + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(fireAllRules(session2)).isEqualTo(1); + + assertThat(getResults(session1)).containsExactly(27, 69); + assertThat(getResults(session2)).containsExactly(0, 25); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepOnceAfterTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepOnceAfterTest.java new file mode 100644 index 00000000000..daee3e6fb61 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepOnceAfterTest.java @@ -0,0 +1,280 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; + +import org.drools.base.facttemplates.Event; +import org.drools.model.Global; +import org.drools.model.Index; +import org.drools.model.Model; +import org.drools.model.Prototype; +import org.drools.model.PrototypeDSL; +import org.drools.model.PrototypeVariable; +import org.drools.model.Rule; +import org.drools.model.Variable; +import org.drools.model.impl.ModelImpl; +import org.drools.reliability.test.util.TimeAmount; +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.conf.EventProcessingOption; +import org.kie.api.runtime.conf.ClockTypeOption; +import org.kie.api.runtime.conf.PersistedSessionOption; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.drools.model.DSL.accFunction; +import static org.drools.model.DSL.accumulate; +import static org.drools.model.DSL.declarationOf; +import static org.drools.model.DSL.globalOf; +import static org.drools.model.DSL.not; +import static org.drools.model.DSL.on; +import static org.drools.model.PatternDSL.rule; +import static org.drools.model.PrototypeDSL.protoPattern; +import static org.drools.model.PrototypeDSL.variable; +import static org.drools.model.PrototypeExpression.fixedValue; +import static org.drools.model.PrototypeExpression.prototypeField; +import static org.drools.modelcompiler.facttemplate.FactFactory.createMapBasedEvent; +import static org.drools.reliability.test.util.PrototypeUtils.DEFAULT_PROTOTYPE_NAME; +import static org.drools.reliability.test.util.PrototypeUtils.SYNTHETIC_PROTOTYPE_NAME; +import static org.drools.reliability.test.util.PrototypeUtils.getPrototype; +import static org.drools.reliability.test.util.PrototypeUtils.processResults; + +@ExtendWith(BeforeAllMethodExtension.class) +class ReliabilityCepOnceAfterTest extends ReliabilityTestBasics { + + public static final String KEYWORD = "once_after"; + public static final String RULE_NAME = "R"; + + /** + * These rules are created in the same way as OnceAfterDefinition in drools-ansible-rulebook-integration + */ + private Model ruleModel() { + Prototype controlPrototype = getPrototype(SYNTHETIC_PROTOTYPE_NAME); + PrototypeVariable controlVar1 = variable(controlPrototype, "c1"); + PrototypeVariable controlVar2 = variable(controlPrototype, "c2"); + PrototypeVariable controlVar3 = variable(controlPrototype, "c3"); + Variable resultsVar = declarationOf(List.class, "results"); + Global global = globalOf(List.class, "defaultpkg", "results"); + + List rules = new ArrayList<>(); + + // main rule (accumulate events within 10 minutes) + rules.add( + rule(RULE_NAME).metadata(RULE_TYPE_TAG, KEYWORD) + .build( + protoPattern(controlVar1).expr("end_once_after", Index.ConstraintType.EQUAL, RULE_NAME), + not(protoPattern(controlVar2).expr("start_once_after", Index.ConstraintType.EQUAL, RULE_NAME)), + accumulate(protoPattern(controlVar3).expr("drools_rule_name", Index.ConstraintType.EQUAL, RULE_NAME), + accFunction(org.drools.core.base.accumulators.CollectListAccumulateFunction::new, controlVar3).as(resultsVar)), + on(controlVar1, resultsVar, global).execute((drools, controlFact, resultFactList, globalResults) -> { + drools.delete(controlFact); + processResults(globalResults, resultFactList); + resultFactList.forEach(drools::delete); + }) + ) + ); + + // control rule (wrapping original event) + PrototypeVariable originalEventVariable = variable(getPrototype(DEFAULT_PROTOTYPE_NAME), "m"); + rules.add( + rule(RULE_NAME + "_control").metadata(SYNTHETIC_RULE_TAG, true) + .build( + guardedPattern(originalEventVariable), + not(duplicateControlPattern(originalEventVariable)), + on(originalEventVariable).execute((drools, event) -> { + Event controlEvent = createMapBasedEvent(controlPrototype); + controlEvent.set("sensu.host", event.get("sensu.host")); // groupByAttributes + controlEvent.set("sensu.process.type", event.get("sensu.process.type")); // groupByAttributes + controlEvent.set("drools_rule_name", RULE_NAME); + controlEvent.set("event", event); + controlEvent.set("once_after_time_window", "10 minutes"); + controlEvent.set("events_in_window", 1); + drools.insert(controlEvent); + drools.delete(event); + }) + ) + ); + + // start rule (insert start and end control events. start event expires in 10 minutes, so the main rule will fire) + TimeAmount timeAmount = TimeAmount.parseTimeAmount("10 minutes"); + rules.add( + rule(RULE_NAME + "_start").metadata(SYNTHETIC_RULE_TAG, true) + .build( + protoPattern(controlVar1).expr("drools_rule_name", Index.ConstraintType.EQUAL, RULE_NAME), + not(protoPattern(controlVar2).expr("end_once_after", Index.ConstraintType.EQUAL, RULE_NAME)), + on(controlVar1).execute((drools, c1) -> { + Event startControlEvent = createMapBasedEvent(controlPrototype) + .withExpiration(timeAmount.getAmount(), timeAmount.getTimeUnit()); + startControlEvent.set("start_once_after", RULE_NAME); + drools.insert(startControlEvent); + + Event endControlEvent = createMapBasedEvent(controlPrototype); + endControlEvent.set("end_once_after", RULE_NAME); + drools.insert(endControlEvent); + }) + ) + ); + + // cleanup duplicate events rule + PrototypeDSL.PrototypePatternDef duplicateControlPattern = duplicateControlPattern(originalEventVariable); + rules.add( + rule(RULE_NAME + "_cleanup_duplicate").metadata(SYNTHETIC_RULE_TAG, true) + .build( + guardedPattern(originalEventVariable), + duplicateControlPattern, + on(originalEventVariable, duplicateControlPattern.getFirstVariable()).execute((drools, event, control) -> { + control.set("events_in_window", ((int) control.get("events_in_window")) + 1); + drools.delete(event); + }) + ) + ); + + return new ModelImpl().withRules(rules).addGlobal(global); + } + + // This is the pattern which we want to accumulate + private static PrototypeDSL.PrototypePatternDef guardedPattern(PrototypeVariable originalEventVariable) { + return protoPattern(originalEventVariable).expr(prototypeField("sensu.process.type"), Index.ConstraintType.EQUAL, fixedValue("alert")); + } + + // We group-by sensu.host and sensu.process.type + private static PrototypeDSL.PrototypePatternDef duplicateControlPattern(PrototypeVariable originalEventVariable) { + return protoPattern(variable(getPrototype(SYNTHETIC_PROTOTYPE_NAME))) + .expr(prototypeField("sensu.host"), Index.ConstraintType.EQUAL, originalEventVariable, prototypeField("sensu.host")) // groupByAttributes + .expr(prototypeField("sensu.process.type"), Index.ConstraintType.EQUAL, originalEventVariable, prototypeField("sensu.process.type")) // groupByAttributes + .expr(prototypeField("drools_rule_name"), Index.ConstraintType.EQUAL, fixedValue(RULE_NAME)); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFailoverAdvanceFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuEvent("host1", "alert"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertNonMatchingSensuEvent("host1", "info"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuEvent("host2", "alert"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuEvent("host1", "alert"); // duplicate event + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + assertThat(getResults()).as("once_after is 10 minutes window. The main rule should not be fired yet") + .isEmpty(); + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + advanceTimeAndFire(7, TimeUnit.MINUTES); + + assertThat(getResults()).as("10 minutes window is over. The result should be collected") + .hasSize(2); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertAdvanceFailoverFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuEvent("host1", "alert"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertNonMatchingSensuEvent("host1", "info"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuEvent("host2", "alert"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuEvent("host1", "alert"); // duplicate event + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + assertThat(getResults()).as("once_after is 10 minutes window. The main rule should not be fired yet") + .isEmpty(); + + advanceTime(7, TimeUnit.MINUTES); // controlEvent expire job should be triggered, but the action is still in propagationList. Will be lost by server crash + + // advanceTime, then server crash before fireAllRules + // Generally this doesn't happen in drools-ansible because AutomaticPseudoClock does advanceTime + fireAllRules atomically, but simulating a crash in the middle. + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); // expire job is recreated and triggered + + fireAllRules(); + + assertThat(getResults()).as("10 minutes window is over. The result should be collected") + .hasSize(2); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertAdvanceInsertFailoverFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuEvent("host1", "alert"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertNonMatchingSensuEvent("host1", "info"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuEvent("host2", "alert"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + assertThat(getResults()).as("once_after is 10 minutes window. The main rule should not be fired yet") + .isEmpty(); + + advanceTime(8, TimeUnit.MINUTES); + + // advanceTime, insert events, then server crashes before fireAllRules + // This doesn't happen in drools-ansible because AutomaticPseudoClock does advanceTime + fireAllRules atomically, but testing to confirm the restore logic. + + // These events are not fired before a crash, so will be listed in "notPropagated", so wouldn't bother "nextFireTime" calculation of "start_once_after" expiration + insertMatchingSensuEvent("host3", "alert"); + insertMatchingSensuEvent("host4", "alert"); + insertMatchingSensuEvent("host5", "alert"); + insertMatchingSensuEvent("host6", "alert"); + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + fireAllRules(); + + assertThat(getResults()).as("2 is the normally expected result size, but in this edge case, 6 events are collected") + .hasSize(6); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepOnceWithinTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepOnceWithinTest.java new file mode 100644 index 00000000000..5367eebdea1 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepOnceWithinTest.java @@ -0,0 +1,204 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; + +import org.drools.base.facttemplates.Event; +import org.drools.model.DroolsEntryPoint; +import org.drools.model.Global; +import org.drools.model.Index; +import org.drools.model.Model; +import org.drools.model.Prototype; +import org.drools.model.PrototypeDSL; +import org.drools.model.PrototypeVariable; +import org.drools.model.Rule; +import org.drools.model.impl.ModelImpl; +import org.drools.modelcompiler.facttemplate.HashMapEventImpl; +import org.drools.reliability.test.util.TimeAmount; +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.conf.EventProcessingOption; +import org.kie.api.runtime.conf.ClockTypeOption; +import org.kie.api.runtime.conf.PersistedSessionOption; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.groups.Tuple.tuple; +import static org.drools.model.DSL.globalOf; +import static org.drools.model.DSL.not; +import static org.drools.model.DSL.on; +import static org.drools.model.PatternDSL.rule; +import static org.drools.model.PrototypeDSL.protoPattern; +import static org.drools.model.PrototypeDSL.variable; +import static org.drools.model.PrototypeExpression.fixedValue; +import static org.drools.model.PrototypeExpression.prototypeField; +import static org.drools.modelcompiler.facttemplate.FactFactory.createMapBasedEvent; +import static org.drools.reliability.test.util.PrototypeUtils.DEFAULT_PROTOTYPE_NAME; +import static org.drools.reliability.test.util.PrototypeUtils.SYNTHETIC_PROTOTYPE_NAME; +import static org.drools.reliability.test.util.PrototypeUtils.getPrototype; + +@ExtendWith(BeforeAllMethodExtension.class) +class ReliabilityCepOnceWithinTest extends ReliabilityTestBasics { + + public static final String KEYWORD = "once_within"; + public static final String RULE_NAME = "R"; + + /** + * These rules are created in the same way as OnceWithinDefinition in drools-ansible-rulebook-integration + */ + private Model ruleModel() { + Prototype controlPrototype = getPrototype(SYNTHETIC_PROTOTYPE_NAME); + Global global = globalOf(List.class, "defaultpkg", "results"); + + List rules = new ArrayList<>(); + + // main rule (match only once for grouped events within 10 minutes) + TimeAmount timeAmount = TimeAmount.parseTimeAmount("10 minutes"); + PrototypeVariable originalEventVariable = variable(getPrototype(DEFAULT_PROTOTYPE_NAME), "m"); + rules.add(rule(RULE_NAME).metadata(RULE_TYPE_TAG, KEYWORD) + .build( + guardedPattern(originalEventVariable), + not(duplicateControlPattern(originalEventVariable)), + on(originalEventVariable, global).execute((drools, event, globalResults) -> { + Event controlEvent = createMapBasedEvent(controlPrototype) + .withExpiration(timeAmount.getAmount(), timeAmount.getTimeUnit()); + controlEvent.set("sensu.host", event.get("sensu.host")); // groupByAttributes + controlEvent.set("sensu.process.type", event.get("sensu.process.type")); // groupByAttributes + controlEvent.set("drools_rule_name", RULE_NAME); + drools.insert(controlEvent); + globalResults.add(event); + drools.delete(event); + }) + ) + ); + + // cleanup duplicate events rule + rules.add(rule( "cleanup_" + RULE_NAME ).metadata(SYNTHETIC_RULE_TAG, true) + .build( + guardedPattern(originalEventVariable), + duplicateControlPattern(originalEventVariable), + on(originalEventVariable).execute(DroolsEntryPoint::delete) + ) + ); + + return new ModelImpl().withRules(rules).addGlobal(global); + } + + // This is the pattern which we want to match + private static PrototypeDSL.PrototypePatternDef guardedPattern(PrototypeVariable originalEventVariable) { + return protoPattern(originalEventVariable).expr(prototypeField("sensu.process.type"), Index.ConstraintType.EQUAL, fixedValue("alert")); + } + + // We group-by sensu.host and sensu.process.type + private static PrototypeDSL.PrototypePatternDef duplicateControlPattern(PrototypeVariable originalEventVariable) { + return protoPattern(variable(getPrototype(SYNTHETIC_PROTOTYPE_NAME))) + .expr(prototypeField("sensu.host"), Index.ConstraintType.EQUAL, originalEventVariable, prototypeField("sensu.host")) // groupByAttributes + .expr(prototypeField("sensu.process.type"), Index.ConstraintType.EQUAL, originalEventVariable, prototypeField("sensu.process.type")) // groupByAttributes + .expr(prototypeField("drools_rule_name"), Index.ConstraintType.EQUAL, fixedValue(RULE_NAME)); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFailoverExpireFire_shouldCollectEventAfterWindow(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuEvent("host1", "alert"); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertNonMatchingSensuEvent("host1", "info"); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuEvent("host2", "alert"); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuEvent("host1", "alert"); // duplicate event + advanceTimeAndFire(1, TimeUnit.MINUTES); + + assertThat(getResults()).as("once_within is 10 minutes window. 2 events should be collected") + .hasSize(2); + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuEvent("host1", "alert"); // duplicate event + advanceTimeAndFire(1, TimeUnit.MINUTES); + + assertThat(getResults()).as("once_within is 10 minutes window. 2 events should be collected") + .hasSize(2); + + advanceTimeAndFire(10, TimeUnit.MINUTES); // controlEvent should be expired + + insertMatchingSensuEvent("host1", "alert"); // duplicate event, but 10 minutes window is over, so it should match + fireAllRules(); + + assertThat(getResults()).as("after 10 minutes window. 3 events should be collected") + .hasSize(3) + .allMatch(event -> event instanceof HashMapEventImpl) + .extracting(event -> ((HashMapEventImpl) event).get("sensu.host"), event -> ((HashMapEventImpl) event).get("sensu.process.type")) + .containsExactly(tuple("host1", "alert"), + tuple("host2", "alert"), + tuple("host1", "alert")); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertExpireFailoverFire_shouldCollectEventAfterWindow(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuEvent("host1", "alert"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertNonMatchingSensuEvent("host1", "info"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuEvent("host2", "alert"); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuEvent("host1", "alert"); // duplicate event + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + assertThat(getResults()).as("once_within is 10 minutes window. 2 events should be collected") + .hasSize(2); + + advanceTime(10, TimeUnit.MINUTES); // controlEvent expire job should be triggered, but the action is still in propagationList. Will be lost by server crash + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); // expire job is recreated and triggered + + insertMatchingSensuEvent("host1", "alert"); // duplicate event, but 10 minutes window is over, so it should match + fireAllRules(); + + assertThat(getResults()).as("after 10 minutes window. 3 events should be collected") + .hasSize(3) + .allMatch(event -> event instanceof HashMapEventImpl) + .extracting(event -> ((HashMapEventImpl) event).get("sensu.host"), event -> ((HashMapEventImpl) event).get("sensu.process.type")) + .containsExactly(tuple("host1", "alert"), + tuple("host2", "alert"), + tuple("host1", "alert")); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepTest.java new file mode 100644 index 00000000000..cdb339b22d0 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepTest.java @@ -0,0 +1,327 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import java.util.concurrent.TimeUnit; + +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.conf.EventProcessingOption; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.conf.ClockTypeOption; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.api.time.SessionPseudoClock; +import org.test.domain.StockTick; + +import static org.assertj.core.api.Assertions.assertThat; + +@ExtendWith(BeforeAllMethodExtension.class) +class ReliabilityCepTest extends ReliabilityTestBasics { + + private static final String CEP_RULE = + "import " + StockTick.class.getCanonicalName() + ";" + + "global java.util.List results;" + + "rule R when\n" + + " $a : StockTick( company == \"DROO\" )\n" + + " $b : StockTick( company == \"ACME\", this after[5s,8s] $a )\n" + + "then\n" + + " results.add(\"fired\");\n" + + "end\n"; + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" + void insertAdvanceInsertFailoverFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + SessionPseudoClock clock = getSessionClock(); + + insert(new StockTick("DROO")); + clock.advanceTime(6, TimeUnit.SECONDS); + insert(new StockTick("ACME")); + + //-- Assume JVM down here. Fail-over to other JVM or rebooted JVM + //-- ksession and kbase are lost. CacheManager is recreated. Client knows only "id" + failover(); + restoreSession(CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock = getSessionClock(); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("fired"); + clearResults(); + + clock.advanceTime(1, TimeUnit.SECONDS); + insert(new StockTick("ACME")); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("fired"); + clearResults(); + + clock.advanceTime(3, TimeUnit.SECONDS); + insert(new StockTick("ACME")); + + assertThat(fireAllRules()).isZero(); + assertThat(getResults()).isEmpty(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" + void insertAdvanceInsertFailoverFireTwice_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + KieSession session1 = createSession(CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + SessionPseudoClock clock = getSessionClock(session1); + + insert(session1, new StockTick("DROO")); + clock.advanceTime(6, TimeUnit.SECONDS); + insert(session1, new StockTick("ACME")); + + //-- Assume JVM down here. Fail-over to other JVM or rebooted JVM + //-- ksession and kbase are lost. CacheManager is recreated. Client knows only "id" + failover(); + session1 = restoreSession(session1.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock = getSessionClock(session1); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(getResults(session1)).containsExactlyInAnyOrder("fired"); + clearResults(session1); + + clock.advanceTime(3, TimeUnit.SECONDS); + insert(session1, new StockTick("ACME")); + + //-- Assume JVM down here. Fail-over to other JVM or rebooted JVM + //-- ksession and kbase are lost. CacheManager is recreated. Client knows only "id" + failover(); + session1 = restoreSession(session1.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock = getSessionClock(session1); + + assertThat(fireAllRules(session1)).isZero(); + assertThat(getResults(session1)).isEmpty(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertAdvanceFailoverExpireFire_shouldExpireAfterFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + SessionPseudoClock clock = getSessionClock(); + + insert(new StockTick("DROO")); + clock.advanceTime(6, TimeUnit.SECONDS); + insert(new StockTick("ACME")); + + failover(); + restoreSession(CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock = getSessionClock(); + + clock.advanceTime(58, TimeUnit.SECONDS); + assertThat(fireAllRules()).as("DROO is expired, but a match is available.") + .isEqualTo(1); + assertThat(getFactHandles()).as("DROO should have expired because @Expires = 60s") + .hasSize(1); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertAdvanceFireFailoverExpire_shouldExpireAfterFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + SessionPseudoClock clock = getSessionClock(); + + insert(new StockTick("DROO")); + clock.advanceTime(6, TimeUnit.SECONDS); + insert(new StockTick("ACME")); + + assertThat(fireAllRules()).as("DROO is expired, but a match is available.") + .isEqualTo(1); + + failover(); + restoreSession(CEP_RULE, persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock = getSessionClock(); + + clock.advanceTime(58, TimeUnit.SECONDS); + fireAllRules(); + + assertThat(getFactHandles()).as("DROO should have expired because @Expires = 60s") + .hasSize(1); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") + void multipleKieSessions_insertAdvanceInsertFailoverFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + KieSession session1 = createSession(CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + KieSession session2 = createSession(CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + SessionPseudoClock clock1 = getSessionClock(session1); + SessionPseudoClock clock2 = getSessionClock(session2); + + insert(session1, new StockTick("DROO")); + clock1.advanceTime(6, TimeUnit.SECONDS); + insert(session1, new StockTick("ACME")); + + insert(session2, new StockTick("DROO")); + clock2.advanceTime(4, TimeUnit.SECONDS); + insert(session2, new StockTick("ACME")); + + //-- Assume JVM down here. Fail-over to other JVM or rebooted JVM + //-- ksession and kbase are lost. CacheManager is recreated. Client knows only "id" + failover(); + session1=restoreSession(session1.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock1 = getSessionClock(session1); + session2=restoreSession(session2.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock2 = getSessionClock(session2); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(getResults(session1)).containsExactlyInAnyOrder("fired"); + clearResults(session1); + + assertThat(fireAllRules(session2)).isEqualTo(0); + assertThat(getResults(session2)).isEmpty(); + clearResults(session2); + + clock1.advanceTime(3, TimeUnit.SECONDS); + insert(session1, new StockTick("ACME")); + + clock2.advanceTime(2, TimeUnit.SECONDS); + insert(session2, new StockTick("ACME")); + + failover(); + session1=restoreSession(session1.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock1 = getSessionClock(session1); + session2=restoreSession(session2.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock2 = getSessionClock(session2); + + assertThat(fireAllRules(session1)).isEqualTo(0); + assertThat(getResults(session1)).isEmpty(); + clearResults(session1); + + assertThat(fireAllRules(session2)).isEqualTo(1); + assertThat(getResults(session2)).containsExactlyInAnyOrder("fired"); + clearResults(session2); + + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") + void multipleKieSessions_insertAdvanceFailoverExpireFire_shouldExpireAfterFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + + KieSession session1 = createSession(CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + KieSession session2 = createSession(CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + SessionPseudoClock clock1 = getSessionClock(session1); + SessionPseudoClock clock2 = getSessionClock(session2); + + insert(session1, new StockTick("DROO")); + clock1.advanceTime(6, TimeUnit.SECONDS); + insert(session1, new StockTick("ACME")); + + insert(session2, new StockTick("DROO")); + clock2.advanceTime(7, TimeUnit.SECONDS); + insert(session2, new StockTick("ACME")); + + failover(); + session1 = restoreSession(session1.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock1 = getSessionClock(session1); + session2 = restoreSession(session2.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock2 = getSessionClock(session2); + + clock1.advanceTime(58, TimeUnit.SECONDS); + assertThat(fireAllRules(session1)).as("DROO is expired, but a match is available.") + .isEqualTo(1); + assertThat(getFactHandles(session1)).as("DROO should have expired because @Expires = 60s") + .hasSize(1); + + clock1.advanceTime(1, TimeUnit.SECONDS); + assertThat(fireAllRules(session2)).as("DROO is not expired, a match is available.") + .isEqualTo(1); + assertThat(getFactHandles(session2)).hasSize(2); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") + void multipleKieSessions_insertAdvanceFireFailoverExpire_shouldExpireAfterFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + + KieSession session1 = createSession(CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + SessionPseudoClock clock1 = getSessionClock(session1); + KieSession session2 = createSession(CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + SessionPseudoClock clock2 = getSessionClock(session2); + + insert(session1, new StockTick("DROO")); + clock1.advanceTime(6, TimeUnit.SECONDS); + insert(session1, new StockTick("ACME")); + + insert(session2, new StockTick("DROO")); + clock2.advanceTime(4, TimeUnit.SECONDS); + insert(session2, new StockTick("ACME")); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(fireAllRules(session2)).isEqualTo(0); + + failover(); + session1 = restoreSession(session1.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock1 = getSessionClock(session1); + session2 = restoreSession(session2.getIdentifier(), CEP_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + clock2 = getSessionClock(session2); + + clock1.advanceTime(58, TimeUnit.SECONDS); + fireAllRules(session1); + assertThat(getFactHandles(session1)).as("DROO (1) should have expired because @Expires = 60s") + .hasSize(1); + + clock2.advanceTime(1, TimeUnit.SECONDS); + insert(session2, new StockTick("ACME")); + assertThat(fireAllRules(session2)).isEqualTo(1); + + clock2.advanceTime(56, TimeUnit.SECONDS); + fireAllRules(session2); + assertThat(getFactHandles(session2)).as("DROO (2) should have expired because @Expires = 60s") + .hasSize(2); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithAllSafepointsWithActivationKey") + void insertFireLimitFailoverFire_shouldFireRemainingActivations(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, + PersistedSessionOption.ActivationStrategy activationStrategy) { + + createSession(CEP_RULE, persistenceStrategy, safepointStrategy, activationStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + SessionPseudoClock clock = getSessionClock(); + + insert(new StockTick("DROO")); + clock.advanceTime(6, TimeUnit.SECONDS); + insert(new StockTick("ACME")); + clock.advanceTime(1, TimeUnit.SECONDS); + insert(new StockTick("ACME")); + clock.advanceTime(500, TimeUnit.MILLISECONDS); + insert(new StockTick("ACME")); + + fireAllRules(1); + assertThat(getResults()).as("Firing is limited to 1") + .hasSize(1); + assertThat(getResults()).containsExactly("fired"); + + failover(); + restoreSession(CEP_RULE, persistenceStrategy, safepointStrategy, activationStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + fireAllRules(); + assertThat(getResults()).as("All remaining activations should fire") + .containsExactlyInAnyOrder("fired", "fired", "fired"); + } +} \ No newline at end of file diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepTimeWindowTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepTimeWindowTest.java new file mode 100644 index 00000000000..e0e1bbf1b27 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepTimeWindowTest.java @@ -0,0 +1,167 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; + +import org.drools.model.Global; +import org.drools.model.Index; +import org.drools.model.Model; +import org.drools.model.PrototypeVariable; +import org.drools.model.Rule; +import org.drools.model.impl.ModelImpl; +import org.drools.reliability.test.util.TimeAmount; +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.conf.EventProcessingOption; +import org.kie.api.runtime.conf.ClockTypeOption; +import org.kie.api.runtime.conf.PersistedSessionOption; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.drools.model.DSL.after; +import static org.drools.model.DSL.globalOf; +import static org.drools.model.DSL.on; +import static org.drools.model.PatternDSL.rule; +import static org.drools.model.PrototypeDSL.protoPattern; +import static org.drools.model.PrototypeDSL.variable; +import static org.drools.reliability.test.util.PrototypeUtils.DEFAULT_PROTOTYPE_NAME; +import static org.drools.reliability.test.util.PrototypeUtils.getPrototype; + +@ExtendWith(BeforeAllMethodExtension.class) +class ReliabilityCepTimeWindowTest extends ReliabilityTestBasics { + + public static final String RULE_NAME = "R"; + + /** + * These rules are created in the same way as TimeWindowDefinition in drools-ansible-rulebook-integration + */ + private Model ruleModel() { + Global global = globalOf(List.class, "defaultpkg", "results"); + + List rules = new ArrayList<>(); + + // main rule (all events should be matched within +- 5 minutes each other) + TimeAmount timeAmount = TimeAmount.parseTimeAmount("5 minutes"); + PrototypeVariable var0 = variable(getPrototype(DEFAULT_PROTOTYPE_NAME), "m_0"); + PrototypeVariable var1 = variable(getPrototype(DEFAULT_PROTOTYPE_NAME), "m_1"); + PrototypeVariable var2 = variable(getPrototype(DEFAULT_PROTOTYPE_NAME), "m_2"); + rules.add( + rule( RULE_NAME ) + .build( + protoPattern(var0).expr( "ping.timeout", Index.ConstraintType.EQUAL, true ), + protoPattern(var1).expr( "sensu.process.status", Index.ConstraintType.EQUAL, "stopped" ) + .expr( after(-timeAmount.getAmount(), timeAmount.getTimeUnit(), timeAmount.getAmount(), timeAmount.getTimeUnit()), var0 ), + protoPattern(var2).expr( "sensu.storage.percent", Index.ConstraintType.GREATER_THAN, 95 ) + .expr( after(-timeAmount.getAmount(), timeAmount.getTimeUnit(), timeAmount.getAmount(), timeAmount.getTimeUnit()), var0 ) + .expr( after(-timeAmount.getAmount(), timeAmount.getTimeUnit(), timeAmount.getAmount(), timeAmount.getTimeUnit()), var1 ), + on(global).execute((drools, globalResults) -> { + globalResults.add(RULE_NAME); + }) + ) + ); + + return new ModelImpl().withRules(rules).addGlobal(global); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFailoverInsertFire_shouldFire(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuProcessStatusEvent("stopped"); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingPingTimeoutEvent(true); + advanceTimeAndFire(2, TimeUnit.MINUTES); + + assertThat(getResults()).as("2 events. Not yet fired") + .isEmpty(); + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuStoragePercentEvent(98); + fireAllRules(); + + assertThat(getResults()).as("all events are matched within +- 5 minutes each other. the rule should be fired") + .hasSize(1); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertExpireFailoverInsertFire_shouldNotFire(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuProcessStatusEvent("stopped"); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingPingTimeoutEvent(true); + advanceTimeAndFire(2, TimeUnit.MINUTES); + + assertThat(getResults()).as("2 events. Not yet fired") + .isEmpty(); + + advanceTime(5, TimeUnit.MINUTES); // timeout + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingSensuStoragePercentEvent(98); + fireAllRules(); + + assertThat(getResults()).as("all events aren't matched within +- 5 minutes each other. the rule should not be fired") + .isEmpty(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFailoverExpireInsertFire_shouldNotFire(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuProcessStatusEvent("stopped"); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingPingTimeoutEvent(true); + advanceTimeAndFire(2, TimeUnit.MINUTES); + + assertThat(getResults()).as("2 events. Not yet fired") + .isEmpty(); + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + advanceTimeAndFire(5, TimeUnit.MINUTES); // timeout + + insertMatchingSensuStoragePercentEvent(98); + fireAllRules(); + + assertThat(getResults()).as("all events aren't matched within +- 5 minutes each other. the rule should not be fired") + .isEmpty(); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepTimedOutTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepTimedOutTest.java new file mode 100644 index 00000000000..f6fd3c37c8b --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityCepTimedOutTest.java @@ -0,0 +1,303 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; + +import org.drools.base.facttemplates.Event; +import org.drools.model.Global; +import org.drools.model.Index; +import org.drools.model.Model; +import org.drools.model.Prototype; +import org.drools.model.PrototypeVariable; +import org.drools.model.Rule; +import org.drools.model.Variable; +import org.drools.model.impl.ModelImpl; +import org.drools.reliability.test.util.TimeAmount; +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.conf.EventProcessingOption; +import org.kie.api.runtime.conf.ClockTypeOption; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.api.runtime.rule.RuleContext; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.drools.model.DSL.accFunction; +import static org.drools.model.DSL.accumulate; +import static org.drools.model.DSL.after; +import static org.drools.model.DSL.declarationOf; +import static org.drools.model.DSL.globalOf; +import static org.drools.model.DSL.not; +import static org.drools.model.DSL.on; +import static org.drools.model.PatternDSL.pattern; +import static org.drools.model.PatternDSL.rule; +import static org.drools.model.PrototypeDSL.protoPattern; +import static org.drools.model.PrototypeDSL.variable; +import static org.drools.model.PrototypeExpression.prototypeField; +import static org.drools.model.PrototypeExpression.thisPrototype; +import static org.drools.modelcompiler.facttemplate.FactFactory.createMapBasedEvent; +import static org.drools.reliability.test.util.PrototypeUtils.DEFAULT_PROTOTYPE_NAME; +import static org.drools.reliability.test.util.PrototypeUtils.SYNTHETIC_PROTOTYPE_NAME; +import static org.drools.reliability.test.util.PrototypeUtils.getPrototype; + +@ExtendWith(BeforeAllMethodExtension.class) +class ReliabilityCepTimedOutTest extends ReliabilityTestBasics { + + public static final String KEYWORD = "timed_out"; + public static final String RULE_NAME = "R"; + + /** + * These rules are created in the same way as TimedOutDefinition in drools-ansible-rulebook-integration + */ + private Model ruleModel() { + Prototype controlPrototype = getPrototype(SYNTHETIC_PROTOTYPE_NAME); + PrototypeVariable controlVar1 = variable(controlPrototype, "c1"); + PrototypeVariable controlVar2 = variable(controlPrototype, "c2"); + PrototypeVariable controlVar3 = variable(controlPrototype, "c3"); + PrototypeVariable eventVar = variable(getPrototype(DEFAULT_PROTOTYPE_NAME), "e"); + Variable resultCount = declarationOf( Long.class, "count" ); + Global global = globalOf(List.class, "defaultpkg", "results"); + + List rules = new ArrayList<>(); + + // main rule (match only after 5 minutes, but not all sub-rules are matched) + String startTag = "start_" + RULE_NAME; + String endTag = "end_" + RULE_NAME; + TimeAmount timeAmount = TimeAmount.parseTimeAmount("5 minutes"); + + rules.add( + rule( RULE_NAME ).metadata(RULE_TYPE_TAG, KEYWORD) + .build( + protoPattern(controlVar1).expr( "rulename", Index.ConstraintType.EQUAL, startTag ), + not( protoPattern(controlVar2) + .expr( "rulename", Index.ConstraintType.EQUAL, endTag ) + .expr( after(0, timeAmount.getTimeUnit(), timeAmount.getAmount(), timeAmount.getTimeUnit()), controlVar1 ) ), + on(controlVar1, global).execute((drools, controlFact, globalResults) -> { + globalResults.add(RULE_NAME); + drools.delete(controlFact); + }) + ) + ); + + String rulePrefix = RULE_NAME + "_"; + + // sub-rule 0 + String subRuleName0 = rulePrefix + "0"; + PrototypeVariable patternVariable0 = variable(getPrototype(DEFAULT_PROTOTYPE_NAME), "m_0"); + rules.add( + rule( subRuleName0 ).metadata(SYNTHETIC_RULE_TAG, true) + .build( + protoPattern(patternVariable0) + .expr("ping.timeout", Index.ConstraintType.EQUAL, true), + not( protoPattern(controlVar1) + .expr( "rulename", Index.ConstraintType.EQUAL, subRuleName0 ) ), + on(patternVariable0).execute((drools, t1) -> { + Event controlEvent = createMapBasedEvent( controlPrototype ) + .withExpiration(timeAmount.getAmount(), timeAmount.getTimeUnit()); + controlEvent.set( "rulename", subRuleName0 ); + controlEvent.set( "event", t1 ); + controlEvent.set( "binding", ((RuleContext) drools).getMatch().getDeclarationIds().get(0) ); + drools.insert(controlEvent); + }) + ) + ); + + // sub-rule 1 + String subRuleName1 = rulePrefix + "1"; + PrototypeVariable patternVariable1 = variable(getPrototype(DEFAULT_PROTOTYPE_NAME), "m_1"); + rules.add( + rule( subRuleName1 ).metadata(SYNTHETIC_RULE_TAG, true) + .build( + protoPattern(patternVariable1) + .expr("sensu.process.status", Index.ConstraintType.EQUAL, "stopped"), + not( protoPattern(controlVar1) + .expr( "rulename", Index.ConstraintType.EQUAL, subRuleName1 ) ), + on(patternVariable1).execute((drools, t1) -> { + Event controlEvent = createMapBasedEvent( controlPrototype ) + .withExpiration(timeAmount.getAmount(), timeAmount.getTimeUnit()); + controlEvent.set( "rulename", subRuleName1 ); + controlEvent.set( "event", t1 ); + controlEvent.set( "binding", ((RuleContext) drools).getMatch().getDeclarationIds().get(0) ); + drools.insert(controlEvent); + }) + ) + ); + + // sub-rule 2 + String subRuleName2 = rulePrefix + "2"; + PrototypeVariable patternVariable2 = variable(getPrototype(DEFAULT_PROTOTYPE_NAME), "m_2"); + rules.add( + rule( subRuleName2 ).metadata(SYNTHETIC_RULE_TAG, true) + .build( + protoPattern(patternVariable2) + .expr("sensu.storage.percent", Index.ConstraintType.GREATER_THAN, 95), + not( protoPattern(controlVar1) + .expr( "rulename", Index.ConstraintType.EQUAL, subRuleName2 ) ), + on(patternVariable2).execute((drools, t1) -> { + Event controlEvent = createMapBasedEvent( controlPrototype ) + .withExpiration(timeAmount.getAmount(), timeAmount.getTimeUnit()); + controlEvent.set( "rulename", subRuleName2 ); + controlEvent.set( "event", t1 ); + controlEvent.set( "binding", ((RuleContext) drools).getMatch().getDeclarationIds().get(0) ); + drools.insert(controlEvent); + }) + ) + ); + + // start rule + rules.add( + rule(startTag).metadata(SYNTHETIC_RULE_TAG, true) + .build( + not( protoPattern(controlVar1).expr( "rulename", Index.ConstraintType.EQUAL, startTag ) ), + protoPattern(controlVar2).expr( p -> ((String)p.get("rulename")).startsWith(rulePrefix) ), + on(controlVar2).execute((drools, firstEvent) -> { + Event controlEvent = createMapBasedEvent( controlPrototype ) + .withExpiration(timeAmount.getAmount(), timeAmount.getTimeUnit()); + controlEvent.set( "rulename", startTag ); + controlEvent.set( "event", firstEvent.get("event") ); + controlEvent.set( "binding", firstEvent.get("binding") ); + drools.insert(controlEvent); + }) + ) + ); + + // end rule + rules.add( + rule(endTag).metadata(SYNTHETIC_RULE_TAG, true) + .build( + protoPattern(controlVar1).expr( "rulename", Index.ConstraintType.EQUAL, startTag ), + accumulate( protoPattern(controlVar2).expr(p -> ((String)p.get("rulename")).startsWith(rulePrefix)), + accFunction(org.drools.core.base.accumulators.CountAccumulateFunction::new).as(resultCount)), + pattern(resultCount).expr(count -> count == 3), + on(resultCount).execute((drools, count) -> { + Event controlEvent = createMapBasedEvent( controlPrototype ) + .withExpiration(timeAmount.getAmount(), timeAmount.getTimeUnit()); + controlEvent.set( "rulename", endTag ); + drools.insert(controlEvent); + }) + ) + ); + + // cleanup rule 1 + rules.add( + rule( rulePrefix + "cleanupEvents" ).metadata(SYNTHETIC_RULE_TAG, true) + .build( + protoPattern(controlVar1).expr( "rulename", Index.ConstraintType.EQUAL, endTag ), + protoPattern(controlVar2).expr(p -> ((String)p.get("rulename")).startsWith(rulePrefix)), + protoPattern(eventVar).expr( thisPrototype(), Index.ConstraintType.EQUAL, controlVar2, prototypeField("event") ), + on(controlVar2, eventVar).execute((drools, c, e) -> { + drools.delete(e); + drools.delete(c); + }) + ) + ); + + // cleanup rule 2 + rules.add( + rule( rulePrefix + "cleanupEvents2" ).metadata(SYNTHETIC_RULE_TAG, true) + .build( + protoPattern(controlVar1).expr( "rulename", Index.ConstraintType.EQUAL, startTag ), + not( protoPattern(controlVar2) + .expr( "rulename", Index.ConstraintType.EQUAL, endTag ) + .expr( after(0, timeAmount.getTimeUnit(), timeAmount.getAmount(), timeAmount.getTimeUnit()), controlVar1 ) ), + protoPattern(controlVar3).expr(p -> ((String)p.get("rulename")).startsWith(rulePrefix)), + protoPattern(eventVar).expr( thisPrototype(), Index.ConstraintType.EQUAL, controlVar3, prototypeField("event") ), + on(controlVar1, controlVar3, eventVar).execute((drools, c1, c3, e) -> { + drools.delete(e); + drools.delete(c3); + drools.delete(c1); + }) + ) + ); + + // cleanup rule 3 + rules.add( + rule( rulePrefix + "cleanupTerminal" ).metadata(SYNTHETIC_RULE_TAG, true) + .build( + protoPattern(controlVar1).expr( "rulename", Index.ConstraintType.EQUAL, startTag ), + protoPattern(controlVar2).expr( "rulename", Index.ConstraintType.EQUAL, endTag ), + on(controlVar1, controlVar2).execute((drools, c1, c2) -> { + drools.delete(c1); + drools.delete(c2); + }) + ) + ); + + return new ModelImpl().withRules(rules).addGlobal(global); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFailoverExpireFire_shouldFire(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuProcessStatusEvent("stopped"); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingPingTimeoutEvent(true); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + assertThat(getResults()).as("timeout is 5 minutes window. Not yet fired") + .isEmpty(); + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + advanceTimeAndFire(5, TimeUnit.MINUTES); // main rule's temporal constraint is evaluated + + assertThat(getResults()).as("after 5 minutes window. the main rule is fired") + .hasSize(1); + + assertThat(getFactHandles()).as("All events should be cleaned up") + .isEmpty(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertExpireFailoverFire_shouldFire(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); + + insertMatchingSensuProcessStatusEvent("stopped"); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + insertMatchingPingTimeoutEvent(true); + advanceTimeAndFire(1, TimeUnit.MINUTES); + + advanceTime(5, TimeUnit.MINUTES); // TimerNodeJob is triggered, but the action is still in propagationList. Will be lost by server crash + + assertThat(getResults()).as("5 minutes timeout is over. But not yet fired") + .isEmpty(); + + failover(); + restoreSession(ruleModel(), persistenceStrategy, safepointStrategy, EventProcessingOption.STREAM, ClockTypeOption.PSEUDO); // TimerNodeJob is recreated and triggered + + fireAllRules(); + + assertThat(getResults()).as("after 5 minutes window. the main rule is fired") + .hasSize(1); + + assertThat(getFactHandles()).as("All events should be cleaned up") + .isEmpty(); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityFireAndAlarmTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityFireAndAlarmTest.java new file mode 100644 index 00000000000..adfdb4ed969 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityFireAndAlarmTest.java @@ -0,0 +1,277 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.api.runtime.rule.FactHandle; +import org.test.domain.fireandalarm.Alarm; +import org.test.domain.fireandalarm.Fire; +import org.test.domain.fireandalarm.Room; +import org.test.domain.fireandalarm.Sprinkler; + +import java.util.Optional; + +import static org.assertj.core.api.Assertions.assertThat; + +public class ReliabilityFireAndAlarmTest extends ReliabilityTestBasics { + private static final String FIRE_AND_ALARM = + "import " + Alarm.class.getCanonicalName() + ";" + + "import " + Fire.class.getCanonicalName() + ";" + + "import " + Sprinkler.class.getCanonicalName() + ";" + + "import " + Room.class.getCanonicalName() + ";" + + "global java.util.List results;" + + "rule 'When there is a fire turn on the sprinkler' when\n" + + " Fire($room : room) \n" + + " $sprinkler: Sprinkler( room == $room, on == false ) \n" + + "then\n" + + " modify($sprinkler) { setOn(true); } \n" + + " System.out.println(\"Turn on the sprinkler for room \" + $room.getName()); \n" + + " results.add( \"Turn on sprinkler rule\" );\n" + + "end\n" + + "rule 'Raise the alarm when we have one or more firs' when\n" + + " exists Fire() \n" + + "then\n" + + " insert( new Alarm() );\n" + + " System.out.println(\"Raise the alarm\");\n" + + " results.add( \"Raise alarm rule\" );\n" + + "end\n" + + "rule 'Cancel the alarm when all the fires have gone' when \n" + + " not Fire() \n" + + " $alarm : Alarm() \n" + + "then\n" + + " delete ( $alarm ); \n" + + " System.out.println(\"Cancel the alarm\"); \n" + + " results.add( \"Cancel alarm rule\" );\n" + + "end\n" + + "rule 'Status output when things are ok' when\n" + + " not Alarm() \n" + + " not Sprinkler ( on == true ) \n" + + "then \n" + + " System.out.println(\"Everything is ok\"); \n" + + " results.add( \"Everything ok rule\" );\n" + + "end"; + + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void testNoFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy); + + // phase 1 + Room room1 = new Room("Room 1"); + insert(room1); + FactHandle fireFact1 = insert(new Fire(room1)); + fireAllRules(); + + // phase 2 + Sprinkler sprinkler1 = new Sprinkler(room1); + insert(sprinkler1); + fireAllRules(); + + assertThat(sprinkler1.isOn()).isTrue(); + + // phase 3 + delete(fireFact1); + fireAllRules(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // does not support PersistedSessionOption.PersistenceObjectsStrategy.SIMPLE + void testInsertFailover_ShouldFireRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + + Room room1 = new Room("Room 1"); + Sprinkler sprinkler1 = new Sprinkler(room1); + insert(room1); + insert(new Fire(room1)); + insert(sprinkler1); + + failover(); + restoreSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + + assertThat(fireAllRules()).isEqualTo(2); + Optional sprinklerR = getObjectByType(Sprinkler.class); + assertThat(sprinklerR.isEmpty()).isFalse(); + assertThat(((Sprinkler) sprinklerR.get()).isOn()).isTrue(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // does not support PersistedSessionOption.PersistenceObjectsStrategy.SIMPLE + void testPhase1FailoverPhase2Phase3_ShouldFireRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + + // phase 1 + Room room1 = new Room("Room 1"); + insert(room1); + insert(new Fire(room1)); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Raise alarm rule"); + + Optional alarm = getObjectByType(Alarm.class); + assertThat(alarm.isEmpty()).isFalse(); + + failover(); + restoreSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + clearResults(); + + // phase 2 + Optional room = getObjectByType(Room.class); + assertThat(room.isEmpty()).isFalse(); + Sprinkler sprinkler1 = new Sprinkler((Room) room.get()); + insert(sprinkler1); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Turn on sprinkler rule"); + clearResults(); + + Optional sprinkler = getObjectByType(Sprinkler.class); + assertThat(sprinkler.isEmpty()).isFalse(); + assertThat(((Sprinkler) sprinkler.get()).isOn()).isTrue(); + + // phase 3 + Optional fireFh = getFactHandleByType(Fire.class); + assertThat(fireFh.isEmpty()).isFalse(); + delete(fireFh.get()); + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Cancel alarm rule"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // does not support PersistedSessionOption.PersistenceObjectsStrategy.SIMPLE + void testPhase1FailoverPhase2FailoverPhase3_ShouldFireRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + + // phase 1 + Room room1 = new Room("Room 1"); + insert(room1); + insert(new Fire(room1)); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Raise alarm rule"); + + Optional alarm = getObjectByType(Alarm.class); + assertThat(alarm.isEmpty()).isFalse(); + + failover(); + restoreSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + clearResults(); + + // phase 2 + Optional room = getObjectByType(Room.class); + assertThat(room.isEmpty()).isFalse(); + Sprinkler sprinkler1 = new Sprinkler((Room) room.get()); + insert(sprinkler1); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Turn on sprinkler rule"); + clearResults(); + + Optional sprinkler = getObjectByType(Sprinkler.class); + assertThat(sprinkler.isEmpty()).isFalse(); + assertThat(((Sprinkler) sprinkler.get()).isOn()).isTrue(); + + failover(); + restoreSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + clearResults(); + + // phase 3 + Optional fireFh = getFactHandleByType(Fire.class); + assertThat(fireFh.isEmpty()).isFalse(); + delete(fireFh.get()); + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Cancel alarm rule"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // does not support PersistedSessionOption.PersistenceObjectsStrategy.SIMPLE + void testPhase1Phase2FailoverPhase3_ShouldFireRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + + // phase 1 + Room room1 = new Room("Room 1"); + insert(room1); + insert(new Fire(room1)); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Raise alarm rule"); + clearResults(); + + Optional alarm = getObjectByType(Alarm.class); + assertThat(alarm.isEmpty()).isFalse(); + + // phase 2 + Optional room = getObjectByType(Room.class); + assertThat(room.isEmpty()).isFalse(); + Sprinkler sprinkler1 = new Sprinkler((Room) room.get()); + insert(sprinkler1); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Turn on sprinkler rule"); + clearResults(); + + Optional sprinkler = getObjectByType(Sprinkler.class); + assertThat(sprinkler.isEmpty()).isFalse(); + assertThat(((Sprinkler) sprinkler.get()).isOn()).isTrue(); + + failover(); + restoreSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + clearResults(); + + // phase 3 + Optional fireFh = getFactHandleByType(Fire.class); + assertThat(fireFh.isEmpty()).isFalse(); + delete(fireFh.get()); + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Cancel alarm rule"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // does not support PersistedSessionOption.PersistenceObjectsStrategy.SIMPLE + void testInsertFailoverUpdate_shouldFireRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + + Room room1 = new Room("Room 1"); + insert(room1); + Sprinkler sprinkler1 = new Sprinkler(room1); + insert(sprinkler1); + insert(new Fire(room1)); + + assertThat(fireAllRules()).isEqualTo(2); + assertThat(getResults()).containsExactlyInAnyOrder("Turn on sprinkler rule", "Raise alarm rule"); + + failover(); + restoreSession(FIRE_AND_ALARM, persistenceStrategy, safepointStrategy, PersistedSessionOption.PersistenceObjectsStrategy.OBJECT_REFERENCES); + clearResults(); + + Optional fireFh = this.getFactHandleByType(Fire.class); + delete(fireFh.get()); + + Optional sprinklerFh = this.getFactHandleByType(Sprinkler.class); + Sprinkler sprinkler2 = ((Sprinkler) sprinklerFh.get().getObject()); + sprinkler2.setOn(false); + update(sprinklerFh.get(), sprinkler2); + + assertThat(fireAllRules()).isEqualTo(2); + assertThat(getResults()).containsExactlyInAnyOrder("Everything ok rule", "Cancel alarm rule"); + + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityFullStrategyTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityFullStrategyTest.java new file mode 100644 index 00000000000..bf1fe4bbe2b --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityFullStrategyTest.java @@ -0,0 +1,105 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.api.runtime.rule.FactHandle; +import org.test.domain.Person; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.drools.reliability.test.ReliabilityTest.BASIC_RULE; + +/** + * This test class is to keep tests for FullStrategy, which is suspended at the moment + */ +@Disabled("FullStrategy is suspended at the moment") +@ExtendWith(BeforeAllMethodExtension.class) +class ReliabilityFullStrategyTest extends ReliabilityTestBasics { + + @ParameterizedTest + @MethodSource("strategyProviderFull") + void insertFailover_propListShouldNotBeEmpty(PersistedSessionOption.PersistenceStrategy strategy) { + KieSession session = createSession(BASIC_RULE, strategy); + + insert("M"); + insertMatchingPerson("Maria", 30); + + failover(); + + restoreSession(BASIC_RULE, strategy); + + assertThat(fireAllRules()).isEqualTo(1); + } + + @ParameterizedTest + @MethodSource("strategyProviderFull") + void insertFireFailover_shouldNotRepeatFiredMatch(PersistedSessionOption.PersistenceStrategy strategy) { + createSession(BASIC_RULE, strategy); + + insert("M"); + insertMatchingPerson("Maria", 30); + + fireAllRules(); + + failover(); + + restoreSession(BASIC_RULE, strategy); + + assertThat(fireAllRules()).isZero(); + } + + @ParameterizedTest + @MethodSource("strategyProviderFull") + void insertUpdateFailover_shouldNotFiredMatch(PersistedSessionOption.PersistenceStrategy strategy) { + createSession(BASIC_RULE, strategy); + + insert("M"); + FactHandle fhMaria = insertMatchingPerson("Maria", 30); + + updateWithNonMatchingPerson(fhMaria, new Person("Nicole", 32)); + + failover(); + + restoreSession(BASIC_RULE, strategy); + + assertThat(fireAllRules()).isZero(); + } + + @ParameterizedTest + @MethodSource("strategyProviderFull") + void insertNonMatching_Failover_UpdateWithMatching_ShouldFiredMatch(PersistedSessionOption.PersistenceStrategy strategy) { + createSession(BASIC_RULE, strategy); + + insert("N"); + FactHandle fhMaria = insertMatchingPerson("Maria", 30); + + failover(); + + restoreSession(BASIC_RULE, strategy); + + updateWithMatchingPerson(fhMaria, new Person("Nicole", 32)); + + assertThat(fireAllRules()).isEqualTo(1); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityTest.java new file mode 100644 index 00000000000..e46f2ca65fe --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityTest.java @@ -0,0 +1,523 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.api.runtime.rule.FactHandle; +import org.test.domain.Person; + +import java.util.Optional; + +import static org.assertj.core.api.Assertions.assertThat; + +@ExtendWith(BeforeAllMethodExtension.class) +class ReliabilityTest extends ReliabilityTestBasics { + + public static final String BASIC_RULE = + "import " + Person.class.getCanonicalName() + ";" + + "global java.util.List results;" + + "rule X when\n" + + " $s: String()\n" + + " $p: Person( getName().startsWith($s) )\n" + + "then\n" + + " results.add( $p.getName() );\n" + + "end"; + + @Test + void createAndUseOfNonReliableSession_shouldWorkNormally() { + createSession(BASIC_RULE, null); + + insert("M"); + insertMatchingPerson("Matching Person One", 37); + + insertNonMatchingPerson("Toshiya", 35); + insertMatchingPerson("Matching Person Two", 40); + + fireAllRules(); + + assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" + void insertFailoverInsertFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insert("M"); + insertMatchingPerson("Matching Person One", 37); + + //-- Assume JVM down here. Fail-over to other JVM or rebooted JVM + //-- ksession and kbase are lost. CacheManager is recreated. Client knows only "id" + failover(); + + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insertNonMatchingPerson("Toshiya", 35); + insertMatchingPerson("Matching Person Two", 40); + + fireAllRules(); + + assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); + } + + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // With Remote, FULL fails with "ReliablePropagationList; no valid constructor" even without failover + void noFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insert("M"); + insertMatchingPerson("Matching Person One", 37); + + if (safepointStrategy == PersistedSessionOption.SafepointStrategy.EXPLICIT) { + safepoint(); + } + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insertNonMatchingPerson("Toshiya", 41); + insertMatchingPerson("Matching Person Two", 40); + + fireAllRules(); + + assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); + } + + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" + void insertFireInsertFailoverInsertFire_shouldMatchFactInsertedBeforeFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insert("M"); + insertMatchingPerson("Matching Person One", 37); + + fireAllRules(); + + insertMatchingPerson("Matching Person Two", 40); + + failover(); + + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + clearResults(); + + insertNonMatchingPerson("Toshiya", 35); + insertMatchingPerson("Matching Person Three", 41); + + fireAllRules(); + + assertThat(getResults()).containsExactlyInAnyOrder("Matching Person Two", "Matching Person Three"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithAllSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" + void insertFireFailoverInsertFire_shouldNotRepeatFiredMatch(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insert("M"); + insertMatchingPerson("Matching Person One", 37); + + fireAllRules(); + + failover(); + + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insertNonMatchingPerson("Toshiya", 35); + insertMatchingPerson("Matching Person Two", 40); + + fireAllRules(); + + assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" + void updateBeforeFailover_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insert("M"); + Person p1 = new Person("Mario", 49); + FactHandle fh1 = insert(p1); + Person p2 = new Person("Toshiya", 45); + FactHandle fh2 = insert(p2); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Mario"); + + p1.setName("SuperMario"); + update(fh1, p1); + p2.setName("MegaToshiya"); + update(fh2, p2); + + failover(); + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Mario", "MegaToshiya"); + + failover(); + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + clearResults(); + + assertThat(fireAllRules()).isZero(); + assertThat(getResults()).isEmpty(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") // FULL fails with "ReliablePropagationList; no valid constructor" + void deleteBeforeFailover_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + FactHandle fhString = insert("M"); + insertMatchingPerson("Matching Person One",37); + insertNonMatchingPerson("Toshiya",35); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One"); + + delete(fhString); + + failover(); + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + clearResults(); + + insertMatchingPerson("Matching Person Two",40); + + assertThat(fireAllRules()).isZero(); + assertThat(getResults()).isEmpty(); + + insert("T"); + + failover(); + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Toshiya"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void deleteAfterFailover_shouldNotMatch(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy){ + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insert("M"); + Person pMike = new Person("Mike", 23); + insert(pMike); + + failover(); + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + clearResults(); + + Optional getFactHandleForPerson = getFactHandle(pMike); + if (!getFactHandleForPerson.isEmpty()){ + delete(getFactHandleForPerson.get()); + } + + assertThat(fireAllRules()).isEqualTo(0); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void deleteBeforeFailover_shouldNotMatch(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy){ + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insert("M"); + Person pMike = new Person("Mike", 23); + FactHandle fhMike = insert(pMike); + + delete(fhMike); + + failover(); + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + clearResults(); + + assertThat(fireAllRules()).isEqualTo(0); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void updateByObjectBeforeFailover_shouldMatchUpdatedFact(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy){ + + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insert("M"); + insertMatchingPerson("Mark", 37); + FactHandle fhNicole = insertNonMatchingPerson("Nicole", 32); + + assertThat(fireAllRules()).isEqualTo(1); + + updateWithMatchingPerson(fhNicole,new Person("Mary", 32)); + + failover(); + + KieSession session = restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + assertThat(fireAllRules()).isEqualTo(1); + + failover(); + + assertThat(session.fireAllRules()).isZero(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") + void multipleKieSessions_BasicTest(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + KieSession session1 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + KieSession session2 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + insert(session1, "M"); + insert(session2, "N"); + + insert(session1, new Person("Mike-session1",27)); // insert matching person + insert(session2, new Person("Mary-session2",34)); // insert non matching person + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(fireAllRules(session2)).isEqualTo(0); + + failover(); + + session1 = restoreSession(session1.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + session2 = restoreSession(session2.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + // clear results + clearResults(session1); + clearResults(session2); + + insert(session1, new Person("Michael-session1",42)); // insert matching person + insert(session2, new Person("Nancy-session2",25)); // insert matching person + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(fireAllRules(session2)).isEqualTo(1); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") // FULL fails with "ReliablePropagationList; no valid constructor" + void multipleKieSessions_insertFailoverInsertFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + KieSession session1 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + KieSession session2 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + insert(session1,"M"); + insertMatchingPerson(session1, "Mike", 37); + insert(session2,"N"); + insertNonMatchingPerson(session2,"Helen",33); + + failover(); + + session1 = restoreSession(session1.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + session2 = restoreSession(session2.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + insertNonMatchingPerson(session1,"Toshiya", 35); + insertMatchingPerson(session2,"Nicole", 40); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(fireAllRules(session2)).isEqualTo(1); + + assertThat(getResults(session1)).containsExactlyInAnyOrder("Mike"); + assertThat(getResults(session2)).containsExactlyInAnyOrder("Nicole"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") // With Remote, FULL fails with "ReliablePropagationList; no valid constructor" even without failover + void multipleKieSessions_noFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + + KieSession session1 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + KieSession session2 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + insert(session1,"M"); + insertMatchingPerson(session1,"Matching Person One", 37); + insert(session2, new Person("Mary",32)); + + if (safepointStrategy == PersistedSessionOption.SafepointStrategy.EXPLICIT) { + safepoint(); + } + + session1 = restoreSession(session1.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + session2 = restoreSession(session2.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + insertNonMatchingPerson(session1,"Toshiya", 41); + insertMatchingPerson(session1,"Matching Person Two", 40); + insert(session2, "H"); + insert(session2,new Person("Helen",43)); + + fireAllRules(session1); + assertThat(getResults(session1)).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); + + assertThat(fireAllRules(session2)).isEqualTo(1); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") // FULL fails with "ReliablePropagationList; no valid constructor" + void multipleKieSessions_insertFireInsertFailoverInsertFire_shouldMatchFactInsertedBeforeFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + + KieSession session1 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + KieSession session2 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + insert(session1,"M"); + insertMatchingPerson(session1,"Matching Person One", 37); + insert(session2, "N"); + insertMatchingPerson(session2, "Nicole",34); + + fireAllRules(session1); + fireAllRules(session2); + + insertMatchingPerson(session1,"Matching Person Two", 40); + insertMatchingPerson(session2, "Nancy",23); + + failover(); + + session1 = restoreSession(session1.getIdentifier(),BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + session2 = restoreSession(session2.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + clearResults(session1); + clearResults(session2); + + insertNonMatchingPerson(session1,"Nora", 35); + insertMatchingPerson(session1,"Matching Person Three", 41); + insertNonMatchingPerson(session2,"Mike", 35); + insertMatchingPerson(session2,"Noah", 41); + + fireAllRules(session1); + fireAllRules(session2); + + assertThat(getResults(session1)).containsExactlyInAnyOrder("Matching Person Two", "Matching Person Three"); + assertThat(getResults(session2)).containsExactlyInAnyOrder("Nancy", "Noah"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") // FULL fails with "ReliablePropagationList; no valid constructor" + void multipleKieSessions_updateBeforeFailover_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + KieSession session1 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + KieSession session2 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + insert(session1,"M"); + Person p1 = new Person("Mario", 49); + FactHandle fh1 = insert(session1,p1); + Person p2 = new Person("Toshiya", 45); + FactHandle fh2 = insert(session1, p2); + insert(session2,new Person("Toshiya", 45)); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(getResults(session1)).containsExactlyInAnyOrder("Mario"); + assertThat(fireAllRules(session2)).isEqualTo(0); + + insert(session2, "T"); + p1.setName("SuperMario"); + update(session1, fh1, p1); + p2.setName("MegaToshiya"); + update(session1, fh2, p2); + + failover(); + session1 = restoreSession(session1.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + session2 = restoreSession(session2.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(getResults(session1)).containsExactlyInAnyOrder("Mario", "MegaToshiya"); + assertThat(fireAllRules(session2)).isEqualTo(1); + assertThat(getResults(session2)).containsExactlyInAnyOrder("Toshiya"); + + failover(); + session1 = restoreSession(session1.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + session2 = restoreSession(session2.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + clearResults(session1); + clearResults(session2); + + assertThat(fireAllRules(session1)).isZero(); + assertThat(getResults(session1)).isEmpty(); + + assertThat(fireAllRules(session2)).isZero(); + assertThat(getResults(session2)).isEmpty(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache") // FULL fails with "ReliablePropagationList; no valid constructor" + void multipleKieSessions_deleteBeforeFailover_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache) { + + KieSession session1 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + KieSession session2 = createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + FactHandle fhStringM = insert(session1,"M"); + insertMatchingPerson(session1,"Matching Person One",37); + insertNonMatchingPerson(session1,"Toshiya",37); + insert(session2,"N"); + FactHandle fhN = insertMatchingPerson(session2,"Nicole",35); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(getResults(session1)).containsExactlyInAnyOrder("Matching Person One"); + + delete(session1,fhStringM); + delete(session2, fhN); + + failover(); + + session1 = restoreSession(session1.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + session2 = restoreSession(session2.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + clearResults(session1); + clearResults(session2); + + insertMatchingPerson(session1,"Matching Person Two",40); + insertMatchingPerson(session2,"Nancy", 25); + + assertThat(fireAllRules(session1)).isZero(); + assertThat(getResults(session1)).isEmpty(); + assertThat(fireAllRules(session2)).isEqualTo(1); + assertThat(getResults(session2)).containsExactlyInAnyOrder("Nancy"); + + insert(session1,"T"); + + failover(); + session1 = restoreSession(session1.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + session2 = restoreSession(session2.getIdentifier(), BASIC_RULE, persistenceStrategy, safepointStrategy, useKieBaseCache); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(getResults(session1)).containsExactlyInAnyOrder("Toshiya"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithAllSafepointsWithActivationKey") + void insertFireLimitFailoverFire_shouldFireRemainingActivations(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, + PersistedSessionOption.ActivationStrategy activationStrategy) { + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy, activationStrategy); + + insert("M"); + insertMatchingPerson("Matching Person One"); + insertMatchingPerson("Matching Person Two"); + insertMatchingPerson("Matching Person Three"); + + fireAllRules(1); + assertThat(getResults()).as("Firing is limited to 1") + .hasSize(1); + + failover(); + + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy, activationStrategy); + + fireAllRules(); + assertThat(getResults()).as("All remaining activations should fire") + .containsExactlyInAnyOrder("Matching Person One", "Matching Person Two", "Matching Person Three"); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityTestBasics.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityTestBasics.java new file mode 100644 index 00000000000..4864e9bb3b6 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityTestBasics.java @@ -0,0 +1,528 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import org.drools.base.facttemplates.Event; +import org.drools.core.ClassObjectFilter; +import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; +import org.drools.model.Model; +import org.drools.model.codegen.ExecutableModelProject; +import org.drools.modelcompiler.KieBaseBuilder; +import org.drools.reliability.core.ReliableGlobalResolver; +import org.drools.reliability.core.ReliableKieSession; +import org.drools.reliability.core.ReliableRuntimeComponentFactoryImpl; +import org.drools.reliability.core.StorageManagerFactory; +import org.drools.reliability.core.TestableStorageManager; +import org.drools.reliability.infinispan.InfinispanStorageManager; +import org.infinispan.client.hotrod.RemoteCacheManager; +import org.infinispan.server.test.core.InfinispanContainer; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.provider.Arguments; +import org.kie.api.KieBase; +import org.kie.api.KieServices; +import org.kie.api.conf.KieBaseOption; +import org.kie.api.conf.Option; +import org.kie.api.io.ResourceType; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.KieSessionConfiguration; +import org.kie.api.runtime.conf.KieSessionOption; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.api.runtime.rule.FactHandle; +import org.kie.api.time.SessionPseudoClock; +import org.kie.internal.utils.KieHelper; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.test.domain.Person; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; +import java.util.stream.Stream; + +import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_MARSHALLER; +import static org.drools.reliability.infinispan.InfinispanStorageManagerFactory.INFINISPAN_STORAGE_MODE; +import static org.drools.reliability.test.util.PrototypeUtils.createEvent; +import static org.drools.reliability.test.util.TestConfigurationUtils.DROOLS_RELIABILITY_MODULE_TEST; +import static org.drools.util.Config.getConfig; +import static org.junit.jupiter.params.provider.Arguments.arguments; + +@ExtendWith(BeforeAllMethodExtension.class) +public abstract class ReliabilityTestBasics { + + public static final String RULE_TYPE_TAG = "RULE_TYPE"; + public static final String SYNTHETIC_RULE_TAG = "SYNTHETIC_RULE"; + private static final Logger LOG = LoggerFactory.getLogger(ReliabilityTestBasics.class); + + private final HashMap kieBaseCache = new HashMap<>(); + + private InfinispanContainer container; + + protected final List sessions = new ArrayList<>(); + protected final HashMap persistedSessionIds = new HashMap<>(); + + protected PersistedSessionOption.SafepointStrategy safepointStrategy; + + static Stream strategyProvider() { + return Stream.of(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.PersistenceStrategy.FULL); + } + + static Stream strategyProviderStoresOnly() { + return Stream.of(arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.ALWAYS)); + } + + static Stream strategyProviderStoresOnlyWithExplicitSafepoints() { + return Stream.of( + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.ALWAYS), + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.EXPLICIT) + ); + } + + static Stream strategyProviderStoresOnlyWithExplicitSafepointsAndKieBaseCache() { + return Stream.of( + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.ALWAYS, true), + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.ALWAYS, false), + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.EXPLICIT, true), + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.EXPLICIT, false) + ); + } + + static Stream strategyProviderStoresOnlyWithAllSafepoints() { + return Stream.of( + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.ALWAYS), + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.EXPLICIT), + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.AFTER_FIRE) + ); + } + + static Stream strategyProviderStoresOnlyWithAllSafepointsWithActivationKey() { + return Stream.of( + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.ALWAYS, PersistedSessionOption.ActivationStrategy.ACTIVATION_KEY), + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.EXPLICIT, PersistedSessionOption.ActivationStrategy.ACTIVATION_KEY), + arguments(PersistedSessionOption.PersistenceStrategy.STORES_ONLY, PersistedSessionOption.SafepointStrategy.AFTER_FIRE, PersistedSessionOption.ActivationStrategy.ACTIVATION_KEY) + ); + } + + static boolean isRemoteInfinispan() { + return "INFINISPAN".equalsIgnoreCase(getConfig(DROOLS_RELIABILITY_MODULE_TEST)) + && "REMOTE".equalsIgnoreCase(getConfig(INFINISPAN_STORAGE_MODE)); + } + + static boolean isRemoteProtoInfinispan() { + return "INFINISPAN".equalsIgnoreCase(getConfig(DROOLS_RELIABILITY_MODULE_TEST)) + && "REMOTE".equalsIgnoreCase(getConfig(INFINISPAN_STORAGE_MODE)) + && "PROTOSTREAM".equalsIgnoreCase(getConfig(INFINISPAN_STORAGE_MARSHALLER)); + } + + static Stream strategyProviderFull() { + return Stream.of(PersistedSessionOption.PersistenceStrategy.FULL); + } + + @BeforeEach + public void setUp() { + if (((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).isRemote()) { + LOG.info("Starting InfinispanContainer"); + container = new InfinispanContainer() + .withFileSystemBind("infinispan-remote-config", "/user-config") + .withCommand("-c /user-config/infinispan-local.xml"); + container.start(); + LOG.info("InfinispanContainer started"); // takes about 10 seconds + InfinispanStorageManager cacheManager = (InfinispanStorageManager) StorageManagerFactory.get().getStorageManager(); + RemoteCacheManager remoteCacheManager = container.getRemoteCacheManager(cacheManager.provideAdditionalRemoteConfigurationBuilder()); + cacheManager.setRemoteCacheManager(remoteCacheManager); + } + } + + @AfterEach + public void tearDown() { + if (((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).isRemote()) { + StorageManagerFactory.get().getStorageManager().removeAllSessionStorages(); + StorageManagerFactory.get().getStorageManager().close(); // close remoteCacheManager + container.stop(); // stop remote infinispan + } else { + // clean up embedded Infinispan including GlobalState and FireStore so that test methods can be isolated + ((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).restartWithCleanUp(); + } + ReliableRuntimeComponentFactoryImpl.resetCounter(); + } + + public void failover() { + if (safepointStrategy == PersistedSessionOption.SafepointStrategy.EXPLICIT) { + this.sessions.stream().map(ReliableKieSession.class::cast).forEach(ReliableKieSession::safepoint); + } + sessions.clear(); + kieBaseCache.clear(); + + if (((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).isRemote()) { + // fail-over means restarting Drools instance. Assuming remote infinispan keeps alive + StorageManagerFactory.get().getStorageManager().close(); // close remoteCacheManager + // Reclaim RemoteCacheManager + InfinispanStorageManager cacheManager = (InfinispanStorageManager) StorageManagerFactory.get().getStorageManager(); + RemoteCacheManager remoteCacheManager = container.getRemoteCacheManager(cacheManager.provideAdditionalRemoteConfigurationBuilder()); + cacheManager.setRemoteCacheManager(remoteCacheManager); + } else { + ((TestableStorageManager) StorageManagerFactory.get().getStorageManager()).restart(); // restart embedded infinispan cacheManager. GlobalState and FireStore are kept + } + ReliableRuntimeComponentFactoryImpl.refreshCounterUsingStorage(); + } + + protected FactHandle insert(Object obj) { + return insert(sessions.get(0), obj); + } + + protected FactHandle insert(KieSession session, Object obj) { + return session.insert(obj); + } + + protected void update(FactHandle fh, Object obj) { + update(sessions.get(0), fh, obj); + } + + protected void update(KieSession session, FactHandle fh, Object obj) { + session.update(fh, obj); + } + + protected void delete(FactHandle fh) { + delete(sessions.get(0), fh); + } + + protected void delete(KieSession session, FactHandle fh) { + session.delete(fh); + } + + protected FactHandle insertMatchingPerson(String name) { + return insertMatchingPerson(sessions.get(0), name, 20); // for rules don't care about age + } + + protected FactHandle insertMatchingPerson(String name, Integer age) { + return insertMatchingPerson(sessions.get(0), name, age); + } + + protected FactHandle insertMatchingPerson(KieSession session, String name, Integer age) { + return session.insert(new Person(name, age)); + } + + protected void updateWithMatchingPerson(FactHandle nonMatching, Object matching) { + updateWithMatchingPerson(sessions.get(0), nonMatching, matching); + } + + protected void updateWithMatchingPerson(KieSession session, FactHandle nonMatching, Object matching) { + session.update(nonMatching,matching); + } + + protected void updateWithNonMatchingPerson(FactHandle matching, Object nonMatching) { + updateWithNonMatchingPerson(sessions.get(0), matching, nonMatching); + } + + protected void updateWithNonMatchingPerson(KieSession session, FactHandle matching, Object nonMatching) { + session.update(matching, nonMatching); + } + + protected FactHandle insertNonMatchingPerson(String name, Integer age) { + return insertNonMatchingPerson(sessions.get(0), name, age); + } + + protected FactHandle insertNonMatchingPerson(KieSession session, String name, Integer age) { + return session.insert(new Person(name, age)); + } + + protected List getResults() { + return getResults(sessions.get(0)); + } + + protected List getResults(KieSession session) { + return (List) session.getGlobal("results"); + } + + protected void clearResults() { + clearResults(sessions.get(0)); + } + + protected void clearResults(KieSession session) { + ((List) session.getGlobal("results")).clear(); + ((ReliableGlobalResolver)((StatefulKnowledgeSessionImpl) session).getGlobalResolver()).updateStorage(); + } + + protected KieSession createSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, Option... options) { + return createSession(drl, persistenceStrategy, PersistedSessionOption.SafepointStrategy.ALWAYS, options); + } + + protected KieSession createSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, Option... options) { + return getKieSession(drl, persistenceStrategy != null ? PersistedSessionOption.newSession().withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy) : null, options); + } + + protected KieSession createSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, + PersistedSessionOption.PersistenceObjectsStrategy persistenceObjectsStrategy, Option... options) { + return getKieSession(drl, persistenceStrategy != null ? PersistedSessionOption.newSession().withPersistenceStrategy(persistenceStrategy) + .withSafepointStrategy(safepointStrategy).withPersistenceObjectsStrategy(persistenceObjectsStrategy) : null, options); + } + + protected KieSession createSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, PersistedSessionOption.ActivationStrategy activationStrategy, Option... options) { + return getKieSession(drl, persistenceStrategy != null ? PersistedSessionOption.newSession().withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy).withActivationStrategy(activationStrategy) : null, options); + } + + protected KieSession createSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache, Option... options) { + return getKieSession(drl, persistenceStrategy != null ? PersistedSessionOption.newSession().withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy) : null, useKieBaseCache, options); + } + + protected KieSession createSession(Model ruleModel, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, Option... options) { + return getKieSession(ruleModel, persistenceStrategy != null ? PersistedSessionOption.newSession().withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy) : null, options); + } + + protected KieSession restoreSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, Option... options) { + return restoreSession(drl, persistenceStrategy, PersistedSessionOption.SafepointStrategy.ALWAYS, options); + } + + protected KieSession restoreSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, Option... options) { + Long sessionIdToRestoreFrom = (Long)this.persistedSessionIds.values().toArray()[0]; + return restoreSession(sessionIdToRestoreFrom, drl, persistenceStrategy, safepointStrategy, options); + } + + protected KieSession restoreSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, + PersistedSessionOption.PersistenceObjectsStrategy persistenceObjectsStrategy, Option... options) { + Long sessionIdToRestoreFrom = (Long) this.persistedSessionIds.values().toArray()[0]; + return restoreSession(sessionIdToRestoreFrom, drl, persistenceStrategy, safepointStrategy, persistenceObjectsStrategy, options); + } + + protected KieSession restoreSession(String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, PersistedSessionOption.ActivationStrategy activationStrategy, Option... options) { + Long sessionIdToRestoreFrom = (Long)this.persistedSessionIds.values().toArray()[0]; + return restoreSession(sessionIdToRestoreFrom, drl, persistenceStrategy, safepointStrategy, activationStrategy, options); + } + + protected KieSession restoreSession(Long sessionId, String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, Option... options) { + Long sessionIdToRestoreFrom = this.persistedSessionIds.get(sessionId); + return getKieSession(drl, PersistedSessionOption.fromSession(sessionIdToRestoreFrom).withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy), options); + } + + protected KieSession restoreSession(Long sessionId, String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, + PersistedSessionOption.PersistenceObjectsStrategy persistenceObjectsStrategy, Option... options) { + Long sessionIdToRestoreFrom = this.persistedSessionIds.get(sessionId); + return getKieSession(drl, PersistedSessionOption.fromSession(sessionIdToRestoreFrom).withPersistenceStrategy(persistenceStrategy) + .withSafepointStrategy(safepointStrategy).withPersistenceObjectsStrategy(persistenceObjectsStrategy), options); + } + + protected KieSession restoreSession(Long sessionId, String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, PersistedSessionOption.ActivationStrategy activationStrategy, Option... options) { + Long sessionIdToRestoreFrom = this.persistedSessionIds.get(sessionId); + return getKieSession(drl, PersistedSessionOption.fromSession(sessionIdToRestoreFrom).withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy).withActivationStrategy(activationStrategy), options); + } + + protected KieSession restoreSession(Long sessionId, String drl, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, boolean useKieBaseCache, Option... options) { + Long sessionIdToRestoreFrom = this.persistedSessionIds.get(sessionId); + return getKieSession(drl, PersistedSessionOption.fromSession(sessionIdToRestoreFrom).withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy), useKieBaseCache, options); + } + + protected int fireAllRules() { + return fireAllRules(sessions.get(0)); + } + + protected int fireAllRules(int max) { + return sessions.get(0).fireAllRules(max); + } + + protected int fireAllRules(KieSession session) { + return session.fireAllRules(); + } + + protected KieSession restoreSession(Model ruleModel, PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy, Option... options) { + Long sessionIdToRestoreFrom = (Long)this.persistedSessionIds.values().toArray()[0]; + return getKieSession(ruleModel, PersistedSessionOption.fromSession(sessionIdToRestoreFrom).withPersistenceStrategy(persistenceStrategy).withSafepointStrategy(safepointStrategy), options); + } + + protected void disposeSession() { + disposeSession(sessions.get(0)); + } + + protected void disposeSession(KieSession session) { + session.dispose(); + } + + protected SessionPseudoClock getSessionClock() { + return getSessionClock(sessions.get(0)); + } + + protected SessionPseudoClock getSessionClock(KieSession session) { + return session.getSessionClock(); + } + + protected Collection getFactHandles() { + return getFactHandles(sessions.get(0)); + } + + protected Collection getFactHandles(KieSession session) { + return session.getFactHandles(); + } + + protected void safepoint() { + safepoint(sessions.get(0)); + } + + protected void safepoint(KieSession session) { + ((ReliableKieSession) session).safepoint(); + } + + protected long getSessionIdentifier() { + return sessions.get(0).getIdentifier(); + } + + protected KieSession getKieSession(String drl, PersistedSessionOption persistedSessionOption, Option... options) { + return getKieSession(drl, persistedSessionOption, true, options); + } + + protected KieSession getKieSession(String drl, PersistedSessionOption persistedSessionOption, boolean useKieBaseCache, Option... options) { + OptionsFilter optionsFilter = new OptionsFilter(options); + KieBase kbase; + if (useKieBaseCache) { + kbase = kieBaseCache.computeIfAbsent(drl, k -> createKieBase(drl, optionsFilter)); + } else { + kbase = createKieBase(drl, optionsFilter); + } + return getKieSessionFromKieBase(kbase, persistedSessionOption, optionsFilter); + } + + private static KieBase createKieBase(String drl, OptionsFilter optionsFilter) { + return new KieHelper().addContent(drl, ResourceType.DRL).build(ExecutableModelProject.class, optionsFilter.getKieBaseOptions()); + } + + protected KieSession getKieSession(Model ruleModel, PersistedSessionOption persistedSessionOption, Option... options) { + OptionsFilter optionsFilter = new OptionsFilter(options); + KieBase kbase = KieBaseBuilder.createKieBaseFromModel(ruleModel, optionsFilter.getKieBaseOptions()); + return getKieSessionFromKieBase(kbase, persistedSessionOption, optionsFilter); + } + + private KieSession getKieSessionFromKieBase(KieBase kbase, PersistedSessionOption persistedSessionOption, OptionsFilter optionsFilter) { + KieSessionConfiguration conf = KieServices.get().newKieSessionConfiguration(); + if (persistedSessionOption != null) { + conf.setOption(persistedSessionOption); + safepointStrategy = persistedSessionOption.getSafepointStrategy(); + } + Stream.of(optionsFilter.getKieSessionOption()).forEach(conf::setOption); + KieSession session = kbase.newKieSession(conf, null); + if (persistedSessionOption == null || persistedSessionOption.isNewSession()) { + List results = new ArrayList<>(); + session.setGlobal("results", results); + } + sessions.add(session); + persistedSessionIds.put(session.getIdentifier(),persistedSessionOption == null || persistedSessionOption.isNewSession() ? session.getIdentifier() : persistedSessionOption.getSessionId()); + return session; + } + + protected Optional getPersonByName(String name) { + return getPersonByName(sessions.get(0), name); + } + + protected Optional getPersonByName(KieSession kieSession, String name) { + return kieSession.getObjects(new ClassObjectFilter(Person.class)) + .stream() + .map(Person.class::cast) + .filter(p -> p.getName().equals(name) ).findFirst(); + } + + protected Optional getFactHandle(Person person){ + return getFactHandle(sessions.get(0), person); + } + + protected Optional getFactHandle(KieSession kieSession, Person person){ + return kieSession.getFactHandles() + .stream() + .filter(p -> p.getObject() instanceof Person) + .filter(p -> ( (Person) p.getObject()).getName().equals(person.getName()) ) + .filter(p -> ( (Person) p.getObject()).getAge()==person.getAge() ).findFirst(); + } + + protected Optional getObjectByType(Class objectClass){ + return getObjectByType(sessions.get(0), objectClass); + } + + protected Optional getObjectByType(KieSession kieSession, Class objectClass){ + return (Optional) kieSession.getObjects(new ClassObjectFilter(objectClass)).stream().findFirst(); + } + + protected Optional getFactHandleByType(Class objectClass){ + return getFactHandleByType(sessions.get(0), objectClass); + } + + protected Optional getFactHandleByType(KieSession kieSession, Class objectClass){ + return kieSession.getFactHandles() + .stream() + .filter(fh -> fh.getObject().getClass().equals(objectClass)) + .findFirst(); + } + + private static class OptionsFilter { + private final Option[] options; + + OptionsFilter(Option[] options) { + this.options = options; + } + + KieBaseOption[] getKieBaseOptions() { + return options == null ? new KieBaseOption[0] : Stream.of(options).filter(KieBaseOption.class::isInstance).toArray(KieBaseOption[]::new); + } + + KieSessionOption[] getKieSessionOption() { + return options == null ? new KieSessionOption[0] : Stream.of(options).filter(KieSessionOption.class::isInstance).toArray(KieSessionOption[]::new); + } + } + + protected void advanceTime(long amount, TimeUnit unit) { + ((SessionPseudoClock) sessions.get(0).getSessionClock()).advanceTime(amount, unit); + } + + protected void advanceTimeAndFire(long amount, TimeUnit unit) { + ((SessionPseudoClock) sessions.get(0).getSessionClock()).advanceTime(amount, unit); + sessions.get(0).fireAllRules(); + } + + protected void insertMatchingSensuEvent(String host, String type) { + insertSensuEvent(host, type); + } + + protected void insertNonMatchingSensuEvent(String host, String type) { + insertSensuEvent(host, type); + } + + private void insertSensuEvent(String host, String type) { + Event sensu = createEvent(); + sensu.set("sensu.host", host); + sensu.set("sensu.process.type", type); + sessions.get(0).insert(sensu); + } + + protected void insertMatchingSensuProcessStatusEvent(String status) { + Event sensu = createEvent(); + sensu.set("sensu.process.status", status); + sessions.get(0).insert(sensu); + } + + protected void insertMatchingPingTimeoutEvent(boolean timeout) { + Event ping = createEvent(); + ping.set("ping.timeout", timeout); + sessions.get(0).insert(ping); + } + + protected void insertMatchingSensuStoragePercentEvent(int percent) { + Event sensu = createEvent(); + sensu.set("sensu.storage.percent", percent); + sessions.get(0).insert(sensu); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityUpdateInDrlTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityUpdateInDrlTest.java new file mode 100644 index 00000000000..a62033ad2f7 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/ReliabilityUpdateInDrlTest.java @@ -0,0 +1,263 @@ +/** + * 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. + */ +package org.drools.reliability.test; + +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.api.runtime.rule.FactHandle; +import org.test.domain.Person; + +import java.util.Optional; + +import static org.assertj.core.api.Assertions.assertThat; + +@ExtendWith(BeforeAllMethodExtension.class) +class ReliabilityUpdateInDrlTest extends ReliabilityTestBasics { + + private static final String RULE_UPDATE = + "import " + Person.class.getCanonicalName() + ";" + + "global java.util.List results;" + + "rule X when\n" + + " $s: String()\n" + + " $p: Person( getName().startsWith($s), getAge()>17 )\n" + + "then\n" + + " results.add( $p.getName() );\n" + + "end\n" + + "rule Birthday when\n" + + " $a: Integer()\n" + + " $p: Person( getAge() == $a )\n" + + "then\n" + + " $p.setAge( $a + 1 );\n" + + " update($p);\n" + + "end"; + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFireUpdateFailoverFire_shouldMatchUpdatesFromFirstSession(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy){ + + createSession(RULE_UPDATE, persistenceStrategy, safepointStrategy); + + insert("M"); + insertMatchingPerson("Mike",22); + insertNonMatchingPerson("Eleven", 17); + insert(17); // person with age=17 will change to 18 (17+1) + + assertThat(fireAllRules()).isEqualTo(2); // person with name that starts with M and has age>17 will be added to the results list + assertThat(getResults()).containsExactlyInAnyOrder("Mike"); + + failover(); + + restoreSession(RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(); + + insert("E"); // NonMatchingPerson will match rule X + + assertThat(fireAllRules()).isEqualTo(1); + assertThat(getResults()).containsExactlyInAnyOrder("Eleven"); + + failover(); + + restoreSession(RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(); + + assertThat(fireAllRules()).isZero(); + assertThat(getResults()).isEmpty(); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFailoverInsertFailoverInsertFire_shouldRecoverAndMatchRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy){ + createSession(RULE_UPDATE, persistenceStrategy, safepointStrategy); + + insert("M"); + insertMatchingPerson("Mike",22); + insertNonMatchingPerson("Eleven", 17); + + failover(); + + restoreSession(RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(); + + insert(17); + + failover(); + + restoreSession(RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(); + + insert("E"); + + assertThat(fireAllRules()).isEqualTo(3); + assertThat(getResults()).containsExactlyInAnyOrder("Mike","Eleven"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFailoverDeleteFailoverInsert_shouldRecoverAndMatchRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy){ + createSession(RULE_UPDATE, persistenceStrategy, safepointStrategy); + + insert("M"); + insert("E"); + insertMatchingPerson("Mike",22); + Person pEleven = new Person("Eleven", 16); + insert(pEleven); + + failover(); + + restoreSession(RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(); + + Optional getFactHandleForPerson = getFactHandle(pEleven); + assertThat(getFactHandleForPerson.isEmpty()).isFalse(); + delete(getFactHandleForPerson.get()); + + failover(); + + restoreSession(RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(); + + insert(16); + insertMatchingPerson("Eleven",16); + + assertThat(fireAllRules()).isEqualTo(2); + assertThat(getResults()).containsExactlyInAnyOrder("Mike"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void multipleKieSession_insertFireUpdateInsertFailoverFire_shouldMatchUpdatesAfterFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + KieSession session1 = createSession(RULE_UPDATE, persistenceStrategy, safepointStrategy); + insert(session1, "M"); + insertMatchingPerson(session1, "Mike", 16); // rule X match + + KieSession session2 = createSession(RULE_UPDATE, persistenceStrategy, safepointStrategy); + insertMatchingPerson(session2, "Eleven", 18); // no rule match + + assertThat(fireAllRules(session1)).isEqualTo(0); + assertThat(fireAllRules(session2)).isEqualTo(0); + + insert(session1, 16); // rule Birthday match (session 1) + insert(session2, "E"); + + failover(); + session1 = restoreSession(session1.getIdentifier(), RULE_UPDATE, persistenceStrategy, safepointStrategy); + clearResults(session1); + session2 = restoreSession(session2.getIdentifier(), RULE_UPDATE, persistenceStrategy, safepointStrategy); + clearResults(session2); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(getResults(session1)).isEmpty(); + + assertThat(fireAllRules(session2)).isEqualTo(1); + assertThat(getResults(session2)).containsExactlyInAnyOrder("Eleven"); + + insert(session1, 17); // rule Birthday match (session 1) + insert(session2, 17); // rule Birthday will not match (session 2) + + failover(); + session1 = restoreSession(session1.getIdentifier(), RULE_UPDATE, persistenceStrategy, safepointStrategy); + clearResults(session1); + session2 = restoreSession(session2.getIdentifier(), RULE_UPDATE, persistenceStrategy, safepointStrategy); + clearResults(session2); + + assertThat(fireAllRules(session1)).isEqualTo(2); + assertThat(getResults(session1)).containsExactlyInAnyOrder("Mike"); + + assertThat(fireAllRules(session2)).isEqualTo(0); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void multipleKieSession_insertFailoverInsertFailoverInsertFire_shouldRecoverAndMatchRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy){ + KieSession session1 = createSession(RULE_UPDATE, persistenceStrategy, safepointStrategy); + KieSession session2 = createSession(RULE_UPDATE, persistenceStrategy, safepointStrategy); + + insert(session1,"M"); + insertMatchingPerson(session1,"Mike",22); + insertNonMatchingPerson(session2,"Eleven", 17); + + failover(); + + session1 = restoreSession(session1.getIdentifier(), RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(session1); + session2 = restoreSession(session2.getIdentifier(), RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(session2); + + insert(session2,17); + + failover(); + + session1 = restoreSession(session1.getIdentifier(), RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(session1); + session2 = restoreSession(session2.getIdentifier(), RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(session2); + + insert(session2,"E"); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(getResults(session1)).containsExactlyInAnyOrder("Mike"); + + assertThat(fireAllRules(session2)).isEqualTo(2); + assertThat(getResults(session2)).containsExactlyInAnyOrder("Eleven"); + } + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void multiplKieSession_insertFailoverDeleteFailoverInsert_shouldRecoverAndMatchRules(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy){ + KieSession session1 = createSession(RULE_UPDATE, persistenceStrategy, safepointStrategy); + KieSession session2 = createSession(RULE_UPDATE, persistenceStrategy, safepointStrategy); + + insert(session1,"M"); + insert(session2,"E"); + insertMatchingPerson(session1,"Mike",22); + Person pEleven = new Person("Eleven", 16); + insert(session2, pEleven); + + failover(); + + session1 = restoreSession(session1.getIdentifier(), RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(session1); + session2 = restoreSession(session2.getIdentifier(), RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(session2); + + Optional getFactHandleForPerson = getFactHandle(session2, pEleven); + assertThat(getFactHandleForPerson.isEmpty()).isFalse(); + delete(session2, getFactHandleForPerson.get()); + + failover(); + + session1 = restoreSession(session1.getIdentifier(), RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(session1); + session2 = restoreSession(session2.getIdentifier(), RULE_UPDATE, persistenceStrategy,safepointStrategy); + clearResults(session2); + + insert(session2,16); + insertMatchingPerson(session2,"Eleven",16); + + assertThat(fireAllRules(session1)).isEqualTo(1); + assertThat(getResults(session1)).containsExactlyInAnyOrder("Mike"); + assertThat(fireAllRules(session2)).isEqualTo(1); + assertThat(getResults(session2)).isEmpty(); + } + +} + diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/h2mvstore/H2MVStoreStorageManagerExample.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/h2mvstore/H2MVStoreStorageManagerExample.java new file mode 100644 index 00000000000..d3217a20b1b --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/h2mvstore/H2MVStoreStorageManagerExample.java @@ -0,0 +1,78 @@ +/** + * 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. + */ +package org.drools.reliability.test.example.h2mvstore; + +import java.util.ArrayList; +import java.util.List; + +import org.drools.model.codegen.ExecutableModelProject; +import org.drools.reliability.h2mvstore.H2MVStoreStorageManager; +import org.drools.reliability.test.util.TestConfigurationUtils; +import org.kie.api.KieBase; +import org.kie.api.KieServices; +import org.kie.api.io.ResourceType; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.KieSessionConfiguration; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.kie.internal.utils.KieHelper; +import org.test.domain.Person; + +public class H2MVStoreStorageManagerExample { + + public static final String BASIC_RULE = + "import " + Person.class.getCanonicalName() + ";" + + "global java.util.List results;" + + "rule X when\n" + + " $s: String()\n" + + " $p: Person( getName().startsWith($s) )\n" + + "then\n" + + " results.add( $p.getName() );\n" + + "end"; + + public static void main(String[] args) { + // These 2 lines are needed because drools-reliability-tests contains both drools-reliability-h2mvstore and drools-reliability-infinispan modules + // If only drools-reliability-h2mvstore is used for persistence, they are not needed + System.setProperty(TestConfigurationUtils.DROOLS_RELIABILITY_MODULE_TEST, "H2MVSTORE"); + TestConfigurationUtils.configureServicePriorities(); + + H2MVStoreStorageManager.cleanUpDatabase(); + System.out.println("### Deleted database file : " + H2MVStoreStorageManager.STORE_FILE_NAME); + + KieSession session = getKieSession(PersistedSessionOption.newSession().withPersistenceStrategy(PersistedSessionOption.PersistenceStrategy.STORES_ONLY)); + + long savedSessionId = session.getIdentifier(); + System.out.println("savedSessionId = " + savedSessionId); + + session.insert("M"); + session.insert(new Person("Mario", 40)); + + //--- Simulate a crash + System.out.println("Simulating a crash"); + } + + public static KieSession getKieSession(PersistedSessionOption option) { + KieBase kbase = new KieHelper().addContent(BASIC_RULE, ResourceType.DRL).build(ExecutableModelProject.class); + KieSessionConfiguration conf = KieServices.get().newKieSessionConfiguration(); + conf.setOption(option); + KieSession session = kbase.newKieSession(conf, null); + List results = new ArrayList<>(); + session.setGlobal("results", results); + return session; + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/h2mvstore/H2MVStoreStorageManagerExampleAfterFailOver.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/h2mvstore/H2MVStoreStorageManagerExampleAfterFailOver.java new file mode 100644 index 00000000000..8e196a2bbb6 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/h2mvstore/H2MVStoreStorageManagerExampleAfterFailOver.java @@ -0,0 +1,43 @@ +/** + * 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. + */ +package org.drools.reliability.test.example.h2mvstore; + +import org.drools.reliability.test.util.TestConfigurationUtils; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.conf.PersistedSessionOption; + +public class H2MVStoreStorageManagerExampleAfterFailOver { + + public static void main(String[] args) { + System.setProperty(TestConfigurationUtils.DROOLS_RELIABILITY_MODULE_TEST, "H2MVSTORE"); + TestConfigurationUtils.configureServicePriorities(); + + // Here we use the savedSessionId to retrieve the session. Explicitly 0 for now, but it could be different. + KieSession session = H2MVStoreStorageManagerExample.getKieSession(PersistedSessionOption.fromSession(0).withPersistenceStrategy(PersistedSessionOption.PersistenceStrategy.STORES_ONLY)); + + try { + System.out.println("fireAllRules"); + session.fireAllRules(); + Object results = session.getGlobal("results"); + System.out.println("results = " + results); + } finally { + session.dispose(); + } + } +} diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/example/RemoteCacheManagerExample.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/infinispan/RemoteCacheManagerExample.java similarity index 67% rename from drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/example/RemoteCacheManagerExample.java rename to drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/infinispan/RemoteCacheManagerExample.java index 2d03f674d2c..266146e84a3 100644 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/example/RemoteCacheManagerExample.java +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/infinispan/RemoteCacheManagerExample.java @@ -1,21 +1,26 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ +package org.drools.reliability.test.example.infinispan; -package org.drools.reliability.infinispan.example; - +import org.drools.model.codegen.ExecutableModelProject; import org.drools.reliability.infinispan.InfinispanStorageManagerFactory; +import org.drools.reliability.test.util.TestConfigurationUtils; import org.kie.api.KieBase; import org.kie.api.KieServices; import org.kie.api.io.ResourceType; @@ -28,7 +33,6 @@ import java.util.ArrayList; import java.util.List; - /** * Example class to demonstrate how to use RemoteCacheManager. *

@@ -54,6 +58,11 @@ public class RemoteCacheManagerExample { "end"; public static void main(String[] args) { + // These 2 lines are needed because drools-reliability-tests contains both drools-reliability-h2mvstore and drools-reliability-infinispan modules + // If only drools-reliability-infinispan is used for persistence, they are not needed + System.setProperty(TestConfigurationUtils.DROOLS_RELIABILITY_MODULE_TEST, "INFINISPAN"); + TestConfigurationUtils.configureServicePriorities(); + KieSession session = getKieSession(PersistedSessionOption.newSession().withPersistenceStrategy(PersistedSessionOption.PersistenceStrategy.STORES_ONLY)); long savedSessionId = session.getIdentifier(); @@ -75,7 +84,7 @@ public static KieSession getKieSession(PersistedSessionOption option) { System.setProperty(InfinispanStorageManagerFactory.INFINISPAN_STORAGE_ALLOWED_PACKAGES, "org.test.domain"); - KieBase kbase = new KieHelper().addContent(BASIC_RULE, ResourceType.DRL).build(); + KieBase kbase = new KieHelper().addContent(BASIC_RULE, ResourceType.DRL).build(ExecutableModelProject.class); KieSessionConfiguration conf = KieServices.get().newKieSessionConfiguration(); conf.setOption(option); KieSession session = kbase.newKieSession(conf, null); diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/infinispan/RemoteCacheManagerExampleAfterFailOver.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/infinispan/RemoteCacheManagerExampleAfterFailOver.java new file mode 100644 index 00000000000..7fa2a795bcd --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/example/infinispan/RemoteCacheManagerExampleAfterFailOver.java @@ -0,0 +1,48 @@ +/** + * 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. + */ +package org.drools.reliability.test.example.infinispan; + +import org.drools.reliability.test.util.TestConfigurationUtils; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.conf.PersistedSessionOption; + +/** + * Example class to demonstrate how to use RemoteCacheManager. + *

+ * See RemoteCacheManagerExample for more details. + */ +public class RemoteCacheManagerExampleAfterFailOver { + + public static void main(String[] args) { + System.setProperty(TestConfigurationUtils.DROOLS_RELIABILITY_MODULE_TEST, "INFINISPAN"); + TestConfigurationUtils.configureServicePriorities(); + + // Here we use the savedSessionId to retrieve the session. Explicitly 0 for now, but it could be different. + KieSession session = RemoteCacheManagerExample.getKieSession(PersistedSessionOption.fromSession(0).withPersistenceStrategy(PersistedSessionOption.PersistenceStrategy.STORES_ONLY)); + + try { + System.out.println("fireAllRules"); + session.fireAllRules(); + Object results = session.getGlobal("results"); + System.out.println("results = " + results); + } finally { + session.dispose(); + } + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/BooleanAdaptor.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/BooleanAdaptor.java new file mode 100644 index 00000000000..e98767fc40e --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/BooleanAdaptor.java @@ -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. + */ +package org.drools.reliability.test.proto; + +import org.infinispan.protostream.annotations.ProtoAdapter; +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; + +@ProtoAdapter(Boolean.class) +public class BooleanAdaptor { + + @ProtoFactory + Boolean create(Boolean value) { + return Boolean.valueOf(value); + } + + @ProtoField(1) + Boolean getValue(Boolean value) { + return value; + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/EntryImpl.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/EntryImpl.java new file mode 100644 index 00000000000..1b7a3788490 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/EntryImpl.java @@ -0,0 +1,75 @@ +/** + * 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. + */ +package org.drools.reliability.test.proto; + +import java.util.Map; + +import org.drools.reliability.infinispan.proto.ProtoStreamUtils; +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; +import org.infinispan.protostream.types.protobuf.AnySchema; + +public class EntryImpl implements Map.Entry { + + private String key; + + private Object value; + + public EntryImpl(String key, Object value) { + this.key = key; + this.value = value; + } + + @ProtoFactory + public EntryImpl(String key, AnySchema.Any protoValue) { + this.key = key; + this.value = ProtoStreamUtils.fromAnySchema(protoValue); + } + + @ProtoField(number = 1, required = true) + @Override + public String getKey() { + return key; + } + + @ProtoField(number = 2, required = true) + public AnySchema.Any getProtoValue() { + return ProtoStreamUtils.toAnySchema(value); + } + + @Override + public Object getValue() { + return value; + } + + @Override + public Object setValue(Object value) { + Object oldValue = this.value; + this.value = value; + return oldValue; + } + + @Override + public String toString() { + return "EntryImpl{" + + "key='" + key + '\'' + + ", value=" + value + + '}'; + } +} \ No newline at end of file diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/HashMapAdaptor.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/HashMapAdaptor.java new file mode 100644 index 00000000000..bcbbc95cd61 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/HashMapAdaptor.java @@ -0,0 +1,53 @@ +/** + * 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. + */ +package org.drools.reliability.test.proto; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.stream.Collectors; + +import org.infinispan.protostream.annotations.ProtoAdapter; +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; + +/** + * This adaptor is specialized for HashMap. If you have a different type of map, you need to enhance this adaptor. + */ +@ProtoAdapter(HashMap.class) +public class HashMapAdaptor { + + @ProtoFactory + HashMap create(List entryList) { + HashMap map = new HashMap<>(); + for (EntryImpl entry : entryList) { + map.put(entry.getKey(), entry.getValue()); + } + return map; + } + + @ProtoField(number = 1, collectionImplementation = ArrayList.class) + List getEntryList(HashMap map) { + return map.entrySet() + .stream() + .map(e -> new EntryImpl(e.getKey(), e.getValue())) + .collect(Collectors.toCollection(ArrayList::new)); + } +} + diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/HashMapEventImplAdaptor.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/HashMapEventImplAdaptor.java new file mode 100644 index 00000000000..8ebbf46d998 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/HashMapEventImplAdaptor.java @@ -0,0 +1,71 @@ +/** + * 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. + */ +package org.drools.reliability.test.proto; + +import java.util.Map; +import java.util.UUID; + +import org.drools.modelcompiler.facttemplate.HashMapEventImpl; +import org.drools.reliability.infinispan.proto.ProtoStreamUtils; +import org.infinispan.protostream.annotations.ProtoAdapter; +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; +import org.infinispan.protostream.types.protobuf.AnySchema; + +import static org.drools.modelcompiler.facttemplate.FactFactory.prototypeToFactTemplate; +import static org.drools.reliability.test.util.PrototypeUtils.getPrototype; + +/** + * This adopter resides in test module, because main drools-reliability-infinispan module does not have dependency on drools-model-compiler module. + */ +@ProtoAdapter(HashMapEventImpl.class) +public class HashMapEventImplAdaptor { + + @ProtoFactory + HashMapEventImpl create(String uuid, String factTemplate, AnySchema.Any valuesMapObject, long timestamp, long expiration) { + Map valuesMap = (Map) ProtoStreamUtils.fromAnySchema(valuesMapObject); + return new HashMapEventImpl(UUID.fromString(uuid), prototypeToFactTemplate(getPrototype(factTemplate)), valuesMap, timestamp, expiration); + } + + @ProtoField(1) + String getUuid(HashMapEventImpl event) { + return event.getUuid().toString(); + } + + @ProtoField(2) + String getFactTemplate(HashMapEventImpl event) { + return event.getFactTemplate().getName(); + } + + @ProtoField(number = 3, required = true) + AnySchema.Any getValuesMapObject(HashMapEventImpl event) { + Map map = event.asMap(); + return ProtoStreamUtils.toAnySchema(map); + } + + @ProtoField(number = 4, defaultValue = "-1") + long getTimestamp(HashMapEventImpl event) { + return event.getTimestamp(); + } + + @ProtoField(number = 5, defaultValue = "10000") + long getExpiration(HashMapEventImpl event) { + return event.getExpiration(); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/IntegerAdaptor.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/IntegerAdaptor.java new file mode 100644 index 00000000000..b9723adfc8f --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/IntegerAdaptor.java @@ -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. + */ +package org.drools.reliability.test.proto; + +import org.infinispan.protostream.annotations.ProtoAdapter; +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; + +@ProtoAdapter(Integer.class) +public class IntegerAdaptor { + + @ProtoFactory + Integer create(Integer value) { + return Integer.valueOf(value); + } + + @ProtoField(1) + Integer getValue(Integer value) { + return value; + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/PersonAdaptor.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/PersonAdaptor.java new file mode 100644 index 00000000000..dfae78e6281 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/PersonAdaptor.java @@ -0,0 +1,43 @@ +/** + * 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. + */ +package org.drools.reliability.test.proto; + +import org.infinispan.protostream.annotations.ProtoAdapter; +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; +import org.test.domain.Person; + +@ProtoAdapter(Person.class) +public class PersonAdaptor { + + @ProtoFactory + Person create(String name, int age) { + return new Person(name, age); + } + + @ProtoField(1) + String getName(Person person) { + return person.getName(); + } + + @ProtoField(number = 2, defaultValue = "0") + int getAge(Person person) { + return person.getAge(); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/StockTickAdaptor.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/StockTickAdaptor.java new file mode 100644 index 00000000000..a0409ea9ca5 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/StockTickAdaptor.java @@ -0,0 +1,43 @@ +/** + * 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. + */ +package org.drools.reliability.test.proto; + +import org.infinispan.protostream.annotations.ProtoAdapter; +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; +import org.test.domain.StockTick; + +@ProtoAdapter(StockTick.class) +public class StockTickAdaptor { + + @ProtoFactory + StockTick create(String company, long duration) { + return new StockTick(company, duration); + } + + @ProtoField(1) + String getCompany(StockTick stockTick) { + return stockTick.getCompany(); + } + + @ProtoField(number = 2, defaultValue = "0") + long getDuration(StockTick stockTick) { + return stockTick.getDuration(); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/StringAdaptor.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/StringAdaptor.java new file mode 100644 index 00000000000..47df8e0b1b6 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/StringAdaptor.java @@ -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. + */ +package org.drools.reliability.test.proto; + +import org.infinispan.protostream.annotations.ProtoAdapter; +import org.infinispan.protostream.annotations.ProtoFactory; +import org.infinispan.protostream.annotations.ProtoField; + +@ProtoAdapter(String.class) +public class StringAdaptor { + + @ProtoFactory + String create(String value) { + return new String(value); + } + + @ProtoField(1) + String getValue(String value) { + return value; + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/TestProtoStreamSchema.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/TestProtoStreamSchema.java new file mode 100644 index 00000000000..26526c5b920 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/proto/TestProtoStreamSchema.java @@ -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. + */ +package org.drools.reliability.test.proto; + +import org.drools.reliability.infinispan.proto.ProtoStreamGlobal; +import org.drools.reliability.infinispan.proto.ProtoStreamStoredEvent; +import org.drools.reliability.infinispan.proto.ProtoStreamStoredObject; +import org.infinispan.protostream.GeneratedSchema; +import org.infinispan.protostream.annotations.AutoProtoSchemaBuilder; +import org.infinispan.protostream.types.java.collections.ArrayListAdapter; +import org.infinispan.protostream.types.protobuf.AnySchema; + +@AutoProtoSchemaBuilder(includeClasses = {ProtoStreamStoredObject.class, ProtoStreamStoredEvent.class, ProtoStreamGlobal.class, // infrastructure classes + StringAdaptor.class, IntegerAdaptor.class, BooleanAdaptor.class, ArrayListAdapter.class, // basic types + PersonAdaptor.class, StockTickAdaptor.class, // domain classes + HashMapEventImplAdaptor.class, HashMapAdaptor.class, EntryImpl.class}, // CEP event classes + dependsOn = AnySchema.class, + schemaPackageName = "org.drools.reliability.test", + schemaFileName = "test-store-object.proto", schemaFilePath = "proto") +public interface TestProtoStreamSchema extends GeneratedSchema { +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/smoke/BaseSmokeTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/smoke/BaseSmokeTest.java new file mode 100644 index 00000000000..ff4cadc6500 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/smoke/BaseSmokeTest.java @@ -0,0 +1,68 @@ +/** + * 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. + */ +package org.drools.reliability.test.smoke; + +import org.drools.reliability.test.BeforeAllMethodExtension; +import org.drools.reliability.test.ReliabilityTestBasics; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.condition.EnabledIf; +import org.junit.jupiter.api.extension.ExtendWith; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.MethodSource; +import org.kie.api.runtime.conf.PersistedSessionOption; +import org.test.domain.Person; + +import static org.assertj.core.api.Assertions.assertThat; + +@Disabled("Base class for other smoke tests") +@ExtendWith(BeforeAllMethodExtension.class) +public class BaseSmokeTest extends ReliabilityTestBasics { + + private static final String BASIC_RULE = + "import " + Person.class.getCanonicalName() + ";" + + "global java.util.List results;" + + "rule X when\n" + + " $s: String()\n" + + " $p: Person( getName().startsWith($s) )\n" + + "then\n" + + " results.add( $p.getName() );\n" + + "end"; + + @ParameterizedTest + @MethodSource("strategyProviderStoresOnlyWithExplicitSafepoints") + void insertFailoverInsertFire_shouldRecoverFromFailover(PersistedSessionOption.PersistenceStrategy persistenceStrategy, PersistedSessionOption.SafepointStrategy safepointStrategy) { + createSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insert("M"); + insertMatchingPerson("Matching Person One", 37); + + //-- Assume JVM down here. Fail-over to other JVM or rebooted JVM + //-- ksession and kbase are lost. CacheManager is recreated. Client knows only "id" + failover(); + + restoreSession(BASIC_RULE, persistenceStrategy, safepointStrategy); + + insertNonMatchingPerson("Toshiya", 35); + insertMatchingPerson("Matching Person Two", 40); + + fireAllRules(); + + assertThat(getResults()).containsExactlyInAnyOrder("Matching Person One", "Matching Person Two"); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/smoke/proto/ProtoSmokeTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/smoke/proto/ProtoSmokeTest.java new file mode 100644 index 00000000000..fc7e9c8001f --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/smoke/proto/ProtoSmokeTest.java @@ -0,0 +1,36 @@ +/** + * 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. + */ +package org.drools.reliability.test.smoke.proto; + +import org.drools.reliability.test.BeforeAllMethodExtension; +import org.drools.reliability.test.smoke.BaseSmokeTest; +import org.junit.jupiter.api.condition.DisabledOnOs; +import org.junit.jupiter.api.condition.EnabledIf; +import org.junit.jupiter.api.extension.ExtendWith; +import org.testcontainers.junit.jupiter.Testcontainers; + +import static org.junit.jupiter.api.condition.OS.WINDOWS; + +@DisabledOnOs(WINDOWS) +@EnabledIf("isRemoteProtoInfinispan") +@Testcontainers(disabledWithoutDocker = true) +@ExtendWith(BeforeAllMethodExtension.class) +class ProtoSmokeTest extends BaseSmokeTest { + +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/smoke/remote/RemoteSmokeTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/smoke/remote/RemoteSmokeTest.java new file mode 100644 index 00000000000..93b99ead793 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/smoke/remote/RemoteSmokeTest.java @@ -0,0 +1,36 @@ +/** + * 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. + */ +package org.drools.reliability.test.smoke.remote; + +import org.drools.reliability.test.BeforeAllMethodExtension; +import org.drools.reliability.test.smoke.BaseSmokeTest; +import org.junit.jupiter.api.condition.DisabledOnOs; +import org.junit.jupiter.api.condition.EnabledIf; +import org.junit.jupiter.api.extension.ExtendWith; +import org.testcontainers.junit.jupiter.Testcontainers; + +import static org.junit.jupiter.api.condition.OS.WINDOWS; + +@DisabledOnOs(WINDOWS) +@EnabledIf("isRemoteInfinispan") +@Testcontainers(disabledWithoutDocker = true) +@ExtendWith(BeforeAllMethodExtension.class) +class RemoteSmokeTest extends BaseSmokeTest { + +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/util/PrototypeUtils.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/util/PrototypeUtils.java new file mode 100644 index 00000000000..0af1e119175 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/util/PrototypeUtils.java @@ -0,0 +1,60 @@ +/** + * 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. + */ +package org.drools.reliability.test.util; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +import org.drools.base.facttemplates.Event; +import org.drools.model.Prototype; +import org.drools.model.PrototypeDSL; +import org.drools.model.PrototypeFact; + +import static org.drools.modelcompiler.facttemplate.FactFactory.createMapBasedEvent; + +public class PrototypeUtils { + + public static final String DEFAULT_PROTOTYPE_NAME = "DROOLS_PROTOTYPE"; + public static final String SYNTHETIC_PROTOTYPE_NAME = "DROOLS_SYNTHETIC_PROTOTYPE"; + + private static final Map prototypes = new HashMap<>(); + + private PrototypeUtils() { + // It is not allowed to create instances of util classes. + } + + public static Event createControlEvent() { + return createMapBasedEvent(getPrototype(SYNTHETIC_PROTOTYPE_NAME)); + } + + public static Prototype getPrototype(String name) { + return prototypes.computeIfAbsent(name, PrototypeDSL::prototype); + } + + public static void processResults(List globalResults, List controlResults) { + List events = controlResults.stream().map(r -> ((PrototypeFact) r).get("event")).collect(Collectors.toList()); + globalResults.addAll(events); + } + + public static Event createEvent() { + return createMapBasedEvent(getPrototype(DEFAULT_PROTOTYPE_NAME)); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/util/TestConfigurationUtils.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/util/TestConfigurationUtils.java new file mode 100644 index 00000000000..64015f85eac --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/util/TestConfigurationUtils.java @@ -0,0 +1,64 @@ +/** + * 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. + */ +package org.drools.reliability.test.util; + +import org.drools.reliability.core.ReliableGlobalResolverFactory; +import org.drools.reliability.core.SimpleReliableObjectStoreFactory; +import org.drools.reliability.core.StorageManagerFactory; + +import static org.drools.reliability.test.util.TestConfigurationUtils.Module.H2MVSTORE; +import static org.drools.reliability.test.util.TestConfigurationUtils.Module.INFINISPAN; +import static org.drools.util.Config.getConfig; + +public class TestConfigurationUtils { + + public enum Module { + INFINISPAN, + H2MVSTORE + } + + public static final String DROOLS_RELIABILITY_MODULE_TEST = "drools.reliability.module.test"; + + private TestConfigurationUtils() { + // util class + } + + public static void configureServicePriorities() { + Module module = Module.valueOf(getConfig(DROOLS_RELIABILITY_MODULE_TEST, INFINISPAN.name())); + if (module == INFINISPAN) { + prioritizeInfinispanServices(); + } else if (module == H2MVSTORE) { + prioritizeH2MVStoreServices(); + } else { + throw new IllegalStateException("Unknown module: " + module); + } + } + + private static void prioritizeInfinispanServices() { + ReliableGlobalResolverFactory.get("infinispan"); + SimpleReliableObjectStoreFactory.get("infinispan"); + StorageManagerFactory.get("infinispan"); + } + + private static void prioritizeH2MVStoreServices() { + ReliableGlobalResolverFactory.get("core"); + SimpleReliableObjectStoreFactory.get("core"); + StorageManagerFactory.get("h2mvstore"); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/util/TimeAmount.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/util/TimeAmount.java new file mode 100644 index 00000000000..463b62f6401 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/util/TimeAmount.java @@ -0,0 +1,80 @@ +/** + * 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. + */ +package org.drools.reliability.test.util; + +import java.util.concurrent.TimeUnit; + +/** + * Copied from org.drools.ansible.rulebook.integration.api.domain.temporal.TimeAmount + */ +public class TimeAmount { + private final int amount; + private final TimeUnit timeUnit; + + public TimeAmount(int amount, TimeUnit timeUnit) { + this.amount = amount; + this.timeUnit = timeUnit; + } + + public int getAmount() { + return amount; + } + + public TimeUnit getTimeUnit() { + return timeUnit; + } + + @Override + public String toString() { + return amount + " " + timeUnit; + } + + public static TimeAmount parseTimeAmount(String timeAmount) { + int sepPos = timeAmount.indexOf(' '); + if (sepPos <= 0) { + throw new IllegalArgumentException("Invalid time amount definition: " + timeAmount); + } + int value = Integer.parseInt(timeAmount.substring(0, sepPos).trim()); + TimeUnit timeUnit = parseTimeUnit(timeAmount.substring(sepPos + 1).trim()); + return new TimeAmount(value, timeUnit); + } + + private static TimeUnit parseTimeUnit(String unit) { + if (unit.equalsIgnoreCase("millisecond") || unit.equalsIgnoreCase("milliseconds")) { + return TimeUnit.MILLISECONDS; + } + if (unit.equalsIgnoreCase("second") || unit.equalsIgnoreCase("seconds")) { + return TimeUnit.SECONDS; + } + if (unit.equalsIgnoreCase("minute") || unit.equalsIgnoreCase("minutes")) { + return TimeUnit.MINUTES; + } + if (unit.equalsIgnoreCase("hour") || unit.equalsIgnoreCase("hours")) { + return TimeUnit.HOURS; + } + if (unit.equalsIgnoreCase("day") || unit.equalsIgnoreCase("days")) { + return TimeUnit.DAYS; + } + throw new IllegalArgumentException("Unknown time unit: " + unit); + } + + public long toMillis() { + return timeUnit.toMillis(amount); + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/ControlEvent.java b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/ControlEvent.java new file mode 100644 index 00000000000..b19214f9d9b --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/ControlEvent.java @@ -0,0 +1,50 @@ +/** + * 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. + */ +package org.test.domain; + +import java.io.Serializable; + +import org.kie.api.definition.type.Expires; +import org.kie.api.definition.type.Role; + +@Role(Role.Type.EVENT) +@Expires("60s") +public class ControlEvent implements Serializable { + + private StockTick stockTick; + + public ControlEvent(StockTick stockTick) { + this.stockTick = stockTick; + } + + public StockTick getStockTick() { + return stockTick; + } + + public void setStockTick(StockTick stockTick) { + this.stockTick = stockTick; + } + + @Override + public String toString() { + return "ControlEvent{" + + "stockTick=" + stockTick + + '}'; + } +} diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/test/domain/Person.java b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/Person.java similarity index 50% rename from drools-reliability/drools-reliability-infinispan/src/test/java/org/test/domain/Person.java rename to drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/Person.java index 22eef30d4e2..fa4dca8a8bc 100644 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/test/domain/Person.java +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/Person.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.test.domain; import java.io.Serializable; diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/StockFact.java b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/StockFact.java new file mode 100644 index 00000000000..43e18f8372e --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/StockFact.java @@ -0,0 +1,43 @@ +/** + * 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. + */ +package org.test.domain; + +import java.io.Serializable; + +public class StockFact implements Serializable { + private final String company; + private final long duration; + + public StockFact(String company ) { + this( company, 0 ); + } + + public StockFact(String company, long duration ) { + this.company = company; + this.duration = duration; + } + + public String getCompany() { + return company; + } + + public long getDuration() { + return duration; + } +} \ No newline at end of file diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/test/domain/StockTick.java b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/StockTick.java similarity index 50% rename from drools-reliability/drools-reliability-infinispan/src/test/java/org/test/domain/StockTick.java rename to drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/StockTick.java index 916897caec4..2fffb81c104 100644 --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/test/domain/StockTick.java +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/StockTick.java @@ -1,29 +1,33 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.test.domain; import java.util.Calendar; import java.util.Date; import org.kie.api.definition.type.Duration; +import org.kie.api.definition.type.Expires; import org.kie.api.definition.type.Role; @Role(Role.Type.EVENT) @Duration("duration") +@Expires("60s") public class StockTick extends StockFact { private long timeField; @@ -65,4 +69,10 @@ public boolean getIsSetDueDate() { public boolean getIsSetTimeField() { return 0 != timeField; } + + @Override + public String toString() { + return "StockTick [getCompany()=" + getCompany() + ", getDuration()=" + getDuration() + ", timeField=" + timeField + ", dueDate=" + dueDate + "]"; + } + } diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Alarm.java b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Alarm.java new file mode 100644 index 00000000000..902449b5805 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Alarm.java @@ -0,0 +1,24 @@ +/** + * 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. + */ +package org.test.domain.fireandalarm; + +import java.io.Serializable; + +public class Alarm implements Serializable { +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Fire.java b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Fire.java new file mode 100644 index 00000000000..b4da241280f --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Fire.java @@ -0,0 +1,39 @@ +/** + * 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. + */ +package org.test.domain.fireandalarm; + +import java.io.Serializable; + +public class Fire implements Serializable { + private Room room; + + public Fire() { } + + public Fire(Room room) { + this.room = room; + } + + public Room getRoom() { + return room; + } + + public void setRoom(Room room) { + this.room = room; + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Room.java b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Room.java new file mode 100644 index 00000000000..89407676477 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Room.java @@ -0,0 +1,45 @@ +/** + * 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. + */ +package org.test.domain.fireandalarm; + +import java.io.Serializable; + +public class Room implements Serializable { + + private String name; + + public Room() { } + + public Room(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public String toString() { + return name; + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Sprinkler.java b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Sprinkler.java new file mode 100644 index 00000000000..6ab2b79a890 --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/test/domain/fireandalarm/Sprinkler.java @@ -0,0 +1,53 @@ +/** + * 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. + */ +package org.test.domain.fireandalarm; + +import java.io.Serializable; + +public class Sprinkler implements Serializable { + private Room room; + private boolean on = false; + + public Sprinkler() { } + + public Sprinkler(Room room) { + this.room = room; + } + + public Room getRoom() { + return room; + } + + public void setRoom(Room room) { + this.room = room; + } + + public boolean isOn() { + return on; + } + + public void setOn(boolean on) { + this.on = on; + } + + @Override + public String toString() { + return "Sprinkler for " + room; + } +} diff --git a/drools-reliability/drools-reliability-tests/src/test/resources/logback-test.xml b/drools-reliability/drools-reliability-tests/src/test/resources/logback-test.xml new file mode 100644 index 00000000000..bc2c53a1f9b --- /dev/null +++ b/drools-reliability/drools-reliability-tests/src/test/resources/logback-test.xml @@ -0,0 +1,44 @@ + + + + + + + %date{HH:mm:ss.SSS} [%thread] %-5level %class.%method:%line - %msg%n + + + + + + + + + + + + + + + + + + diff --git a/drools-reliability/pom.xml b/drools-reliability/pom.xml index 37cf92ab7b4..e9ac51adab6 100644 --- a/drools-reliability/pom.xml +++ b/drools-reliability/pom.xml @@ -1,11 +1,31 @@ + org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml 4.0.0 @@ -16,7 +36,7 @@ Drools :: Reliability - org.drools.reliability + org.drools.reliability.tests pom @@ -24,6 +44,8 @@ drools-reliability-core drools-reliability-infinispan + drools-reliability-h2mvstore + drools-reliability-tests \ No newline at end of file diff --git a/drools-retediagram/pom.xml b/drools-retediagram/pom.xml index d3ad52a00f1..0b01f7ff5c0 100644 --- a/drools-retediagram/pom.xml +++ b/drools-retediagram/pom.xml @@ -1,10 +1,30 @@ + 4.0.0 org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-retediagram/src/main/java/org/drools/retediagram/ReteDiagram.java b/drools-retediagram/src/main/java/org/drools/retediagram/ReteDiagram.java index 04f057df8b5..fb72d30283c 100644 --- a/drools-retediagram/src/main/java/org/drools/retediagram/ReteDiagram.java +++ b/drools-retediagram/src/main/java/org/drools/retediagram/ReteDiagram.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.retediagram; import java.io.File; @@ -37,7 +39,7 @@ import guru.nidi.graphviz.engine.Graphviz; import guru.nidi.graphviz.model.MutableGraph; import guru.nidi.graphviz.parse.Parser; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.BaseNode; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.AccumulateNode; @@ -54,8 +56,8 @@ import org.drools.core.reteoo.RightInputAdapterNode; import org.drools.core.reteoo.RuleTerminalNode; import org.drools.core.reteoo.Sink; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.base.ObjectType; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.base.ObjectType; import org.kie.api.KieBase; import org.kie.api.runtime.KieRuntime; import org.kie.api.runtime.KieSession; diff --git a/drools-retediagram/src/test/java/org/drools/retediagram/RuleTest.java b/drools-retediagram/src/test/java/org/drools/retediagram/RuleTest.java index a354289b0a7..1a34e81bd58 100644 --- a/drools-retediagram/src/test/java/org/drools/retediagram/RuleTest.java +++ b/drools-retediagram/src/test/java/org/drools/retediagram/RuleTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.retediagram; import java.util.ArrayList; diff --git a/drools-retediagram/src/test/java/org/drools/retediagram/model/Cheese.java b/drools-retediagram/src/test/java/org/drools/retediagram/model/Cheese.java index 397029e862d..e4b20316dbd 100644 --- a/drools-retediagram/src/test/java/org/drools/retediagram/model/Cheese.java +++ b/drools-retediagram/src/test/java/org/drools/retediagram/model/Cheese.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.retediagram.model; public class Cheese { diff --git a/drools-retediagram/src/test/java/org/drools/retediagram/model/Measurement.java b/drools-retediagram/src/test/java/org/drools/retediagram/model/Measurement.java index 31f96d4fb49..78743ecfe51 100644 --- a/drools-retediagram/src/test/java/org/drools/retediagram/model/Measurement.java +++ b/drools-retediagram/src/test/java/org/drools/retediagram/model/Measurement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.retediagram.model; public class Measurement { diff --git a/drools-retediagram/src/test/java/org/drools/retediagram/model/Person.java b/drools-retediagram/src/test/java/org/drools/retediagram/model/Person.java index 6ecbfb1977b..c414beaf6aa 100644 --- a/drools-retediagram/src/test/java/org/drools/retediagram/model/Person.java +++ b/drools-retediagram/src/test/java/org/drools/retediagram/model/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.retediagram.model; public class Person { diff --git a/drools-retediagram/src/test/resources/logback.xml b/drools-retediagram/src/test/resources/logback.xml index b8d959f55c7..719c2ccf13e 100644 --- a/drools-retediagram/src/test/resources/logback.xml +++ b/drools-retediagram/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/drools-ruleunits/drools-ruleunits-api/pom.xml b/drools-ruleunits/drools-ruleunits-api/pom.xml index 31eb9a4db09..136a88a3ab5 100755 --- a/drools-ruleunits/drools-ruleunits-api/pom.xml +++ b/drools-ruleunits/drools-ruleunits-api/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-ruleunits - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT org.drools diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataHandle.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataHandle.java index 63feca1082c..eb3add5f17d 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataHandle.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataHandle.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataObserver.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataObserver.java index da39bef1741..e228182ae4e 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataObserver.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataObserver.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataProcessor.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataProcessor.java index 2f34e262525..cb76d287c31 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataProcessor.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataProcessor.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataSource.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataSource.java index 05f4781305f..5d8c083728e 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataSource.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataSource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataStore.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataStore.java index c687e8a9f62..cb3ece7599a 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataStore.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataStore.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataStream.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataStream.java index 52dfa922072..bd465b2c374 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataStream.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/DataStream.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnit.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnit.java index 5b1e279bbe7..b21f408197b 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnit.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitData.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitData.java index a5fe047b79e..b07870338a2 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitData.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitData.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitInstance.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitInstance.java index aa337042036..bb13624df44 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitInstance.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitInstance.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitProvider.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitProvider.java index 851ef906d0e..562aa3e09d8 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitProvider.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnitProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; @@ -61,6 +64,12 @@ default RuleUnitInstance createRuleUnitInstance(T ru return ruleUnit.createInstance(ruleUnitData, ruleConfig); } + /** + * Invalidates all {@link RuleUnit}s generated from the given class. + * @return The number of invalidated ruleunits. + */ + int invalidateRuleUnits(Class ruleUnitDataClass); + /** * Creates a new RuleConfig instance. */ diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnits.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnits.java index b548fef3209..73042362251 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnits.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/RuleUnits.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/SingletonStore.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/SingletonStore.java index 1ce86368482..1294f48cb1d 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/SingletonStore.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/SingletonStore.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/annotation/When.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/annotation/When.java index 6232cf0b08b..c4d805c8d24 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/annotation/When.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/annotation/When.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api.annotation; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/Clock.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/Clock.java index 43049ff2577..7889e037be0 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/Clock.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/Clock.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api.conf; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/ClockType.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/ClockType.java index e399f691682..5e590573192 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/ClockType.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/ClockType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api.conf; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/DefaultEntryPoint.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/DefaultEntryPoint.java index 3a88a18fdf4..6ee8a13aa1c 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/DefaultEntryPoint.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/DefaultEntryPoint.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api.conf; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EntryPoint.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EntryPoint.java index f5bafb8493f..2558706cbc9 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EntryPoint.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EntryPoint.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api.conf; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EventProcessing.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EventProcessing.java index 0bf3c9e3526..b1bd6ba03ee 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EventProcessing.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EventProcessing.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api.conf; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EventProcessingType.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EventProcessingType.java index 85272ba5762..0d4d2e88e4d 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EventProcessingType.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/EventProcessingType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api.conf; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/RuleConfig.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/RuleConfig.java index f79804642d8..d3efc2ecd31 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/RuleConfig.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/RuleConfig.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.api.conf; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/RuleUnitConfig.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/RuleUnitConfig.java index b3eecd651bf..1943834a217 100644 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/RuleUnitConfig.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/RuleUnitConfig.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api.conf; diff --git a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/SessionsPool.java b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/SessionsPool.java index 7a85068b174..e9c5845c513 100755 --- a/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/SessionsPool.java +++ b/drools-ruleunits/drools-ruleunits-api/src/main/java/org/drools/ruleunits/api/conf/SessionsPool.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.api.conf; diff --git a/drools-ruleunits/drools-ruleunits-dsl/pom.xml b/drools-ruleunits/drools-ruleunits-dsl/pom.xml index 766afc148f2..bef6fae8dc7 100755 --- a/drools-ruleunits/drools-ruleunits-dsl/pom.xml +++ b/drools-ruleunits/drools-ruleunits-dsl/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-ruleunits - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT org.drools diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/Accumulators.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/Accumulators.java index fa099d1e028..98d42ef1a68 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/Accumulators.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/Accumulators.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleFactory.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleFactory.java index d6e16d48a53..f3acf5c33ca 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleFactory.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleUnitDefinition.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleUnitDefinition.java index 78ee8da9db4..29b5ae7a4a2 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleUnitDefinition.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleUnitDefinition.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleUnitProviderForDSL.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleUnitProviderForDSL.java index dcdb73dfc6e..f810c0e079a 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleUnitProviderForDSL.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RuleUnitProviderForDSL.java @@ -1,24 +1,27 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; import java.util.Map; import org.drools.core.common.ReteEvaluator; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.ReteDumper; import org.drools.model.Model; import org.drools.modelcompiler.KieBaseBuilder; @@ -58,7 +61,7 @@ protected Map generateRuleUnit(T rule public static class ModelRuleUnit extends AbstractRuleUnit { private final UnitGlobalsResolver unitGlobalsResolver; - private final RuleBase ruleBase; + private final InternalRuleBase ruleBase; public ModelRuleUnit(Class type, Model model, UnitGlobalsResolver unitGlobalsResolver) { super(type); diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RulesFactory.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RulesFactory.java index 37c3dcd92f3..fdfd36a1110 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RulesFactory.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/RulesFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/SyntheticRuleUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/SyntheticRuleUnit.java index 7b77f1e8b1c..ed8fc988f94 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/SyntheticRuleUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/SyntheticRuleUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/SyntheticRuleUnitBuilder.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/SyntheticRuleUnitBuilder.java index 28851c1100f..149ba5eea44 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/SyntheticRuleUnitBuilder.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/SyntheticRuleUnitBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/UnitGlobalsResolver.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/UnitGlobalsResolver.java index 1e52a375a30..76b5317ff2a 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/UnitGlobalsResolver.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/UnitGlobalsResolver.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/AccumulatePattern1.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/AccumulatePattern1.java index 917adc0a7e1..0f6b6acf44d 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/AccumulatePattern1.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/AccumulatePattern1.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.accumulate; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/AccumulatePattern2.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/AccumulatePattern2.java index 38321138242..f572eba5fc3 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/AccumulatePattern2.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/AccumulatePattern2.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.accumulate; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/Accumulator1.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/Accumulator1.java index 62da358b5f4..d42861d8467 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/Accumulator1.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/Accumulator1.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.accumulate; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/GroupByPattern1.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/GroupByPattern1.java index 159b5be7cd9..a2286c20899 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/GroupByPattern1.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/GroupByPattern1.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.accumulate; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/GroupByPattern2.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/GroupByPattern2.java index c88524f7071..c589da97676 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/GroupByPattern2.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/accumulate/GroupByPattern2.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.accumulate; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AbstractConstraint.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AbstractConstraint.java index 78f342ddce7..68e785ffb58 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AbstractConstraint.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AbstractConstraint.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.constraints; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AlphaConstraintWithRightExtractor.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AlphaConstraintWithRightExtractor.java index fc00babb9ee..ce94cd61e5e 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AlphaConstraintWithRightExtractor.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AlphaConstraintWithRightExtractor.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.constraints; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AlphaConstraintWithRightValue.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AlphaConstraintWithRightValue.java index 7722bf6c592..37532f7b6ab 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AlphaConstraintWithRightValue.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/AlphaConstraintWithRightValue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.constraints; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta1Constraint.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta1Constraint.java index e9d6479803f..ebc903e504b 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta1Constraint.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta1Constraint.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.constraints; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta2Constraint.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta2Constraint.java index 1c4640e9280..9dc0789eaf9 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta2Constraint.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta2Constraint.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.constraints; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta3Constraint.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta3Constraint.java index 8787c787970..e6c94b85b7e 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta3Constraint.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Beta3Constraint.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.constraints; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Constraint.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Constraint.java index a9b2a0223bc..bf8d60d473d 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Constraint.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/constraints/Constraint.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.constraints; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/CombinedPatternDef.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/CombinedPatternDef.java index 8da11ddc01a..acf6d2041d3 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/CombinedPatternDef.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/CombinedPatternDef.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/ExistentialPatternDef.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/ExistentialPatternDef.java index 67db70d65ae..1cc0e80f69c 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/ExistentialPatternDef.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/ExistentialPatternDef.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/InternalPatternDef.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/InternalPatternDef.java index 19d82083f8a..ea371d63203 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/InternalPatternDef.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/InternalPatternDef.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern1Def.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern1Def.java index 01bfd05f183..7947e94b6e7 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern1Def.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern1Def.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern1DefImpl.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern1DefImpl.java index 4c9b3ca2956..b38d62d4ea7 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern1DefImpl.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern1DefImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern2Def.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern2Def.java index 9aa6c541354..cee3ac150ec 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern2Def.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern2Def.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern2DefImpl.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern2DefImpl.java index 8235210a3e1..ff8fe0daadc 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern2DefImpl.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern2DefImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern3Def.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern3Def.java index bf886f81d12..5d738e40ffc 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern3Def.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern3Def.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern3DefImpl.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern3DefImpl.java index 17de81f8951..a8ee95ee589 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern3DefImpl.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern3DefImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern4Def.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern4Def.java index 68240d04520..084cddeb33c 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern4Def.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern4Def.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern4DefImpl.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern4DefImpl.java index 5626fcfe4ae..850f2d28431 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern4DefImpl.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/Pattern4DefImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/PatternDef.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/PatternDef.java index 943cb872489..a8a8cdb9868 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/PatternDef.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/PatternDef.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/SinglePatternDef.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/SinglePatternDef.java index 2da2654c457..11aa7c8def7 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/SinglePatternDef.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/patterns/SinglePatternDef.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.patterns; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/ClassIntrospectionCache.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/ClassIntrospectionCache.java index db89e110887..cc6db9763f2 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/ClassIntrospectionCache.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/ClassIntrospectionCache.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.util; @@ -19,7 +22,7 @@ import java.util.List; import java.util.Map; -import org.drools.core.util.PropertyReactivityUtil; +import org.drools.base.util.PropertyReactivityUtil; public class ClassIntrospectionCache { private static final Map, List> propertiesMap = new HashMap<>(); diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/DataSourceDefinition.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/DataSourceDefinition.java index bd5c47fb32f..ecb94e88715 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/DataSourceDefinition.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/DataSourceDefinition.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.util; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/RuleDefinition.java b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/RuleDefinition.java index 57e6ce04960..8a2a5b4ba60 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/RuleDefinition.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/main/java/org/drools/ruleunits/dsl/util/RuleDefinition.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.util; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/AccumulateUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/AccumulateUnit.java index e00aabddf7d..7ff72071987 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/AccumulateUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/AccumulateUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/DynamicHelloWorldUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/DynamicHelloWorldUnit.java new file mode 100644 index 00000000000..72a656d9944 --- /dev/null +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/DynamicHelloWorldUnit.java @@ -0,0 +1,60 @@ +/** + * 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. + */ +package org.drools.ruleunits.dsl; + +import java.util.ArrayList; +import java.util.List; + +import org.drools.ruleunits.api.DataSource; +import org.drools.ruleunits.api.DataStore; +import org.drools.ruleunits.impl.NamedRuleUnitData; + +import static org.drools.model.Index.ConstraintType.EQUAL; + +public class DynamicHelloWorldUnit implements RuleUnitDefinition { + + private final DataStore strings; + + private final List results = new ArrayList<>(); + + private final String expectedMessage; // this is the dynamic part + + public DynamicHelloWorldUnit(String expectedMessage) { + this.strings = DataSource.createStore(); + this.expectedMessage = expectedMessage; + } + + public DataStore getStrings() { + return strings; + } + + + public List getResults() { + return results; + } + + @Override + public void defineRules(RulesFactory rulesFactory) { + // /strings[ this == expectedMessage ] + rulesFactory.rule() + .on(strings) + .filter(EQUAL, expectedMessage) // when no extractor is provided "this" is implicit + .execute(results, r -> r.add("it worked!")); // the consequence can ignore the matched facts + } +} diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/ExistentialUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/ExistentialUnit.java index d7ced2c8ec5..f02bf107f49 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/ExistentialUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/ExistentialUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/GroupByUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/GroupByUnit.java index 9d6734666fc..afb0328caa8 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/GroupByUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/GroupByUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/HelloWorldUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/HelloWorldUnit.java index 76502417247..ccda5bb6d1d 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/HelloWorldUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/HelloWorldUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/InferenceUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/InferenceUnit.java index ebd1cd1963d..0c695232342 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/InferenceUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/InferenceUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/LogicalAddUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/LogicalAddUnit.java index c8a4b2a8d9e..ccafe4a92a4 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/LogicalAddUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/LogicalAddUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/MultiJoinUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/MultiJoinUnit.java index d5032827547..641180ccb33 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/MultiJoinUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/MultiJoinUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/NamedHelloWorldUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/NamedHelloWorldUnit.java new file mode 100644 index 00000000000..acdf8d97fb5 --- /dev/null +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/NamedHelloWorldUnit.java @@ -0,0 +1,64 @@ +/** + * 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. + */ +package org.drools.ruleunits.dsl; + +import java.util.ArrayList; +import java.util.List; + +import org.drools.ruleunits.api.DataSource; +import org.drools.ruleunits.api.DataStore; +import org.drools.ruleunits.impl.NamedRuleUnitData; + +import static org.drools.model.Index.ConstraintType.EQUAL; + +public class NamedHelloWorldUnit implements RuleUnitDefinition, + NamedRuleUnitData { + + private final DataStore strings; + private final List results = new ArrayList<>(); + + private final String expectedMessage; + + public NamedHelloWorldUnit(String expectedMessage) { + this.strings = DataSource.createStore(); + this.expectedMessage = expectedMessage; + } + + public DataStore getStrings() { + return strings; + } + + public List getResults() { + return results; + } + + @Override + public void defineRules(RulesFactory rulesFactory) { + // /strings[ this == "Hello World" ] + rulesFactory.rule() + .on(strings) + .filter(EQUAL, expectedMessage) // when no extractor is provided "this" is implicit + .execute(results, r -> r.add("it worked!")); // the consequence can ignore the matched facts + } + + @Override + public String getUnitName() { + return getClass().getCanonicalName() + "#" + expectedMessage; + } +} diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/ProgrammaticSyntheticRuleUnitsTest.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/ProgrammaticSyntheticRuleUnitsTest.java index 755630fa7f4..185fcb306c5 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/ProgrammaticSyntheticRuleUnitsTest.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/ProgrammaticSyntheticRuleUnitsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleNameUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleNameUnit.java index bbe8f71ac2b..a09508983f0 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleNameUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleNameUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleUnitRebuildTest.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleUnitRebuildTest.java new file mode 100644 index 00000000000..9c4abd787e1 --- /dev/null +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleUnitRebuildTest.java @@ -0,0 +1,84 @@ +/** + * 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. + */ +package org.drools.ruleunits.dsl; + +import org.drools.ruleunits.api.RuleUnitInstance; +import org.drools.ruleunits.api.RuleUnitProvider; +import org.junit.jupiter.api.Test; + +import static org.assertj.core.api.Assertions.assertThat; + +class RuleUnitRebuildTest { + + @Test + void dynamicHelloWorld() { + DynamicHelloWorldUnit unit = new DynamicHelloWorldUnit("Hello World"); + unit.getStrings().add("Hello World"); + + try (RuleUnitInstance unitInstance = RuleUnitProvider.get().createRuleUnitInstance(unit)) { + assertThat(unitInstance.fire()).isEqualTo(1); + assertThat(unit.getResults()).containsExactly("it worked!"); + } + + int invalidated = RuleUnitProvider.get().invalidateRuleUnits(DynamicHelloWorldUnit.class); + assertThat(invalidated).as("Invalidate 1 rule unit").isEqualTo(1); + + DynamicHelloWorldUnit newUnit = new DynamicHelloWorldUnit("Goodbye World"); + newUnit.getStrings().add("Hello World"); + + try (RuleUnitInstance newUnitInstance = RuleUnitProvider.get().createRuleUnitInstance(newUnit)) { + assertThat(newUnitInstance.fire()).isZero(); + assertThat(newUnit.getResults()).isEmpty(); + + newUnit.getStrings().add("Goodbye World"); + assertThat(newUnitInstance.fire()).isEqualTo(1); + assertThat(newUnit.getResults()).containsExactly("it worked!"); + } + } + + @Test + void invalidateMultipleNamedRuleUnits() { + NamedHelloWorldUnit unit1 = new NamedHelloWorldUnit("Name-1"); + unit1.getStrings().add("Name-1"); + + try (RuleUnitInstance unitInstance = RuleUnitProvider.get().createRuleUnitInstance(unit1)) { + assertThat(unitInstance.fire()).isEqualTo(1); + assertThat(unit1.getResults()).containsExactly("it worked!"); + } + + NamedHelloWorldUnit unit2 = new NamedHelloWorldUnit("Name-2"); + unit2.getStrings().add("Name-2"); + + try (RuleUnitInstance unitInstance = RuleUnitProvider.get().createRuleUnitInstance(unit2)) { + assertThat(unitInstance.fire()).isEqualTo(1); + assertThat(unit2.getResults()).containsExactly("it worked!"); + } + + int invalidated = RuleUnitProvider.get().invalidateRuleUnits(NamedHelloWorldUnit.class); + assertThat(invalidated).as("Invalidate 2 rule units").isEqualTo(2); + + NamedHelloWorldUnit unit3 = new NamedHelloWorldUnit("Name-3"); + unit3.getStrings().add("Name-3"); + + try (RuleUnitInstance newUnitInstance = RuleUnitProvider.get().createRuleUnitInstance(unit3)) { + assertThat(newUnitInstance.fire()).isEqualTo(1); + assertThat(unit3.getResults()).containsExactly("it worked!"); + } + } +} diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleUnitsTest.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleUnitsTest.java index 154b13aa7b2..4bae963118c 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleUnitsTest.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/RuleUnitsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SelfJoinUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SelfJoinUnit.java index 96b62ee7291..02c7aec4920 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SelfJoinUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SelfJoinUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SelfJoinWithInferenceAndNotUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SelfJoinWithInferenceAndNotUnit.java index 056d10388a6..3d8304c25d3 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SelfJoinWithInferenceAndNotUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SelfJoinWithInferenceAndNotUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SumAccumulateUnit.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SumAccumulateUnit.java index ae2f19cdf93..044eeef6fb1 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SumAccumulateUnit.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SumAccumulateUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SyntheticRuleUnitsTest.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SyntheticRuleUnitsTest.java index 6254fda2974..65e6bcefef9 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SyntheticRuleUnitsTest.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/SyntheticRuleUnitsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/UnitOne.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/UnitOne.java index 19b62c6d673..3fa3abfddbf 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/UnitOne.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/UnitOne.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/UnitTwo.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/UnitTwo.java index 862b68ba135..0704a12a544 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/UnitTwo.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/UnitTwo.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/domain/Cheese.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/domain/Cheese.java index bb12b536110..99b5335fc22 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/domain/Cheese.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/domain/Cheese.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.domain; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/domain/Person.java b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/domain/Person.java index ff05e6c33d0..220d5e2883e 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/domain/Person.java +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/java/org/drools/ruleunits/dsl/domain/Person.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.dsl.domain; diff --git a/drools-ruleunits/drools-ruleunits-dsl/src/test/resources/logback-test.xml b/drools-ruleunits/drools-ruleunits-dsl/src/test/resources/logback-test.xml index 6a9c7aebab6..70b179c45aa 100644 --- a/drools-ruleunits/drools-ruleunits-dsl/src/test/resources/logback-test.xml +++ b/drools-ruleunits/drools-ruleunits-dsl/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-ruleunits/drools-ruleunits-engine/pom.xml b/drools-ruleunits/drools-ruleunits-engine/pom.xml index a9b8eb1bee1..bff104e553b 100644 --- a/drools-ruleunits/drools-ruleunits-engine/pom.xml +++ b/drools-ruleunits/drools-ruleunits-engine/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-ruleunits - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-ruleunits-engine diff --git a/drools-ruleunits/drools-ruleunits-impl/pom.xml b/drools-ruleunits/drools-ruleunits-impl/pom.xml index a743021ef28..0c3d6198967 100755 --- a/drools-ruleunits/drools-ruleunits-impl/pom.xml +++ b/drools-ruleunits/drools-ruleunits-impl/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-ruleunits - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT org.drools diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AbstractRuleUnitDescription.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AbstractRuleUnitDescription.java index ca36e419a2a..4eb016aa671 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AbstractRuleUnitDescription.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AbstractRuleUnitDescription.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AbstractRuleUnitInstance.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AbstractRuleUnitInstance.java index d6bc54020f1..8898589a629 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AbstractRuleUnitInstance.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AbstractRuleUnitInstance.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AssignableChecker.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AssignableChecker.java index 09d6a0ea937..5f7af5b908b 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AssignableChecker.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/AssignableChecker.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/EntryPointDataProcessor.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/EntryPointDataProcessor.java index 63ab988264b..ede5da8605f 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/EntryPointDataProcessor.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/EntryPointDataProcessor.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; @@ -20,10 +23,10 @@ import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.TerminalNode; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.ruleunits.api.DataHandle; import org.drools.ruleunits.api.DataProcessor; import org.drools.ruleunits.impl.facthandles.RuleUnitInternalFactHandle; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/GeneratedRuleUnitDescription.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/GeneratedRuleUnitDescription.java index 768c3b9026d..9ca3e56d8cc 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/GeneratedRuleUnitDescription.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/GeneratedRuleUnitDescription.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/InternalRuleUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/InternalRuleUnit.java index 3aeb2545178..7528133cade 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/InternalRuleUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/InternalRuleUnit.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.ruleunits.impl; import java.util.function.Function; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/InternalStoreCallback.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/InternalStoreCallback.java index 684cedc09cd..f8afe91e7ec 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/InternalStoreCallback.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/InternalStoreCallback.java @@ -1,24 +1,27 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.TerminalNode; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.ruleunits.api.DataHandle; import org.drools.ruleunits.impl.facthandles.RuleUnitInternalFactHandle; import org.kie.api.runtime.rule.FactHandle; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/NamedRuleUnitData.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/NamedRuleUnitData.java index 1f7c85992ef..a3baa635924 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/NamedRuleUnitData.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/NamedRuleUnitData.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.ruleunits.impl; import org.drools.ruleunits.api.RuleUnitData; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/ReflectiveRuleUnitDescription.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/ReflectiveRuleUnitDescription.java index 6b49737a3f5..7231f457c73 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/ReflectiveRuleUnitDescription.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/ReflectiveRuleUnitDescription.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/ReteEvaluatorBasedRuleUnitInstance.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/ReteEvaluatorBasedRuleUnitInstance.java index 87ebeb84e99..c6cd7afe307 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/ReteEvaluatorBasedRuleUnitInstance.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/ReteEvaluatorBasedRuleUnitInstance.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/RuleUnitGenerationException.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/RuleUnitGenerationException.java index 1d52580d065..a244c7ea311 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/RuleUnitGenerationException.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/RuleUnitGenerationException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/RuleUnitProviderImpl.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/RuleUnitProviderImpl.java index 6dbc8f1df5a..a81be34f7f8 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/RuleUnitProviderImpl.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/RuleUnitProviderImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; @@ -31,6 +34,7 @@ import java.util.ServiceLoader; import java.util.jar.JarEntry; import java.util.jar.JarFile; +import java.util.stream.Collectors; import org.drools.compiler.builder.conf.DecisionTableConfigurationImpl; import org.drools.compiler.kie.builder.impl.DrlProject; @@ -233,4 +237,29 @@ public RuleConfig newRuleConfig() { return new RuleConfigImpl(); } + @Override + public int invalidateRuleUnits(Class ruleUnitDataClass) { + if (NamedRuleUnitData.class.isAssignableFrom(ruleUnitDataClass)) { + // NamedRuleUnitData may create multiple RuleUnits + List invalidateKeys = ruleUnitMap.entrySet() + .stream() + .filter(entry -> hasSameRuleUnitDataClass(entry.getValue(), ruleUnitDataClass)) + .map(Map.Entry::getKey) + .collect(Collectors.toList()); + invalidateKeys.forEach(ruleUnitMap::remove); + return invalidateKeys.size(); + } else { + String ruleUnitName = getRuleUnitName(ruleUnitDataClass); + RuleUnit remove = ruleUnitMap.remove(ruleUnitName); + return remove == null ? 0 : 1; + } + } + + private static boolean hasSameRuleUnitDataClass(RuleUnit ruleUnit, Class ruleUnitDataClass) { + if (ruleUnit instanceof InternalRuleUnit) { + return ((InternalRuleUnit) ruleUnit).getRuleUnitDataClass().equals(ruleUnitDataClass); + } else { + return false; + } + } } diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SessionData.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SessionData.java index 178ef7d4813..b9a35abac0b 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SessionData.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SessionData.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SessionUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SessionUnit.java index 58adca07646..a74577745d5 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SessionUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SessionUnit.java @@ -1,25 +1,31 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; import org.drools.ruleunits.api.RuleUnit; +import org.drools.ruleunits.api.RuleUnitInstance; public abstract class SessionUnit implements RuleUnit { public void evaluate(SessionData data) { - createInstance(data).fire(); + try (final RuleUnitInstance ruleUnitInstance = createInstance(data)) { + ruleUnitInstance.fire(); + } } } diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SimpleRuleUnitVariable.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SimpleRuleUnitVariable.java index dde344e305d..47f5bf38257 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SimpleRuleUnitVariable.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/SimpleRuleUnitVariable.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/UndefinedGeneratedRuleUnitVariableException.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/UndefinedGeneratedRuleUnitVariableException.java index 84b6497bef1..55c00f8c1c7 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/UndefinedGeneratedRuleUnitVariableException.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/UndefinedGeneratedRuleUnitVariableException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/UndefinedRuleUnitVariableException.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/UndefinedRuleUnitVariableException.java index 25672116b18..58b6085e7c4 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/UndefinedRuleUnitVariableException.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/UndefinedRuleUnitVariableException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/conf/RuleConfigImpl.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/conf/RuleConfigImpl.java index 8be63685383..6c78de1a895 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/conf/RuleConfigImpl.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/conf/RuleConfigImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.conf; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/AbstractDataSource.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/AbstractDataSource.java index e423c15596e..7417baed160 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/AbstractDataSource.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/AbstractDataSource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.datasources; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/BufferedDataStream.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/BufferedDataStream.java index 3f4d101a034..1caae8eb96c 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/BufferedDataStream.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/BufferedDataStream.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.datasources; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ConsequenceDataStore.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ConsequenceDataStore.java index 71b7cfd18e4..42ea5ac8a8d 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ConsequenceDataStore.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ConsequenceDataStore.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.datasources; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ConsequenceDataStoreImpl.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ConsequenceDataStoreImpl.java index 3ade843d0a5..4bc7e50ec12 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ConsequenceDataStoreImpl.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ConsequenceDataStoreImpl.java @@ -1,24 +1,27 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.datasources; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.BitMask; import org.drools.ruleunits.api.DataStore; import org.drools.ruleunits.impl.InternalStoreCallback; import org.kie.api.runtime.rule.RuleContext; @@ -48,7 +51,7 @@ public void addLogical(T object) { @Override public void update(T object, String... modifiedProperties) { - BitMask bitMask = modifiedProperties.length == 0 ? AllSetBitMask.get() : calculateUpdateBitMask((RuleBase) ruleContext.getKieBase(), object, modifiedProperties); + BitMask bitMask = modifiedProperties.length == 0 ? AllSetBitMask.get() : calculateUpdateBitMask((InternalRuleBase) ruleContext.getKieBase(), object, modifiedProperties); update(object, bitMask); } diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/DataSourceFactoryImpl.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/DataSourceFactoryImpl.java index dcfd53cc4a1..fd99fbb3348 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/DataSourceFactoryImpl.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/DataSourceFactoryImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.datasources; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/DirectDataStream.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/DirectDataStream.java index 1ef8b3d944b..0a3e36970b9 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/DirectDataStream.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/DirectDataStream.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.datasources; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/EventListDataStream.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/EventListDataStream.java index 9b3921f6a5b..eb9fe48d51a 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/EventListDataStream.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/EventListDataStream.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.datasources; @@ -20,7 +23,7 @@ import java.util.concurrent.TimeUnit; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.kie.api.time.SessionPseudoClock; import org.drools.ruleunits.api.DataProcessor; import org.drools.ruleunits.api.DataStream; @@ -58,7 +61,7 @@ public void subscribe(DataProcessor subscriber) { } private void insertAndAdvanceClock(T t, DataProcessor subscriber) { - EventFactHandle fh = (EventFactHandle) subscriber.insert(null, t); + DefaultEventHandle fh = (DefaultEventHandle) subscriber.insert(null, t); long timestamp = fh.getStartTimestamp(); WorkingMemoryEntryPoint ep = fh.getEntryPoint(null); SessionPseudoClock clock = (SessionPseudoClock) ep.getReteEvaluator().getSessionClock(); diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/FieldDataStore.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/FieldDataStore.java index ff1449718e5..78d5875c7f6 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/FieldDataStore.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/FieldDataStore.java @@ -1,24 +1,27 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.datasources; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.TerminalNode; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.ruleunits.api.DataHandle; import org.drools.ruleunits.api.DataProcessor; import org.drools.ruleunits.api.SingletonStore; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ListDataStore.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ListDataStore.java index 350c8c3c21d..bab1f4a92a0 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ListDataStore.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/datasources/ListDataStore.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.datasources; @@ -19,10 +22,10 @@ import java.util.Iterator; import java.util.Map; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.TerminalNode; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.ruleunits.api.DataHandle; import org.drools.ruleunits.api.DataProcessor; import org.drools.ruleunits.api.DataStore; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitDefaultFactHandle.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitDefaultFactHandle.java index 79aa9bf1520..35d7f0b1e30 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitDefaultFactHandle.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitDefaultFactHandle.java @@ -1,23 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.facthandles; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.ruleunits.api.DataHandle; import org.drools.ruleunits.impl.InternalStoreCallback; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitEventFactHandle.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitEventFactHandle.java index 78311a5b534..1e0b9500bad 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitEventFactHandle.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitEventFactHandle.java @@ -1,26 +1,29 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.facthandles; import org.drools.core.WorkingMemoryEntryPoint; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.ruleunits.api.DataHandle; import org.drools.ruleunits.impl.InternalStoreCallback; -public class RuleUnitEventFactHandle extends EventFactHandle implements RuleUnitInternalFactHandle { +public class RuleUnitEventFactHandle extends DefaultEventHandle implements RuleUnitInternalFactHandle { public RuleUnitEventFactHandle() { } diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitFactHandleFactory.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitFactHandleFactory.java index c1874e48cc1..5a285d2192b 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitFactHandleFactory.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitFactHandleFactory.java @@ -1,23 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.facthandles; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.reteoo.ReteooFactHandleFactory; import org.drools.core.rule.accessor.FactHandleFactory; @@ -37,7 +40,7 @@ public DefaultFactHandle createDefaultFactHandle(long id, Object object, long re } @Override - public EventFactHandle createEventFactHandle(long id, Object object, long recency, WorkingMemoryEntryPoint entryPoint, long timestamp, long duration) { + public DefaultEventHandle createEventFactHandle(long id, Object object, long recency, WorkingMemoryEntryPoint entryPoint, long timestamp, long duration) { return new RuleUnitEventFactHandle(id, object, recency, timestamp, duration, entryPoint); } diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitInternalFactHandle.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitInternalFactHandle.java index 492d3be9bd8..3ca2e499abe 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitInternalFactHandle.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/facthandles/RuleUnitInternalFactHandle.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.facthandles; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/AbstractRuleUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/AbstractRuleUnit.java index 84a3eba3b23..e77965b24fa 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/AbstractRuleUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/AbstractRuleUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.factory; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/AbstractRuleUnits.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/AbstractRuleUnits.java index 0e30404fc8e..8a29e141b57 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/AbstractRuleUnits.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/AbstractRuleUnits.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.factory; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/DataHandleImpl.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/DataHandleImpl.java index 45cc3f7b400..3961f605658 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/DataHandleImpl.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/DataHandleImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.factory; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitComponentFactoryImpl.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitComponentFactoryImpl.java index d07d9a94488..d661f2e8581 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitComponentFactoryImpl.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitComponentFactoryImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.factory; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitPhreakWorkingMemoryFactory.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitPhreakWorkingMemoryFactory.java deleted file mode 100644 index e338cce6a51..00000000000 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitPhreakWorkingMemoryFactory.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ -package org.drools.ruleunits.impl.factory; - -import java.io.Serializable; - -import org.drools.core.SessionConfiguration; -import org.drools.core.common.InternalAgenda; -import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.kiesession.factory.WorkingMemoryFactory; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; -import org.drools.ruleunits.impl.sessions.RuleUnitStatefulKnowledgeSessionImpl; -import org.kie.api.runtime.Environment; - -public class RuleUnitPhreakWorkingMemoryFactory implements WorkingMemoryFactory, Serializable { - - private static final WorkingMemoryFactory INSTANCE = new RuleUnitPhreakWorkingMemoryFactory(); - - public static WorkingMemoryFactory getInstance() { - return INSTANCE; - } - - public InternalWorkingMemory createWorkingMemory(long id, InternalKnowledgeBase kBase, SessionConfiguration config, Environment environment) { - return new RuleUnitStatefulKnowledgeSessionImpl(id, kBase, true, config, environment); - } - - public InternalWorkingMemory createWorkingMemory(long id, InternalKnowledgeBase kBase, FactHandleFactory handleFactory, long propagationContext, SessionConfiguration config, InternalAgenda agenda, - Environment environment) { - return new RuleUnitStatefulKnowledgeSessionImpl(id, kBase, handleFactory, propagationContext, config, agenda, environment); - } -} diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitRuntimeComponentFactory.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitRuntimeComponentFactory.java index a55bfa0d05a..08399ed0a9b 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitRuntimeComponentFactory.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/factory/RuleUnitRuntimeComponentFactory.java @@ -1,8 +1,25 @@ +/** + * 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. + */ package org.drools.ruleunits.impl.factory; import org.drools.core.rule.accessor.FactHandleFactory; import org.drools.kiesession.factory.RuntimeComponentFactoryImpl; -import org.drools.kiesession.factory.WorkingMemoryFactory; import org.drools.ruleunits.impl.facthandles.RuleUnitFactHandleFactory; public class RuleUnitRuntimeComponentFactory extends RuntimeComponentFactoryImpl { @@ -12,13 +29,6 @@ public FactHandleFactory getFactHandleFactoryService() { return new RuleUnitFactHandleFactory(); } - private WorkingMemoryFactory wmFactory = RuleUnitPhreakWorkingMemoryFactory.getInstance(); - - @Override - public WorkingMemoryFactory getWorkingMemoryFactory() { - return wmFactory; - } - @Override public int servicePriority() { return 2; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/sessions/RuleUnitExecutorImpl.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/sessions/RuleUnitExecutorImpl.java index a3d450c571a..108ff51d13c 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/sessions/RuleUnitExecutorImpl.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/sessions/RuleUnitExecutorImpl.java @@ -1,30 +1,29 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.ruleunits.impl.sessions; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.concurrent.atomic.AtomicLong; - +import org.drools.base.beliefsystem.Mode; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.GlobalResolver; import org.drools.core.EntryPointsManager; import org.drools.core.QueryResultsImpl; import org.drools.core.RuleSessionConfiguration; @@ -32,11 +31,10 @@ import org.drools.core.WorkingMemory; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.base.CalendarsImpl; -import org.drools.core.base.DroolsQuery; +import org.drools.core.base.DroolsQueryImpl; import org.drools.core.base.MapGlobalResolver; import org.drools.core.base.NonCloningQueryViewListener; import org.drools.core.base.QueryRowWithSubruleIndex; -import org.drools.core.beliefsystem.Mode; import org.drools.core.common.ActivationsManager; import org.drools.core.common.ConcurrentNodeMemories; import org.drools.core.common.InternalFactHandle; @@ -48,26 +46,21 @@ import org.drools.core.common.PropagationContext; import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.event.AgendaEventSupport; import org.drools.core.event.RuleEventListenerSupport; import org.drools.core.event.RuleRuntimeEventSupport; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitableBean; import org.drools.core.impl.ActivationsManagerImpl; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.PropagationEntry; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.Declaration; import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.rule.accessor.GlobalResolver; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.core.time.TimerService; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.kiesession.consequence.DefaultKnowledgeHelper; import org.drools.kiesession.consequence.StatefulKnowledgeSessionForRHS; import org.drools.kiesession.rulebase.InternalKnowledgeBase; @@ -84,15 +77,25 @@ import org.kie.api.runtime.rule.QueryResults; import org.kie.api.time.SessionClock; -import static org.drools.core.base.ClassObjectType.InitialFact_ObjectType; +import java.io.IOException; +import java.io.ObjectInput; +import java.io.ObjectOutput; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Map; +import java.util.concurrent.atomic.AtomicLong; + +import static org.drools.base.base.ClassObjectType.InitialFact_ObjectType; public class RuleUnitExecutorImpl implements ReteEvaluator { private final RuleRuntimeEventSupport ruleRuntimeEventSupport = new RuleRuntimeEventSupport(); private final AtomicLong propagationIdCounter = new AtomicLong(1); - private final RuleBase ruleBase; + private final InternalRuleBase ruleBase; private final long identifier; + private final SessionConfiguration sessionConfiguration; private final FactHandleFactory handleFactory; @@ -111,11 +114,13 @@ public class RuleUnitExecutorImpl implements ReteEvaluator { private RuleUnits ruleUnits; - public RuleUnitExecutorImpl(RuleBase knowledgeBase) { + private boolean tmsEnabled; + + public RuleUnitExecutorImpl(InternalRuleBase knowledgeBase) { this(knowledgeBase, knowledgeBase.getSessionConfiguration().as(SessionConfiguration.KEY)); } - public RuleUnitExecutorImpl(RuleBase knowledgeBase, SessionConfiguration sessionConfiguration) { + public RuleUnitExecutorImpl(InternalRuleBase knowledgeBase, SessionConfiguration sessionConfiguration) { this.ruleBase = knowledgeBase; this.identifier = ((InternalKnowledgeBase) ruleBase).nextWorkingMemoryCounter(); this.sessionConfiguration = sessionConfiguration; @@ -130,7 +135,7 @@ public RuleUnitExecutorImpl(RuleBase knowledgeBase, SessionConfiguration session initInitialFact(ruleBase); } - private void initInitialFact(RuleBase kBase) { + private void initInitialFact(InternalRuleBase kBase) { WorkingMemoryEntryPoint defaultEntryPoint = entryPointsManager.getDefaultEntryPoint(); InternalFactHandle handle = getFactHandleFactory().newInitialFactHandle(defaultEntryPoint); @@ -154,7 +159,12 @@ public ActivationsManager getActivationsManager() { } @Override - public RuleBase getKnowledgeBase() { + public InternalRuleBase getKnowledgeBase() { + return ruleBase; + } + + @Override + public InternalRuleBase getRuleBase() { return ruleBase; } @@ -233,6 +243,12 @@ public AgendaEventSupport getAgendaEventSupport() { return activationsManager.getAgendaEventSupport(); } + + @Override + public long getCurrentTime() { + return timerService.getCurrentTime(); + } + @Override public Calendars getCalendars() { if (this.calendars == null) { @@ -293,7 +309,7 @@ public void dispose() { public QueryResults getQueryResults(String queryName, Object... arguments) { activationsManager.flushPropagations(); - DroolsQuery queryObject = new DroolsQuery( queryName, arguments, new NonCloningQueryViewListener(), false ); + DroolsQueryImpl queryObject = new DroolsQueryImpl(queryName, arguments, new NonCloningQueryViewListener(), false ); InternalFactHandle handle = this.handleFactory.newFactHandle( queryObject, null, this, getDefaultEntryPoint() ); @@ -326,6 +342,16 @@ public void setRuleUnits(RuleUnits ruleUnits) { this.ruleUnits = ruleUnits; } + @Override + public void enableTMS() { + tmsEnabled = true; + } + + @Override + public boolean isTMSEnabled() { + return tmsEnabled; + } + @Override public KnowledgeHelper createKnowledgeHelper() { return new RuleUnitKnowledgeHelper((DefaultKnowledgeHelper) ReteEvaluator.super.createKnowledgeHelper(), this); @@ -394,6 +420,11 @@ public void delete(FactHandle handle, FactHandle.State fhState) { fhState); } + @Override + public Declaration[] getRequiredDeclarations() { + return knowledgeHelper.getRequiredDeclarations(); + } + @Override public RuleImpl getRule() { return knowledgeHelper.getRule(); @@ -589,47 +620,47 @@ public FactHandle insertAsync(Object object) { } @Override - public InternalFactHandle insert(Object object) { + public FactHandle insert(Object object) { return knowledgeHelper.insert(object); } @Override - public InternalFactHandle insert(Object object, boolean dynamic) { + public FactHandle insert(Object object, boolean dynamic) { return knowledgeHelper.insert(object, dynamic); } @Override - public InternalFactHandle insertLogical(Object object, Mode belief) { + public FactHandle insertLogical(Object object, Mode belief) { return knowledgeHelper.insertLogical(object, belief); } @Override - public InternalFactHandle insertLogical(Object object, Mode... beliefs) { + public FactHandle insertLogical(Object object, Mode... beliefs) { return knowledgeHelper.insertLogical(object, beliefs); } @Override - public InternalFactHandle insertLogical(Object object) { + public FactHandle insertLogical(Object object) { return knowledgeHelper.insertLogical(object); } @Override - public InternalFactHandle insertLogical(Object object, Object value) { + public FactHandle insertLogical(Object object, Object value) { return knowledgeHelper.insertLogical(object, value); } @Override - public InternalFactHandle insertLogical(EntryPoint ep, Object object) { + public FactHandle insertLogical(EntryPoint ep, Object object) { return knowledgeHelper.insertLogical(ep, object); } @Override - public InternalFactHandle bolster(Object object) { + public FactHandle bolster(Object object) { return knowledgeHelper.bolster(object); } @Override - public InternalFactHandle bolster(Object object, Object value) { + public FactHandle bolster(Object object, Object value) { return knowledgeHelper.bolster(object, value); } @@ -639,12 +670,12 @@ public void cancelMatch(Match act) { } @Override - public InternalFactHandle getFactHandle(Object object) { + public FactHandle getFactHandle(Object object) { return knowledgeHelper.getFactHandle(object); } @Override - public InternalFactHandle getFactHandle(InternalFactHandle handle) { + public FactHandle getFactHandle(FactHandle handle) { return knowledgeHelper.getFactHandle(handle); } diff --git a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/sessions/RuleUnitStatefulKnowledgeSessionImpl.java b/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/sessions/RuleUnitStatefulKnowledgeSessionImpl.java deleted file mode 100644 index ead47c41e06..00000000000 --- a/drools-ruleunits/drools-ruleunits-impl/src/main/java/org/drools/ruleunits/impl/sessions/RuleUnitStatefulKnowledgeSessionImpl.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ -package org.drools.ruleunits.impl.sessions; - -import org.drools.core.SessionConfiguration; -import org.drools.core.common.InternalAgenda; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.InternalWorkingMemoryEntryPoint; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.rule.consequence.KnowledgeHelper; -import org.drools.core.util.bitmask.BitMask; -import org.drools.kiesession.consequence.DefaultKnowledgeHelper; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; -import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; -import org.drools.ruleunits.api.RuleUnits; -import org.drools.ruleunits.impl.facthandles.RuleUnitDefaultFactHandle; -import org.kie.api.runtime.Environment; -import org.kie.api.runtime.rule.FactHandle; - -public class RuleUnitStatefulKnowledgeSessionImpl extends StatefulKnowledgeSessionImpl { - - private RuleUnits ruleUnits; - - public RuleUnitStatefulKnowledgeSessionImpl() { - } - - public RuleUnitStatefulKnowledgeSessionImpl(long id, InternalKnowledgeBase kBase) { - super(id, kBase); - } - - public RuleUnitStatefulKnowledgeSessionImpl(long id, InternalKnowledgeBase kBase, boolean initInitFactHandle, SessionConfiguration config, Environment environment) { - super(id, kBase, initInitFactHandle, config, environment); - } - - public RuleUnitStatefulKnowledgeSessionImpl(long id, InternalKnowledgeBase kBase, FactHandleFactory handleFactory, long propagationContext, SessionConfiguration config, InternalAgenda agenda, - Environment environment) { - super(id, kBase, handleFactory, propagationContext, config, agenda, environment); - } - - @Override - public KnowledgeHelper createKnowledgeHelper() { - return new RuleUnitKnowledgeHelper(this); - } - - public RuleUnits getRuleUnits() { - return ruleUnits; - } - - public void setRuleUnits(RuleUnits ruleUnits) { - this.ruleUnits = ruleUnits; - } - - public static class RuleUnitKnowledgeHelper extends DefaultKnowledgeHelper { - - private final RuleUnitStatefulKnowledgeSessionImpl kogitoSession; - - public RuleUnitKnowledgeHelper(RuleUnitStatefulKnowledgeSessionImpl workingMemory) { - super(workingMemory); - this.kogitoSession = workingMemory; - } - - @Override - public void run(String ruleUnitName) { - kogitoSession.getRuleUnits().getRegisteredInstance(ruleUnitName).fire(); - } - - @Override - public void update(final FactHandle handle, BitMask mask, Class modifiedClass) { - InternalFactHandle h = (InternalFactHandle) handle; - - if (h instanceof RuleUnitDefaultFactHandle && ((RuleUnitDefaultFactHandle) h).getDataStore() != null) { - // This handle has been insert from a datasource, so update it - ((RuleUnitDefaultFactHandle) h).getDataStore().update((RuleUnitDefaultFactHandle) h, - h.getObject(), - mask, - modifiedClass, - this.internalMatch); - return; - } - - ((InternalWorkingMemoryEntryPoint) h.getEntryPoint(kogitoSession)).update(h, - ((InternalFactHandle) handle).getObject(), - mask, - modifiedClass, - this.internalMatch); - if (h.isTraitOrTraitable()) { - toStatefulKnowledgeSession().updateTraits(h, mask, modifiedClass, this.internalMatch); - } - } - - @Override - public void delete(FactHandle handle, FactHandle.State fhState) { - InternalFactHandle h = (InternalFactHandle) handle; - - if (h instanceof RuleUnitDefaultFactHandle && ((RuleUnitDefaultFactHandle) h).getDataStore() != null) { - // This handle has been insert from a datasource, so remove from it - ((RuleUnitDefaultFactHandle) h).getDataStore().delete((RuleUnitDefaultFactHandle) h, - this.internalMatch.getRule(), - this.internalMatch.getTuple().getTupleSink(), - fhState); - return; - } - - if (h.isTraiting()) { - delete(((Thing) h.getObject()).getCore()); - return; - } - - h.getEntryPoint(kogitoSession).delete(handle, - this.internalMatch.getRule(), - this.internalMatch.getTuple().getTupleSink(), - fhState); - } - } -} diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/AgendaGroupUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/AgendaGroupUnit.java index 62a52b2a387..1b5a15546df 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/AgendaGroupUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/AgendaGroupUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/BufferedDataStreamTest.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/BufferedDataStreamTest.java index 48f637d0785..14a25ef3d30 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/BufferedDataStreamTest.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/BufferedDataStreamTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/CepTest.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/CepTest.java index 4d502694a4a..9fc5b268d07 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/CepTest.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/CepTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/HelloWorldUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/HelloWorldUnit.java index 991098ec03b..1388ad6256d 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/HelloWorldUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/HelloWorldUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnit.java index 1dddd911348..579d6d62481 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.ruleunits.impl; @@ -20,7 +23,7 @@ import org.drools.compiler.kie.builder.impl.KieModuleKieProject; import org.drools.compiler.kproject.models.KieBaseModelImpl; import org.drools.core.common.ReteEvaluator; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.ruleunits.api.RuleUnitData; import org.drools.ruleunits.api.RuleUnitInstance; import org.drools.ruleunits.api.conf.RuleConfig; @@ -53,17 +56,17 @@ private InterpretedRuleUnit(Class ruleUnitDataClass) { @Override public RuleUnitInstance internalCreateInstance(T data, RuleConfig ruleConfig) { - RuleBase ruleBase = createRuleBase(data); + InternalRuleBase ruleBase = createRuleBase(data); ReteEvaluator reteEvaluator = new RuleUnitExecutorImpl(ruleBase); return new InterpretedRuleUnitInstance<>(this, data, reteEvaluator, ruleConfig); } - private RuleBase createRuleBase(T data) { + private InternalRuleBase createRuleBase(T data) { InternalKieModule kieModule = createRuleUnitKieModule(data.getClass(), false); KieModuleKieProject kieProject = createRuleUnitKieProject(kieModule, false); BuildContext buildContext = new BuildContext(); - RuleBase kBase = kieModule.createKieBase((KieBaseModelImpl) defaultKieBaseModel(), kieProject, buildContext, null); + InternalRuleBase kBase = kieModule.createKieBase((KieBaseModelImpl) defaultKieBaseModel(), kieProject, buildContext, null); if (kBase == null) { // build error, throw runtime exception throw new RuntimeException("Error while creating KieBase" + buildContext.getMessages().filterMessages(Message.Level.ERROR)); diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnitInstance.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnitInstance.java index f3b6b77c174..de0193324a6 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnitInstance.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnitInstance.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnitTest.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnitTest.java index 448a79dc946..fc1d3b71825 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnitTest.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/InterpretedRuleUnitTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/LocationUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/LocationUnit.java new file mode 100644 index 00000000000..8cc0b7a89cb --- /dev/null +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/LocationUnit.java @@ -0,0 +1,55 @@ +/** + * 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. + */ +package org.drools.ruleunits.impl; + +import org.drools.ruleunits.api.DataSource; +import org.drools.ruleunits.api.DataStore; +import org.drools.ruleunits.api.RuleUnitData; +import org.drools.ruleunits.api.SingletonStore; +import org.drools.ruleunits.impl.domain.Location; + +public class LocationUnit implements RuleUnitData { + + private final DataStore locations; + private final SingletonStore go; + + private String testGlobal = "computer"; + + public LocationUnit() { + this(DataSource.createStore(), DataSource.createSingleton()); + } + public LocationUnit(DataStore locations, SingletonStore go) { + + this.locations = locations; + this.go = go; + } + + public DataStore getLocations() { + return locations; + } + + public SingletonStore getGo() { + return go; + } + + public String getTestGlobal() { + return testGlobal; + } + +} diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/LogicalAddTestUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/LogicalAddTestUnit.java index 6e5c912c1ae..be65cdc7ba1 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/LogicalAddTestUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/LogicalAddTestUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/NotTestUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/NotTestUnit.java index a4c4be4a112..d1506772445 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/NotTestUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/NotTestUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/OOPathTest.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/OOPathTest.java index d04ee3e9b65..e186f33d216 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/OOPathTest.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/OOPathTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/OOPathTestUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/OOPathTestUnit.java index 6504c76c05a..313987ff3e9 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/OOPathTestUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/OOPathTestUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/QueryTest.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/QueryTest.java new file mode 100644 index 00000000000..20045f9f49d --- /dev/null +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/QueryTest.java @@ -0,0 +1,74 @@ +/** + * 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. + */ +package org.drools.ruleunits.impl; + +import org.drools.ruleunits.api.RuleUnitInstance; +import org.drools.ruleunits.api.RuleUnitProvider; +import org.drools.ruleunits.impl.domain.Location; +import org.junit.jupiter.api.Test; +import org.kie.api.runtime.rule.QueryResults; +import org.kie.api.runtime.rule.QueryResultsRow; +import org.kie.api.runtime.rule.Variable; + +import static org.assertj.core.api.Assertions.assertThat; + +public class QueryTest { + + @Test + public void testQuery() { + // DROOLS-7520 + LocationUnit locationUnit = new LocationUnit(); + try (RuleUnitInstance unitInstance = RuleUnitProvider.get().createRuleUnitInstance(locationUnit)) { + locationUnit.getLocations().add( new Location("office", "house") ); + locationUnit.getLocations().add( new Location("kitchen", "house") ); + locationUnit.getLocations().add( new Location("knife", "kitchen") ); + locationUnit.getLocations().add( new Location("cheese", "kitchen") ); + locationUnit.getLocations().add( new Location("desk", "office") ); + locationUnit.getLocations().add( new Location("chair", "office") ); + locationUnit.getLocations().add( new Location("computer", "desk") ); + locationUnit.getLocations().add( new Location("drawer", "desk") ); + + locationUnit.getGo().set("go1"); + unitInstance.fire(); + + QueryResults results = unitInstance.executeQuery("getLocations", new Object[]{Variable.v}); + results.size(); + for (QueryResultsRow row : results) { + assertThat(row.get("$x").toString()).isIn( + "office in house", + "desk in office", + "desk in house", + "computer in desk", + "computer in office", + "computer in house", + "kitchen in house", + "cheese in kitchen", + "cheese in house", + "chair in office", + "chair in house", + "knife in kitchen", + "knife in house", + "drawer in desk", + "drawer in office", + "drawer in house" + ); + } + } + } +} diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleNameUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleNameUnit.java index f4f9db57aff..1e7706cf7b4 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleNameUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleNameUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleUnitDescriptionTest.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleUnitDescriptionTest.java index ed194d813a7..fe77224de3d 100755 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleUnitDescriptionTest.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleUnitDescriptionTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleUnitProviderImplTest.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleUnitProviderImplTest.java index 9f1649a18fc..04865bcae8b 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleUnitProviderImplTest.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/RuleUnitProviderImplTest.java @@ -1,22 +1,23 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; -import java.util.Objects; - import org.drools.core.base.RuleNameStartsWithAgendaFilter; import org.drools.ruleunits.api.DataHandle; import org.drools.ruleunits.api.RuleUnitInstance; @@ -29,6 +30,8 @@ import org.junit.jupiter.api.Test; import org.kie.api.builder.CompilationErrorsException; +import java.util.Objects; + import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; @@ -87,6 +90,19 @@ public void update() { } } + @Test + public void updateNoDS() { + UpdateNoDSTestUnit unit = new UpdateNoDSTestUnit(); + + try ( RuleUnitInstance unitInstance = RuleUnitProvider.get().createRuleUnitInstance(unit) ) { + + unit.getPersons().add(new Person("Mario", 17)); + + assertThat(unitInstance.fire()).isEqualTo(2); + assertThat(unit.getResults()).containsExactly("ok"); + } + } + @Test public void wrongType() { try { diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/SingletonDataStoreTest.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/SingletonDataStoreTest.java index d75fca79093..0adfb7009e1 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/SingletonDataStoreTest.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/SingletonDataStoreTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/StockTickUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/StockTickUnit.java index f1734481b04..b6848b03f78 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/StockTickUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/StockTickUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/TestRuleUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/TestRuleUnit.java index 762d093bb71..05d5d399b19 100755 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/TestRuleUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/TestRuleUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/UpdateNoDSTestUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/UpdateNoDSTestUnit.java new file mode 100644 index 00000000000..1a8db8a7388 --- /dev/null +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/UpdateNoDSTestUnit.java @@ -0,0 +1,48 @@ +/** + * 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. + */ +package org.drools.ruleunits.impl; + +import org.drools.ruleunits.api.DataSource; +import org.drools.ruleunits.api.DataStore; +import org.drools.ruleunits.api.RuleUnitData; +import org.drools.ruleunits.impl.domain.Person; + +import java.util.ArrayList; +import java.util.List; + +public class UpdateNoDSTestUnit implements RuleUnitData { + private final List results = new ArrayList<>(); + private final DataStore persons; + + public UpdateNoDSTestUnit() { + this(DataSource.createStore()); + } + + public UpdateNoDSTestUnit(DataStore persons) { + this.persons = persons; + } + + public DataStore getPersons() { + return persons; + } + + public List getResults() { + return results; + } +} diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/UpdateTestUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/UpdateTestUnit.java index 5e215f05087..b65b2ae6539 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/UpdateTestUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/UpdateTestUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/WronglyTypedUnit.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/WronglyTypedUnit.java index e4acd696416..90a3b9dbe68 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/WronglyTypedUnit.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/WronglyTypedUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/Location.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/Location.java new file mode 100644 index 00000000000..6f29c50eea8 --- /dev/null +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/Location.java @@ -0,0 +1,85 @@ +/** + * 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. + */ +package org.drools.ruleunits.impl.domain; + +import org.kie.api.definition.type.Position; +import org.kie.api.definition.type.PropertyReactive; + +import java.util.Objects; + +@PropertyReactive +public class Location { + @Position(0) + public String thing; + + @Position(1) + public String location; + + public boolean inferred; + + public Location(String thing, String location) { + this(thing, location, false); + this.thing = thing; + this.location = location; + } + + public Location(String thing, String location, boolean inferred) { + this.thing = thing; + this.location = location; + this.inferred = inferred; + } + + public String getThing() { + return thing; + } + + public void setThing(String thing) { + this.thing = thing; + } + + public String getLocation() { + return location; + } + + public void setLocation(String location) { + this.location = location; + } + + public boolean isInferred() { return inferred; } + + public void setInferred(boolean inferred) { this.inferred = inferred; } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (!(o instanceof Location)) return false; + Location location1 = (Location) o; + return inferred == location1.inferred && Objects.equals(thing, location1.thing) && Objects.equals(location, location1.location); + } + + @Override + public int hashCode() { + return Objects.hash(thing, location, inferred); + } + + @Override + public String toString() { + return thing + " in " + location; + } +} diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/Person.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/Person.java index 28284d1cc9d..5d26b181c77 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/Person.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/Person.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.domain; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/SimpleFact.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/SimpleFact.java index 5ad4a2d2404..2f9f27b128d 100755 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/SimpleFact.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/SimpleFact.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.domain; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/StockTick.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/StockTick.java index 608463ed2c1..41d8ca2d1ce 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/StockTick.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/domain/StockTick.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.domain; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestAgendaEventListener.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestAgendaEventListener.java index 03f7e46ddfd..bfd36919fe1 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestAgendaEventListener.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestAgendaEventListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.listener; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestRuleEventListener.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestRuleEventListener.java index 18e4a8f8493..6264a176bde 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestRuleEventListener.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestRuleEventListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.listener; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestRuleRuntimeEventListener.java b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestRuleRuntimeEventListener.java index 3e4ce287f0b..fa5d208d432 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestRuleRuntimeEventListener.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/java/org/drools/ruleunits/impl/listener/TestRuleRuntimeEventListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunits.impl.listener; diff --git a/drools-ruleunits/drools-ruleunits-impl/src/test/resources/logback-test.xml b/drools-ruleunits/drools-ruleunits-impl/src/test/resources/logback-test.xml index de933abd85a..00bd6193102 100644 --- a/drools-ruleunits/drools-ruleunits-impl/src/test/resources/logback-test.xml +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyImplementation.java b/drools-ruleunits/drools-ruleunits-impl/src/test/resources/org/drools/ruleunits/impl/Locations.drl similarity index 52% rename from drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyImplementation.java rename to drools-ruleunits/drools-ruleunits-impl/src/test/resources/org/drools/ruleunits/impl/Locations.drl index 00eb4b61e3a..d48cc8f6eda 100644 --- a/drools-drl-quarkus-extension/example-drools-drl-quarkus-testext-deployment/src/test/java/org/drools/quarkus/examples/otn/model/MyImplementation.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/resources/org/drools/ruleunits/impl/Locations.drl @@ -13,20 +13,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package org.drools.ruleunits.impl; +unit LocationUnit; -package org.drools.quarkus.examples.otn.model; +import org.drools.ruleunits.impl.domain.Location; -public class MyImplementation implements MyInterface { +query getLocations(String x) + $x: /locations[thing==x] +end - private final String val; +query isContainedIn( String x, String y ) + /locations[thing := x, location := y] + or + (/locations[z := thing, location := y] and isContainedIn(x, z;)) +end - public MyImplementation(String val) { - this.val = val; - } - @Override - public String getVal() { - return val; - } - -} +rule "Location Inference" +no-loop +when + $go: /go[this=="go1"] + isContainedIn($x, $y;) + (not /locations[thing== $x, location== $y, inferred==false]) +then + Location loc = new Location($x, $y, true); + locations.addLogical(loc); +end \ No newline at end of file diff --git a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitConstants.java b/drools-ruleunits/drools-ruleunits-impl/src/test/resources/org/drools/ruleunits/impl/UpdateNoDS.drl similarity index 70% rename from drools-core/src/main/java/org/drools/core/factmodel/traits/TraitConstants.java rename to drools-ruleunits/drools-ruleunits-impl/src/test/resources/org/drools/ruleunits/impl/UpdateNoDS.drl index e1809bf88c0..b223ed57a58 100644 --- a/drools-core/src/main/java/org/drools/core/factmodel/traits/TraitConstants.java +++ b/drools-ruleunits/drools-ruleunits-impl/src/test/resources/org/drools/ruleunits/impl/UpdateNoDS.drl @@ -1,4 +1,4 @@ -/* +/** * Copyright 2022 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,11 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package org.drools.ruleunits.impl; +unit UpdateNoDSTestUnit; -package org.drools.core.factmodel.traits; +rule R1 when + $p: /persons[ name == "Mario" ] +then + $p.setAge( $p.getAge() + 1); + update($p); +end -public interface TraitConstants { - String MAP_FIELD_NAME = "__$$dynamic_properties_map$$"; - String TRAITSET_FIELD_NAME = "__$$dynamic_traits_map$$"; - String FIELDTMS_FIELD_NAME = "__$$field_Tms$$"; -} +rule R2 when + $p: /persons[ age >= 18 ] +then + results.add("ok"); +end \ No newline at end of file diff --git a/drools-ruleunits/pom.xml b/drools-ruleunits/pom.xml index 06c9428b3e4..dddaf5a5184 100644 --- a/drools-ruleunits/pom.xml +++ b/drools-ruleunits/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/pom.xml b/drools-scenario-simulation/drools-scenario-simulation-api/pom.xml index 79dffd3a24b..1e98db0011c 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/pom.xml +++ b/drools-scenario-simulation/drools-scenario-simulation-api/pom.xml @@ -1,11 +1,31 @@ + drools-scenario-simulation org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -13,6 +33,10 @@ drools-scenario-simulation-api jar + + org.drools.scenariosimulation.api + + com.thoughtworks.xstream diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AbstractScesimData.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AbstractScesimData.java index 6e34d67e4d7..7cddae713cc 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AbstractScesimData.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AbstractScesimData.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AbstractScesimModel.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AbstractScesimModel.java index 4278bd1e26c..6b7de16265f 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AbstractScesimModel.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AbstractScesimModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AuditLog.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AuditLog.java index 5aef80d3edf..5a7ac7946ee 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AuditLog.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AuditLog.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AuditLogLine.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AuditLogLine.java index 8c125c65ea9..43bbbb89cff 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AuditLogLine.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/AuditLogLine.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Background.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Background.java index 38e34874881..afdff426144 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Background.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Background.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/BackgroundData.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/BackgroundData.java index 04ac9e47136..d55a16a47a1 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/BackgroundData.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/BackgroundData.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/BackgroundDataWithIndex.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/BackgroundDataWithIndex.java index 2a6e21c24c8..b5e8742d022 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/BackgroundDataWithIndex.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/BackgroundDataWithIndex.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ExpressionElement.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ExpressionElement.java index b3ccac42d79..366defd456a 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ExpressionElement.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ExpressionElement.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ExpressionIdentifier.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ExpressionIdentifier.java index 09e1170cbf0..3ed251a0c6f 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ExpressionIdentifier.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ExpressionIdentifier.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactIdentifier.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactIdentifier.java index 5e0c8d4d4a8..474a33d90d4 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactIdentifier.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactIdentifier.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMapping.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMapping.java index c60519a1fa3..7efad892634 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMapping.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMapping.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingType.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingType.java index efe5b648592..1776310d0c6 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingType.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValue.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValue.java index 333d3458f8b..3439944125f 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValue.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValueStatus.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValueStatus.java index c10f20b6b65..6ccdbd5f2a3 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValueStatus.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValueStatus.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValueType.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValueType.java index 9d36ce59494..d699945c447 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValueType.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/FactMappingValueType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Scenario.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Scenario.java index 7e0721b6021..a032d900959 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Scenario.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Scenario.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScenarioSimulationModel.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScenarioSimulationModel.java index 3881e5924d7..451644e4780 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScenarioSimulationModel.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScenarioSimulationModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.api.model; import com.thoughtworks.xstream.annotations.XStreamAsAttribute; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScenarioWithIndex.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScenarioWithIndex.java index c0832eb2469..4bda0f336d4 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScenarioWithIndex.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScenarioWithIndex.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScesimDataWithIndex.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScesimDataWithIndex.java index 4c3ff819403..ccaddc55bb5 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScesimDataWithIndex.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScesimDataWithIndex.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScesimModelDescriptor.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScesimModelDescriptor.java index b077e4ca6ce..2fba31690e0 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScesimModelDescriptor.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/ScesimModelDescriptor.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Settings.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Settings.java index 18644ddaae3..4146a487803 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Settings.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Settings.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Simulation.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Simulation.java index 7a8b7142d68..0931e920b3e 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Simulation.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/Simulation.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/SimulationRunMetadata.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/SimulationRunMetadata.java index 5a2d453c018..be97801054e 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/SimulationRunMetadata.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/SimulationRunMetadata.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/HasImports.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/HasImports.java index 0baf9fb116b..29ebecab499 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/HasImports.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/HasImports.java @@ -1,20 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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. + * 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. */ - package org.drools.scenariosimulation.api.model.imports; public interface HasImports { diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/Import.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/Import.java index 22976e5e5f2..add467a1c61 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/Import.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/Import.java @@ -1,20 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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. + * 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. */ - package org.drools.scenariosimulation.api.model.imports; public class Import { diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/Imports.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/Imports.java index 74a9bb0e4e7..b53dbadac3d 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/Imports.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/model/imports/Imports.java @@ -1,18 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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. + * 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. */ package org.drools.scenariosimulation.api.model.imports; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/utils/ConstantsHolder.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/utils/ConstantsHolder.java index 96df5c2635d..24f2c03bbee 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/utils/ConstantsHolder.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/utils/ConstantsHolder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.api.utils; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/utils/ScenarioSimulationSharedUtils.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/utils/ScenarioSimulationSharedUtils.java index 7deaab02439..c94330ceaee 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/utils/ScenarioSimulationSharedUtils.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/java/org/drools/scenariosimulation/api/utils/ScenarioSimulationSharedUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.api.utils; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/META-INF/ErraiApp.properties b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/META-INF/ErraiApp.properties index 992485ddc0e..00e80f5c500 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/META-INF/ErraiApp.properties +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/META-INF/ErraiApp.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # # ErraiApp.properties # diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/META-INF/beans.xml b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/META-INF/beans.xml index e69de29bb2d..a0eb9fbf8cd 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/META-INF/beans.xml +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/META-INF/beans.xml @@ -0,0 +1,20 @@ + diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/org/drools/scenariosimulation/ScenarioSimulationAPI.gwt.xml b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/org/drools/scenariosimulation/ScenarioSimulationAPI.gwt.xml index 67c8fe78d87..be8068608d3 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/org/drools/scenariosimulation/ScenarioSimulationAPI.gwt.xml +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/main/resources/org/drools/scenariosimulation/ScenarioSimulationAPI.gwt.xml @@ -1,20 +1,24 @@ - + + 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. + +--> diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/AbstractScesimModelTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/AbstractScesimModelTest.java index d0c8f49f2d5..eace021c3c3 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/AbstractScesimModelTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/AbstractScesimModelTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.scenariosimulation.api.model; import java.util.stream.IntStream; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/BackgroundDataTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/BackgroundDataTest.java index 260c31325dd..b10f51ffd50 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/BackgroundDataTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/BackgroundDataTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/BackgroundTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/BackgroundTest.java index 072dda2ae86..8237a15867d 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/BackgroundTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/BackgroundTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.api.model; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactIdentifierTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactIdentifierTest.java index b8e627b208d..1fbfcbd61f4 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactIdentifierTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactIdentifierTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.api.model; import org.junit.Test; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactMappingTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactMappingTest.java index 519d5c1ab60..22614d2cf54 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactMappingTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactMappingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.api.model; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactMappingValueTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactMappingValueTest.java index 5b81c8fb313..bda2fe2e7de 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactMappingValueTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/FactMappingValueTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.api.model; import java.util.Arrays; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/ScenarioTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/ScenarioTest.java index f6c4928ae6b..a61bb22dbb0 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/ScenarioTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/ScenarioTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/ScesimModelDescriptorTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/ScesimModelDescriptorTest.java index 4074dbc4a52..2c9149f18b9 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/ScesimModelDescriptorTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/ScesimModelDescriptorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/SettingsTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/SettingsTest.java index 5e6ec5deba3..58ad23bfde7 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/SettingsTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/SettingsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.api.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/SimulationTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/SimulationTest.java index 50967b09d66..f7633d2e071 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/SimulationTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/model/SimulationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.api.model; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/utils/ScenarioSimulationSharedUtilsTest.java b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/utils/ScenarioSimulationSharedUtilsTest.java index fbfefa25d67..4e40e30ef24 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/utils/ScenarioSimulationSharedUtilsTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-api/src/test/java/org/drools/scenariosimulation/api/utils/ScenarioSimulationSharedUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.api.utils; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/pom.xml b/drools-scenario-simulation/drools-scenario-simulation-backend/pom.xml index 7aaaeed81f7..1f0d8a2434b 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/pom.xml +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/pom.xml @@ -1,11 +1,31 @@ + drools-scenario-simulation org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -13,6 +33,10 @@ drools-scenario-simulation-backend jar + + org.drools.scenariosimulation.backend + + org.drools diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/AbstractExpressionEvaluator.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/AbstractExpressionEvaluator.java index 108684cfa97..90b4ba5c977 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/AbstractExpressionEvaluator.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/AbstractExpressionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/BaseExpressionEvaluator.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/BaseExpressionEvaluator.java index 8d8fa5c7e24..49bcec2055f 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/BaseExpressionEvaluator.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/BaseExpressionEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.expression; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/BaseExpressionOperator.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/BaseExpressionOperator.java index 94af07521e2..22444dcff5d 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/BaseExpressionOperator.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/BaseExpressionOperator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.expression; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/DMNFeelExpressionEvaluator.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/DMNFeelExpressionEvaluator.java index ef9cbc264c9..e6e6b80b734 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/DMNFeelExpressionEvaluator.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/DMNFeelExpressionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import java.util.AbstractMap; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluator.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluator.java index 2d4d06f79e5..485a38c418a 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluator.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorFactory.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorFactory.java index d017ec92337..66d2ff0759a 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorFactory.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import java.util.Optional; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorResult.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorResult.java index b6162d0d284..5040cde0543 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorResult.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorResult.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.backend.expression; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/MVELExpressionEvaluator.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/MVELExpressionEvaluator.java index 09513c99d44..367aa62c91a 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/MVELExpressionEvaluator.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/expression/MVELExpressionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import java.util.HashMap; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/AddCoverageListenerCommand.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/AddCoverageListenerCommand.java index 69a56267e99..3f330cee858 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/AddCoverageListenerCommand.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/AddCoverageListenerCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import org.kie.api.command.ExecutableCommand; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/ConditionFilter.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/ConditionFilter.java index 7bc55dc8e8f..ae445cfbbad 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/ConditionFilter.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/ConditionFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/CoverageAgendaListener.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/CoverageAgendaListener.java index 781c6ae787a..ea75a613bd0 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/CoverageAgendaListener.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/CoverageAgendaListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.fluent; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/DMNScenarioExecutableBuilder.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/DMNScenarioExecutableBuilder.java index 03594885bc9..cc20746de9d 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/DMNScenarioExecutableBuilder.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/DMNScenarioExecutableBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import org.drools.scenariosimulation.backend.util.DMNSimulationUtils; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/FactCheckerHandle.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/FactCheckerHandle.java index ca03cbbbd52..7a6aa4594ca 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/FactCheckerHandle.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/FactCheckerHandle.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import java.util.function.Function; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleScenarioExecutableBuilder.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleScenarioExecutableBuilder.java index 8f67ae179e4..35a32a2953d 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleScenarioExecutableBuilder.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleScenarioExecutableBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import java.util.HashSet; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleStatefulScenarioExecutableBuilder.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleStatefulScenarioExecutableBuilder.java index 1fedbbfc1f8..8d170dc94b1 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleStatefulScenarioExecutableBuilder.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleStatefulScenarioExecutableBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleStatelessScenarioExecutableBuilder.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleStatelessScenarioExecutableBuilder.java index a6d01ab42d1..7fb25ed3d16 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleStatelessScenarioExecutableBuilder.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/RuleStatelessScenarioExecutableBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/ValidateFactCommand.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/ValidateFactCommand.java index 30bbf8bb6c6..5f790291166 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/ValidateFactCommand.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/fluent/ValidateFactCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import java.util.Collection; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/ThrowingConsumer.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/ThrowingConsumer.java index 3b63d36e873..06f77453722 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/ThrowingConsumer.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/ThrowingConsumer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.interfaces; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/ThrowingFunction.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/ThrowingFunction.java index 19314de7def..d53bb8efd1b 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/ThrowingFunction.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/ThrowingFunction.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.interfaces; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/package-info.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/package-info.java index aa6f5333b67..fec570ce9e6 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/package-info.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/interfaces/package-info.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.scenariosimulation.backend.interfaces; /** diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/AbstractRunnerHelper.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/AbstractRunnerHelper.java index 991cdf8eb8c..9f61a50f0b2 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/AbstractRunnerHelper.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/AbstractRunnerHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/AbstractScenarioRunner.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/AbstractScenarioRunner.java index 7db9f60f09f..1ffb9826fd7 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/AbstractScenarioRunner.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/AbstractScenarioRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunner.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunner.java index 35b5d5dbd6a..b177292837c 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunner.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import org.drools.scenariosimulation.backend.expression.ExpressionEvaluatorFactory; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunnerHelper.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunnerHelper.java index 5ded56ff9dd..72dc6e63ab1 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunnerHelper.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunnerHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/IndexedScenarioAssertionError.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/IndexedScenarioAssertionError.java index 89d21241a90..e07d72cb656 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/IndexedScenarioAssertionError.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/IndexedScenarioAssertionError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import org.drools.scenariosimulation.backend.util.ScenarioSimulationServerMessages; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/IndexedScenarioException.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/IndexedScenarioException.java index e61634d3cae..46652c3c4aa 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/IndexedScenarioException.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/IndexedScenarioException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import org.drools.scenariosimulation.backend.util.ScenarioSimulationServerMessages; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunner.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunner.java index f38cb600da1..d6e575ad7d6 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunner.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import org.drools.scenariosimulation.backend.expression.ExpressionEvaluatorFactory; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunnerHelper.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunnerHelper.java index e7a8e851845..fcee26f8e89 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunnerHelper.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunnerHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioException.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioException.java index 7fe92ee9b1b..3998d3b08e8 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioException.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; public class ScenarioException extends IllegalArgumentException { diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioJunitActivator.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioJunitActivator.java index ae5c3722641..0df4d9e023a 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioJunitActivator.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioJunitActivator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.io.File; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioRunnerProvider.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioRunnerProvider.java index 04ad6ffd61d..59f35ea6681 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioRunnerProvider.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/ScenarioRunnerProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.runner; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/SimulationRunMetadataBuilder.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/SimulationRunMetadataBuilder.java index 0f834256b79..0f53a1e819d 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/SimulationRunMetadataBuilder.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/SimulationRunMetadataBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/InstanceGiven.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/InstanceGiven.java index 423db4fb8da..7863472431e 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/InstanceGiven.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/InstanceGiven.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner.model; import org.drools.scenariosimulation.api.model.FactIdentifier; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioExpect.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioExpect.java index 966a6a7b07d..cedfddb3220 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioExpect.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioExpect.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner.model; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResult.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResult.java index 6acc38849d1..2faaff010d6 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResult.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner.model; import java.util.Optional; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResultMetadata.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResultMetadata.java index a13747cf68a..243225e60d1 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResultMetadata.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResultMetadata.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner.model; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioRunnerDTO.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioRunnerDTO.java index 4756793e58a..b909e16650c 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioRunnerDTO.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioRunnerDTO.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner.model; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioRunnerData.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioRunnerData.java index 6b2dbb15c07..51462dfea96 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioRunnerData.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ScenarioRunnerData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner.model; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ValueWrapper.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ValueWrapper.java index f570744eb1e..53978785eb2 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ValueWrapper.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/runner/model/ValueWrapper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner.model; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/DMNSimulationUtils.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/DMNSimulationUtils.java index 5eb12282617..80ae5e221d2 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/DMNSimulationUtils.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/DMNSimulationUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.util; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/DOMParserUtil.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/DOMParserUtil.java index 38f800b66bc..2047f3ab8d2 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/DOMParserUtil.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/DOMParserUtil.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.backend.util; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ImpossibleToFindDMNException.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ImpossibleToFindDMNException.java index 9bd8228432d..e8f8448737b 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ImpossibleToFindDMNException.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ImpossibleToFindDMNException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.scenariosimulation.backend.util; /** diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/InMemoryMigrationStrategy.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/InMemoryMigrationStrategy.java index 5da5a0aabf8..8ee3ef150e3 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/InMemoryMigrationStrategy.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/InMemoryMigrationStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.util; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/JsonUtils.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/JsonUtils.java index c6e9f7c9ec9..7e8ad38c3ee 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/JsonUtils.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/JsonUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.backend.util; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/MigrationStrategy.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/MigrationStrategy.java index 35d8a6f5787..09e025946c2 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/MigrationStrategy.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/MigrationStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.scenariosimulation.backend.util; import org.drools.scenariosimulation.backend.interfaces.ThrowingConsumer; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioBeanUtil.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioBeanUtil.java index 9eced58edce..0a65e053194 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioBeanUtil.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioBeanUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.util; import org.drools.scenariosimulation.backend.runner.ScenarioException; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioBeanWrapper.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioBeanWrapper.java index ab01af99bee..a1bc141ff3c 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioBeanWrapper.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioBeanWrapper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.util; public class ScenarioBeanWrapper { diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationServerMessages.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationServerMessages.java index f64b07d5826..dc39c74cb9f 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationServerMessages.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationServerMessages.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.util; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistence.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistence.java index 06a9bbf825b..45e9f2ac41e 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistence.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/main/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistence.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.util; import java.util.regex.Matcher; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/TestUtils.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/TestUtils.java index 0e840be9985..4c136994e03 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/TestUtils.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/TestUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.scenariosimulation.backend; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/AbstractExpressionEvaluatorTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/AbstractExpressionEvaluatorTest.java index bed0fdf085f..90e63353bb4 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/AbstractExpressionEvaluatorTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/AbstractExpressionEvaluatorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.expression; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/BaseExpressionEvaluatorTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/BaseExpressionEvaluatorTest.java index e521997e2d6..1119fd76bd4 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/BaseExpressionEvaluatorTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/BaseExpressionEvaluatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import java.math.BigDecimal; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/BaseExpressionOperatorTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/BaseExpressionOperatorTest.java index b40e5bd3593..0007577ef1e 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/BaseExpressionOperatorTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/BaseExpressionOperatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import java.time.LocalDate; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/DMNFeelExpressionEvaluatorTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/DMNFeelExpressionEvaluatorTest.java index add95ea5763..08ef48a7c3e 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/DMNFeelExpressionEvaluatorTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/DMNFeelExpressionEvaluatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import java.math.BigDecimal; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorFactoryTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorFactoryTest.java index 2b60926fe1c..d05c99337a2 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorFactoryTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/ExpressionEvaluatorFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import com.fasterxml.jackson.databind.node.TextNode; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/FakeExpressionEvaluator.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/FakeExpressionEvaluator.java index 54acc51b951..d286f55da1b 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/FakeExpressionEvaluator.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/FakeExpressionEvaluator.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.scenariosimulation.backend.expression; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/MVELExpressionEvaluatorTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/MVELExpressionEvaluatorTest.java index 8b70b0553d5..7d880d97658 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/MVELExpressionEvaluatorTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/MVELExpressionEvaluatorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.expression; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/ParameterizedBaseExpressionEvaluatorTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/ParameterizedBaseExpressionEvaluatorTest.java index 4fbcafb54a5..ccb16d1b5fc 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/ParameterizedBaseExpressionEvaluatorTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/expression/ParameterizedBaseExpressionEvaluatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.expression; import java.util.Arrays; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/AbstractRuleCoverageTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/AbstractRuleCoverageTest.java index 66833e93f0e..cba99fd0fea 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/AbstractRuleCoverageTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/AbstractRuleCoverageTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.fluent; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/ConditionFilterTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/ConditionFilterTest.java index 37b8dca2a11..c072faf59d5 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/ConditionFilterTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/ConditionFilterTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import java.util.function.Function; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/CoverageAgendaListenerTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/CoverageAgendaListenerTest.java index 7347cf6de5b..c9f825f3807 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/CoverageAgendaListenerTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/CoverageAgendaListenerTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.fluent; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleScenarioExecutableBuilderTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleScenarioExecutableBuilderTest.java index e2f43ddfff6..3c8b8667cb4 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleScenarioExecutableBuilderTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleScenarioExecutableBuilderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.fluent; @@ -20,8 +23,8 @@ import java.util.Map; import java.util.Set; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.QueryImpl; import org.junit.Test; import org.kie.api.KieBase; import org.kie.api.definition.KiePackage; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleStatefulScenarioExecutableBuilderTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleStatefulScenarioExecutableBuilderTest.java index f59924f725d..50e28d94ed6 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleStatefulScenarioExecutableBuilderTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleStatefulScenarioExecutableBuilderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.fluent; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleStatelessScenarioExecutableBuilderTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleStatelessScenarioExecutableBuilderTest.java index 717fe4899f6..9366474aced 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleStatelessScenarioExecutableBuilderTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/RuleStatelessScenarioExecutableBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/ValidateFactCommandTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/ValidateFactCommandTest.java index 2c4f684bc27..5a06858c476 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/ValidateFactCommandTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/fluent/ValidateFactCommandTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.fluent; import java.util.Collections; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/Dispute.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/Dispute.java index 9cfb7f81c94..d6dbe5f383d 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/Dispute.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/Dispute.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.model; public class Dispute { diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/ListMapClass.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/ListMapClass.java index 3040c5d08f8..2c0b867f855 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/ListMapClass.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/ListMapClass.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.model; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/NotEmptyConstructor.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/NotEmptyConstructor.java index 2a8300f308f..9b5dcc2b9cb 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/NotEmptyConstructor.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/NotEmptyConstructor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.model; public class NotEmptyConstructor { diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/Person.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/Person.java index f74d7e91619..8b607058f72 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/Person.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.model; public class Person { diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/SubPerson.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/SubPerson.java index 7aa71efe997..fd4ae06b936 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/SubPerson.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/model/SubPerson.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.model; public class SubPerson extends Person { diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/AbstractRunnerHelperTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/AbstractRunnerHelperTest.java index f7996384992..a69e79c11fd 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/AbstractRunnerHelperTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/AbstractRunnerHelperTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/AbstractScenarioRunnerTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/AbstractScenarioRunnerTest.java index 78f5b5307d5..27d8dfa8572 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/AbstractScenarioRunnerTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/AbstractScenarioRunnerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.util.List; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunnerHelperTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunnerHelperTest.java index 54b358b70ed..c40bb806d1c 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunnerHelperTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/DMNScenarioRunnerHelperTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.math.BigDecimal; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunnerHelperTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunnerHelperTest.java index 8aeb22eeba7..8af58f750a0 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunnerHelperTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/RuleScenarioRunnerHelperTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.util.ArrayList; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/ScenarioJunitActivatorTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/ScenarioJunitActivatorTest.java index 922033916bf..17761e50e12 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/ScenarioJunitActivatorTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/ScenarioJunitActivatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner; import java.util.stream.Stream; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/SimulationRunMetadataBuilderTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/SimulationRunMetadataBuilderTest.java index 376790b4e93..f73cafc4d67 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/SimulationRunMetadataBuilderTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/SimulationRunMetadataBuilderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.runner; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResultMetadataTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResultMetadataTest.java index 7eaf9ec11d8..a9a2464c238 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResultMetadataTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/model/ScenarioResultMetadataTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.scenariosimulation.backend.runner.model; import org.drools.scenariosimulation.api.model.Scenario; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/model/ValueWrapperTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/model/ValueWrapperTest.java index 2bf9f9b9e57..a565a41fe88 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/model/ValueWrapperTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/runner/model/ValueWrapperTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.runner.model; import org.junit.Test; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/DMNSimulationUtilsTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/DMNSimulationUtilsTest.java index 44b987d3388..6056bd5d7d2 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/DMNSimulationUtilsTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/DMNSimulationUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.util; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/DOMParserUtilTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/DOMParserUtilTest.java index 4c26dca53ae..af10939d33c 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/DOMParserUtilTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/DOMParserUtilTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.util; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/JsonUtilsTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/JsonUtilsTest.java index 59d9e2c48f5..115e3f743a6 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/JsonUtilsTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/JsonUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.util; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioBeanUtilTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioBeanUtilTest.java index 0612c5598e6..14ab3fec74c 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioBeanUtilTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioBeanUtilTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.scenariosimulation.backend.util; import java.math.BigDecimal; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationServerMessagesTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationServerMessagesTest.java index e990091d2a6..af254a667d1 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationServerMessagesTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationServerMessagesTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.util; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistenceTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistenceTest.java index 8d7e8e76f66..8b125c12675 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistenceTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/ScenarioSimulationXMLPersistenceTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.scenariosimulation.backend.util; diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/model/EnumTest.java b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/model/EnumTest.java index 20ce17f8f56..eca25a68d02 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/model/EnumTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/java/org/drools/scenariosimulation/backend/util/model/EnumTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.scenariosimulation.backend.util.model; /** diff --git a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/resources/logback.xml b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/resources/logback.xml index 58168179edb..58970c3a232 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/resources/logback.xml +++ b/drools-scenario-simulation/drools-scenario-simulation-backend/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/drools-scenario-simulation/drools-scenario-simulation-integrationtest/pom.xml b/drools-scenario-simulation/drools-scenario-simulation-integrationtest/pom.xml index ff845626e6e..65565db0f34 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-integrationtest/pom.xml +++ b/drools-scenario-simulation/drools-scenario-simulation-integrationtest/pom.xml @@ -1,11 +1,31 @@ + drools-scenario-simulation org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -13,6 +33,10 @@ drools-scenario-simulation-integrationtest jar + + org.drools.scenariosimulation.integrationtest + + diff --git a/drools-scenario-simulation/drools-scenario-simulation-integrationtest/src/test/java/org/drools/scenariosimulation/integrationtest/ScenarioTest.java b/drools-scenario-simulation/drools-scenario-simulation-integrationtest/src/test/java/org/drools/scenariosimulation/integrationtest/ScenarioTest.java index 89a2dd282eb..411bf82c5cf 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-integrationtest/src/test/java/org/drools/scenariosimulation/integrationtest/ScenarioTest.java +++ b/drools-scenario-simulation/drools-scenario-simulation-integrationtest/src/test/java/org/drools/scenariosimulation/integrationtest/ScenarioTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.scenariosimulation.integrationtest; import org.drools.scenariosimulation.backend.runner.ScenarioJunitActivator; diff --git a/drools-scenario-simulation/drools-scenario-simulation-integrationtest/src/test/resources/META-INF/kmodule.xml b/drools-scenario-simulation/drools-scenario-simulation-integrationtest/src/test/resources/META-INF/kmodule.xml index b0581c07c09..efef3d776f9 100644 --- a/drools-scenario-simulation/drools-scenario-simulation-integrationtest/src/test/resources/META-INF/kmodule.xml +++ b/drools-scenario-simulation/drools-scenario-simulation-integrationtest/src/test/resources/META-INF/kmodule.xml @@ -1,3 +1,23 @@ + diff --git a/drools-scenario-simulation/pom.xml b/drools-scenario-simulation/pom.xml index 38ae477b607..8e7cc26bcc3 100644 --- a/drools-scenario-simulation/pom.xml +++ b/drools-scenario-simulation/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-serialization-protobuf/pom.xml b/drools-serialization-protobuf/pom.xml index 3caf60649f5..3c8814f2d05 100644 --- a/drools-serialization-protobuf/pom.xml +++ b/drools-serialization-protobuf/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/CompilationCacheProviderImpl.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/CompilationCacheProviderImpl.java index 846aeaf715e..4fd097fcae1 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/CompilationCacheProviderImpl.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/CompilationCacheProviderImpl.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.ByteArrayInputStream; @@ -24,7 +28,7 @@ import org.drools.compiler.kie.builder.impl.InternalKieModule; import org.drools.compiler.kie.builder.impl.InternalKieModule.CompilationCache; import org.drools.compiler.kie.builder.impl.KieBuilderImpl; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import org.drools.serialization.protobuf.kie.KieModuleCache.CompDataEntry; import org.drools.serialization.protobuf.kie.KieModuleCache.CompilationData; import org.drools.serialization.protobuf.kie.KieModuleCache.Header; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/MarshallerProviderImpl.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/MarshallerProviderImpl.java index 3b751d37210..828f9f3520f 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/MarshallerProviderImpl.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/MarshallerProviderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf; import org.drools.core.marshalling.ClassObjectMarshallingStrategyAcceptor; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/PersisterHelper.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/PersisterHelper.java index cfc53904bd7..1f845013a7d 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/PersisterHelper.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/PersisterHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.ByteArrayOutputStream; @@ -33,11 +35,11 @@ import com.google.protobuf.ExtensionRegistry; import com.google.protobuf.Message; import org.drools.tms.beliefsystem.simple.BeliefSystemLogicalCallback; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.drools.core.common.WorkingMemoryAction; -import org.drools.core.factmodel.traits.TraitFactory; -import org.drools.core.impl.RuleBase; +import org.drools.base.factmodel.traits.TraitFactory; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.impl.WorkingMemoryReteExpireAction; import org.drools.serialization.protobuf.marshalling.ActivationKey; import org.drools.core.marshalling.MarshallerReaderContext; @@ -48,7 +50,7 @@ import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.rule.SlidingTimeWindow.BehaviorExpireWMAction; import org.drools.core.reteoo.Tuple; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import org.drools.core.util.KeyStoreHelper; import org.drools.wiring.api.classloader.ProjectClassLoader; import org.drools.serialization.protobuf.ProtobufMessages.Header; @@ -158,7 +160,7 @@ public static void writeToStreamWithHeader( MarshallerWriteContext context, writeStrategiesIndex( context, _header ); - RuleBase kBase = context.getKnowledgeBase(); + InternalRuleBase kBase = context.getKnowledgeBase(); if (kBase != null) { TraitFactory traitFactory = RuntimeComponentFactory.get().getTraitFactory(kBase); if (traitFactory != null) { @@ -205,10 +207,10 @@ private static void writeStrategiesIndex( MarshallerWriteContext context, Context ctx = context.getStrategyContext().get( entry.getKey() ); if( ctx != null ) { - Output os = ByteString.newOutput(); - ctx.write( new DroolsObjectOutputStream( os ) ); - _strat.setData( os.toByteString() ); - os.close(); + try (Output os = ByteString.newOutput()) { + ctx.write( new DroolsObjectOutputStream( os ) ); + _strat.setData( os.toByteString() ); + } } _header.addStrategy( _strat.build() ); } diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufInputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufInputMarshaller.java index 1a89a63c70f..2b90a338839 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufInputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufInputMarshaller.java @@ -1,54 +1,45 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; -import java.io.IOException; -import java.io.ObjectInputStream; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.HashSet; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.Queue; -import java.util.Set; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.TimeUnit; - import com.google.protobuf.ExtensionRegistry; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.accessor.GlobalResolver; +import org.drools.base.time.Trigger; import org.drools.core.SessionConfiguration; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.ActivationsFilter; import org.drools.core.common.AgendaGroupQueueImpl; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.EqualityKey; -import org.drools.core.common.EventFactHandle; import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ObjectStore; +import org.drools.core.common.PropagationContext; import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.QueryElementFactHandle; import org.drools.core.common.TruthMaintenanceSystem; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.EnvironmentFactory; +import org.drools.core.impl.WorkingMemoryReteExpireAction; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.marshalling.TupleKey; import org.drools.core.phreak.PhreakTimerNode.Scheduler; @@ -58,12 +49,9 @@ import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.accessor.FactHandleFactory; -import org.drools.core.rule.accessor.GlobalResolver; -import org.drools.core.common.PropagationContext; import org.drools.core.reteoo.Tuple; -import org.drools.core.time.Trigger; +import org.drools.core.rule.accessor.FactHandleFactory; +import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.time.impl.CompositeMaxDurationTrigger; import org.drools.core.time.impl.CronTrigger; import org.drools.core.time.impl.IntervalTrigger; @@ -82,7 +70,6 @@ import org.drools.serialization.protobuf.marshalling.ProcessMarshallerFactory; import org.drools.tms.TruthMaintenanceSystemEqualityKey; import org.drools.tms.TruthMaintenanceSystemImpl; -import org.kie.api.KieServices; import org.kie.api.marshalling.ObjectMarshallingStrategy; import org.kie.api.runtime.Environment; import org.kie.api.runtime.EnvironmentName; @@ -90,6 +77,20 @@ import org.kie.api.runtime.rule.EntryPoint; import org.kie.api.runtime.rule.Match; +import java.io.IOException; +import java.io.ObjectInputStream; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Queue; +import java.util.Set; +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.TimeUnit; + /** * An input marshaller that uses protobuf. * @@ -97,7 +98,7 @@ public class ProtobufInputMarshaller { // NOTE: all variables prefixed with _ (underscore) are protobuf structs - private static ProcessMarshaller processMarshaller = createProcessMarshaller(); + private static final ProcessMarshaller PROCESS_MARSHALLER = createProcessMarshaller(); private static ProcessMarshaller createProcessMarshaller() { try { @@ -116,37 +117,12 @@ private static ProcessMarshaller createProcessMarshaller() { * @throws IOException * @throws ClassNotFoundException */ - public static StatefulKnowledgeSessionImpl readSession(StatefulKnowledgeSessionImpl session, - ProtobufMarshallerReaderContext context) throws IOException, - ClassNotFoundException { + public static void readSession(StatefulKnowledgeSessionImpl session, ProtobufMarshallerReaderContext context) + throws IOException, ClassNotFoundException { ProtobufMessages.KnowledgeSession _session = loadAndParseSession( context ); - - InternalAgenda agenda = resetSession( session, - context, - _session ); - - readSession( _session, - session, - agenda, - context ); - - return session; - } - - /** - * Create a new session into which to read the stream data - */ - public static ReadSessionResult readSession( ProtobufMarshallerReaderContext context, int id) throws IOException, ClassNotFoundException { - return readSession(context, - id, - EnvironmentFactory.newEnvironment(), - KieServices.get().newKieSessionConfiguration().as(SessionConfiguration.KEY)); - } - - public static ReadSessionResult readSession( ProtobufMarshallerReaderContext context, int id, - Environment environment, SessionConfiguration config) throws IOException, ClassNotFoundException { - return readSession( context, id, environment, config, null ); + InternalAgenda agenda = resetSession( session, context, _session ); + readSession( _session, session, agenda, context ); } public static ReadSessionResult readSession( ProtobufMarshallerReaderContext context, @@ -196,22 +172,19 @@ private static StatefulKnowledgeSessionImpl createAndInitializeSession( Protobuf FactHandleFactory handleFactory = context.getKnowledgeBase().newFactHandleFactory( _session.getRuleData().getLastId(), _session.getRuleData().getLastRecency() ); - InternalAgenda agenda = RuntimeComponentFactory.get().getAgendaFactory(config).createAgenda( context.getKnowledgeBase(), false ); - StatefulKnowledgeSessionImpl session = ( StatefulKnowledgeSessionImpl ) PhreakWorkingMemoryFactory.getInstance() .createWorkingMemory( id, context.getKnowledgeBase(), handleFactory, 1, // pCTx starts at 1, as InitialFact is 0 - config, agenda, environment ); + config, environment ); - agenda.setWorkingMemory( session ); - readAgenda( context, _session.getRuleData(), agenda ); + readAgenda( context, _session.getRuleData(), session.getAgenda() ); return session; } private static ProtobufMessages.KnowledgeSession loadAndParseSession( MarshallerReaderContext context) throws IOException, ClassNotFoundException { - ExtensionRegistry registry = PersisterHelper.buildRegistry( context, processMarshaller ); + ExtensionRegistry registry = PersisterHelper.buildRegistry( context, PROCESS_MARSHALLER); ProtobufMessages.Header _header = PersisterHelper.readFromStreamWithHeaderPreloaded( context, registry ); @@ -249,41 +222,33 @@ public static StatefulKnowledgeSessionImpl readSession( ProtobufMessages.Knowled } for ( ProtobufMessages.EntryPoint _ep : _session.getRuleData().getEntryPointList() ) { - EntryPoint wmep = context.getWorkingMemory().getEntryPoint(_ep.getEntryPointId()); - readFactHandles( context, - _ep, - ((WorkingMemoryEntryPoint) wmep).getObjectStore(), - pctxs ); + WorkingMemoryEntryPoint wmep = context.getWorkingMemory().getEntryPoint(_ep.getEntryPointId()); + readFactHandles( context, _ep, wmep.getObjectStore(), pctxs ); context.getWorkingMemory().getFactHandleFactory().doRecycleIds( context.getHandles().keySet() ); - context.getFilter().fireRNEAs( context.getWorkingMemory() ); - - readTruthMaintenanceSystem( context, - wmep, - _ep, - pctxs ); + readTruthMaintenanceSystem( session, context, wmep, _ep, pctxs ); - context.getWorkingMemory().getFactHandleFactory().stopRecycleIds(); } + context.getFilter().evaluateRNEAs( context.getWorkingMemory() ); cleanReaderContexts( pctxs ); + context.getWorkingMemory().getFactHandleFactory().stopRecycleIds(); - readActionQueue( context, - _session.getRuleData() ); + readActionQueue( context, _session.getRuleData() ); - if ( processMarshaller != null ) { + if ( PROCESS_MARSHALLER != null ) { if ( _session.hasProcessData() ) { context.setParameterObject( _session.getProcessData() ); - processMarshaller.readProcessInstances( context ); + PROCESS_MARSHALLER.readProcessInstances( context ); context.setParameterObject( _session.getProcessData() ); - processMarshaller.readWorkItems( context ); + PROCESS_MARSHALLER.readWorkItems( context ); // This actually does ALL timers, due to backwards compatability issues // It will read in old JBPM binaries, but always write to the new binary format. context.setParameterObject( _session.getProcessData() ); - processMarshaller.readProcessTimers( context ); + PROCESS_MARSHALLER.readProcessTimers( context ); } } else { if ( _session.hasProcessData() ) { @@ -293,20 +258,22 @@ public static StatefulKnowledgeSessionImpl readSession( ProtobufMessages.Knowled if ( _session.hasTimers() ) { for ( ProtobufMessages.Timers.Timer _timer : _session.getTimers().getTimerList() ) { - readTimer( context, - _timer ); + readTimer( context, _timer ); } } + // need to process any eventual left over timer node timers - if( ! context.timerNodeSchedulers.isEmpty() ) { - for( Map schedulers : context.timerNodeSchedulers.values() ) { - for( Scheduler scheduler : schedulers.values() ) { + if ( ! context.timerNodeSchedulers.isEmpty() ) { + for ( Map schedulers : context.timerNodeSchedulers.values() ) { + for ( Scheduler scheduler : schedulers.values() ) { scheduler.schedule( scheduler.getTrigger() ); } } context.timerNodeSchedulers.clear(); } + context.getFilter().removeEmptyRNEAs( context.getWorkingMemory() ); + // remove the activations filter agenda.setActivationsFilter( null ); @@ -376,31 +343,6 @@ public QueryElementContext(ProtobufMessages.NodeMemory.QueryElementNodeMemory.Qu } } - private static void readInitialFactHandle( ProtobufMarshallerReaderContext context, - RuleData _session, - List pctxs) { - long ifhId = context.getWorkingMemory().getInitialFactHandle().getId(); - context.getHandles().put( ifhId, - context.getWorkingMemory().getInitialFactHandle() ); - - // special case we have to handle for the initial fact - boolean initialFactPropagated = true; - for ( ProtobufMessages.ActionQueue.Action _action : _session.getActionQueue().getActionList() ) { - if ( _action.getType() == ProtobufMessages.ActionQueue.ActionType.ASSERT ) { - if ( _action.getAssert().getHandleId() == ifhId ) { - initialFactPropagated = false; - break; - } - } - } - if ( initialFactPropagated ) { - assertHandleIntoOTN( context, - context.getWorkingMemory(), - context.getWorkingMemory().getInitialFactHandle(), - pctxs ); - } - } - public static void readAgenda( ProtobufMarshallerReaderContext context, RuleData _ruleData, InternalAgenda agenda) { @@ -469,28 +411,24 @@ public static void readFactHandles( ProtobufMarshallerReaderContext context, // load the handles for ( ProtobufMessages.FactHandle _handle : _ep.getHandleList() ) { - InternalFactHandle handle = readFactHandle( context, - entryPoint, - _handle ); + InternalFactHandle handle = readFactHandle( context, entryPoint, _handle ); - context.getHandles().put( handle.getId(), - handle ); + context.getHandles().put( handle.getId(), handle ); if ( !_handle.getIsJustified() ) { // BeliefSystem handles the Object type if ( handle.getObject() != null ) { - objectStore.addHandle( handle, - handle.getObject() ); + objectStore.addHandle( handle, handle.getObject() ); } // add handle to object type node - assertHandleIntoOTN( context, - wm, - handle, - pctxs ); + assertHandleIntoOTN( context, wm, handle, pctxs ); } - } + if (handle.isExpired()) { + wm.addPropagation(new WorkingMemoryReteExpireAction((DefaultEventHandle) handle)); + } + } } private static void assertHandleIntoOTN( ProtobufMarshallerReaderContext context, @@ -552,14 +490,14 @@ public static InternalFactHandle readFactHandle( ProtobufMarshallerReaderContext break; } case EVENT : { - handle = new EventFactHandle( _handle.getId(), - object, - _handle.getRecency(), - _handle.getTimestamp(), - _handle.getDuration(), - (WorkingMemoryEntryPoint) entryPoint ); - ((EventFactHandle) handle).setExpired( _handle.getIsExpired() ); - ((EventFactHandle) handle).setOtnCount( _handle.getOtnCount() ); + handle = new DefaultEventHandle(_handle.getId(), + object, + _handle.getRecency(), + _handle.getTimestamp(), + _handle.getDuration(), + (WorkingMemoryEntryPoint) entryPoint ); + ((DefaultEventHandle) handle).setExpired(_handle.getIsExpired()); + ((DefaultEventHandle) handle).setOtnCount(_handle.getOtnCount()); // the event is re-propagated through the network, so the activations counter will be recalculated //((EventFactHandle) handle).setActivationsCount( _handle.getActivationsCount() ); break; @@ -571,7 +509,8 @@ public static InternalFactHandle readFactHandle( ProtobufMarshallerReaderContext return handle; } - public static void readTruthMaintenanceSystem( ProtobufMarshallerReaderContext context, + public static void readTruthMaintenanceSystem( StatefulKnowledgeSessionImpl session, + ProtobufMarshallerReaderContext context, EntryPoint wmep, ProtobufMessages.EntryPoint _ep, List pctxs) throws IOException, @@ -580,8 +519,8 @@ public static void readTruthMaintenanceSystem( ProtobufMarshallerReaderContext c boolean wasOTCSerialized = _ep.getOtcCount() > 0; // if 0, then the OTC was not serialized (older versions of drools) Set tmsEnabled = new HashSet<>(); - for( ObjectTypeConfiguration _otc : _ep.getOtcList() ) { - if( _otc.getTmsEnabled() ) { + for ( ObjectTypeConfiguration _otc : _ep.getOtcList() ) { + if ( _otc.getTmsEnabled() ) { tmsEnabled.add( _otc.getType() ); } } @@ -589,7 +528,7 @@ public static void readTruthMaintenanceSystem( ProtobufMarshallerReaderContext c ProtobufMessages.TruthMaintenanceSystem _tms = _ep.getTms(); for ( ProtobufMessages.EqualityKey _key : _tms.getKeyList() ) { - InternalFactHandle handle = (InternalFactHandle) context.getHandles().get( _key.getHandleId() ); + InternalFactHandle handle = context.getHandles().get( _key.getHandleId() ); // ObjectTypeConf state is not marshalled, so it needs to be re-determined ObjectTypeConf typeConf = context.getWorkingMemory().getObjectTypeConfigurationRegistry().getOrCreateObjectTypeConf( handle.getEntryPointId(), @@ -623,6 +562,9 @@ public static void readTruthMaintenanceSystem( ProtobufMarshallerReaderContext c readBeliefSet( context, tms, _key ); } + if ( tms.getEqualityKeysSize() != 0 ) { + session.enableTMS(); + } } private static void readBeliefSet( MarshallerReaderContext context, @@ -673,18 +615,9 @@ private static void readActivations( ProtobufMarshallerReaderContext context, List _rneas) { for ( ProtobufMessages.Activation _activation : _dormant ) { - ProtobufMessages.Tuple _tuple = _activation.getTuple(); // this is a dormant activation context.getFilter().addDormantActivation(getActivationKey( context, _activation )); } - - for ( ProtobufMessages.Activation _activation : _rneas ) { - // this is an active rule network evaluator - context.getFilter().getRneActivations().put( PersisterHelper.createActivationKey( _activation.getPackageName(), - _activation.getRuleName(), - _activation.getTuple() ), - _activation ); - } } private static ActivationKey getActivationKey( MarshallerReaderContext context, ProtobufMessages.Activation _activation ) { @@ -709,9 +642,7 @@ private static ActivationKey getActivationKey( MarshallerReaderContext context, return PersisterHelper.createActivationKey( _activation.getPackageName(), _activation.getRuleName(), _tuple ); } - public static void readTimer( MarshallerReaderContext inCtx, - Timer _timer) throws IOException, - ClassNotFoundException { + public static void readTimer( MarshallerReaderContext inCtx, Timer _timer) { TimersInputMarshaller reader = (TimersInputMarshaller) inCtx.getReaderForInt( _timer.getType().getNumber() ); reader.deserialize( inCtx, _timer ); } @@ -762,8 +693,7 @@ public static Trigger readTrigger( MarshallerReaderContext inCtx, return trigger; } case POINT_IN_TIME : { - PointInTimeTrigger trigger = PointInTimeTrigger.createPointInTimeTrigger( _trigger.getPit().getNextFireTime(), null ); - return trigger; + return PointInTimeTrigger.createPointInTimeTrigger( _trigger.getPit().getNextFireTime(), null ); } case COMPOSITE_MAX_DURATION : { ProtobufMessages.Trigger.CompositeMaxDurationTrigger _cmdTrigger = _trigger.getCmdt(); @@ -785,13 +715,12 @@ public static Trigger readTrigger( MarshallerReaderContext inCtx, } public static WorkItem readWorkItem( MarshallerReaderContext context ) { - return processMarshaller.readWorkItem( context ); + return PROCESS_MARSHALLER.readWorkItem( context ); } public static class PBActivationsFilter implements ActivationsFilter, AgendaFilter { private final Set dormantActivations = new HashSet<>(); - private final Map rneActivations = new HashMap<>(); private final Map tuplesCache = new HashMap<>(); private final Queue rneaToFire = new ConcurrentLinkedQueue<>(); @@ -815,30 +744,35 @@ public boolean accept(Match match) { return !dormantActivations.contains(activationKey); } - public boolean accept(RuleAgendaItem activation) { - ActivationKey key = PersisterHelper.createActivationKey( activation.getRule().getPackageName(), activation.getRule().getName()); - if ( !this.rneActivations.containsKey( key ) || this.rneActivations.get( key ).getEvaluated() ) { - rneaToFire.add(activation ); - } - return true; + @Override + public void accept(RuleAgendaItem activation) { + rneaToFire.add( activation ); } public Map getTuplesCache() { return tuplesCache; } - public Map getRneActivations() { - return rneActivations; + public void evaluateRNEAs(final InternalWorkingMemory wm) { + for ( RuleAgendaItem rai : rneaToFire ) { + rai.getRuleExecutor().evaluateNetworkIfDirty( wm ); + } + } + + public void removeEmptyRNEAs(final InternalWorkingMemory wm) { + for ( RuleAgendaItem rai : rneaToFire ) { + rai.getRuleExecutor().removeRuleAgendaItemWhenEmpty( wm ); + } + rneaToFire.clear(); } - @Override public void fireRNEAs(final InternalWorkingMemory wm) { - RuleAgendaItem rai = null; - while ( (rai = rneaToFire.poll()) != null ) { + for ( RuleAgendaItem rai : rneaToFire ) { RuleExecutor ruleExecutor = rai.getRuleExecutor(); - ruleExecutor.reEvaluateNetwork( wm ); + ruleExecutor.evaluateNetworkIfDirty( wm ); ruleExecutor.removeRuleAgendaItemWhenEmpty( wm ); } + rneaToFire.clear(); } public void withSerializedNodeMemories() { diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshaller.java index b7f863cd6c1..ee4c17e6b90 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010, 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.IOException; @@ -113,7 +115,7 @@ public void marshall(final OutputStream stream, ProtobufMarshallerWriteContext context = new ProtobufMarshallerWriteContext( stream, (InternalKnowledgeBase) kbase, (InternalWorkingMemory) ksession, - RuleBaseNodes.getNodeMap( (InternalKnowledgeBase) kbase ), + RuleBaseNodes.getNodeMap( (InternalKnowledgeBase) kbase), this.strategyStore, this.marshallingConfig.isMarshallProcessInstances(), this.marshallingConfig.isMarshallWorkItems(), diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshallerReaderContext.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshallerReaderContext.java index 7c936cf23e5..45b10a9db09 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshallerReaderContext.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshallerReaderContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.IOException; @@ -35,7 +37,7 @@ import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.RightTuple; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.core.common.PropagationContext; import org.drools.core.reteoo.Tuple; import org.drools.kiesession.rulebase.InternalKnowledgeBase; @@ -51,7 +53,7 @@ public class ProtobufMarshallerReaderContext extends ObjectInputStream implements MarshallerReaderContext { - private final InternalKnowledgeBase kBase; + private final InternalKnowledgeBase kBase; private InternalWorkingMemory wm; public KieRuntime kruntime; private final Map sinks; @@ -274,8 +276,8 @@ public void setReaderForInt(int i, Object reader) { } @Override - public InternalFactHandle createAccumulateHandle( EntryPointId entryPointId, ReteEvaluator reteEvaluator, - LeftTuple leftTuple, Object result, int nodeId) { + public InternalFactHandle createAccumulateHandle(EntryPointId entryPointId, ReteEvaluator reteEvaluator, + LeftTuple leftTuple, Object result, int nodeId) { InternalFactHandle handle = null; ProtobufMessages.FactHandle _handle = null; Map map = (Map) getNodeMemories().get( nodeId ); diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshallerWriteContext.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshallerWriteContext.java index d7cbdc48818..24ed0f041df 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshallerWriteContext.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMarshallerWriteContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.IOException; @@ -43,7 +45,7 @@ import org.kie.internal.marshalling.MarshallerFactory; public class ProtobufMarshallerWriteContext extends ObjectOutputStream implements MarshallerWriteContext { - private final InternalKnowledgeBase kBase; + private final InternalKnowledgeBase kBase; private final InternalWorkingMemory wm; private final Map sinks; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMessages.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMessages.java index 09d8520def6..d5acce49aa6 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMessages.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufMessages.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: org/drools/serialization/protobuf/droolsmessages.proto diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufOutputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufOutputMarshaller.java index b6b63bbea00..f1a12b6e681 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufOutputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufOutputMarshaller.java @@ -1,41 +1,34 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; -import java.io.IOException; -import java.io.ObjectOutputStream; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.Date; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - import com.google.protobuf.ByteString; -import org.drools.core.InitialFact; +import org.drools.base.InitialFact; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.time.Trigger; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.AgendaGroupQueueImpl; import org.drools.core.common.BaseNode; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.EqualityKey; -import org.drools.core.common.EventFactHandle; import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.InternalFactHandle; @@ -45,28 +38,24 @@ import org.drools.core.common.ObjectStore; import org.drools.core.common.ObjectTypeConfigurationRegistry; import org.drools.core.common.QueryElementFactHandle; +import org.drools.core.common.RuleFlowGroup; import org.drools.core.common.TruthMaintenanceSystem; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; import org.drools.core.marshalling.MarshallerWriteContext; import org.drools.core.phreak.PropagationEntry; import org.drools.core.phreak.RuleAgendaItem; import org.drools.core.process.WorkItem; -import org.drools.core.reteoo.BaseTuple; +import org.drools.core.reteoo.AbstractTuple; import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.reteoo.ObjectTypeNode.ObjectTypeNodeMemory; import org.drools.core.reteoo.QueryElementNode.QueryElementNodeMemory; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.Sink; import org.drools.core.reteoo.TerminalNode; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.common.RuleFlowGroup; import org.drools.core.time.JobContext; import org.drools.core.time.SelfRemovalJobContext; -import org.drools.core.time.Trigger; import org.drools.core.time.impl.CompositeMaxDurationTrigger; import org.drools.core.time.impl.CronTrigger; import org.drools.core.time.impl.IntervalTrigger; @@ -74,13 +63,12 @@ import org.drools.core.time.impl.PseudoClockScheduler; import org.drools.core.time.impl.TimerJobInstance; import org.drools.core.util.FastIterator; +import org.drools.core.util.LinkedList; import org.drools.core.util.LinkedListEntry; import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.drools.serialization.protobuf.ProtobufMessages.FactHandle; import org.drools.serialization.protobuf.ProtobufMessages.ObjectTypeConfiguration; -import org.drools.serialization.protobuf.ProtobufMessages.ProcessData.Builder; -import org.drools.serialization.protobuf.ProtobufMessages.Timers; import org.drools.serialization.protobuf.ProtobufMessages.Timers.Timer; import org.drools.serialization.protobuf.ProtobufMessages.Tuple; import org.drools.serialization.protobuf.iterators.ActivationIterator; @@ -96,6 +84,18 @@ import org.kie.api.marshalling.ObjectMarshallingStrategyStore; import org.kie.api.runtime.rule.EntryPoint; +import java.io.IOException; +import java.io.ObjectOutputStream; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.Date; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + /** * An output marshaller that uses ProtoBuf as the marshalling framework * in order to provide backward compatibility with marshalled sessions @@ -114,14 +114,8 @@ private static ProcessMarshaller createProcessMarshaller() { } public static void writeSession( ProtobufMarshallerWriteContext context) throws IOException { - ProtobufMessages.KnowledgeSession _session = serializeSession( context ); - -// System.out.println("============================================================================="); -// System.out.println(_session); - - PersisterHelper.writeToStreamWithHeader( context, - _session ); + PersisterHelper.writeToStreamWithHeader( context, _session ); } private static ProtobufMessages.KnowledgeSession serializeSession( MarshallerWriteContext context) throws IOException { @@ -165,9 +159,7 @@ private static ProtobufMessages.KnowledgeSession serializeSession( MarshallerWri ProtobufMessages.EntryPoint.Builder _epb = ProtobufMessages.EntryPoint.newBuilder(); _epb.setEntryPointId( wmep.getEntryPointId() ); - writeObjectTypeConfiguration( context, - ((WorkingMemoryEntryPoint)wmep).getObjectTypeConfigurationRegistry(), - _epb ); + writeObjectTypeConfiguration( ((WorkingMemoryEntryPoint)wmep).getObjectTypeConfigurationRegistry(), _epb ); writeFactHandles( context, _epb, @@ -189,7 +181,7 @@ private static ProtobufMessages.KnowledgeSession serializeSession( MarshallerWri .setRuleData( _ruleData.build() ); if ( processMarshaller != null ) { - Builder _pdata = ProtobufMessages.ProcessData.newBuilder(); + ProtobufMessages.ProcessData.Builder _pdata = ProtobufMessages.ProcessData.newBuilder(); if ( context.isMarshalProcessInstances() ) { context.setParameterObject( _pdata ); processMarshaller.writeProcessInstances( context ); @@ -207,7 +199,7 @@ private static ProtobufMessages.KnowledgeSession serializeSession( MarshallerWri _session.setProcessData( _pdata.build() ); } - Timers _timers = writeTimers( context.getWorkingMemory().getTimerJobInstances( context.getWorkingMemory().getIdentifier() ), + ProtobufMessages.Timers _timers = writeTimers( context.getWorkingMemory().getTimerJobInstances( context.getWorkingMemory().getIdentifier() ), context ); if ( _timers != null ) { _session.setTimers( _timers ); @@ -224,30 +216,20 @@ private static ProtobufMessages.KnowledgeSession serializeSession( MarshallerWri } } - private static void writeObjectTypeConfiguration( MarshallerWriteContext context, - ObjectTypeConfigurationRegistry otcr, + private static void writeObjectTypeConfiguration( ObjectTypeConfigurationRegistry otcr, ProtobufMessages.EntryPoint.Builder _epb) { Collection values = otcr.values(); ObjectTypeConf[] otcs = values.toArray( new ObjectTypeConf[ values.size() ] ); - Arrays.sort( otcs, - new Comparator() { - @Override - public int compare(ObjectTypeConf o1, ObjectTypeConf o2) { - return o1.getTypeName().compareTo(o2.getTypeName()); - } - }); + Arrays.sort( otcs, Comparator.comparing(ObjectTypeConf::getTypeName)); for( ObjectTypeConf otc : otcs ) { ObjectTypeNode objectTypeNode = otc.getConcreteObjectTypeNode(); if (objectTypeNode != null) { - final ObjectTypeNodeMemory memory = context.getWorkingMemory().getNodeMemory(objectTypeNode); - if (memory != null) { - ObjectTypeConfiguration _otc = ObjectTypeConfiguration.newBuilder() - .setType(otc.getTypeName()) - .setTmsEnabled(otc.isTMSEnabled()) - .build(); - _epb.addOtc(_otc); - } + ObjectTypeConfiguration _otc = ObjectTypeConfiguration.newBuilder() + .setType(otc.getTypeName()) + .setTmsEnabled(otc.isTMSEnabled()) + .build(); + _epb.addOtc(_otc); } } } @@ -259,7 +241,7 @@ private static void evaluateRuleActivations(StatefulKnowledgeSessionImpl wm) { // this must clone as re-evaluation will under underlying Collection for ( RuleAgendaItem activation : new ArrayList<>(wm.getAgenda().getAgendaGroupsManager().getActivations())) { // evaluate it - activation.getRuleExecutor().reEvaluateNetwork( wm ); + activation.getRuleExecutor().evaluateNetworkIfDirty( wm ); activation.getRuleExecutor().removeRuleAgendaItemWhenEmpty( wm ); } dirty = false; @@ -376,7 +358,7 @@ private static ByteString serializeObject( MarshallerWriteContext context, Objec private static ProtobufMessages.NodeMemory writeQueryElementNodeMemory(final int nodeId, final Memory memory, final InternalWorkingMemory wm) { - org.drools.core.util.Iterator it = LeftTupleIterator.iterator( wm, ((QueryElementNodeMemory) memory).getNode() ); + org.drools.core.util.Iterator it = LeftTupleIterator.iterator(wm, ((QueryElementNodeMemory) memory).getNode() ); ProtobufMessages.NodeMemory.QueryElementNodeMemory.Builder _query = ProtobufMessages.NodeMemory.QueryElementNodeMemory.newBuilder(); for ( LeftTuple leftTuple = it.next(); leftTuple != null; leftTuple = it.next() ) { @@ -479,7 +461,7 @@ public static void writeTruthMaintenanceSystem( MarshallerWriteContext context, if ( key.size() > 1 ) { // add all the other key's if they exist - FastIterator keyIter = key.fastIterator(); + FastIterator keyIter = new LinkedList.TMSLinkedListFastIterator(); for ( DefaultFactHandle handle = key.getFirst().getNext(); handle != null; handle = (DefaultFactHandle) keyIter.next( handle ) ) { _key.addOtherHandle( handle.getId() ); } @@ -506,7 +488,7 @@ private static void writeBeliefSet( MarshallerWriteContext context, ObjectMarshallingStrategyStore objectMarshallingStrategyStore = context.getObjectMarshallingStrategyStore(); // for ( LinkedListEntry node = (LinkedListEntry) beliefSet.getFirst(); node != null; node = (LinkedListEntry) node.getNext() ) { - FastIterator it = beliefSet.iterator(); + FastIterator it = new LinkedList.TMSLinkedListFastIterator(); for ( LinkedListEntry node = (LinkedListEntry) beliefSet.getFirst(); node != null; node = (LinkedListEntry) it.next(node) ) { LogicalDependency belief = (LogicalDependency) node.getObject(); ProtobufMessages.LogicalDependency.Builder _logicalDependency = ProtobufMessages.LogicalDependency.newBuilder(); @@ -563,9 +545,7 @@ private static void writeFactHandles( MarshallerWriteContext context, // Write out FactHandles for ( InternalFactHandle handle : orderFacts( objectStore ) ) { - ProtobufMessages.FactHandle _handle = writeFactHandle( context, - objectMarshallingStrategyStore, - handle ); + ProtobufMessages.FactHandle _handle = writeFactHandle( context, objectMarshallingStrategyStore, handle ); _epb.addHandle( _handle ); } } @@ -581,11 +561,10 @@ private static ProtobufMessages.FactHandle writeFactHandle( MarshallerWriteConte if ( _handle.getType() == ProtobufMessages.FactHandle.HandleType.EVENT ) { // is event - EventFactHandle efh = (EventFactHandle) handle; + DefaultEventHandle efh = (DefaultEventHandle) handle; _handle.setTimestamp( efh.getStartTimestamp() ); _handle.setDuration( efh.getDuration() ); _handle.setIsExpired( efh.isExpired() ); - _handle.setActivationsCount( efh.getActivationsCount() ); _handle.setOtnCount( efh.getOtnCount() ); } @@ -612,7 +591,7 @@ private static ProtobufMessages.FactHandle writeFactHandle( MarshallerWriteConte } private static ProtobufMessages.FactHandle.HandleType getHandleType(InternalFactHandle handle) { - if ( handle instanceof EventFactHandle ) { + if ( handle instanceof DefaultEventHandle) { return ProtobufMessages.FactHandle.HandleType.EVENT; } else if ( handle instanceof QueryElementFactHandle ) { return ProtobufMessages.FactHandle.HandleType.QUERY; @@ -732,12 +711,12 @@ public static Tuple writeTuple(MarshallerWriteContext context, InternalMatch int org.drools.core.reteoo.Tuple tuple = internalMatch.getTuple(); ProtobufMessages.Tuple.Builder _tb = ProtobufMessages.Tuple.newBuilder(); - boolean serializeObjects = isDormient && hasNodeMemory((BaseTuple) internalMatch); + boolean serializeObjects = isDormient && hasNodeMemory((AbstractTuple) internalMatch); if (tuple != null) { // tuple can be null if this is a rule network evaluation activation, instead of terminal node left tuple. for (org.drools.core.reteoo.Tuple entry = tuple.skipEmptyHandles(); entry != null; entry = entry.getParent()) { - InternalFactHandle handle = entry.getFactHandle(); + org.kie.api.runtime.rule.FactHandle handle = entry.getFactHandle(); _tb.addHandleId(handle.getId()); if (serializeObjects) { @@ -755,7 +734,7 @@ public static Tuple writeTuple(MarshallerWriteContext context, InternalMatch int return _tb.build(); } - private static boolean hasNodeMemory(BaseTuple agendaItem) { + private static boolean hasNodeMemory(AbstractTuple agendaItem) { Sink tupleSink = agendaItem.getTupleSink(); if (tupleSink instanceof TerminalNode ) { return PersisterHelper.hasNodeMemory( (TerminalNode) tupleSink ); diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufProcessMarshallerWriteContext.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufProcessMarshallerWriteContext.java index ef501174a66..6faa6968729 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufProcessMarshallerWriteContext.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufProcessMarshallerWriteContext.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.IOException; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufWorkingMemoryAction.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufWorkingMemoryAction.java index 57106dead2a..322a369ca99 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufWorkingMemoryAction.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ProtobufWorkingMemoryAction.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.IOException; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ReadSessionResult.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ReadSessionResult.java index 4f2f78f9ff9..3409ec85544 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ReadSessionResult.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/ReadSessionResult.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.serialization.protobuf; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/TimersInputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/TimersInputMarshaller.java index 15af9970294..86e3bb30b35 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/TimersInputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/TimersInputMarshaller.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.serialization.protobuf; import org.drools.core.marshalling.MarshallerReaderContext; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/TimersOutputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/TimersOutputMarshaller.java index 20cabce4aa9..b54c87458b9 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/TimersOutputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/TimersOutputMarshaller.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.serialization.protobuf; import org.drools.core.marshalling.MarshallerWriteContext; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/WorkingMemoryReteAssertAction.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/WorkingMemoryReteAssertAction.java index d8f437a2f23..09c99772c88 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/WorkingMemoryReteAssertAction.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/WorkingMemoryReteAssertAction.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.IOException; @@ -21,8 +24,8 @@ import org.drools.core.common.PropagationContextFactory; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.WorkingMemoryAction; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.phreak.PropagationEntry; import org.drools.core.reteoo.RuntimeComponentFactory; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufBehaviorExpireWMAction.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufBehaviorExpireWMAction.java index caa9b104e92..c0b85ccbbb5 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufBehaviorExpireWMAction.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufBehaviorExpireWMAction.java @@ -1,23 +1,27 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.actions; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.marshalling.MarshallerWriteContext; import org.drools.core.reteoo.WindowNode; -import org.drools.core.rule.Behavior; +import org.drools.core.rule.BehaviorContext; import org.drools.core.rule.SlidingTimeWindow; import org.drools.serialization.protobuf.ProtobufMessages; import org.drools.serialization.protobuf.ProtobufWorkingMemoryAction; @@ -30,7 +34,7 @@ public ProtobufBehaviorExpireWMAction( MarshallerReaderContext context, Protobuf WindowNode.WindowMemory memory = context.getWorkingMemory().getNodeMemory( windowNode ); - Behavior.Context[] behaviorContext = memory.behaviorContext; + BehaviorContext[] behaviorContext = memory.behaviorContext; int i = 0; // <==== this needs fixing diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufBeliefSystemLogicalCallback.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufBeliefSystemLogicalCallback.java index e0a0cce2b31..7f189e61534 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufBeliefSystemLogicalCallback.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufBeliefSystemLogicalCallback.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.actions; import org.drools.core.rule.consequence.InternalMatch; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufDeactivateCallback.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufDeactivateCallback.java index 43d29f44877..2dea374b1fc 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufDeactivateCallback.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufDeactivateCallback.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.actions; import org.drools.core.common.AgendaGroupQueueImpl; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufWorkingMemoryReteAssertAction.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufWorkingMemoryReteAssertAction.java index 8a8131b2ff9..8dc59dbcda7 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufWorkingMemoryReteAssertAction.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufWorkingMemoryReteAssertAction.java @@ -1,20 +1,24 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.actions; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.serialization.protobuf.WorkingMemoryReteAssertAction; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.marshalling.MarshallerWriteContext; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufWorkingMemoryReteExpireAction.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufWorkingMemoryReteExpireAction.java index 21e7d3da8b7..d46a807273b 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufWorkingMemoryReteExpireAction.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/actions/ProtobufWorkingMemoryReteExpireAction.java @@ -1,20 +1,24 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.actions; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.impl.WorkingMemoryReteExpireAction; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.marshalling.MarshallerWriteContext; @@ -28,7 +32,7 @@ public class ProtobufWorkingMemoryReteExpireAction public ProtobufWorkingMemoryReteExpireAction( MarshallerReaderContext context, ProtobufMessages.ActionQueue.Action _action) { - this.factHandle = (EventFactHandle)context.getHandles().get(_action.getExpire().getHandleId()); + this.factHandle = (DefaultEventHandle)context.getHandles().get(_action.getExpire().getHandleId()); if (_action.getExpire().getNodeId() > 0) { this.node = (ObjectTypeNode) context.getSinks().get(_action.getExpire().getNodeId()); } diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/ActivationIterator.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/ActivationIterator.java index 5bc7b5ba667..c4b98ffdd1a 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/ActivationIterator.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/ActivationIterator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.serialization.protobuf.iterators; import org.drools.core.WorkingMemoryEntryPoint; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/LeftTupleIterator.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/LeftTupleIterator.java index e46514bbf06..d67d046709e 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/LeftTupleIterator.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/LeftTupleIterator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.serialization.protobuf.iterators; import org.drools.core.common.InternalFactHandle; @@ -32,12 +35,13 @@ import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.QueryElementNode; import org.drools.core.reteoo.RightTuple; +import org.drools.core.reteoo.RightTupleImpl; import org.drools.core.reteoo.Tuple; import org.drools.core.util.FastIterator; import org.drools.core.util.Iterator; @@ -49,7 +53,7 @@ public class LeftTupleIterator protected LeftTupleSink node; - protected LeftTuple currentLeftTuple; + protected LeftTuple currentLeftTuple; private java.util.Iterator otnIterator; @@ -64,8 +68,8 @@ private LeftTupleIterator(InternalWorkingMemory wm, setFirstLeftTupleForNode(); } - public static Iterator iterator( InternalWorkingMemory wm, - LeftTupleSink node) { + public static Iterator iterator(InternalWorkingMemory wm, + LeftTupleSink node) { return new LeftTupleIterator(wm, node); } @@ -88,7 +92,7 @@ public LeftTuple getFirstLeftTuple(LeftTupleSource source, Tuple leftTuple = BetaNode.getFirstTuple( memory.getLeftTupleMemory(), localIt ); if( leftTuple != null ) { AccumulateContext accctx = (AccumulateContext) leftTuple.getContextObject(); - return accctx.getResultLeftTuple(); + return (LeftTuple) accctx.getResultLeftTuple(); } return null; } @@ -119,7 +123,7 @@ public LeftTuple getFirstLeftTuple(LeftTupleSource source, return childleftTuple; } } - leftTuple = (LeftTuple) localIt.next( leftTuple ); + leftTuple = (LeftTuple) localIt.next(leftTuple ); } break; } @@ -151,11 +155,11 @@ public LeftTuple getFirstLeftTuple(LeftTupleSource source, } ObjectTypeNode otn = (ObjectTypeNode) os; - otnIterator = wm.getNodeMemory( otn ).iterator(); + otnIterator = otn.getFactHandlesIterator(wm); while (otnIterator.hasNext()) { InternalFactHandle handle = otnIterator.next(); - LeftTuple leftTuple = handle.findFirstLeftTuple( lt -> lt.getTupleSink() == sink ); + LeftTuple leftTuple = handle.findFirstLeftTuple(lt -> lt.getTupleSink() == sink ); if ( leftTuple != null ) { return leftTuple; } @@ -164,9 +168,9 @@ public LeftTuple getFirstLeftTuple(LeftTupleSource source, } case NodeTypeEnums.EvalConditionNode: case NodeTypeEnums.QueryElementNode: { - LeftTuple parentLeftTuple = getFirstLeftTuple( source.getLeftTupleSource(), - (LeftTupleSink) source, - wm ); + LeftTuple parentLeftTuple = getFirstLeftTuple(source.getLeftTupleSource(), + (LeftTupleSink) source, + wm ); while ( parentLeftTuple != null ) { for ( LeftTuple leftTuple = parentLeftTuple.getFirstChild(); leftTuple != null; leftTuple = leftTuple.getHandleNext() ) { @@ -256,7 +260,7 @@ public LeftTuple getNextLeftTuple(LeftTupleSource source, return childLeftTuple; } } - leftTuple = (LeftTuple) localIt.next( leftTuple ); + leftTuple = (LeftTuple) localIt.next(leftTuple ); } } else if ( source instanceof JoinNode || source instanceof NotNode|| source instanceof FromNode || source instanceof AccumulateNode ) { @@ -286,13 +290,13 @@ public LeftTuple getNextLeftTuple(LeftTupleSource source, return childLeftTuple; } } - leftTuple = (LeftTuple) localIt.next( leftTuple ); + leftTuple = (LeftTuple) localIt.next(leftTuple ); } } if ( source instanceof ExistsNode ) { BetaMemory memory = (BetaMemory) wm.getNodeMemory( (MemoryFactory) source ); if (leftTuple != null) { - RightTuple rightTuple = leftTuple.getLeftParent().getBlocker(); + RightTupleImpl rightTuple = (RightTupleImpl) leftTuple.getLeftParent().getBlocker(); FastIterator localIt = memory.getRightTupleMemory().fullFastIterator( rightTuple ); for ( LeftTuple childleftTuple = leftTuple.getHandleNext(); childleftTuple != null; childleftTuple = childleftTuple.getHandleNext() ) { @@ -320,7 +324,7 @@ public LeftTuple getNextLeftTuple(LeftTupleSource source, } } - rightTuple = (RightTuple) localIt.next( rightTuple ); + rightTuple = (RightTupleImpl) localIt.next( rightTuple ); } } } else if ( source instanceof EvalConditionNode || source instanceof QueryElementNode ) { diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/PhreakActivationIterator.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/PhreakActivationIterator.java index c17fa2a6f8b..e8b3dc6b961 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/PhreakActivationIterator.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/PhreakActivationIterator.java @@ -1,53 +1,39 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.serialization.protobuf.iterators; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashSet; -import java.util.List; -import java.util.Set; - +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.common.InternalFactHandle; +import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Memory; import org.drools.core.common.ReteEvaluator; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.AccumulateNode.AccumulateContext; import org.drools.core.reteoo.AccumulateNode.AccumulateMemory; -import org.drools.core.reteoo.BetaMemory; -import org.drools.core.reteoo.BetaNode; +import org.drools.core.reteoo.*; import org.drools.core.reteoo.FromNode.FromMemory; -import org.drools.core.reteoo.LeftInputAdapterNode; -import org.drools.core.reteoo.LeftTuple; -import org.drools.core.reteoo.LeftTupleSink; -import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.NodeTypeEnums; -import org.drools.core.reteoo.ObjectSource; -import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.reteoo.ObjectTypeNode.ObjectTypeNodeMemory; -import org.drools.core.reteoo.RightTuple; -import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.reteoo.TerminalNode; -import org.drools.core.reteoo.TupleMemory; -import org.drools.core.reteoo.Tuple; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.util.FastIterator; import org.drools.core.util.Iterator; +import java.util.*; + public class PhreakActivationIterator implements Iterator { @@ -61,7 +47,7 @@ public class PhreakActivationIterator } private PhreakActivationIterator(ReteEvaluator reteEvaluator, - RuleBase kbase) { + InternalRuleBase kbase) { internalMatches = collectAgendaItems(kbase, reteEvaluator); agendaItemIter = internalMatches.iterator(); } @@ -78,7 +64,7 @@ public Object next() { } } - public static List populateRuleTerminalNodes(RuleBase kbase, Set nodeSet) { + public static List populateRuleTerminalNodes(InternalRuleBase kbase, Set nodeSet) { Collection nodesWithArray = kbase.getReteooBuilder().getTerminalNodes().values(); for (TerminalNode[] nodeArray : nodesWithArray) { @@ -92,7 +78,7 @@ public static List populateRuleTerminalNodes(RuleBase kbase, S return Arrays.asList(nodeSet.toArray(new RuleTerminalNode[nodeSet.size()])); } - public static List collectAgendaItems(RuleBase kbase, ReteEvaluator reteEvaluator) { + public static List collectAgendaItems(InternalRuleBase kbase, ReteEvaluator reteEvaluator) { Set nodeSet = new HashSet<>(); List nodeList = populateRuleTerminalNodes(kbase, nodeSet); @@ -131,7 +117,7 @@ public static void processLeftTuples(LeftTupleSource node, List i Tuple lt = BetaNode.getFirstTuple( bm.getLeftTupleMemory(), it ); for (; lt != null; lt = (LeftTuple) it.next(lt)) { AccumulateContext accctx = (AccumulateContext) lt.getContextObject(); - collectFromPeers(accctx.getResultLeftTuple(), internalMatches, nodeSet, reteEvaluator); + collectFromPeers((LeftTuple) accctx.getResultLeftTuple(), internalMatches, nodeSet, reteEvaluator); } } else if ( NodeTypeEnums.ExistsNode == node.getType() ) { bm = (BetaMemory) reteEvaluator.getNodeMemories().peekNodeMemory(node); @@ -193,10 +179,9 @@ public static void processLeftTuples(LeftTupleSource node, List i os = os.getParentObjectSource(); } ObjectTypeNode otn = (ObjectTypeNode) os; - final ObjectTypeNodeMemory omem = reteEvaluator.getNodeMemory(otn); LeftTupleSink firstLiaSink = lian.getSinkPropagator().getFirstLeftTupleSink(); - java.util.Iterator it = omem.iterator(); + java.util.Iterator it = otn.getFactHandlesIterator((InternalWorkingMemory) reteEvaluator); while (it.hasNext()) { InternalFactHandle fh = it.next(); fh.forEachLeftTuple( lt -> { @@ -219,7 +204,7 @@ private static void collectFromPeers(LeftTuple peer, List interna Object accctx = peer.getContextObject(); if (accctx instanceof AccumulateContext) { // lefttuple representing an accumulated value now have that value as context object (it was null before) and must be skipped here - collectFromLeftInput(((AccumulateContext) accctx).getResultLeftTuple(), internalMatches, nodeSet, reteEvaluator); + collectFromLeftInput((LeftTuple) ((AccumulateContext) accctx).getResultLeftTuple(), internalMatches, nodeSet, reteEvaluator); } } else if ( peer.getFirstChild() != null ) { for (LeftTuple childLt = peer.getFirstChild(); childLt != null; childLt = childLt.getHandleNext()) { diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/TerminalNodeIterator.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/TerminalNodeIterator.java index 2d020ce444d..9b8866fe6a5 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/TerminalNodeIterator.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/iterators/TerminalNodeIterator.java @@ -1,29 +1,32 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.serialization.protobuf.iterators; import java.util.Map; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.TerminalNode; import org.drools.core.util.Iterator; import org.kie.api.KieBase; public class TerminalNodeIterator implements Iterator { - private RuleBase kBase; + private InternalRuleBase kBase; private TerminalNode[][] nodes; private int i = 0; @@ -34,7 +37,7 @@ public class TerminalNodeIterator implements Iterator { } private TerminalNodeIterator(KieBase kBase) { - this.kBase = (RuleBase)kBase; + this.kBase = (InternalRuleBase)kBase; Map rules = this.kBase.getReteooBuilder().getTerminalNodes(); nodes = rules.values().toArray( new TerminalNode[rules.size()][] ); } diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/KieModuleCache.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/KieModuleCache.java index cb6be033df3..25846f0e3c9 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/KieModuleCache.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/KieModuleCache.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // source: org/drools/compiler/kie/builder/impl/kmodulecache.proto diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/KieModuleCacheHelper.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/KieModuleCacheHelper.java index accafe889ed..e27e479a90f 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/KieModuleCacheHelper.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/KieModuleCacheHelper.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.kie; import java.io.ByteArrayOutputStream; @@ -26,7 +30,7 @@ import com.google.protobuf.ByteString; import com.google.protobuf.ExtensionRegistry; import com.google.protobuf.Message; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import org.drools.core.util.KeyStoreHelper; import org.drools.serialization.protobuf.kie.KieModuleCache.Header; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/MarshallingKieMetaInfoBuilder.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/MarshallingKieMetaInfoBuilder.java index d34b7786a6f..8d74729e0aa 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/MarshallingKieMetaInfoBuilder.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/kie/MarshallingKieMetaInfoBuilder.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.kie; import java.io.ByteArrayOutputStream; @@ -29,11 +33,11 @@ import org.drools.compiler.compiler.PackageRegistry; import org.drools.compiler.kie.builder.impl.InternalKieModule; import org.drools.compiler.kie.builder.impl.KieMetaInfoBuilder; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.factmodel.ClassDefinition; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.KieModuleMetaInfo; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.TypeMetaInfo; +import org.drools.base.rule.KieModuleMetaInfo; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.TypeMetaInfo; import org.kie.api.builder.model.KieModuleModel; import org.kie.api.definition.KiePackage; import org.kie.api.definition.rule.Rule; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ActivationKey.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ActivationKey.java index 4ceec7d268c..3e7ff44f53e 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ActivationKey.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ActivationKey.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import java.util.Arrays; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/IdentityPlaceholderResolverStrategy.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/IdentityPlaceholderResolverStrategy.java index 2b44abbef2e..41ed4f514d8 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/IdentityPlaceholderResolverStrategy.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/IdentityPlaceholderResolverStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import java.io.IOException; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/InternalMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/InternalMarshaller.java index 9ee0816eb45..cb1d8451c09 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/InternalMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/InternalMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import org.kie.api.marshalling.Marshaller; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/JavaSerializableResolverStrategy.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/JavaSerializableResolverStrategy.java index 858c8af82da..a5b46d8267c 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/JavaSerializableResolverStrategy.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/JavaSerializableResolverStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import java.io.ByteArrayInputStream; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/KieSessionInitializer.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/KieSessionInitializer.java index 6beb5ce7b47..7c335ab1dc5 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/KieSessionInitializer.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/KieSessionInitializer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import org.kie.api.runtime.KieSession; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/MarshallingConfigurationImpl.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/MarshallingConfigurationImpl.java index 0d59c1f608f..ccb5f46b49a 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/MarshallingConfigurationImpl.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/MarshallingConfigurationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import org.kie.api.marshalling.MarshallingConfiguration; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/MarshallingHelper.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/MarshallingHelper.java index ad439a665db..bbd31d15fd4 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/MarshallingHelper.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/MarshallingHelper.java @@ -1,21 +1,25 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.Tuple; @@ -31,10 +35,6 @@ public static ActivationKey createActivationKey( String pkgName, String ruleName return new ActivationKey( pkgName, ruleName, tuple ); } - public static ActivationKey createActivationKey( String pkgName, String ruleName) { - return new ActivationKey( pkgName, ruleName, null ); - } - protected static Object[] toArrayOfObject(long[] longs) { Object[] objects = new Object[longs.length]; for(int i = 0; i < longs.length; i++) { diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ObjectMarshallingStrategyStoreImpl.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ObjectMarshallingStrategyStoreImpl.java index b645562af9b..be1ac87f3a3 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ObjectMarshallingStrategyStoreImpl.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ObjectMarshallingStrategyStoreImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import java.util.HashSet; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/PersisterEnums.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/PersisterEnums.java index 83477ee877e..e0798a2dc34 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/PersisterEnums.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/PersisterEnums.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; public class PersisterEnums { diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshaller.java index 89a511ca387..ff92b0a5fe6 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshaller.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.serialization.protobuf.marshalling; import java.io.IOException; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshallerFactory.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshallerFactory.java index 70738ec69f9..8b0652790f1 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshallerFactory.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshallerFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.serialization.protobuf.marshalling; import org.kie.api.internal.utils.KieService; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshallerFactoryService.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshallerFactoryService.java index 2689ec7cea5..5a56f912172 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshallerFactoryService.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/ProcessMarshallerFactoryService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import org.kie.api.internal.utils.KieService; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/RightTupleKey.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/RightTupleKey.java index 1a5ea0e89ab..42e99d34308 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/RightTupleKey.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/RightTupleKey.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import org.drools.core.reteoo.Sink; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/RuleBaseNodes.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/RuleBaseNodes.java index c2b4eaa9db8..bd72d40cc49 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/RuleBaseNodes.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/marshalling/RuleBaseNodes.java @@ -1,26 +1,28 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.serialization.protobuf.marshalling; import java.util.HashMap; import java.util.Map; import org.drools.core.common.BaseNode; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.LeftTupleSource; import org.drools.core.reteoo.ObjectSink; @@ -31,13 +33,13 @@ import org.drools.core.reteoo.WindowNode; public class RuleBaseNodes { - public static Map getNodeMap(RuleBase kBase) { + public static Map getNodeMap(InternalRuleBase kBase) { Map nodes = new HashMap<>(); buildNodeMap( kBase, nodes ); return nodes; } - private static void buildNodeMap(RuleBase kBase, + private static void buildNodeMap(InternalRuleBase kBase, Map nodes) { for ( ObjectTypeNode sink : kBase.getRete().getObjectTypeNodes() ) { nodes.put( sink.getId(), @@ -48,9 +50,9 @@ private static void buildNodeMap(RuleBase kBase, } } - private static void addObjectSink(RuleBase kBase, - ObjectSink sink, - Map nodes) { + private static void addObjectSink(InternalRuleBase kBase, + ObjectSink sink, + Map nodes) { // we don't need to store alpha nodes, as they have no state to serialise if ( sink instanceof LeftTupleSource ) { LeftTupleSource node = (LeftTupleSource) sink; @@ -75,9 +77,9 @@ private static void addObjectSink(RuleBase kBase, } } - private static void addLeftTupleSink(RuleBase kBase, - LeftTupleSink sink, - Map nodes) { + private static void addLeftTupleSink(InternalRuleBase kBase, + LeftTupleSink sink, + Map nodes) { if ( sink instanceof LeftTupleSource ) { nodes.put( sink.getId(), (LeftTupleSource) sink ); diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/BehaviorJobContextTimerInputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/BehaviorJobContextTimerInputMarshaller.java index dfb52d18687..ee95c385c35 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/BehaviorJobContextTimerInputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/BehaviorJobContextTimerInputMarshaller.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.timers; import java.io.IOException; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/BehaviorJobContextTimerOutputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/BehaviorJobContextTimerOutputMarshaller.java index 2165b3698a3..2249314d2aa 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/BehaviorJobContextTimerOutputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/BehaviorJobContextTimerOutputMarshaller.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.timers; import java.io.IOException; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.marshalling.MarshallerWriteContext; import org.drools.serialization.protobuf.marshalling.PersisterEnums; import org.drools.core.rule.SlidingTimeWindow.BehaviorJobContext; @@ -35,7 +39,7 @@ public void write( JobContext jobCtx, MarshallerWriteContext outputCtx) throws I // write out SlidingTimeWindowContext SlidingTimeWindowContext slCtx = ( SlidingTimeWindowContext ) bjobCtx.behaviorContext; - EventFactHandle handle = slCtx.peek(); + DefaultEventHandle handle = slCtx.peek(); outputCtx.writeLong( handle.getId() ); } @@ -46,7 +50,7 @@ public ProtobufMessages.Timers.Timer serialize(JobContext jobCtx, MarshallerWrit // write out SlidingTimeWindowContext SlidingTimeWindowContext slCtx = ( SlidingTimeWindowContext ) bjobCtx.behaviorContext; - EventFactHandle handle = slCtx.peek(); + DefaultEventHandle handle = slCtx.peek(); return ProtobufMessages.Timers.Timer.newBuilder() .setType( ProtobufMessages.Timers.TimerType.BEHAVIOR ) diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/ExpireJobContextTimerInputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/ExpireJobContextTimerInputMarshaller.java index 1093d3b1424..73f7378283b 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/ExpireJobContextTimerInputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/ExpireJobContextTimerInputMarshaller.java @@ -1,35 +1,40 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.timers; -import java.io.IOException; - -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.impl.WorkingMemoryReteExpireAction; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.reteoo.ObjectTypeNode.ExpireJob; import org.drools.core.reteoo.ObjectTypeNode.ExpireJobContext; import org.drools.core.time.JobContext; -import org.drools.core.time.JobHandle; +import org.drools.base.time.JobHandle; import org.drools.core.time.TimerService; +import org.drools.core.time.impl.DefaultJobHandle; import org.drools.core.time.impl.PointInTimeTrigger; import org.drools.serialization.protobuf.ProtobufMarshallerReaderContext; import org.drools.serialization.protobuf.ProtobufMessages; import org.drools.serialization.protobuf.TimersInputMarshaller; +import java.io.IOException; + public class ExpireJobContextTimerInputMarshaller implements TimersInputMarshaller { private static final transient ExpireJob job = new ExpireJob(); @@ -42,7 +47,7 @@ public void read( ProtobufMarshallerReaderContext inCtx) throws IOException, TimerService clock = inCtx.getWorkingMemory().getTimerService(); - JobContext jobctx = new ExpireJobContext( new WorkingMemoryReteExpireAction( ( EventFactHandle ) factHandle ), inCtx.getWorkingMemory() ); + JobContext jobctx = new ExpireJobContext(new WorkingMemoryReteExpireAction( (DefaultEventHandle) factHandle ), inCtx.getWorkingMemory() ); JobHandle handle = clock.scheduleJob( job, jobctx, PointInTimeTrigger.createPointInTimeTrigger( nextTimeStamp, null ) ); @@ -57,12 +62,11 @@ public void deserialize( MarshallerReaderContext inCtx, ProtobufMessages.Timers. TimerService clock = inCtx.getWorkingMemory().getTimerService(); - JobContext jobctx = new ExpireJobContext( new WorkingMemoryReteExpireAction((EventFactHandle)factHandle), + JobContext jobctx = new ExpireJobContext( new WorkingMemoryReteExpireAction((DefaultEventHandle)factHandle), inCtx.getWorkingMemory() ); - JobHandle jobHandle = clock.scheduleJob( job, - jobctx, + DefaultJobHandle jobHandle = (DefaultJobHandle) clock.scheduleJob( job, jobctx, PointInTimeTrigger.createPointInTimeTrigger( expire.getNextFireTimestamp(), null ) ); jobctx.setJobHandle( jobHandle ); - ((EventFactHandle) factHandle).addJob(jobHandle); + ((DefaultEventHandle) factHandle).addJob(jobHandle); } } \ No newline at end of file diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/ExpireJobContextTimerOutputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/ExpireJobContextTimerOutputMarshaller.java index 7b87763d922..b24ab0a9210 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/ExpireJobContextTimerOutputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/ExpireJobContextTimerOutputMarshaller.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.timers; import java.io.IOException; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/TimerNodeTimerInputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/TimerNodeTimerInputMarshaller.java index 478539090dd..8cf12cc8f43 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/TimerNodeTimerInputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/TimerNodeTimerInputMarshaller.java @@ -1,23 +1,27 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.timers; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.marshalling.TupleKey; import org.drools.core.phreak.PhreakTimerNode; -import org.drools.core.time.Trigger; +import org.drools.base.time.Trigger; import org.drools.serialization.protobuf.PersisterHelper; import org.drools.serialization.protobuf.ProtobufInputMarshaller; import org.drools.serialization.protobuf.ProtobufMessages; diff --git a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/TimerNodeTimerOutputMarshaller.java b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/TimerNodeTimerOutputMarshaller.java index e1001ed4d16..500c8507032 100644 --- a/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/TimerNodeTimerOutputMarshaller.java +++ b/drools-serialization-protobuf/src/main/java/org/drools/serialization/protobuf/timers/TimerNodeTimerOutputMarshaller.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf.timers; import org.drools.core.marshalling.MarshallerWriteContext; diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/EventAccessorRestoreTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/EventAccessorRestoreTest.java index 065cfa98721..dacb7ca5c6d 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/EventAccessorRestoreTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/EventAccessorRestoreTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.EOFException; @@ -21,8 +25,8 @@ import java.io.IOException; import java.util.ArrayList; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.drools.mvel.CommonTestMethodBase; import org.junit.Before; import org.junit.Rule; diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/FactHandleMarshallingTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/FactHandleMarshallingTest.java index c3203a70bea..254f6beec3f 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/FactHandleMarshallingTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/FactHandleMarshallingTest.java @@ -1,35 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.ObjectInputStream; -import java.io.ObjectOutputStream; -import java.lang.reflect.Field; -import java.util.Collections; -import java.util.Date; - +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.rule.EntryPointId; import org.drools.core.SessionConfiguration; import org.drools.core.WorkingMemoryEntryPoint; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.common.EventFactHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.QueryElementFactHandle; -import org.drools.core.common.RuleBasePartitionId; import org.drools.core.impl.EnvironmentFactory; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.marshalling.MarshallerReaderContext; @@ -38,7 +34,6 @@ import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.Rete; import org.drools.core.reteoo.builder.NodeFactory; -import org.drools.core.rule.EntryPointId; import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; @@ -56,6 +51,14 @@ import org.kie.api.runtime.rule.RuleRuntime; import org.kie.internal.marshalling.MarshallerFactory; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.ObjectInputStream; +import java.lang.reflect.Field; +import java.util.Collections; +import java.util.Date; + import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; @@ -74,10 +77,10 @@ private InternalFactHandle createEventFactHandle(StatefulKnowledgeSessionImpl wm NodeFactory nFacotry = CoreComponentFactory.get().getNodeFactoryService(); RuleBasePartitionId partionId = RuleBasePartitionId.MAIN_PARTITION; - EntryPointNode entryPointNode = nFacotry.buildEntryPointNode(1, partionId, false, rete , EntryPointId.DEFAULT); + EntryPointNode entryPointNode = nFacotry.buildEntryPointNode(1, partionId, rete , EntryPointId.DEFAULT); WorkingMemoryEntryPoint wmEntryPoint = new NamedEntryPoint( EntryPointId.DEFAULT, entryPointNode, wm); - EventFactHandle factHandle = new EventFactHandle(1, new Person(),0, (new Date()).getTime(), 0, wmEntryPoint); + DefaultEventHandle factHandle = new DefaultEventHandle(1, new Person(), 0, (new Date()).getTime(), 0, wmEntryPoint); return factHandle; } @@ -144,12 +147,10 @@ private static InternalFactHandle readFactHandle( MarshallerReaderContext contex long startTimeStamp = 0; long duration = 0; boolean expired = false; - long activationsCount = 0; if (type == 2) { startTimeStamp = context.readLong(); duration = context.readLong(); expired = context.readBoolean(); - activationsCount = context.readLong(); } int strategyIndex = context.readInt(); @@ -210,10 +211,9 @@ else if (strategyIndex == -2) { break; } case 2: { - handle = new EventFactHandle( id, object, recency, startTimeStamp, duration, - (WorkingMemoryEntryPoint) entryPoint ); - ( (EventFactHandle) handle ).setExpired( expired ); - ( (EventFactHandle) handle ).setActivationsCount( activationsCount ); + handle = new DefaultEventHandle(id, object, recency, startTimeStamp, duration, + (WorkingMemoryEntryPoint) entryPoint ); + ( (DefaultEventHandle) handle ).setExpired(expired); break; } default: { diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshalledInternalMatchSortTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshalledInternalMatchSortTest.java index fd1a73976d4..00d7c8f8b9f 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshalledInternalMatchSortTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshalledInternalMatchSortTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.IOException; @@ -22,7 +26,7 @@ import org.apache.commons.lang3.StringUtils; import org.assertj.core.util.Lists; import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.reteoo.Tuple; import org.junit.Test; diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshallerTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshallerTest.java index 1683ab9fa13..6b2a95f6e49 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshallerTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshallerTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.Serializable; diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshallingTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshallingTest.java index 8ca603f87f1..9587944533f 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshallingTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/MarshallingTest.java @@ -1,48 +1,32 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.ObjectInputStream; -import java.io.ObjectOutputStream; -import java.io.Serializable; -import java.net.URL; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.jar.JarEntry; -import java.util.jar.JarInputStream; - +import org.drools.base.base.ValueResolver; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.drools.core.ClockType; import org.drools.core.SessionConfiguration; -import org.drools.core.base.ClassObjectType; -import org.drools.core.common.BaseNode; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; -import org.drools.core.common.InternalAgenda; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ClassObjectType; +import org.drools.core.common.*; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.impl.EnvironmentFactory; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.marshalling.ClassObjectMarshallingStrategyAcceptor; @@ -51,9 +35,9 @@ import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.RuleTerminalNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.MapBackedClassLoader; -import org.drools.core.rule.consequence.Consequence; -import org.drools.core.rule.consequence.KnowledgeHelper; +import org.drools.base.rule.MapBackedClassLoader; +import org.drools.base.rule.consequence.Consequence; +import org.drools.base.rule.consequence.ConsequenceContext; import org.drools.core.time.impl.DurationTimer; import org.drools.core.time.impl.PseudoClockScheduler; import org.drools.core.util.KeyStoreConstants; @@ -61,15 +45,7 @@ import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.mvel.CommonTestMethodBase; -import org.drools.mvel.compiler.Address; -import org.drools.mvel.compiler.Cell; -import org.drools.mvel.compiler.Cheese; -import org.drools.mvel.compiler.FactA; -import org.drools.mvel.compiler.FactB; -import org.drools.mvel.compiler.FactC; -import org.drools.mvel.compiler.Message; -import org.drools.mvel.compiler.Person; -import org.drools.mvel.compiler.Primitives; +import org.drools.mvel.compiler.*; import org.drools.mvel.integrationtests.IteratorToList; import org.drools.serialization.protobuf.marshalling.IdentityPlaceholderResolverStrategy; import org.drools.serialization.protobuf.marshalling.RuleBaseNodes; @@ -87,11 +63,7 @@ import org.kie.api.marshalling.Marshaller; import org.kie.api.marshalling.ObjectMarshallingStrategy; import org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor; -import org.kie.api.runtime.Environment; -import org.kie.api.runtime.EnvironmentName; -import org.kie.api.runtime.Globals; -import org.kie.api.runtime.KieSession; -import org.kie.api.runtime.KieSessionConfiguration; +import org.kie.api.runtime.*; import org.kie.api.runtime.conf.ClockTypeOption; import org.kie.api.runtime.conf.TimedRuleExecutionOption; import org.kie.api.runtime.conf.TimerJobFactoryOption; @@ -102,6 +74,14 @@ import org.kie.internal.marshalling.MarshallerFactory; import org.kie.internal.utils.KieHelper; +import java.io.*; +import java.net.URL; +import java.util.*; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.TimeUnit; +import java.util.jar.JarEntry; +import java.util.jar.JarInputStream; + import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; import static org.drools.serialization.protobuf.SerializationHelper.getSerialisedStatefulKnowledgeSession; @@ -961,7 +941,7 @@ public void testDynamicEmptyRule() throws Exception { rule2 += " list.add( \"fired2\" );\n"; rule2 += "end"; - InternalKnowledgeBase kBase = (InternalKnowledgeBase) loadKnowledgeBaseFromString( rule1 ); + InternalKnowledgeBase kBase = (InternalKnowledgeBase) loadKnowledgeBaseFromString(rule1); // Make sure the rete node map is created correctly Map nodes = RuleBaseNodes.getNodeMap(kBase); @@ -1051,7 +1031,7 @@ public void testSingleRuleSingleJoinNodePattern() throws Exception { KieBase kBase = loadKnowledgeBaseFromString( rule ); // Make sure the rete node map is created correctly - Map nodes = RuleBaseNodes.getNodeMap( (InternalKnowledgeBase) kBase ); + Map nodes = RuleBaseNodes.getNodeMap( (InternalKnowledgeBase) kBase); assertThat(nodes.size()).isEqualTo(5); assertThat(((ClassObjectType) ((ObjectTypeNode) nodes.get(3)).getObjectType()).getClassType().getSimpleName()).isEqualTo("Cheese"); @@ -2023,11 +2003,11 @@ public void testMarshallEvents() throws Exception { ksession.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); ksession.insert( new B() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); ksession.fireAllRules(); assertThat(ksession.getObjects().size()).isEqualTo(2); @@ -2046,14 +2026,15 @@ public void testScheduledActivation() { final List fired = new ArrayList(); rule.setConsequence( new Consequence() { - public void evaluate(KnowledgeHelper knowledgeHelper, - ReteEvaluator reteEvaluator) throws Exception { - fired.add( "a" ); - } - + @Override public String getName() { return "default"; } + + @Override + public void evaluate(ConsequenceContext knowledgeHelper, ValueResolver valueResolver) throws Exception { + fired.add( "a" ); + } } ); rule.setTimer( new DurationTimer( 10000 ) ); @@ -2164,21 +2145,21 @@ public void testMarshallEntryPointsWithExpires() throws Exception { EntryPoint aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); EntryPoint bep = ksession.getEntryPoint( "b-ep" ); bep.insert( new B() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); EntryPoint cep = ksession.getEntryPoint( "c-ep" ); cep.insert( new C() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); ksession.fireAllRules(); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); assertThat(list.size()).isEqualTo(3); @@ -2191,14 +2172,14 @@ public void testMarshallEntryPointsWithExpires() throws Exception { cep = ksession.getEntryPoint( "c-ep" ); assertThat(cep.getFactHandles().size()).isEqualTo(1); - PseudoClockScheduler timeService = (PseudoClockScheduler) ksession.getSessionClock(); + PseudoClockScheduler timeService = ksession.getSessionClock(); timeService.advanceTime( 11, TimeUnit.SECONDS ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); ksession.fireAllRules(); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); aep = ksession.getEntryPoint( "a-ep" ); assertThat(aep.getFactHandles().size()).isEqualTo(0); @@ -2249,16 +2230,16 @@ public void testMarshallEntryPointsWithNot() throws Exception { EntryPoint aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); PseudoClockScheduler timeService = (PseudoClockScheduler) ksession.getSessionClock(); timeService.advanceTime( 3, TimeUnit.SECONDS ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); ksession.fireAllRules(); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); assertThat(list.size()).isEqualTo(0); } @@ -2301,37 +2282,37 @@ public void testMarshallEntryPointsWithSlidingTimeWindow() throws Exception { EntryPoint aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); list.clear(); ksession.fireAllRules(); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); assertThat(((List) list.get(0)).size()).isEqualTo(2); PseudoClockScheduler timeService = (PseudoClockScheduler) ksession.getSessionClock(); timeService.advanceTime( 15, TimeUnit.SECONDS ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); list.clear(); ksession.fireAllRules(); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); assertThat(((List) list.get(0)).size()).isEqualTo(4); timeService = (PseudoClockScheduler) ksession.getSessionClock(); timeService.advanceTime( 20, TimeUnit.SECONDS ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); list.clear(); ksession.fireAllRules(); @@ -2376,28 +2357,28 @@ public void testMarshallEntryPointsWithSlidingLengthWindow() throws Exception { EntryPoint aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); list.clear(); ksession.fireAllRules(); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); assertThat(((List) list.get(0)).size()).isEqualTo(2); aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); aep = ksession.getEntryPoint( "a-ep" ); aep.insert( new A() ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); list.clear(); ksession.fireAllRules(); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); assertThat(((List) list.get(0)).size()).isEqualTo(3); } @@ -2411,7 +2392,7 @@ public void testMarshalWithProtoBuf() throws Exception { final Person bob = new Person( "bob" ); ksession.insert( bob ); - ksession = marsallStatefulKnowledgeSession( ksession ); + ksession = marshallStatefulKnowledgeSession( ksession ); assertThat(ksession.getFactCount()).isEqualTo(1); assertThat(ksession.getObjects().iterator().next()).isEqualTo(bob); @@ -2431,15 +2412,13 @@ public void testMarshalWithProtoBuf() throws Exception { assertThat(facts.size()).isEqualTo(2); } - private KieSession marsallStatefulKnowledgeSession(KieSession ksession) throws IOException, - ClassNotFoundException { + private KieSession marshallStatefulKnowledgeSession(KieSession ksession) throws IOException, ClassNotFoundException { Globals globals = ksession.getGlobals(); KieBase kbase = ksession.getKieBase(); ByteArrayOutputStream out = new ByteArrayOutputStream(); - MarshallerFactory.newMarshaller( kbase ).marshall( out, - ksession ); + MarshallerFactory.newMarshaller( kbase ).marshall( out, ksession ); KieSessionConfiguration ksconf = RuleBaseFactory.newKnowledgeSessionConfiguration(); ksconf.setOption( TimerJobFactoryOption.get("trackable") ); @@ -2552,7 +2531,7 @@ public void testMarshallWithTimedRule() { clock.advanceTime( 4, TimeUnit.SECONDS ); assertThat(ksession.getFactCount()).isEqualTo(2); - ksession.fireAllRules(); + assertThat(ksession.fireAllRules()).isEqualTo(1); assertThat(ksession.getFactCount()).isEqualTo(0); } @@ -2852,4 +2831,44 @@ public void testDisposeAfterMarshall() throws InterruptedException, IOException // ** The thread exits if we call t.interrupt(); t.join(); } + + @Test + public void cepActivation_shouldFireActivation() throws Exception { + // DROOLS-7531 + String str = + "import " + getClass().getCanonicalName() + ".*\n" + + "declare A\n" + + " @role( event )\n" + + " @expires( 10m )\n" + + "end\n" + + "declare B\n" + + " @role( event )\n" + + " @expires( 10m )\n" + + "end\n" + + "rule one\n" + + "when\n" + + " $a : A()\n" + + " not ( B(this after[0s, 5s] $a) )\n" + + "then\n" + + " System.out.println(\"Fired!\");\n" + + "end\n"; + + KieBaseConfiguration config = RuleBaseFactory.newKnowledgeBaseConfiguration(); + config.setOption(EventProcessingOption.STREAM); + + KieBase kBase = loadKnowledgeBaseFromString(config, str); + + KieSessionConfiguration ksconf = RuleBaseFactory.newKnowledgeSessionConfiguration(); + ksconf.setOption(ClockTypeOption.PSEUDO); + KieSession ksession = kBase.newKieSession(ksconf, null); + PseudoClockScheduler sessionClock = (PseudoClockScheduler) ksession.getSessionClock(); + + ksession.insert(new A()); + sessionClock.advanceTime(6, TimeUnit.SECONDS); + + ksession = marshallStatefulKnowledgeSession(ksession); + + int fired = ksession.fireAllRules(); + assertThat(fired).isEqualTo(1); + } } diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/ObjectMarshallingStrategyStoreTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/ObjectMarshallingStrategyStoreTest.java index ebe6631f942..754043397af 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/ObjectMarshallingStrategyStoreTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/ObjectMarshallingStrategyStoreTest.java @@ -1,15 +1,20 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ package org.drools.serialization.protobuf; @@ -86,7 +91,7 @@ public void testThrowErrorWhenExistMultipleMarshallingStrategiesWithSameName() t kbconf.setOption(EventProcessingOption.STREAM); - InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(RuleBaseFactory.newRuleBase( kbconf )); + InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(RuleBaseFactory.newRuleBase(kbconf)); KieSession ks = kbase.newKieSession( ksc, env); @@ -127,7 +132,7 @@ public void testMultipleObjectMarshallingStrategiesOfTheSameClassWithDifferentNa kbconf.setOption(EventProcessingOption.STREAM); - InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(RuleBaseFactory.newRuleBase( kbconf )); + InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(RuleBaseFactory.newRuleBase(kbconf)); KieSession ks = kbase.newKieSession( ksc, env); diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/OldOutputMarshallerMethods.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/OldOutputMarshallerMethods.java index c463d6e050e..9218606dd00 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/OldOutputMarshallerMethods.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/OldOutputMarshallerMethods.java @@ -1,32 +1,36 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; -import java.io.IOException; -import java.io.ObjectOutputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Map; - -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.marshalling.MarshallerWriteContext; import org.drools.core.process.WorkItem; import org.kie.api.marshalling.ObjectMarshallingStrategy; import org.kie.api.marshalling.ObjectMarshallingStrategyStore; +import java.io.IOException; +import java.io.ObjectOutputStream; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Map; + public class OldOutputMarshallerMethods { // Changed with JBRULES-3257 @@ -76,11 +80,10 @@ public static void writeFactHandle_v1(MarshallerWriteContext context, if ( type == 2) { // is event - EventFactHandle efh = ( EventFactHandle ) handle; + DefaultEventHandle efh = (DefaultEventHandle) handle; stream.writeLong( efh.getStartTimestamp() ); stream.writeLong( efh.getDuration() ); stream.writeBoolean( efh.isExpired() ); - stream.writeLong( efh.getActivationsCount() ); } //context.out.println( "Object : int:" + handle.getId() + " long:" + handle.getRecency() ); diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/ProtobufOutputMarshallerTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/ProtobufOutputMarshallerTest.java index 6fe10e8d2f8..987e6148471 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/ProtobufOutputMarshallerTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/ProtobufOutputMarshallerTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.util.ArrayList; diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/QueryTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/QueryTest.java index 3d8727fce15..fbf4b1ba491 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/QueryTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/QueryTest.java @@ -1,17 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ + * 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. + */ package org.drools.serialization.protobuf; import java.util.Arrays; diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/SerializationHelper.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/SerializationHelper.java index e67ca66031d..dee77789feb 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/SerializationHelper.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/SerializationHelper.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.ByteArrayInputStream; diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/TruthMaintenanceTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/TruthMaintenanceTest.java index f4244df8066..fe63199cacf 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/TruthMaintenanceTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/TruthMaintenanceTest.java @@ -1,25 +1,23 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - import org.drools.core.ClassObjectFilter; import org.drools.core.common.EqualityKey; import org.drools.core.common.InternalAgenda; @@ -46,6 +44,12 @@ import org.kie.internal.builder.KnowledgeBuilderFactory; import org.kie.internal.io.ResourceFactory; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; import static org.drools.serialization.protobuf.SerializationHelper.getSerialisedStatefulKnowledgeSession; @@ -702,20 +706,16 @@ public void testLogicalInsertionsModifySameRuleGivesDifferentLogicalInsertion() kbase.addPackages( pkgs ); KieSession session = createKnowledgeSession(kbase); try { - Sensor sensor1 = new Sensor( 100, - 0 ); + Sensor sensor1 = new Sensor( 100, 0 ); FactHandle sensor1Handle = session.insert( sensor1 ); - Sensor sensor2 = new Sensor( 200, - 0 ); + Sensor sensor2 = new Sensor( 200, 0 ); FactHandle sensor2Handle = session.insert( sensor2 ); - Sensor sensor3 = new Sensor( 200, - 0 ); + Sensor sensor3 = new Sensor( 200, 0 ); FactHandle sensor3Handle = session.insert( sensor3 ); session.fireAllRules(); - session = getSerialisedStatefulKnowledgeSession( session, - true ); + session = getSerialisedStatefulKnowledgeSession( session, true ); List temperatureList = new ArrayList( session.getObjects( new ClassObjectFilter( Integer.class ) ) ); assertThat(temperatureList.contains(Integer.valueOf(100))).isTrue(); @@ -726,8 +726,7 @@ public void testLogicalInsertionsModifySameRuleGivesDifferentLogicalInsertion() sensor1Handle = getFactHandle( sensor1Handle, session ); session.update( sensor1Handle, sensor1 ); - session = getSerialisedStatefulKnowledgeSession( session, - true ); + session = getSerialisedStatefulKnowledgeSession( session, true ); session.fireAllRules(); temperatureList = new ArrayList( session.getObjects( new ClassObjectFilter( Integer.class ) ) ); @@ -744,20 +743,18 @@ public InternalFactHandle getFactHandle(FactHandle factHandle, StatefulKnowledgeSessionImpl session) { Map handles = new HashMap<>(); for ( FactHandle fh : session.getFactHandles() ) { - handles.put( ((InternalFactHandle) fh).getId(), - fh ); + handles.put( fh.getId(), fh ); } - return (InternalFactHandle) handles.get( ((InternalFactHandle) factHandle).getId() ); + return (InternalFactHandle) handles.get( factHandle.getId() ); } public InternalFactHandle getFactHandle(FactHandle factHandle, KieSession ksession) { Map handles = new HashMap<>(); for ( FactHandle fh : ksession.getFactHandles() ) { - handles.put( ((InternalFactHandle) fh).getId(), - fh ); + handles.put( fh.getId(), fh ); } - return (InternalFactHandle) handles.get( ((InternalFactHandle) factHandle).getId() ); + return (InternalFactHandle) handles.get( factHandle.getId() ); } } diff --git a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/UnmarshallingTest.java b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/UnmarshallingTest.java index cc996ed63b2..cfb2ca99a71 100644 --- a/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/UnmarshallingTest.java +++ b/drools-serialization-protobuf/src/test/java/org/drools/serialization/protobuf/UnmarshallingTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.serialization.protobuf; import java.io.ByteArrayInputStream; @@ -99,7 +103,7 @@ private KieBase initializeKnowledgeBase( String rule ) { } KieBaseConfiguration config = RuleBaseFactory.newKnowledgeBaseConfiguration(); config.setOption( EventProcessingOption.STREAM ); - InternalKnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(RuleBaseFactory.newRuleBase( config )); + InternalKnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(RuleBaseFactory.newRuleBase(config)); knowledgeBase.addPackages( kbuilder.getKnowledgePackages() ); return knowledgeBase; diff --git a/drools-templates/pom.xml b/drools-templates/pom.xml index 772373c675f..d6152f764d9 100644 --- a/drools-templates/pom.xml +++ b/drools-templates/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -32,20 +52,16 @@ - org.drools - drools-core + org.kie + kie-api org.drools - drools-compiler - - - org.kie - kie-api + drools-util - org.kie - kie-internal + org.slf4j + slf4j-api org.mvel diff --git a/drools-templates/src/main/java/org/drools/template/DataProvider.java b/drools-templates/src/main/java/org/drools/template/DataProvider.java index 209100aa7bf..f15850460f1 100644 --- a/drools-templates/src/main/java/org/drools/template/DataProvider.java +++ b/drools-templates/src/main/java/org/drools/template/DataProvider.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template; public interface DataProvider { diff --git a/drools-templates/src/main/java/org/drools/template/DataProviderCompiler.java b/drools-templates/src/main/java/org/drools/template/DataProviderCompiler.java index dd51ae49fb4..0921d41b8e8 100644 --- a/drools-templates/src/main/java/org/drools/template/DataProviderCompiler.java +++ b/drools-templates/src/main/java/org/drools/template/DataProviderCompiler.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ package org.drools.template; diff --git a/drools-templates/src/main/java/org/drools/template/ObjectDataCompiler.java b/drools-templates/src/main/java/org/drools/template/ObjectDataCompiler.java index 2bd68832946..6b2685267d0 100644 --- a/drools-templates/src/main/java/org/drools/template/ObjectDataCompiler.java +++ b/drools-templates/src/main/java/org/drools/template/ObjectDataCompiler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template; import org.drools.template.objects.ObjectDataProvider; diff --git a/drools-templates/src/main/java/org/drools/template/jdbc/ResultSetGenerator.java b/drools-templates/src/main/java/org/drools/template/jdbc/ResultSetGenerator.java index fa2352cef7a..471e871a32c 100644 --- a/drools-templates/src/main/java/org/drools/template/jdbc/ResultSetGenerator.java +++ b/drools-templates/src/main/java/org/drools/template/jdbc/ResultSetGenerator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.jdbc; import org.drools.template.parser.DataListener; diff --git a/drools-templates/src/main/java/org/drools/template/model/AttributedDRLElement.java b/drools-templates/src/main/java/org/drools/template/model/AttributedDRLElement.java index 6ef37517a94..5fedb8fd09b 100644 --- a/drools-templates/src/main/java/org/drools/template/model/AttributedDRLElement.java +++ b/drools-templates/src/main/java/org/drools/template/model/AttributedDRLElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; import java.util.HashMap; diff --git a/drools-templates/src/main/java/org/drools/template/model/Condition.java b/drools-templates/src/main/java/org/drools/template/model/Condition.java index 639b6b7bbe4..8bec20084ca 100644 --- a/drools-templates/src/main/java/org/drools/template/model/Condition.java +++ b/drools-templates/src/main/java/org/drools/template/model/Condition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; /** diff --git a/drools-templates/src/main/java/org/drools/template/model/Consequence.java b/drools-templates/src/main/java/org/drools/template/model/Consequence.java index 620cf52c1bf..431dabab13d 100644 --- a/drools-templates/src/main/java/org/drools/template/model/Consequence.java +++ b/drools-templates/src/main/java/org/drools/template/model/Consequence.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; /** @@ -27,7 +29,7 @@ public class Consequence extends DRLElement private String _snippet; /** - * @param _snippet The _snippet to set. + * @param snippet The snippet to set. */ public void setSnippet(final String snippet) { this._snippet = snippet; diff --git a/drools-templates/src/main/java/org/drools/template/model/DRLElement.java b/drools-templates/src/main/java/org/drools/template/model/DRLElement.java index 3c301bb4023..52e15ab5284 100644 --- a/drools-templates/src/main/java/org/drools/template/model/DRLElement.java +++ b/drools-templates/src/main/java/org/drools/template/model/DRLElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; /** diff --git a/drools-templates/src/main/java/org/drools/template/model/DRLJavaEmitter.java b/drools-templates/src/main/java/org/drools/template/model/DRLJavaEmitter.java index fb8e4569204..2527d1d44d9 100644 --- a/drools-templates/src/main/java/org/drools/template/model/DRLJavaEmitter.java +++ b/drools-templates/src/main/java/org/drools/template/model/DRLJavaEmitter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; /** diff --git a/drools-templates/src/main/java/org/drools/template/model/DRLOutput.java b/drools-templates/src/main/java/org/drools/template/model/DRLOutput.java index a9d326ff6ac..69a1a497f7d 100644 --- a/drools-templates/src/main/java/org/drools/template/model/DRLOutput.java +++ b/drools-templates/src/main/java/org/drools/template/model/DRLOutput.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; import java.io.StringWriter; diff --git a/drools-templates/src/main/java/org/drools/template/model/DeclaredType.java b/drools-templates/src/main/java/org/drools/template/model/DeclaredType.java index 2d3facc0f75..61826fafe43 100644 --- a/drools-templates/src/main/java/org/drools/template/model/DeclaredType.java +++ b/drools-templates/src/main/java/org/drools/template/model/DeclaredType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; /** diff --git a/drools-templates/src/main/java/org/drools/template/model/Functions.java b/drools-templates/src/main/java/org/drools/template/model/Functions.java index b31b328360f..9f34b1747ad 100644 --- a/drools-templates/src/main/java/org/drools/template/model/Functions.java +++ b/drools-templates/src/main/java/org/drools/template/model/Functions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; /** diff --git a/drools-templates/src/main/java/org/drools/template/model/Global.java b/drools-templates/src/main/java/org/drools/template/model/Global.java index f1593576457..95d9b3726b6 100644 --- a/drools-templates/src/main/java/org/drools/template/model/Global.java +++ b/drools-templates/src/main/java/org/drools/template/model/Global.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; /** @@ -42,14 +44,14 @@ public String getIdentifier() { } /** - * @param className The className to set. + * @param clazz The className to set. */ public void setClassName(final String clazz) { this.className = clazz; } /** - * @param varName The varName to set. + * @param namez The identifier to set. */ public void setIdentifier(final String namez) { this.identifier = namez; diff --git a/drools-templates/src/main/java/org/drools/template/model/Import.java b/drools-templates/src/main/java/org/drools/template/model/Import.java index d94bb018b2a..f4c03e2bbd9 100644 --- a/drools-templates/src/main/java/org/drools/template/model/Import.java +++ b/drools-templates/src/main/java/org/drools/template/model/Import.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; /** @@ -34,7 +36,7 @@ public String getClassName() { } /** - * @param className The className to set. + * @param clazz The className to set. */ public void setClassName(final String clazz) { this.className = clazz; diff --git a/drools-templates/src/main/java/org/drools/template/model/Package.java b/drools-templates/src/main/java/org/drools/template/model/Package.java index 54c9a15894b..7570aea1d40 100644 --- a/drools-templates/src/main/java/org/drools/template/model/Package.java +++ b/drools-templates/src/main/java/org/drools/template/model/Package.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; import java.util.LinkedList; diff --git a/drools-templates/src/main/java/org/drools/template/model/Queries.java b/drools-templates/src/main/java/org/drools/template/model/Queries.java index e78a9aead52..f7e3296720e 100644 --- a/drools-templates/src/main/java/org/drools/template/model/Queries.java +++ b/drools-templates/src/main/java/org/drools/template/model/Queries.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; /** diff --git a/drools-templates/src/main/java/org/drools/template/model/Rule.java b/drools-templates/src/main/java/org/drools/template/model/Rule.java index 127e6523316..ac0250b7799 100644 --- a/drools-templates/src/main/java/org/drools/template/model/Rule.java +++ b/drools-templates/src/main/java/org/drools/template/model/Rule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; import java.util.LinkedList; diff --git a/drools-templates/src/main/java/org/drools/template/model/SnippetBuilder.java b/drools-templates/src/main/java/org/drools/template/model/SnippetBuilder.java index 9f83341a3ef..39a1cc8886d 100644 --- a/drools-templates/src/main/java/org/drools/template/model/SnippetBuilder.java +++ b/drools-templates/src/main/java/org/drools/template/model/SnippetBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; import java.util.HashMap; diff --git a/drools-templates/src/main/java/org/drools/template/objects/ArrayDataProvider.java b/drools-templates/src/main/java/org/drools/template/objects/ArrayDataProvider.java index f61533cdaa1..1047e8d4e0d 100644 --- a/drools-templates/src/main/java/org/drools/template/objects/ArrayDataProvider.java +++ b/drools-templates/src/main/java/org/drools/template/objects/ArrayDataProvider.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.objects; import org.drools.template.DataProvider; diff --git a/drools-templates/src/main/java/org/drools/template/objects/ObjectDataProvider.java b/drools-templates/src/main/java/org/drools/template/objects/ObjectDataProvider.java index 86f8547a048..0a8898b1b81 100644 --- a/drools-templates/src/main/java/org/drools/template/objects/ObjectDataProvider.java +++ b/drools-templates/src/main/java/org/drools/template/objects/ObjectDataProvider.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.objects; import org.drools.template.DataProvider; diff --git a/drools-templates/src/main/java/org/drools/template/parser/AbstractCell.java b/drools-templates/src/main/java/org/drools/template/parser/AbstractCell.java index a4d08ea485e..3db648af9de 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/AbstractCell.java +++ b/drools-templates/src/main/java/org/drools/template/parser/AbstractCell.java @@ -1,25 +1,25 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.template.parser; import java.util.Map; -import org.kie.api.runtime.KieSession; - public abstract class AbstractCell implements Cell { protected final Row row; @@ -53,10 +53,6 @@ public void addValue(Map vars) { vars.put(column.getName(), value); } - public void insert(KieSession session) { - session.insert(this); - } - public void setIndex(int i) { index = i; } diff --git a/drools-templates/src/main/java/org/drools/template/parser/AbstractColumn.java b/drools-templates/src/main/java/org/drools/template/parser/AbstractColumn.java index e11780267f1..cc3eba49239 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/AbstractColumn.java +++ b/drools-templates/src/main/java/org/drools/template/parser/AbstractColumn.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import org.drools.util.StringUtils; diff --git a/drools-templates/src/main/java/org/drools/template/parser/ArrayCell.java b/drools-templates/src/main/java/org/drools/template/parser/ArrayCell.java index 8de53a951c9..80c2080b253 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/ArrayCell.java +++ b/drools-templates/src/main/java/org/drools/template/parser/ArrayCell.java @@ -1,21 +1,22 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - /** + * 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. + */ +/** * Cell containing an array of values */ package org.drools.template.parser; @@ -23,7 +24,6 @@ import java.util.Map; import org.drools.util.StringUtils; -import org.kie.api.runtime.KieSession; public class ArrayCell extends AbstractCell { @@ -39,16 +39,6 @@ public void addValue(Map vars) { } } - public void insert(KieSession session) { - session.insert(this); - for (int i = 0; i < values.length; i++) { - Cell cell = ((ArrayColumn) column).getType().createCell(row); - cell.setValue(values[i]); - cell.setIndex(i); - cell.insert(session); - } - } - public void setIndex(int i) { throw new RuntimeException("You cannot call setQueueIndex on an ArrayCell"); } diff --git a/drools-templates/src/main/java/org/drools/template/parser/ArrayColumn.java b/drools-templates/src/main/java/org/drools/template/parser/ArrayColumn.java index f4a1d479a77..2bc8ca53035 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/ArrayColumn.java +++ b/drools-templates/src/main/java/org/drools/template/parser/ArrayColumn.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import org.drools.util.StringUtils; diff --git a/drools-templates/src/main/java/org/drools/template/parser/BooleanCell.java b/drools-templates/src/main/java/org/drools/template/parser/BooleanCell.java index bdc97ac9dad..01b9f3e8c43 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/BooleanCell.java +++ b/drools-templates/src/main/java/org/drools/template/parser/BooleanCell.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** diff --git a/drools-templates/src/main/java/org/drools/template/parser/BooleanColumn.java b/drools-templates/src/main/java/org/drools/template/parser/BooleanColumn.java index aa6e1d2ec0e..746c89a1bbc 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/BooleanColumn.java +++ b/drools-templates/src/main/java/org/drools/template/parser/BooleanColumn.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** diff --git a/drools-templates/src/main/java/org/drools/template/parser/Cell.java b/drools-templates/src/main/java/org/drools/template/parser/Cell.java index 47ac44678f8..48a66022a84 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/Cell.java +++ b/drools-templates/src/main/java/org/drools/template/parser/Cell.java @@ -1,25 +1,25 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import java.util.Map; -import org.kie.api.runtime.KieSession; - /** * A cell in a decision table */ @@ -34,8 +34,6 @@ public interface Cell { void addValue(Map vars); - void insert(KieSession session); - void setIndex(int i); int getIndex(); diff --git a/drools-templates/src/main/java/org/drools/template/parser/Column.java b/drools-templates/src/main/java/org/drools/template/parser/Column.java index 82004f61f29..5924c6fbb28 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/Column.java +++ b/drools-templates/src/main/java/org/drools/template/parser/Column.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** diff --git a/drools-templates/src/main/java/org/drools/template/parser/ColumnFactory.java b/drools-templates/src/main/java/org/drools/template/parser/ColumnFactory.java index fcbf855ba6f..0e4ec1da66a 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/ColumnFactory.java +++ b/drools-templates/src/main/java/org/drools/template/parser/ColumnFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import org.slf4j.Logger; diff --git a/drools-templates/src/main/java/org/drools/template/parser/DataListener.java b/drools-templates/src/main/java/org/drools/template/parser/DataListener.java index 903e201100d..abd3fc84de2 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/DataListener.java +++ b/drools-templates/src/main/java/org/drools/template/parser/DataListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** @@ -21,19 +23,19 @@ */ public interface DataListener { - public static final int NON_MERGED = -1; + int NON_MERGED = -1; /** * Start a new sheet * * @param name the sheet name */ - public void startSheet(String name); + void startSheet(String name); /** * Come to the end of the sheet. */ - public void finishSheet(); + void finishSheet(); /** * Enter a new row. @@ -41,8 +43,8 @@ public interface DataListener { * @param rowNumber * @param columns */ - public void newRow(int rowNumber, - int columns); + void newRow(int rowNumber, + int columns); /** * Enter a new cell. @@ -50,14 +52,14 @@ public void newRow(int rowNumber, * It will just confuse the parser. If all the trailing cells are empty, just * stop raising events. * - * @param row the row number - * @param column the column alpha character label - * @param value the string value of the cell - * @param mergedCol the "source" column if it is merged. -1 otherwise. + * @param row the row number + * @param column the column alpha character label + * @param value the string value of the cell + * @param mergedColStart the "source" column if it is merged. -1 otherwise. */ - public void newCell(int row, - int column, - String value, - int mergedColStart); + void newCell(int row, + int column, + String value, + int mergedColStart); } diff --git a/drools-templates/src/main/java/org/drools/template/parser/DecisionTableParseException.java b/drools-templates/src/main/java/org/drools/template/parser/DecisionTableParseException.java index 0bf2d9e740e..380f5afee46 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/DecisionTableParseException.java +++ b/drools-templates/src/main/java/org/drools/template/parser/DecisionTableParseException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.template.parser; import org.kie.api.io.Resource; diff --git a/drools-templates/src/main/java/org/drools/template/parser/DefaultGenerator.java b/drools-templates/src/main/java/org/drools/template/parser/DefaultGenerator.java index 94714d06ad5..4146bfa9699 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/DefaultGenerator.java +++ b/drools-templates/src/main/java/org/drools/template/parser/DefaultGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import java.io.IOException; diff --git a/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateColumn.java b/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateColumn.java index 1313e0d46cf..c9976dbb815 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateColumn.java +++ b/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateColumn.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import org.drools.util.StringUtils; diff --git a/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateContainer.java b/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateContainer.java index a1734659eeb..70707929df3 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateContainer.java +++ b/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import org.drools.util.IoUtils; diff --git a/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateRuleBase.java b/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateRuleBase.java deleted file mode 100644 index 8b8c041b3d3..00000000000 --- a/drools-templates/src/main/java/org/drools/template/parser/DefaultTemplateRuleBase.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.template.parser; - -import java.io.Reader; -import java.io.StringReader; -import java.util.HashMap; -import java.util.Map; - -import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; -import org.drools.kiesession.rulebase.KnowledgeBaseFactory; -import org.drools.template.model.Condition; -import org.drools.template.model.Consequence; -import org.drools.template.model.DRLOutput; -import org.drools.template.model.Global; -import org.drools.template.model.Import; -import org.drools.template.model.Rule; -import org.kie.api.runtime.KieSession; - -/** - * Create a rule base for the set of rule templates in the - * TemplateContainer. These rules are used internally by the - * engine to generate the actual decision table rules based on - * which columns have been filled in. - *

- * Basically, if a rule template requires columns A and B then - * the template rule base will generate a rule with columns A and B - * as the LHS and a RHS which triggers the rule to be generated. - * ie. - * rule "template1" - * when - * r : Row() - * column1 : Column(name == "column1") - * Cell(row == r, column == column1) - * column2 : Column(name == "column2") - * Cell(row == r, column == column2, value == "xyz") - * then - * generator.generate( "template1", r); - * end - */ -public class DefaultTemplateRuleBase implements TemplateRuleBase { - private InternalKnowledgeBase kBase; - - public DefaultTemplateRuleBase(final TemplateContainer tc) { - kBase = readKnowledgeBase(getDTRules(tc.getTemplates())); - } - - /* (non-Javadoc) - * @see org.kie.decisiontable.parser.TemplateRuleBase#newWorkingMemory() - */ - public KieSession newStatefulSession() { - return kBase.newKieSession(); - } - - /** - * @param templates - * @return - */ - private String getDTRules(Map templates) { - org.drools.template.model.Package p = new org.drools.template.model.Package( - DefaultTemplateRuleBase.class.getPackage().getName()); - addImports(p); - addGlobals(p); - int i = 1; - for (RuleTemplate template : templates.values()) { - createTemplateRule(p, i++, template); - } - DRLOutput out = new DRLOutput(); - p.renderDRL(out); - return out.getDRL(); - - } - - private void createTemplateRule(org.drools.template.model.Package p, int index, RuleTemplate template) { - Rule rule = new Rule(template.getName(), null, index); - Condition condition = new Condition(); - condition.setSnippet("r : Row()"); - rule.addCondition(condition); - createColumnConditions(template, rule); - rule.addConsequence(createConsequence(template)); - p.addRule(rule); - } - - private void createColumnConditions(RuleTemplate template, Rule rule) { - for (TemplateColumn column : template.getColumns()) { - column.addCondition(rule); - } - } - - - private void addGlobals(org.drools.template.model.Package p) { - Global global = new Global(); - global.setClassName(DefaultGenerator.class.getName()); - global.setIdentifier("generator"); - p.addVariable(global); - } - - private void addImports(org.drools.template.model.Package p) { - Import drlImport1 = new Import(); - drlImport1.setClassName(Map.class.getName()); - Import drlImport2 = new Import(); - drlImport2.setClassName(HashMap.class.getName()); - p.addImport(drlImport1); - p.addImport(drlImport2); - } - - private Consequence createConsequence(RuleTemplate template) { - StringBuilder action = new StringBuilder(); - action.append("generator.generate( \""); - action.append(template.getName()).append("\", r);"); - final Consequence consequence = new Consequence(); - consequence.setSnippet(action.toString()); - return consequence; - } - - private InternalKnowledgeBase readKnowledgeBase(String drl) { - // read in the source - try (Reader source = new StringReader(drl)) { - KnowledgeBuilderImpl builder = new KnowledgeBuilderImpl(); - builder.addPackageFromDrl(source); - InternalKnowledgePackage pkg = builder.getPackage(DefaultTemplateRuleBase.class.getPackage().getName()); - - // add the package to a rulebase (deploy the rule package). - InternalKnowledgeBase kBase = KnowledgeBaseFactory.newKnowledgeBase(); - kBase.addPackage(pkg); - return kBase; - - } catch (Exception e) { - throw new RuntimeException(e); - } - } - -} diff --git a/drools-templates/src/main/java/org/drools/template/parser/DoubleCell.java b/drools-templates/src/main/java/org/drools/template/parser/DoubleCell.java index 6e86d98f6ac..a17819c231d 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/DoubleCell.java +++ b/drools-templates/src/main/java/org/drools/template/parser/DoubleCell.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** diff --git a/drools-templates/src/main/java/org/drools/template/parser/DoubleColumn.java b/drools-templates/src/main/java/org/drools/template/parser/DoubleColumn.java index 74ce47500c8..3985f74bc20 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/DoubleColumn.java +++ b/drools-templates/src/main/java/org/drools/template/parser/DoubleColumn.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** diff --git a/drools-templates/src/main/java/org/drools/template/parser/Generator.java b/drools-templates/src/main/java/org/drools/template/parser/Generator.java index 771aa350168..9709afcc098 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/Generator.java +++ b/drools-templates/src/main/java/org/drools/template/parser/Generator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** diff --git a/drools-templates/src/main/java/org/drools/template/parser/LongCell.java b/drools-templates/src/main/java/org/drools/template/parser/LongCell.java index c076a3e0ece..36468de2ff2 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/LongCell.java +++ b/drools-templates/src/main/java/org/drools/template/parser/LongCell.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** diff --git a/drools-templates/src/main/java/org/drools/template/parser/LongColumn.java b/drools-templates/src/main/java/org/drools/template/parser/LongColumn.java index 49f16b8a4ed..27bf0a40d10 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/LongColumn.java +++ b/drools-templates/src/main/java/org/drools/template/parser/LongColumn.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** diff --git a/drools-templates/src/main/java/org/drools/template/parser/Row.java b/drools-templates/src/main/java/org/drools/template/parser/Row.java index 5bb4bccb7f3..fd09ec1ac39 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/Row.java +++ b/drools-templates/src/main/java/org/drools/template/parser/Row.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import java.util.ArrayList; diff --git a/drools-templates/src/main/java/org/drools/template/parser/RuleTemplate.java b/drools-templates/src/main/java/org/drools/template/parser/RuleTemplate.java index 766db409413..ff9fc07ecc2 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/RuleTemplate.java +++ b/drools-templates/src/main/java/org/drools/template/parser/RuleTemplate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import org.drools.util.StringUtils; diff --git a/drools-templates/src/main/java/org/drools/template/parser/StringCell.java b/drools-templates/src/main/java/org/drools/template/parser/StringCell.java index a6089a9c52d..e2e096ac21f 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/StringCell.java +++ b/drools-templates/src/main/java/org/drools/template/parser/StringCell.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import org.drools.util.StringUtils; diff --git a/drools-templates/src/main/java/org/drools/template/parser/StringColumn.java b/drools-templates/src/main/java/org/drools/template/parser/StringColumn.java index 19f5dbb0cd9..56366e50f97 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/StringColumn.java +++ b/drools-templates/src/main/java/org/drools/template/parser/StringColumn.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; /** diff --git a/drools-templates/src/main/java/org/drools/template/parser/TemplateColumn.java b/drools-templates/src/main/java/org/drools/template/parser/TemplateColumn.java index 3ec2d7ad15b..43e18d583aa 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/TemplateColumn.java +++ b/drools-templates/src/main/java/org/drools/template/parser/TemplateColumn.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import org.drools.template.model.Rule; diff --git a/drools-templates/src/main/java/org/drools/template/parser/TemplateContainer.java b/drools-templates/src/main/java/org/drools/template/parser/TemplateContainer.java index 46b860c533b..c1ddcef82dc 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/TemplateContainer.java +++ b/drools-templates/src/main/java/org/drools/template/parser/TemplateContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.template.parser; import java.util.Map; diff --git a/drools-templates/src/main/java/org/drools/template/parser/TemplateDataListener.java b/drools-templates/src/main/java/org/drools/template/parser/TemplateDataListener.java index a249e109a50..29c7a4aef78 100644 --- a/drools-templates/src/main/java/org/drools/template/parser/TemplateDataListener.java +++ b/drools-templates/src/main/java/org/drools/template/parser/TemplateDataListener.java @@ -1,25 +1,28 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.parser; import java.io.InputStream; +import java.util.Map; +import java.util.Objects; import org.drools.template.model.DRLOutput; -import org.kie.api.runtime.KieSession; /** * SheetListener for creating rules from a template @@ -36,8 +39,6 @@ public class TemplateDataListener private Column[] columns; - private KieSession session; - private TemplateContainer templateContainer; private int startCol; @@ -48,160 +49,136 @@ public class TemplateDataListener // private WorkingMemoryFileLogger logger; - public TemplateDataListener( final TemplateContainer tc ) { - this( 1, - 1, - tc, - true ); + public TemplateDataListener(final TemplateContainer tc) { + this(1, + 1, + tc, + true); } - public TemplateDataListener( final TemplateContainer tc, - final boolean checkEmptyRows ) { - this( 1, - 1, - tc, - checkEmptyRows ); + public TemplateDataListener(final TemplateContainer tc, + final boolean checkEmptyRows) { + this(1, + 1, + tc, + checkEmptyRows); } - public TemplateDataListener( final int startRow, - final int startCol, - final String template ) { - this( startRow, - startCol, - new DefaultTemplateContainer( template ) ); + public TemplateDataListener(final int startRow, + final int startCol, + final String template) { + this(startRow, + startCol, + new DefaultTemplateContainer(template)); } - public TemplateDataListener( final int startRow, - final int startCol, - final InputStream templateStream ) { - this( startRow, - startCol, - new DefaultTemplateContainer( templateStream ) ); + public TemplateDataListener(final int startRow, + final int startCol, + final InputStream templateStream) { + this(startRow, + startCol, + new DefaultTemplateContainer(templateStream)); } - public TemplateDataListener( final int startRow, - final int startCol, - final TemplateContainer tc ) { - this( startRow, - startCol, - tc, - true ); + public TemplateDataListener(final int startRow, + final int startCol, + final TemplateContainer tc) { + this(startRow, + startCol, + tc, + true); } - public TemplateDataListener( final int startRow, - final int startCol, - final TemplateContainer tc, - final boolean checkEmptyRows ) { - this( startRow, - startCol, - tc, - new DefaultTemplateRuleBase( tc ), - checkEmptyRows ); + public TemplateDataListener(final int startRow, + final int startCol, + final TemplateContainer tc, + final boolean checkEmptyRows) { + this(startRow, + startCol, + tc, + new DefaultGenerator(tc.getTemplates()), + checkEmptyRows); } - public TemplateDataListener( final int startRow, - final int startCol, - final TemplateContainer tc, - final TemplateRuleBase rb, - final boolean checkEmptyRows ) { - this( startRow, - startCol, - tc, - rb, - new DefaultGenerator( tc.getTemplates() ), - checkEmptyRows ); + public TemplateDataListener(final int startRow, + final int startCol, + final TemplateContainer tc, + final Generator generator) { + this(startRow, + startCol, + tc, + generator, + true); } - public TemplateDataListener( final int startRow, - final int startCol, - final TemplateContainer tc, - final TemplateRuleBase ruleBase, - final Generator generator ) { - this( startRow, - startCol, - tc, - ruleBase, - generator, - true ); - } - - public TemplateDataListener( final int startRow, - final int startCol, - final TemplateContainer tc, - final TemplateRuleBase ruleBase, - final Generator generator, - final boolean checkEmptyRows ) { + public TemplateDataListener(final int startRow, + final int startCol, + final TemplateContainer tc, + final Generator generator, + final boolean checkEmptyRows) { this.startRow = startRow - 1; this.startCol = startCol - 1; this.columns = tc.getColumns(); this.templateContainer = tc; - this.session = ruleBase.newStatefulSession(); - // logger = new WorkingMemoryFileLogger(session); - // logger.setFileName("log/event"); this.generator = generator; - this.session.setGlobal( "generator", - generator ); this.checkEmptyRows = checkEmptyRows; - assertColumns(); - } - - private void assertColumns() { - for ( int i = 0; i < columns.length; i++ ) { - session.insert( columns[ i ] ); - } } public void finishSheet() { - if ( currentRow != null ) { - session.insert( currentRow ); + if (currentRow != null) { + generateDRLForTemplates(currentRow); } - session.fireAllRules(); - // logger.writeToDisk(); - session.dispose(); } - public void newCell( int row, - int column, - String value, - int mergedColStart ) { - if ( currentRow != null && column >= startCol && value != null && value.trim().length() > 0 ) { - + public void newCell(int row, + int column, + String value, + int mergedColStart) { + if (currentRow != null && column >= startCol && value != null && value.trim().length() > 0) { int columnIndex = column - startCol; - if ( columnIndex < columns.length ) { - Cell cell = currentRow.getCell( columnIndex ); - cell.setValue( value ); - cell.insert( session ); + if (columnIndex < columns.length) { + Cell cell = currentRow.getCell(columnIndex); + cell.setValue(value); } } } - public void newRow( int rowNumber, - int columnCount ) { - if ( !tableFinished && rowNumber >= startRow ) { - if ( currentRow != null && ( checkEmptyRows && currentRow.isEmpty() ) ) { + public void newRow(int rowNumber, + int columnCount) { + if (!tableFinished && rowNumber >= startRow) { + if (currentRow != null && (checkEmptyRows && currentRow.isEmpty())) { currentRow = null; tableFinished = true; } else { - if ( currentRow != null ) { - session.insert( currentRow ); + if (currentRow != null) { + generateDRLForTemplates(currentRow); } - currentRow = new Row( rowNumber, - columns ); + currentRow = new Row(rowNumber, + columns); } } } - public void startSheet( String name ) { + public void startSheet(String name) { } public String renderDRL() { DRLOutput out = new DRLOutput(); - out.writeLine( templateContainer.getHeader() ); + out.writeLine(templateContainer.getHeader()); - out.writeLine( generator.getDrl() ); + out.writeLine(generator.getDrl()); // System.err.println(out.getDRL()); return out.getDRL(); } + private void generateDRLForTemplates(Row row) { + Map ruleTemplates = templateContainer.getTemplates(); + if (Objects.nonNull(ruleTemplates)) { + ruleTemplates.forEach((name, rc) -> { + generator.generate(name, row); + }); + } + } + } diff --git a/drools-templates/src/main/java/org/drools/template/parser/TemplateRuleBase.java b/drools-templates/src/main/java/org/drools/template/parser/TemplateRuleBase.java deleted file mode 100644 index de9e89e3fac..00000000000 --- a/drools-templates/src/main/java/org/drools/template/parser/TemplateRuleBase.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.template.parser; - -import org.kie.api.runtime.KieSession; - -public interface TemplateRuleBase { - - KieSession newStatefulSession(); - -} diff --git a/drools-templates/src/test/java/org/drools/template/DataProviderCompilerTest.java b/drools-templates/src/test/java/org/drools/template/DataProviderCompilerTest.java index 0ed76af1408..b95278bf3fa 100644 --- a/drools-templates/src/test/java/org/drools/template/DataProviderCompilerTest.java +++ b/drools-templates/src/test/java/org/drools/template/DataProviderCompilerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template; import java.io.InputStream; diff --git a/drools-templates/src/test/java/org/drools/template/jdbc/Cheese.java b/drools-templates/src/test/java/org/drools/template/jdbc/Cheese.java index 0a45d322de1..57353b47f9f 100644 --- a/drools-templates/src/test/java/org/drools/template/jdbc/Cheese.java +++ b/drools-templates/src/test/java/org/drools/template/jdbc/Cheese.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.jdbc; public class Cheese { diff --git a/drools-templates/src/test/java/org/drools/template/jdbc/Person.java b/drools-templates/src/test/java/org/drools/template/jdbc/Person.java index 6ffb0842bd2..259c925a5e8 100644 --- a/drools-templates/src/test/java/org/drools/template/jdbc/Person.java +++ b/drools-templates/src/test/java/org/drools/template/jdbc/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.template.jdbc; public class Person { diff --git a/drools-templates/src/test/java/org/drools/template/jdbc/ResultSetGeneratorTest.java b/drools-templates/src/test/java/org/drools/template/jdbc/ResultSetGeneratorTest.java index be66ade6501..7c91b775bcd 100644 --- a/drools-templates/src/test/java/org/drools/template/jdbc/ResultSetGeneratorTest.java +++ b/drools-templates/src/test/java/org/drools/template/jdbc/ResultSetGeneratorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.jdbc; import java.io.InputStream; diff --git a/drools-templates/src/test/java/org/drools/template/model/FunctionsRenderTest.java b/drools-templates/src/test/java/org/drools/template/model/FunctionsRenderTest.java index 23564e67709..0430fe73ce3 100644 --- a/drools-templates/src/test/java/org/drools/template/model/FunctionsRenderTest.java +++ b/drools-templates/src/test/java/org/drools/template/model/FunctionsRenderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.template.model; import org.junit.Test; diff --git a/drools-templates/src/test/java/org/drools/template/model/PackageRenderTest.java b/drools-templates/src/test/java/org/drools/template/model/PackageRenderTest.java index 15c77586f4b..f9740107474 100644 --- a/drools-templates/src/test/java/org/drools/template/model/PackageRenderTest.java +++ b/drools-templates/src/test/java/org/drools/template/model/PackageRenderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; import org.junit.Test; @@ -28,8 +30,8 @@ public class PackageRenderTest { public Rule buildRule() { final Rule rule = new Rule("myrule", - new Integer(42), - 1); + 42, + 1); rule.setComment("rule comments"); final Condition cond = new Condition(); diff --git a/drools-templates/src/test/java/org/drools/template/model/QueriesRenderTest.java b/drools-templates/src/test/java/org/drools/template/model/QueriesRenderTest.java index 33b91162c98..65bf5da351f 100644 --- a/drools-templates/src/test/java/org/drools/template/model/QueriesRenderTest.java +++ b/drools-templates/src/test/java/org/drools/template/model/QueriesRenderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.template.model; import org.junit.Test; diff --git a/drools-templates/src/test/java/org/drools/template/model/RuleRenderTest.java b/drools-templates/src/test/java/org/drools/template/model/RuleRenderTest.java index d40fbf7dcd8..352156512d9 100644 --- a/drools-templates/src/test/java/org/drools/template/model/RuleRenderTest.java +++ b/drools-templates/src/test/java/org/drools/template/model/RuleRenderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.template.model; import org.junit.Test; @@ -28,8 +30,8 @@ public class RuleRenderTest { @Test public void testRuleRender() { final Rule rule = new Rule("myrule", - new Integer(42), - 1); + 42, + 1); rule.setComment("rule comments"); final Condition cond = new Condition(); @@ -63,8 +65,8 @@ public void testRuleRender() { @Test public void testAttributes() throws Exception { Rule rule = new Rule("la", - new Integer(42), - 2); + 42, + 2); rule.setActivationGroup("foo"); rule.setNoLoop(true); @@ -84,7 +86,7 @@ public void testAttributes() throws Exception { @Test public void testMetadata() throws Exception { - Rule rule = new Rule("la", new Integer(42), 2); + Rule rule = new Rule("la", 42, 2); rule.addMetadata("Author( A. U. Thor )"); rule.addMetadata("Revision( 42 )"); @@ -117,8 +119,8 @@ public void testNotEscapeChars() { @Test public void testNilSalience() { Rule rule = new Rule("MyRule", - null, - 1); + null, + 1); DRLOutput out = new DRLOutput(); rule.renderDRL(out); @@ -127,8 +129,8 @@ public void testNilSalience() { assertThat(idx).isEqualTo(-1); rule = new Rule("MyRule", - new Integer(42), - 1); + 42, + 1); out = new DRLOutput(); rule.renderDRL(out); xml = out.toString(); diff --git a/drools-templates/src/test/java/org/drools/template/model/SnippetBuilderTest.java b/drools-templates/src/test/java/org/drools/template/model/SnippetBuilderTest.java index 992005e8717..4c30ec31e82 100644 --- a/drools-templates/src/test/java/org/drools/template/model/SnippetBuilderTest.java +++ b/drools-templates/src/test/java/org/drools/template/model/SnippetBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.template.model; import org.junit.Test; diff --git a/drools-templates/src/test/java/org/drools/template/parser/ColumnFactoryTest.java b/drools-templates/src/test/java/org/drools/template/parser/ColumnFactoryTest.java index 1afaec5db1f..1a42ef0c864 100644 --- a/drools-templates/src/test/java/org/drools/template/parser/ColumnFactoryTest.java +++ b/drools-templates/src/test/java/org/drools/template/parser/ColumnFactoryTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.parser; import org.junit.Test; diff --git a/drools-templates/src/test/java/org/drools/template/parser/DefaultGeneratorTest.java b/drools-templates/src/test/java/org/drools/template/parser/DefaultGeneratorTest.java index e066378c7da..d9d6e3cd7e2 100644 --- a/drools-templates/src/test/java/org/drools/template/parser/DefaultGeneratorTest.java +++ b/drools-templates/src/test/java/org/drools/template/parser/DefaultGeneratorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.parser; import org.junit.Before; diff --git a/drools-templates/src/test/java/org/drools/template/parser/DefaultTemplateContainerTest.java b/drools-templates/src/test/java/org/drools/template/parser/DefaultTemplateContainerTest.java index 1bd925a64d6..c2fe0d302d0 100644 --- a/drools-templates/src/test/java/org/drools/template/parser/DefaultTemplateContainerTest.java +++ b/drools-templates/src/test/java/org/drools/template/parser/DefaultTemplateContainerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.parser; import java.io.InputStream; diff --git a/drools-templates/src/test/java/org/drools/template/parser/DefaultTemplateRuleBaseTest.java b/drools-templates/src/test/java/org/drools/template/parser/DefaultTemplateRuleBaseTest.java deleted file mode 100644 index a2521cce16e..00000000000 --- a/drools-templates/src/test/java/org/drools/template/parser/DefaultTemplateRuleBaseTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.template.parser; - -import java.lang.reflect.Type; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; - -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.constraint.Constraint; -import org.junit.Test; - -import static org.assertj.core.api.Assertions.assertThat; - -public class DefaultTemplateRuleBaseTest { - - @SuppressWarnings("unchecked") - @Test - public void testSimpleTemplate() throws Exception { - TemplateContainer tc = new TemplateContainer() { - private Column[] columns = new Column[]{ - new LongColumn("column1"), - new LongColumn("column2"), - new StringColumn("column3") - }; - - public Column[] getColumns() { - return columns; - } - - public String getHeader() { - return null; - } - - public Map getTemplates() { - Map templates = new HashMap(); - RuleTemplate ruleTemplate = new RuleTemplate("template1", this); - ruleTemplate.addColumn("column1 == 10"); - ruleTemplate.addColumn("column2 < 5 || > 20"); - ruleTemplate.addColumn("column3 == \"xyz\""); - templates.put("template1", ruleTemplate); - return templates; - } - - public Column getColumn(String name) { - return columns[Integer.parseInt(name.substring(6)) - 1]; - } - - }; - DefaultTemplateRuleBase ruleBase = new DefaultTemplateRuleBase(tc); - InternalKnowledgePackage[] packages = ((RuleBase)ruleBase.newStatefulSession().getKieBase()).getPackages(); - assertThat(packages.length).isEqualTo(1); - Map globals = packages[0].getGlobals(); - assertThat(globals.get("generator")).isEqualTo(DefaultGenerator.class); - Collection rules = packages[0].getRules(); - assertThat(rules.size()).isEqualTo(1); - assertThat(rules.iterator().next().getName()).isEqualTo("template1"); - GroupElement lhs = ((RuleImpl)rules.iterator().next()).getLhs(); - //when - // r : Row() - // column1 : Column(name == "column1") - // exists LongCell(row == r, column == column1, value == 10) - // column2 : Column(name == "column2") - // exists LongCell(row == r, column == column2, value < 5 | > 20) - // column3 : Column(name == "column3") - // exists StringCell(row == r, column == column3, value == "xyz") - assertThat(lhs.getChildren().size()).isEqualTo(7); - org.drools.core.rule.Pattern pattern = (org.drools.core.rule.Pattern) lhs.getChildren().get(1); - assertThat(pattern.getConstraints().size()).isEqualTo(1); - Constraint constraint = pattern.getConstraints().get(0); - GroupElement exists = (GroupElement) lhs.getChildren().get(2); - pattern = (org.drools.core.rule.Pattern) exists.getChildren().get(0); - assertThat(pattern.getConstraints().size()).isEqualTo(3); - IndexableConstraint vconstraint = (IndexableConstraint) pattern.getConstraints().get(1); - assertThat(vconstraint.getFieldIndex().getRightExtractor().getExtractToClass()).isEqualTo(Column.class); - assertThat(vconstraint.getRequiredDeclarations()[0].getIdentifier()).isEqualTo("column1"); - pattern = (org.drools.core.rule.Pattern) lhs.getChildren().get(3); - assertThat(pattern.getConstraints().size()).isEqualTo(1); - constraint = pattern.getConstraints().get(0); - exists = (GroupElement) lhs.getChildren().get(4); - pattern = (org.drools.core.rule.Pattern) exists.getChildren().get(0); - assertThat(pattern.getConstraints().size()).isEqualTo(3); - vconstraint = (IndexableConstraint) pattern.getConstraints().get(1); - assertThat(vconstraint.getFieldIndex().getRightExtractor().getExtractToClass()).isEqualTo(Column.class); - assertThat(vconstraint.getRequiredDeclarations()[0].getIdentifier()).isEqualTo("column2"); - pattern = (org.drools.core.rule.Pattern) lhs.getChildren().get(5); - assertThat(pattern.getConstraints().size()).isEqualTo(1); - constraint = pattern.getConstraints().get(0); - exists = (GroupElement) lhs.getChildren().get(6); - pattern = (org.drools.core.rule.Pattern) exists.getChildren().get(0); - assertThat(pattern.getConstraints().size()).isEqualTo(3); - vconstraint = (IndexableConstraint) pattern.getConstraints().get(1); - assertThat(vconstraint.getFieldIndex().getRightExtractor().getExtractToClass()).isEqualTo(Column.class); - assertThat(vconstraint.getRequiredDeclarations()[0].getIdentifier()).isEqualTo("column3"); - } -} diff --git a/drools-templates/src/test/java/org/drools/template/parser/ExternalSheetListenerTest.java b/drools-templates/src/test/java/org/drools/template/parser/ExternalSheetListenerTest.java index 0ecb586f43a..b605305d2d1 100644 --- a/drools-templates/src/test/java/org/drools/template/parser/ExternalSheetListenerTest.java +++ b/drools-templates/src/test/java/org/drools/template/parser/ExternalSheetListenerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.parser; import java.util.ArrayList; @@ -49,15 +52,11 @@ public class ExternalSheetListenerTest { private TemplateDataListener esl; - private Map> assertedRows = new HashMap>(); - - private List currentRow = new ArrayList(); + private List assertedRows = new ArrayList<>(); @Before public void setUp() throws Exception { - esl = new TemplateDataListener(2, 2, new TestTemplateContainer(), - new TestTemplateRuleBase(), new TestGenerator()); - + esl = new TemplateDataListener(2, 2, new TestTemplateContainer(), new TestGenerator()); } @Test @@ -82,17 +81,6 @@ public void testRowHandling() { esl.newCell(2, 2, "row2col2", 0); esl.finishSheet(); assertThat(assertedRows.size()).isEqualTo(2); - for (Map.Entry> entry : assertedRows.entrySet()) { - Row row = entry.getKey(); - List cells = entry.getValue(); - // first column is not part of the decision table - int i = 1; - for (StringCell cell : cells) { - assertThat(cell.getValue()).isEqualTo("row" + row.getRowNumber() + "col" + i); - assertThat(cell.getColumn().getName()).isEqualTo("Pattern " + i); - i++; - } - } } @Test @@ -122,361 +110,10 @@ public void testRowHandlingBlankRows() { assertThat(assertedRows.size()).isEqualTo(2); } - private class TestTemplateRuleBase implements TemplateRuleBase { - - public KieSession newStatefulSession() { - return new KieSession() { - - @Override - public int getId() { - return 0; - } - - @Override - public long getIdentifier() { - return 0L; - } - - @Override - public void dispose() { - - } - - @Override - public void destroy() { - - } - - @Override - public void submit( AtomicAction action ) { } - - @Override - public T getKieRuntime( Class cls ) { - return null; - } - - @Override - public T execute(Command command) { - return null; - } - - @Override - public T getSessionClock() { - return null; - } - - @Override - public void setGlobal(String identifier, Object value) { - - } - - @Override - public Object getGlobal(String identifier) { - return null; - } - - @Override - public Globals getGlobals() { - return null; - } - - @Override - public Calendars getCalendars() { - return null; - } - - @Override - public Environment getEnvironment() { - return null; - } - - @Override - public KieBase getKieBase() { - return null; - } - - @Override - public void registerChannel(String name, Channel channel) { - - } - - @Override - public void unregisterChannel(String name) { - - } - - @Override - public Map getChannels() { - return null; - } - - @Override - public KieSessionConfiguration getSessionConfiguration() { - return null; - } - - @Override - public void halt() { - - } - - @Override - public org.kie.api.runtime.rule.Agenda getAgenda() { - return null; - } - - @Override - public EntryPoint getEntryPoint(String name) { - return null; - } - - @Override - public Collection getEntryPoints() { - return null; - } - - @Override - public org.kie.api.runtime.rule.QueryResults getQueryResults(String query, Object... arguments) { - return null; - } - - @Override - public LiveQuery openLiveQuery(String query, Object[] arguments, ViewChangedEventListener listener) { - return null; - } - - @Override - public String getEntryPointId() { - return null; - } - - @Override - public FactHandle insert(Object fact) { - if (fact instanceof Row) { - assertedRows.put((Row) fact, currentRow); - currentRow = new ArrayList(); - } else if (fact instanceof StringCell) { - currentRow.add((StringCell) fact); - } - return null; - } - - @Override - public void retract(org.kie.api.runtime.rule.FactHandle handle) { - - } - - @Override - public void delete(org.kie.api.runtime.rule.FactHandle handle) { - - } - - @Override - public void delete(org.kie.api.runtime.rule.FactHandle handle, org.kie.api.runtime.rule.FactHandle.State fhState) { - - } - - @Override - public void update(org.kie.api.runtime.rule.FactHandle handle, Object object) { - - } - - @Override - public void update(org.kie.api.runtime.rule.FactHandle handle, Object object, String... modifiedProperties) { - - } - - @Override - public org.kie.api.runtime.rule.FactHandle getFactHandle(Object object) { - return null; - } - - @Override - public Object getObject(org.kie.api.runtime.rule.FactHandle factHandle) { - return null; - } - - @Override - public Collection getObjects() { - return null; - } - - @Override - public Collection getObjects(ObjectFilter filter) { - return null; - } - - @Override - public Collection getFactHandles() { - return null; - } - - @Override - public Collection getFactHandles(ObjectFilter filter) { - return null; - } - - @Override - public long getFactCount() { - return 0L; - } - - @Override - public KieRuntimeLogger getLogger() { - return null; - } - - @Override - public void addEventListener(ProcessEventListener listener) { - - } - - @Override - public void removeEventListener(ProcessEventListener listener) { - - } - - @Override - public Collection getProcessEventListeners() { - return null; - } - - @Override - public ProcessInstance startProcess(String processId) { - return null; - } - - @Override - public ProcessInstance startProcess(String processId, Map parameters) { - return null; - } - - @Override - public ProcessInstance startProcess( String processId, AgendaFilter agendaFilter ) { - return null; - } - - @Override - public ProcessInstance startProcess(String processId, Map parameters, AgendaFilter agendaFilter) { - return null; - } - - @Override - public ProcessInstance createProcessInstance(String processId, Map parameters) { - return null; - } - - @Override - public ProcessInstance startProcessInstance(String processInstanceId) { - return null; - } - - @Override - public void signalEvent(String type, Object event) { - - } - - @Override - public void signalEvent(String type, Object event, String processInstanceId) { - - } - - @Override - public Collection getProcessInstances() { - return null; - } - - @Override - public ProcessInstance getProcessInstance(String processInstanceId) { - return null; - } - - @Override - public ProcessInstance getProcessInstance(String processInstanceId, boolean readonly) { - return null; - } - - @Override - public void abortProcessInstance(String processInstanceId) { - - } - - @Override - public org.kie.api.runtime.process.WorkItemManager getWorkItemManager() { - return null; - } - - @Override - public void addEventListener(RuleRuntimeEventListener listener) { - - } - - @Override - public void removeEventListener(RuleRuntimeEventListener listener) { - - } - - @Override - public Collection getRuleRuntimeEventListeners() { - return null; - } - - @Override - public void addEventListener(org.kie.api.event.rule.AgendaEventListener listener) { - - } - - @Override - public void removeEventListener(org.kie.api.event.rule.AgendaEventListener listener) { - - } - - @Override - public Collection getAgendaEventListeners() { - return null; - } - - @Override - public int fireAllRules() { - return 0; - } - - @Override - public int fireAllRules(int max) { - return 0; - } - - @Override - public int fireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter) { - return 0; - } - - @Override - public int fireAllRules(org.kie.api.runtime.rule.AgendaFilter agendaFilter, int max) { - return 0; - } - - @Override - public void fireUntilHalt() { - - } - - @Override - public void fireUntilHalt(org.kie.api.runtime.rule.AgendaFilter agendaFilter) { - - } - - @Override - public ProcessInstance startProcessFromNodeIds(String processId, Map params, String... nodeIds) { - return null; - } - }; - } - } - private class TestGenerator implements Generator { public void generate(String templateName, Row row) { + assertedRows.add(row); } public String getDrl() { @@ -494,8 +131,8 @@ public void addTemplate(RuleTemplate template) { } public Column[] getColumns() { - return new Column[]{new StringColumn("Pattern 1"), - new StringColumn("Pattern 2"), new StringColumn("Pattern 3")}; + return new Column[] { new StringColumn("Pattern 1"), + new StringColumn("Pattern 2"), new StringColumn("Pattern 3") }; } public String getHeader() { @@ -503,7 +140,7 @@ public String getHeader() { } public Map getTemplates() { - return null; + return Map.of("template", new RuleTemplate("template", this)); } public void setHeader(String head) { diff --git a/drools-templates/src/test/java/org/drools/template/parser/RuleTemplateTest.java b/drools-templates/src/test/java/org/drools/template/parser/RuleTemplateTest.java index 85f9618e1d1..ea62ee85729 100644 --- a/drools-templates/src/test/java/org/drools/template/parser/RuleTemplateTest.java +++ b/drools-templates/src/test/java/org/drools/template/parser/RuleTemplateTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.template.parser; import org.drools.util.StringUtils; diff --git a/drools-test-coverage/pom.xml b/drools-test-coverage/pom.xml index 83558c9351a..231f37b49d5 100644 --- a/drools-test-coverage/pom.xml +++ b/drools-test-coverage/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/pom.xml b/drools-test-coverage/standalone/kie-ci-with-domain/pom.xml index 53c43e27ae1..114d021fac1 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/pom.xml +++ b/drools-test-coverage/standalone/kie-ci-with-domain/pom.xml @@ -1,4 +1,24 @@ + @@ -8,7 +28,7 @@ org.drools.testcoverage drools-standalone-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-kie-ci-with-domain-parent diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/pom.xml b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/pom.xml index 1496ab4b086..203dd83f3b0 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/pom.xml +++ b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/pom.xml @@ -1,4 +1,24 @@ + @@ -8,13 +28,17 @@ org.drools.testcoverage drools-kie-ci-with-domain-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-kie-ci-with-domain-test-domain Drools :: Test Coverage :: KIE-CI with Domain classes :: Domain + + org.drools.testcoverage.standalone.kieciwithdomain.testdomain + + org.kie diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Customer.java b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Customer.java index fd69daa0816..3de07a912b4 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Customer.java +++ b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Customer.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.domain; import java.io.Serializable; diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Drink.java b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Drink.java index e79006517a2..7d98d9df10a 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Drink.java +++ b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Drink.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.domain; import java.io.Serializable; diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Order.java b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Order.java index 9ee48ac477c..64de818020a 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Order.java +++ b/drools-test-coverage/standalone/kie-ci-with-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Order.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.domain; import org.kie.api.definition.type.Modifies; diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/pom.xml b/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/pom.xml index cc1c721b9e6..128837f36bc 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/pom.xml +++ b/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/pom.xml @@ -1,4 +1,24 @@ + @@ -8,13 +28,17 @@ org.drools.testcoverage drools-kie-ci-with-domain-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-kie-ci-with-domain-test-kjar Drools :: Test Coverage :: KIE-CI with Domain classes :: KJar + + org.drools.testcoverage.standalone.kieciwithdomain.testkjar + + org.drools.testcoverage diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/src/main/resources/META-INF/kmodule.xml b/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/src/main/resources/META-INF/kmodule.xml index 09ec9cb7fd9..d624a66c14f 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/src/main/resources/META-INF/kmodule.xml +++ b/drools-test-coverage/standalone/kie-ci-with-domain/test-kjar/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml b/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml index f0ccc79e62c..cf6ee6e7478 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml +++ b/drools-test-coverage/standalone/kie-ci-with-domain/tests/pom.xml @@ -1,4 +1,24 @@ + @@ -8,13 +28,17 @@ org.drools.testcoverage drools-kie-ci-with-domain-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-kie-ci-with-domain-tests Drools :: Test Coverage :: KIE-CI with Domain classes :: Tests + + org.drools.testcoverage.standalone.kieciwithdomain.tests + + diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/filtered-resources/org/drools/testcoverage/kieci/withdomain/testKJarGAV.properties b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/filtered-resources/org/drools/testcoverage/kieci/withdomain/testKJarGAV.properties index df0e2dd43a9..b336974ceb3 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/filtered-resources/org/drools/testcoverage/kieci/withdomain/testKJarGAV.properties +++ b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/filtered-resources/org/drools/testcoverage/kieci/withdomain/testKJarGAV.properties @@ -1,3 +1,22 @@ +# +# 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. +# + groupId=${project.groupId} artifactId=drools-kie-ci-with-domain-test-kjar version=${project.version} \ No newline at end of file diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/filtered-resources/test-kie-maven-settings.xml b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/filtered-resources/test-kie-maven-settings.xml index 7a5add250b8..f49e21deef0 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/filtered-resources/test-kie-maven-settings.xml +++ b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/filtered-resources/test-kie-maven-settings.xml @@ -1,3 +1,23 @@ + diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/java/org/drools/testcoverage/kieci/withdomain/KJarLoadingTest.java b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/java/org/drools/testcoverage/kieci/withdomain/KJarLoadingTest.java index 09458a1d987..b445e929da1 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/java/org/drools/testcoverage/kieci/withdomain/KJarLoadingTest.java +++ b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/java/org/drools/testcoverage/kieci/withdomain/KJarLoadingTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.kieci.withdomain; import org.drools.testcoverage.domain.Customer; diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/java/org/drools/testcoverage/kieci/withdomain/util/KJarLoadUtils.java b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/java/org/drools/testcoverage/kieci/withdomain/util/KJarLoadUtils.java index d1bea3baa34..926344ea7b5 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/java/org/drools/testcoverage/kieci/withdomain/util/KJarLoadUtils.java +++ b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/java/org/drools/testcoverage/kieci/withdomain/util/KJarLoadUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.kieci.withdomain.util; import org.kie.api.KieServices; diff --git a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/resources/logback-test.xml b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/resources/logback-test.xml index 3a968179687..a655a154a3f 100644 --- a/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/resources/logback-test.xml +++ b/drools-test-coverage/standalone/kie-ci-with-domain/tests/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/pom.xml b/drools-test-coverage/standalone/kie-ci-without-domain/pom.xml index c1a5c9f5459..fee188e731b 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/pom.xml +++ b/drools-test-coverage/standalone/kie-ci-without-domain/pom.xml @@ -1,4 +1,24 @@ + @@ -8,7 +28,7 @@ org.drools.testcoverage drools-standalone-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-kie-ci-without-domain-parent diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/pom.xml b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/pom.xml index c24f5745fcb..fd52c34ca44 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/pom.xml +++ b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/pom.xml @@ -1,4 +1,24 @@ + @@ -8,13 +28,17 @@ org.drools.testcoverage drools-kie-ci-without-domain-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-kie-ci-without-domain-test-domain Drools :: Test Coverage :: KIE-CI without Domain classes :: Domain + + org.drools.testcoverage.standalone.kieciwithoutdomain.testdomain + + org.kie diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Customer.java b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Customer.java index fd69daa0816..3de07a912b4 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Customer.java +++ b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Customer.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.domain; import java.io.Serializable; diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Drink.java b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Drink.java index e79006517a2..7d98d9df10a 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Drink.java +++ b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Drink.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.domain; import java.io.Serializable; diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Order.java b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Order.java index 9ee48ac477c..64de818020a 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Order.java +++ b/drools-test-coverage/standalone/kie-ci-without-domain/test-domain/src/main/java/org/drools/testcoverage/domain/Order.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.domain; import org.kie.api.definition.type.Modifies; diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/pom.xml b/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/pom.xml index 3d7d9f7459b..6f6f69b4c65 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/pom.xml +++ b/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/pom.xml @@ -1,4 +1,24 @@ + @@ -8,13 +28,17 @@ org.drools.testcoverage drools-kie-ci-without-domain-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-kie-ci-without-domain-test-kjar Drools :: Test Coverage :: KIE-CI without Domain classes :: KJar + + org.drools.testcoverage.standalone.kieciwithoutdomain.testkjar + + org.drools.testcoverage diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/src/main/resources/META-INF/kmodule.xml b/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/src/main/resources/META-INF/kmodule.xml index 09ec9cb7fd9..d624a66c14f 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/src/main/resources/META-INF/kmodule.xml +++ b/drools-test-coverage/standalone/kie-ci-without-domain/test-kjar/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml b/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml index 48a7af0c550..9aed5bac7f7 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml +++ b/drools-test-coverage/standalone/kie-ci-without-domain/tests/pom.xml @@ -1,4 +1,24 @@ + @@ -8,13 +28,17 @@ org.drools.testcoverage drools-kie-ci-without-domain-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-kie-ci-without-domain-tests Drools :: Test Coverage :: KIE-CI without Domain classes :: Tests + + org.drools.testcoverage.standalone.kieciwithoutdomain.tests + + diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/filtered-resources/org/drools/testcoverage/kieci/withoutdomain/testKJarGAV.properties b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/filtered-resources/org/drools/testcoverage/kieci/withoutdomain/testKJarGAV.properties index dec217fac6d..4874fead8dc 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/filtered-resources/org/drools/testcoverage/kieci/withoutdomain/testKJarGAV.properties +++ b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/filtered-resources/org/drools/testcoverage/kieci/withoutdomain/testKJarGAV.properties @@ -1,3 +1,22 @@ +# +# 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. +# + groupId=${project.groupId} artifactId=drools-kie-ci-without-domain-test-kjar version=${project.version} \ No newline at end of file diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/filtered-resources/test-kie-maven-settings.xml b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/filtered-resources/test-kie-maven-settings.xml index 7a5add250b8..f49e21deef0 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/filtered-resources/test-kie-maven-settings.xml +++ b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/filtered-resources/test-kie-maven-settings.xml @@ -1,3 +1,23 @@ + diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/java/org/drools/testcoverage/kieci/withoutdomain/KJarLoadingTest.java b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/java/org/drools/testcoverage/kieci/withoutdomain/KJarLoadingTest.java index f705554833f..06a5f294f66 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/java/org/drools/testcoverage/kieci/withoutdomain/KJarLoadingTest.java +++ b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/java/org/drools/testcoverage/kieci/withoutdomain/KJarLoadingTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.kieci.withoutdomain; import org.drools.testcoverage.kieci.withoutdomain.util.KJarLoadUtils; diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/java/org/drools/testcoverage/kieci/withoutdomain/util/KJarLoadUtils.java b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/java/org/drools/testcoverage/kieci/withoutdomain/util/KJarLoadUtils.java index ada9efb0cea..544830d201c 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/java/org/drools/testcoverage/kieci/withoutdomain/util/KJarLoadUtils.java +++ b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/java/org/drools/testcoverage/kieci/withoutdomain/util/KJarLoadUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.kieci.withoutdomain.util; import org.kie.api.KieServices; diff --git a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/resources/logback-test.xml b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/resources/logback-test.xml index 3a968179687..a655a154a3f 100644 --- a/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/resources/logback-test.xml +++ b/drools-test-coverage/standalone/kie-ci-without-domain/tests/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-test-coverage/standalone/pom.xml b/drools-test-coverage/standalone/pom.xml index 1ca10035e7f..225f940a165 100644 --- a/drools-test-coverage/standalone/pom.xml +++ b/drools-test-coverage/standalone/pom.xml @@ -1,4 +1,24 @@ + @@ -8,7 +28,7 @@ org.drools.testcoverage drools-test-coverage-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-standalone-parent diff --git a/drools-test-coverage/test-compiler-integration/pom.xml b/drools-test-coverage/test-compiler-integration/pom.xml index bb5f6db885c..49ba51a98be 100644 --- a/drools-test-coverage/test-compiler-integration/pom.xml +++ b/drools-test-coverage/test-compiler-integration/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> drools-test-coverage-parent org.drools.testcoverage - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractBackwardChainingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractBackwardChainingTest.java index 549ef351061..c7a4516ec5f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractBackwardChainingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractBackwardChainingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractCellTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractCellTest.java index 87b8b5ab7a5..9bc81fd8184 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractCellTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractCellTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractCepEspTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractCepEspTest.java index 88bcfa63668..c3a308c7728 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractCepEspTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AbstractCepEspTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateCepTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateCepTest.java index 182d4dce698..60569200768 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateCepTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateCepTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateConsistencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateConsistencyTest.java index 4fba72e7ae1..41eb61e5d42 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateConsistencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateConsistencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateMvelDialectTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateMvelDialectTest.java index 80093fa1126..654e28c72c0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateMvelDialectTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateMvelDialectTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateTest.java index f7943f3839b..bce20cc5af3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AccumulateTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.io.ObjectInput; @@ -31,7 +34,6 @@ import org.drools.compiler.integrationtests.incrementalcompilation.TestUtil; import org.drools.core.RuleSessionConfiguration; -import org.drools.core.SessionConfiguration; import org.drools.commands.runtime.rule.InsertElementsCommand; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.testcoverage.common.model.Cheese; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ActivateAndDeleteOnListenerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ActivateAndDeleteOnListenerTest.java index 031c9e6721b..4e295008cd9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ActivateAndDeleteOnListenerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ActivateAndDeleteOnListenerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNetworkModifyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNetworkModifyTest.java index 3c80c630d93..95779125b12 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNetworkModifyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNetworkModifyTest.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests; import java.util.Collection; import java.util.List; -import org.drools.core.base.ClassObjectType; -import org.drools.core.impl.RuleBase; +import org.drools.base.base.ClassObjectType; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.ObjectTypeNode; @@ -52,7 +55,7 @@ public static Collection getParameters() { } private ObjectTypeNode getObjectTypeNode(final KieBase kbase, final String nodeName) { - final List nodes = ((RuleBase)kbase).getRete().getObjectTypeNodes(); + final List nodes = ((InternalRuleBase)kbase).getRete().getObjectTypeNodes(); for ( final ObjectTypeNode n : nodes ) { if ( ((ClassObjectType)n.getObjectType()).getClassType().getSimpleName().equals( nodeName ) ) { return n; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNodeRangeIndexingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNodeRangeIndexingTest.java index 3eb44f68cc2..fd8fca1ca01 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNodeRangeIndexingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNodeRangeIndexingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNodeSharingWithDiffPackageNameTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNodeSharingWithDiffPackageNameTest.java index bd30c19ff2d..e18420490b0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNodeSharingWithDiffPackageNameTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaNodeSharingWithDiffPackageNameTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaTest.java index 2a1f75fa080..ba9b198931a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AlphaTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsCepTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsCepTest.java index 1661898a3a2..6f14418494f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsCepTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsCepTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsOnPatternTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsOnPatternTest.java index ad02cc87e60..af509a19d0d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsOnPatternTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsOnPatternTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Arrays; @@ -21,10 +23,10 @@ import java.util.List; import java.util.Map; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.AnnotationDefinition; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.AnnotationDefinition; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.KieUtil; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsTest.java index 932c91d383a..0a737a950e1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/AnnotationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.lang.annotation.Annotation; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ArrayTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ArrayTest.java index 2014f1b3128..ab781ef687c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ArrayTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ArrayTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BackwardChainingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BackwardChainingTest.java index 684258e247a..a0fd4c1212f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BackwardChainingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BackwardChainingTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.io.IOException; @@ -28,11 +31,11 @@ import java.util.Set; import org.drools.compiler.integrationtests.incrementalcompilation.TestUtil; -import org.drools.core.InitialFact; -import org.drools.core.base.ClassObjectType; +import org.drools.base.InitialFact; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.AccumulateNode; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.BetaNode; @@ -2219,7 +2222,7 @@ public void testSubNetworksAndQueries() { // Get the accumulate node, so we can test it's memory later // now check beta memory was correctly cleared - final List nodes = ((RuleBase) kbase).getRete().getObjectTypeNodes(); + final List nodes = ((InternalRuleBase) kbase).getRete().getObjectTypeNodes(); ObjectTypeNode node = null; for (final ObjectTypeNode n : nodes) { if ((( ClassObjectType ) n.getObjectType()).getClassType() == String.class) { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BetaTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BetaTest.java index 88e262b68d7..a939bd41741 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BetaTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BetaTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BigRuleSetCompilationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BigRuleSetCompilationTest.java index 9a52c209ce0..21266b156cd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BigRuleSetCompilationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/BigRuleSetCompilationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CalendarTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CalendarTest.java index b0f02960417..3130b72d5a7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CalendarTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CalendarTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CellTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CellTest.java index b303f56d0f9..84f45b99538 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CellTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CellTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepEspNegativeCloudTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepEspNegativeCloudTest.java index df8ae2494ad..17f87ca5159 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepEspNegativeCloudTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepEspNegativeCloudTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepEspTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepEspTest.java index 524b10b9cc2..9e5795baf7c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepEspTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepEspTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests; import java.io.ByteArrayInputStream; @@ -42,22 +45,22 @@ import java.util.concurrent.atomic.AtomicInteger; import org.drools.core.WorkingMemory; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.base.ObjectType; +import org.drools.base.rule.EntryPointId; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.base.ObjectType; import org.drools.core.time.impl.DurationTimer; import org.drools.core.time.impl.PseudoClockScheduler; -import org.drools.core.util.TimeIntervalParser; +import org.drools.base.util.TimeIntervalParser; import org.drools.kiesession.audit.WorkingMemoryFileLogger; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.drools.testcoverage.common.model.OrderEvent; @@ -133,7 +136,7 @@ public void testComplexTimestamp() { props.put("duration", 52); msg.setProperties(props); - final EventFactHandle efh = (EventFactHandle) ksession.insert(msg); + final DefaultEventHandle efh = (DefaultEventHandle) ksession.insert(msg); assertThat(efh.getStartTimestamp()).isEqualTo(98); assertThat(efh.getDuration()).isEqualTo(53); } finally { @@ -157,7 +160,7 @@ public void testJavaSqlTimestamp() { msg.setStartTime(new Timestamp(10000)); msg.setDuration(1000L); - final EventFactHandle efh = (EventFactHandle) ksession.insert(msg); + final DefaultEventHandle efh = (DefaultEventHandle) ksession.insert(msg); assertThat(efh.getStartTimestamp()).isEqualTo(10000); assertThat(efh.getDuration()).isEqualTo(1000); } finally { @@ -346,10 +349,10 @@ public void testEventAssertionWithDuration() { assertThat(handle3.isEvent()).isTrue(); assertThat(handle4.isEvent()).isTrue(); - final EventFactHandle eh1 = (EventFactHandle) handle1; - final EventFactHandle eh2 = (EventFactHandle) handle2; - final EventFactHandle eh3 = (EventFactHandle) handle3; - final EventFactHandle eh4 = (EventFactHandle) handle4; + final DefaultEventHandle eh1 = (DefaultEventHandle) handle1; + final DefaultEventHandle eh2 = (DefaultEventHandle) handle2; + final DefaultEventHandle eh3 = (DefaultEventHandle) handle3; + final DefaultEventHandle eh4 = (DefaultEventHandle) handle4; assertThat(eh1.getStartTimestamp()).isEqualTo(tick1.getTime()); assertThat(eh2.getStartTimestamp()).isEqualTo(tick2.getTime()); @@ -416,10 +419,10 @@ public void testEventAssertionWithDateTimestamp() { assertThat(handle3.isEvent()).isTrue(); assertThat(handle4.isEvent()).isTrue(); - final EventFactHandle eh1 = (EventFactHandle) handle1; - final EventFactHandle eh2 = (EventFactHandle) handle2; - final EventFactHandle eh3 = (EventFactHandle) handle3; - final EventFactHandle eh4 = (EventFactHandle) handle4; + final DefaultEventHandle eh1 = (DefaultEventHandle) handle1; + final DefaultEventHandle eh2 = (DefaultEventHandle) handle2; + final DefaultEventHandle eh3 = (DefaultEventHandle) handle3; + final DefaultEventHandle eh4 = (DefaultEventHandle) handle4; assertThat(eh1.getStartTimestamp()).isEqualTo(tick1.getTime()); assertThat(eh2.getStartTimestamp()).isEqualTo(tick2.getTime()); @@ -455,7 +458,7 @@ public void testEventExpiration() { final KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("cep-esp-test", kieBaseTestConfiguration, drl); // read in the source - final TypeDeclaration factType = ((RuleBase) kbase).getTypeDeclaration(StockTick.class); + final TypeDeclaration factType = ((InternalRuleBase) kbase).getTypeDeclaration(StockTick.class); assertThat(factType.getExpirationOffset()).isEqualTo(TimeIntervalParser.parse("1h30m")[0]); } @@ -498,7 +501,7 @@ private void testEventExpiration(final String afterBoundary, final String window final KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("cep-esp-test", kieBaseTestConfiguration, drl); - final Map objectTypeNodes = ((RuleBase) kbase).getRete().getObjectTypeNodes(EntryPointId.DEFAULT); + final Map objectTypeNodes = ((InternalRuleBase) kbase).getRete().getObjectTypeNodes(EntryPointId.DEFAULT); final ObjectTypeNode node = objectTypeNodes.get(new ClassObjectType(StockTick.class)); assertThat(node).isNotNull(); @@ -536,7 +539,7 @@ public void testEventExpiration4() { final List results = new ArrayList(); ksession.setGlobal("results", results); - final EventFactHandle handle1 = (EventFactHandle) eventStream.insert(new StockTick(1, "ACME", 50, System.currentTimeMillis(), 3)); + final DefaultEventHandle handle1 = (DefaultEventHandle) eventStream.insert(new StockTick(1, "ACME", 50, System.currentTimeMillis(), 3)); ksession.fireAllRules(); @@ -876,7 +879,7 @@ public void testSimpleTimeWindow() { final SessionPseudoClock clock = wm.getSessionClock(); clock.advanceTime(5, TimeUnit.SECONDS); // 5 seconds - final EventFactHandle handle1 = (EventFactHandle) wm.insert(new OrderEvent("1", "customer A", 70)); + final DefaultEventHandle handle1 = (DefaultEventHandle) wm.insert(new OrderEvent("1", "customer A", 70)); assertThat(handle1.getStartTimestamp()).isEqualTo(5000); assertThat(handle1.getDuration()).isEqualTo(0); @@ -887,7 +890,7 @@ public void testSimpleTimeWindow() { // advance clock and assert new data clock.advanceTime(10, TimeUnit.SECONDS); // 10 seconds - final EventFactHandle handle2 = (EventFactHandle) wm.insert(new OrderEvent("2", "customer A", 60)); + final DefaultEventHandle handle2 = (DefaultEventHandle) wm.insert(new OrderEvent("2", "customer A", 60)); assertThat(handle2.getStartTimestamp()).isEqualTo(15000); assertThat(handle2.getDuration()).isEqualTo(0); @@ -898,7 +901,7 @@ public void testSimpleTimeWindow() { // advance clock and assert new data clock.advanceTime(10, TimeUnit.SECONDS); // 10 seconds - final EventFactHandle handle3 = (EventFactHandle) wm.insert(new OrderEvent("3", "customer A", 50)); + final DefaultEventHandle handle3 = (DefaultEventHandle) wm.insert(new OrderEvent("3", "customer A", 50)); assertThat(handle3.getStartTimestamp()).isEqualTo(25000); assertThat(handle3.getDuration()).isEqualTo(0); @@ -909,7 +912,7 @@ public void testSimpleTimeWindow() { // advance clock and assert new data clock.advanceTime(10, TimeUnit.SECONDS); // 10 seconds - final EventFactHandle handle4 = (EventFactHandle) wm.insert(new OrderEvent("4", "customer A", 25)); + final DefaultEventHandle handle4 = (DefaultEventHandle) wm.insert(new OrderEvent("4", "customer A", 25)); assertThat(handle4.getStartTimestamp()).isEqualTo(35000); assertThat(handle4.getDuration()).isEqualTo(0); @@ -920,7 +923,7 @@ public void testSimpleTimeWindow() { // advance clock and assert new data clock.advanceTime(10, TimeUnit.SECONDS); // 10 seconds - final EventFactHandle handle5 = (EventFactHandle) wm.insert(new OrderEvent("5", "customer A", 70)); + final DefaultEventHandle handle5 = (DefaultEventHandle) wm.insert(new OrderEvent("5", "customer A", 70)); assertThat(handle5.getStartTimestamp()).isEqualTo(45000); assertThat(handle5.getDuration()).isEqualTo(0); @@ -931,7 +934,7 @@ public void testSimpleTimeWindow() { // advance clock and assert new data clock.advanceTime(10, TimeUnit.SECONDS); // 10 seconds - final EventFactHandle handle6 = (EventFactHandle) wm.insert(new OrderEvent("6", "customer A", 115)); + final DefaultEventHandle handle6 = (DefaultEventHandle) wm.insert(new OrderEvent("6", "customer A", 115)); assertThat(handle6.getStartTimestamp()).isEqualTo(55000); assertThat(handle6.getDuration()).isEqualTo(0); @@ -4310,11 +4313,11 @@ public void testDisconnectedEventFactHandle() { final DefaultFactHandle goodbyeHandle = (DefaultFactHandle) ksession.insert("goodbye"); FactHandle key = DefaultFactHandle.createFromExternalFormat(helloHandle.toExternalForm()); - assertThat(key instanceof EventFactHandle).as("FactHandle not deserialized as EventFactHandle").isTrue(); + assertThat(key instanceof DefaultEventHandle).as("FactHandle not deserialized as EventFactHandle").isTrue(); assertThat(ksession.getObject(key)).isEqualTo("hello"); key = DefaultFactHandle.createFromExternalFormat(goodbyeHandle.toExternalForm()); - assertThat(key instanceof EventFactHandle).as("FactHandle not deserialized as EventFactHandle").isTrue(); + assertThat(key instanceof DefaultEventHandle).as("FactHandle not deserialized as EventFactHandle").isTrue(); assertThat(ksession.getObject(key)).isEqualTo("goodbye"); } finally { ksession.dispose(); @@ -4377,7 +4380,7 @@ public void testDeleteExpiredEvent() { try { final PseudoClockScheduler clock = ksession.getSessionClock(); - final EventFactHandle handle1 = (EventFactHandle) ksession.insert(new StockTick(1, "ACME", 50)); + final DefaultEventHandle handle1 = (DefaultEventHandle) ksession.insert(new StockTick(1, "ACME", 50)); ksession.fireAllRules(); clock.advanceTime(2, TimeUnit.SECONDS); @@ -4414,7 +4417,7 @@ public void testDeleteExpiredEventWithTimestampAndEqualityKey() { final PseudoClockScheduler clock = ksession.getSessionClock(); clock.setStartupTime(5000L); - final EventFactHandle handle1 = (EventFactHandle) ksession.insert(new StockTick(1, "ACME", 50, 0L)); + final DefaultEventHandle handle1 = (DefaultEventHandle) ksession.insert(new StockTick(1, "ACME", 50, 0L)); clock.advanceTime(2, TimeUnit.SECONDS); ksession.fireAllRules(); @@ -4592,7 +4595,7 @@ public void testSubclassWithLongerExpirationThanSuper() { try { final PseudoClockScheduler clock = ksession.getSessionClock(); - final EventFactHandle handle1 = (EventFactHandle) ksession.insert(new SubClass()); + final DefaultEventHandle handle1 = (DefaultEventHandle) ksession.insert(new SubClass()); ksession.fireAllRules(); clock.advanceTime(15, TimeUnit.SECONDS); @@ -4631,7 +4634,7 @@ public void testSubclassWithLongerExpirationThanSuperWithSerialization() { try { PseudoClockScheduler clock = ksession.getSessionClock(); - final EventFactHandle handle1 = (EventFactHandle) ksession.insert(new SubClass()); + final DefaultEventHandle handle1 = (DefaultEventHandle) ksession.insert(new SubClass()); ksession.fireAllRules(); clock.advanceTime(15, TimeUnit.SECONDS); @@ -5085,8 +5088,8 @@ public void testExpiredEventWithPendingActivations() throws Exception { // actually should be empty.. for (final Object o : session.getFactHandles()) { - if (o instanceof EventFactHandle) { - final EventFactHandle eventFactHandle = (EventFactHandle) o; + if (o instanceof DefaultEventHandle) { + final DefaultEventHandle eventFactHandle = (DefaultEventHandle) o; assertThat(eventFactHandle.isExpired()).isFalse(); } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepFireUntilHaltTimerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepFireUntilHaltTimerTest.java index a00950397e0..79075002622 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepFireUntilHaltTimerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepFireUntilHaltTimerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepJavaTypeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepJavaTypeTest.java index 0766a6ccd21..451c5a28c19 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepJavaTypeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepJavaTypeTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepQueryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepQueryTest.java index 134569b63d3..cd781f9cfb0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepQueryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CepQueryTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ClassLoaderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ClassLoaderTest.java index eed515d1bda..cd44b685e1e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ClassLoaderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ClassLoaderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.io.StringReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CommandsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CommandsTest.java index 825ba7984c6..ad42a905458 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CommandsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CommandsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CompositeAgendaTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CompositeAgendaTest.java index 757653cf283..fee0df07833 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CompositeAgendaTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CompositeAgendaTest.java @@ -1,26 +1,23 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.LongAdder; - import org.drools.testcoverage.common.model.A; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.junit.Ignore; @@ -30,10 +27,15 @@ import org.kie.api.KieBaseConfiguration; import org.kie.api.io.ResourceType; import org.kie.api.runtime.KieSession; -import org.kie.internal.conf.MultithreadEvaluationOption; +import org.kie.internal.conf.ParallelExecutionOption; import org.kie.internal.utils.KieHelper; import org.kie.test.testcategory.TurtleTestCategory; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.LongAdder; + import static org.assertj.core.api.Assertions.fail; @Category(TurtleTestCategory.class) @@ -94,7 +96,7 @@ public void testCreateHaltDisposeAgenda() { " end"; final KieBaseConfiguration kieBaseConfiguration = KieBaseTestConfiguration.STREAM_IDENTITY.getKieBaseConfiguration(); - kieBaseConfiguration.setOption(MultithreadEvaluationOption.YES); + kieBaseConfiguration.setOption(ParallelExecutionOption.FULLY_PARALLEL); final KieBase kieBase = new KieHelper().addContent(drl, ResourceType.DRL).build(kieBaseConfiguration); final KieSession kieSession = kieBase.newKieSession(); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConditionLimitTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConditionLimitTest.java index 6c6efa421cd..ed6455944e2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConditionLimitTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConditionLimitTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConsequenceOffsetTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConsequenceOffsetTest.java index 9501bd62560..3df7f6dd35b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConsequenceOffsetTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConsequenceOffsetTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConstraintsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConstraintsTest.java index 970ba77513c..a67fc39c7be 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConstraintsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ConstraintsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CustomOperatorOnlyDrlTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CustomOperatorOnlyDrlTest.java index 9ba1a4aee02..5ed622236b2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CustomOperatorOnlyDrlTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CustomOperatorOnlyDrlTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.io.IOException; @@ -20,14 +23,13 @@ import java.io.ObjectOutput; import java.util.Collection; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.evaluators.BaseEvaluator; import org.drools.mvel.evaluators.VariableRestriction; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; @@ -36,6 +38,7 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; +import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.builder.conf.EvaluatorOption; @RunWith(Parameterized.class) @@ -167,23 +170,23 @@ public F_StrEvaluator(final ValueType type, final boolean isNegated) { super(type, isNegated ? F_StrEvaluatorDefinition.NOT_STR_COMPARE : F_StrEvaluatorDefinition.STR_COMPARE); } - public boolean evaluate(final ReteEvaluator reteEvaluator, final ReadAccessor extractor, final InternalFactHandle factHandle, final FieldValue value) { - final Object objectValue = extractor.getValue(reteEvaluator, factHandle); + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, final FactHandle factHandle, final FieldValue value) { + final Object objectValue = extractor.getValue(valueResolver, factHandle); final String objectValueString = (String) objectValue; return evaluateAll((String) value.getValue(), objectValueString); } - public boolean evaluate(final ReteEvaluator reteEvaluator, final ReadAccessor ira, final InternalFactHandle left, final ReadAccessor ira1, final InternalFactHandle right) { + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor ira, final FactHandle left, final ReadAccessor ira1, final FactHandle right) { return evaluateAll((String) left.getObject(), (String) right.getObject()); } - public boolean evaluateCachedLeft(final ReteEvaluator reteEvaluator, final VariableRestriction.VariableContextEntry context, final InternalFactHandle right) { - final Object valRight = context.extractor.getValue(reteEvaluator, right); + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableRestriction.VariableContextEntry context, final FactHandle right) { + final Object valRight = context.extractor.getValue(valueResolver, right); return evaluateAll((String) ((VariableRestriction.ObjectVariableContextEntry) context).left, (String) valRight); } - public boolean evaluateCachedRight(final ReteEvaluator reteEvaluator, final VariableRestriction.VariableContextEntry context, final InternalFactHandle left) { - final Object varLeft = context.declaration.getExtractor().getValue(reteEvaluator, left); + public boolean evaluateCachedRight(final ValueResolver valueResolver, final VariableRestriction.VariableContextEntry context, final FactHandle left) { + final Object varLeft = context.declaration.getExtractor().getValue(valueResolver, left); return evaluateAll((String) varLeft, (String) ((VariableRestriction.ObjectVariableContextEntry) context).right); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CustomOperatorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CustomOperatorTest.java index 16a2a226aa0..1ffeee7c029 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CustomOperatorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/CustomOperatorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.io.IOException; @@ -20,14 +23,13 @@ import java.io.ObjectOutput; import java.util.Collection; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.evaluators.BaseEvaluator; import org.drools.mvel.evaluators.VariableRestriction; import org.drools.testcoverage.common.model.Address; @@ -40,6 +42,7 @@ import org.junit.runners.Parameterized; import org.kie.api.KieBase; import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.rule.FactHandle; import org.kie.internal.builder.conf.EvaluatorOption; import static org.assertj.core.api.Assertions.assertThat; @@ -162,21 +165,21 @@ public SupersetOfEvaluator(final ValueType type, final boolean isNegated) { super(type, isNegated ? SupersetOfEvaluatorDefinition.NOT_SUPERSET_OF : SupersetOfEvaluatorDefinition.SUPERSET_OF); } - public boolean evaluate(final ReteEvaluator reteEvaluator, final ReadAccessor extractor, final InternalFactHandle factHandle, final FieldValue value) { - final Object objectValue = extractor.getValue(reteEvaluator, factHandle); + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor extractor, final FactHandle factHandle, final FieldValue value) { + final Object objectValue = extractor.getValue(valueResolver, factHandle); return evaluateAll((Collection) value.getValue(), (Collection) objectValue); } - public boolean evaluate(final ReteEvaluator reteEvaluator, final ReadAccessor ira, final InternalFactHandle left, final ReadAccessor ira1, final InternalFactHandle right) { + public boolean evaluate(final ValueResolver valueResolver, final ReadAccessor ira, final FactHandle left, final ReadAccessor ira1, final FactHandle right) { return evaluateAll((Collection) left.getObject(), (Collection) right.getObject()); } - public boolean evaluateCachedLeft(final ReteEvaluator reteEvaluator, final VariableRestriction.VariableContextEntry context, final InternalFactHandle right) { - final Object valRight = context.extractor.getValue(reteEvaluator, right.getObject()); + public boolean evaluateCachedLeft(final ValueResolver valueResolver, final VariableRestriction.VariableContextEntry context, final FactHandle right) { + final Object valRight = context.extractor.getValue(valueResolver, right.getObject()); return evaluateAll((Collection) ((VariableRestriction.ObjectVariableContextEntry) context).left, (Collection) valRight); } - public boolean evaluateCachedRight(final ReteEvaluator reteEvaluator, final VariableRestriction.VariableContextEntry context, final InternalFactHandle left) { + public boolean evaluateCachedRight(final ValueResolver reteEvaluator, final VariableRestriction.VariableContextEntry context, final FactHandle left) { final Object varLeft = context.declaration.getExtractor().getValue(reteEvaluator, left); return evaluateAll((Collection) varLeft, (Collection) ((VariableRestriction.ObjectVariableContextEntry) context).right); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ErrorOnInsertLogicalTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ErrorOnInsertLogicalTest.java index ad16fcbf682..24fa39fcb7a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ErrorOnInsertLogicalTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ErrorOnInsertLogicalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.io.StringReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/FromSharingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/FromSharingTest.java index dbf37a142bc..b90a9f29f6a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/FromSharingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/FromSharingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ImmutableFactsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ImmutableFactsTest.java index 8727d8f84fa..c16e4ff35d2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ImmutableFactsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/ImmutableFactsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/IndexingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/IndexingTest.java index f7e5188f14d..67794b1f1ab 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/IndexingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/IndexingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.math.BigDecimal; @@ -24,15 +26,16 @@ import java.util.Map; import org.drools.ancompiler.CompiledNetwork; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.DroolsQuery; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.ClassObjectType; +import org.drools.core.common.BetaConstraints; import org.drools.core.common.DoubleNonIndexSkipBetaConstraints; import org.drools.core.common.EmptyBetaConstraints; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.SingleBetaConstraints; import org.drools.core.common.TripleNonIndexSkipBetaConstraints; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.CompositeObjectSinkAdapter; @@ -41,9 +44,11 @@ import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.ObjectSinkPropagator; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.reteoo.ReteDumper; import org.drools.core.reteoo.RightTuple; +import org.drools.core.reteoo.RightTupleImpl; +import org.drools.core.reteoo.TupleMemory; import org.drools.core.util.FastIterator; +import org.drools.core.util.index.TupleIndexHashTable; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.drools.testcoverage.common.model.Cheese; import org.drools.testcoverage.common.model.Person; @@ -255,7 +260,7 @@ public void testIndexingOnQueryUnification() { final KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("indexing-test", kieBaseTestConfiguration, drl); final InternalWorkingMemory wm = (InternalWorkingMemory) kbase.newKieSession(); try { - final List nodes = ((RuleBase) kbase).getRete().getObjectTypeNodes(); + final List nodes = ((InternalRuleBase) kbase).getRete().getObjectTypeNodes(); ObjectTypeNode node = null; for (final ObjectTypeNode n : nodes) { if (((ClassObjectType) n.getObjectType()).getClassType() == DroolsQuery.class) { @@ -290,9 +295,8 @@ public void testIndexingOnQueryUnificationWithNot() { final KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("indexing-test", kieBaseTestConfiguration, drl); final StatefulKnowledgeSessionImpl wm = (StatefulKnowledgeSessionImpl) kbase.newKieSession(); - ReteDumper.dumpRete( wm ); try { - final List nodes = ((RuleBase) kbase).getRete().getObjectTypeNodes(); + final List nodes = ((InternalRuleBase) kbase).getRete().getObjectTypeNodes(); ObjectTypeNode node = null; for (final ObjectTypeNode n : nodes) { if (((ClassObjectType) n.getObjectType()).getClassType() == DroolsQuery.class) { @@ -425,7 +429,7 @@ public void testFullFastIteratorResume() { final KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("indexing-test", kieBaseTestConfiguration, drl); final StatefulKnowledgeSessionImpl wm = (StatefulKnowledgeSessionImpl) kbase.newKieSession(); try { - final List nodes = ((RuleBase) kbase).getRete().getObjectTypeNodes(); + final List nodes = ((InternalRuleBase) kbase).getRete().getObjectTypeNodes(); ObjectTypeNode node = null; for (final ObjectTypeNode n : nodes) { if (((ClassObjectType) n.getObjectType()).getClassType() == DroolsQuery.class) { @@ -479,8 +483,9 @@ public void rowUpdated(final Row row) { // check we can resume from each entry in the list above. for (int i = 0; i < 100; i++) { - final RightTuple rightTuple = list.get(i); - it = bm.getRightTupleMemory().fullFastIterator(rightTuple); // resumes from the current rightTuple + final RightTupleImpl rightTuple = (RightTupleImpl) list.get(i); + TupleMemory rightTupleMemory = bm.getRightTupleMemory(); + it = (rightTupleMemory).fullFastIterator(rightTuple); // resumes from the current rightTuple int j = i + 1; for (RightTuple rt = (RightTuple) it.next(rightTuple); rt != null; rt = (RightTuple) it.next(rt)) { assertThat(rt).isSameAs(list.get(j)); @@ -1098,4 +1103,80 @@ public void testAlphaIndexOnThis() { ksession.dispose(); } } + + public void betaIndexWithBigDecimalAndInt() { + String constraints = "salary == $p1.salary, age == $p1.age"; + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10")), new Person("Paul", 30, new BigDecimal("10")), true, 1); + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10")), new Person("Paul", 28, new BigDecimal("10")), false, 1); + } + + @Test + public void betaIndexWithIntAndBigDecimal() { + String constraints = "age == $p1.age, salary == $p1.salary"; + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10")), new Person("Paul", 30, new BigDecimal("10")), true, 1); + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10")), new Person("Paul", 28, new BigDecimal("10")), false, 1); + } + + @Test + public void betaIndexWithIntAndBigDecimalAndString() { + String constraints = "age == $p1.age, salary == $p1.salary, likes == $p1.likes"; + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10"), "dog"), new Person("Paul", 30, new BigDecimal("10"), "dog"), true, 2); + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10"), "dog"), new Person("Paul", 30, new BigDecimal("10"), "cat"), false, 2); + } + + @Test + public void betaIndexWithIntInequalityAndBigDecimal() { + String constraints = "age > $p1.age, salary == $p1.salary"; + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10")), new Person("Paul", 40, new BigDecimal("10")), true, 0); + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10")), new Person("Paul", 28, new BigDecimal("10")), false, 0); + } + + @Test + public void betaIndexWithBigDecimalOnly() { + String constraints = "salary == $p1.salary"; + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10")), new Person("Paul", 28, new BigDecimal("10")), true, 0); + betaIndexWithBigDecimalWithAdditionalBetaConstraint(constraints, new Person("John", 30, new BigDecimal("10")), new Person("Paul", 28, new BigDecimal("20")), false, 0); + } + + private void betaIndexWithBigDecimalWithAdditionalBetaConstraint(String constraints, Person firstPerson, Person secondPerson, boolean shouldMatch, int expectedIndexCount) { + final String drl = + "package org.drools.compiler.test\n" + + "import " + Person.class.getCanonicalName() + "\n" + + "global java.util.List list\n" + + "rule R1\n" + + " when\n" + + " $p1 : Person( name == \"John\" )\n" + + " $p2 : Person( name == \"Paul\", " + constraints + " )\n" + + " then\n" + + " list.add(\"R1\");\n" + + "end"; + + final KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("indexing-test", kieBaseTestConfiguration, drl); + + assertBetaIndex(kbase, Person.class, expectedIndexCount); + + KieSession ksession = kbase.newKieSession(); + + try { + List list = new ArrayList<>(); + ksession.setGlobal("list", list); + ksession.insert(firstPerson); + ksession.insert(secondPerson); + ksession.fireAllRules(); + + if (shouldMatch) { + assertThat(list).as("These constraints should match : " + constraints).containsExactly("R1"); + } else { + assertThat(list).as("These constraints should not match : " + constraints).isEmpty(); + } + } finally { + ksession.dispose(); + } + } + + private void assertBetaIndex(KieBase kbase, Class clazz, int expectedIndexCount) { + final JoinNode joinNode = KieUtil.getJoinNode(kbase, clazz); + BetaConstraints betaConstraints = joinNode.getRawConstraints(); + assertThat(betaConstraints.getIndexCount()).as("IndexCount represents how many constrains are indexed").isEqualTo(expectedIndexCount); + } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/JoinNodeRangeIndexingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/JoinNodeRangeIndexingTest.java index 8be3472426a..243727f1728 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/JoinNodeRangeIndexingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/JoinNodeRangeIndexingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/KieBaseIncludeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/KieBaseIncludeTest.java index e0aac4d0acc..46006bac4d9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/KieBaseIncludeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/KieBaseIncludeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.io.File; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/MultiSheetsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/MultiSheetsTest.java index 7eb7deb7c26..8e37053a634 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/MultiSheetsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/MultiSheetsTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/NegativePatternsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/NegativePatternsTest.java index 905966286e7..6aa38d2258a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/NegativePatternsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/NegativePatternsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PassivePatternTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PassivePatternTest.java index 19dc8b0a596..f6646b0209c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PassivePatternTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PassivePatternTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PropertyChangeSupportTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PropertyChangeSupportTest.java index fcdb80cc3fd..4dd9b680800 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PropertyChangeSupportTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PropertyChangeSupportTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.beans.PropertyChangeListener; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PropertyReactivityTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PropertyReactivityTest.java index 2945f31cc25..f678d176e3c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PropertyReactivityTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/PropertyReactivityTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/QueryConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/QueryConcurrencyTest.java index c351a86bf6d..1466191487f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/QueryConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/QueryConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/RuleChainingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/RuleChainingTest.java index 61cd9656b92..81c0dc86405 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/RuleChainingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/RuleChainingTest.java @@ -1,24 +1,23 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; -import java.util.Collection; -import java.util.List; - import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.TestParametersUtil; @@ -35,6 +34,9 @@ import org.mockito.ArgumentCaptor; import org.mockito.Mockito; +import java.util.Collection; +import java.util.List; + import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.never; @@ -123,4 +125,54 @@ public void testRuleChainingWithLogicalInserts() { ksession.dispose(); } } + + @Test + public void testDoubleInsertLogical() { + // DROOLS-7525 + final String drl = + "package org.test;\n" + + "\n" + + "declare Fact\n" + + " value : Integer\n" + + "end\n" + + "\n" + + "declare Logical\n" + + " value : Integer\n" + + "end\n" + + "\n" + + "rule \"Init\"\n" + + " when\n" + + " then\n" + + " insert(new Fact(1));\n" + + " insert(new Fact(2));\n" + + "end\n" + + "\n" + + "rule \"Eliminate all\"\n" + + " when\n" + + " $fact : Fact($val : value)\n" + + " not( Fact(value < $val) )\n" + + " Logical(value == $val)\n" + + " then\n" + + " System.out.println(\"delete\" + $fact);\n" + + " delete($fact);\n" + + "end\n" + + "\n" + + "rule \"Logical\"\n" + + " when\n" + + " Fact(value==1)\n" + + " then\n" + + " insertLogical(new Logical(1));\n" + + " insertLogical(new Logical(2));\n" + + "end"; + + final KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("logical-test", kieBaseTestConfiguration, drl); + final KieSession ksession = kbase.newKieSession(); + + ksession.fireAllRules(); + + // The retraction of Fact(1) should also cause the immediate deletion of both Logical(1) and Logical(2) + // thus preventing rule "Eliminate all" to fire a second time and leaving Fact(2) in the working memory + assertThat(ksession.getObjects()).hasSize(1); + assertThat(ksession.getObjects().iterator().next().toString()).isEqualTo("Fact( value=2 )"); + } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SharingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SharingTest.java index c9447937908..485b3097808 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SharingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SharingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.math.BigDecimal; @@ -21,13 +23,13 @@ import java.util.Collection; import java.util.List; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.CompositeObjectSinkAdapter; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.modelcompiler.constraints.LambdaConstraint; import org.drools.mvel.MVELConstraint; import org.drools.testcoverage.common.model.FactWithList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/StreamsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/StreamsTest.java index 00e0dbc3e3b..65c323457ba 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/StreamsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/StreamsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.compiler.integrationtests; @@ -20,11 +23,11 @@ import java.util.List; import java.util.concurrent.TimeUnit; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalFactHandle; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.base.ObjectType; +import org.drools.base.rule.EntryPointId; +import org.drools.base.base.ObjectType; import org.drools.core.time.impl.PseudoClockScheduler; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.testcoverage.common.model.Cheese; @@ -49,7 +52,7 @@ import org.mockito.ArgumentCaptor; import static org.assertj.core.api.Assertions.assertThat; -import static org.drools.core.rule.TypeDeclaration.NEVER_EXPIRES; +import static org.drools.base.rule.TypeDeclaration.NEVER_EXPIRES; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SubnetworkCEPTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SubnetworkCEPTest.java index 7c863379db1..219a2f44382 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SubnetworkCEPTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SubnetworkCEPTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SubnetworkTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SubnetworkTest.java index 1330855e65c..dadf5387ac3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SubnetworkTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/SubnetworkTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarExceptionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarExceptionTest.java index 66a157c91b6..b5635a34f46 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarExceptionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarExceptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarFireUntilHaltTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarFireUntilHaltTest.java index ba9c06ce7b3..c36fac63bc9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarFireUntilHaltTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarFireUntilHaltTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.time.Duration; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarWithPseudoTimeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarWithPseudoTimeTest.java index f1ca194456d..a4649ec7573 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarWithPseudoTimeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarWithPseudoTimeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.text.DateFormat; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarWithRealTimeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarWithRealTimeTest.java index 790f05ea5c1..9dd92362d58 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarWithRealTimeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/TimerAndCalendarWithRealTimeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/AccumulateFunctionConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/AccumulateFunctionConcurrencyTest.java index f8446069eee..289579c7f9c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/AccumulateFunctionConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/AccumulateFunctionConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Album.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Album.java index f0ab8460135..a685649a164 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Album.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Album.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; public class Album { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/BaseConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/BaseConcurrencyTest.java index 1227b12ce8f..9fd8a1c9ff7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/BaseConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/BaseConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Bus.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Bus.java index 75fceb97dd9..7e0f8611a7a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Bus.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Bus.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConsequenceConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConsequenceConcurrencyTest.java index 82e0c3f4789..d9f047ba415 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConsequenceConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConsequenceConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConsequenceWithAndOrConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConsequenceWithAndOrConcurrencyTest.java index 2a32d809c69..52079684107 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConsequenceWithAndOrConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConsequenceWithAndOrConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintConcurrencyTest.java index a59878a82e5..50996882b08 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintWithAndOrConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintWithAndOrConcurrencyTest.java index a36c7b86fc2..755be00e1af 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintWithAndOrConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintWithAndOrConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintWithAndOrJittingConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintWithAndOrJittingConcurrencyTest.java index f8f2c2a55ec..1e5bd57647b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintWithAndOrJittingConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/ConstraintWithAndOrJittingConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/EvalConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/EvalConcurrencyTest.java index 39fb05528da..fe51f4a74c1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/EvalConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/EvalConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/FromAccumulateConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/FromAccumulateConcurrencyTest.java index b28926eddbe..cd652c5ce71 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/FromAccumulateConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/FromAccumulateConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/GlobalConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/GlobalConcurrencyTest.java index 1e87dfe7b1b..317d0501445 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/GlobalConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/GlobalConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Karaoke.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Karaoke.java index c3f1f7e59ee..ad754878220 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Karaoke.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/Karaoke.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collections; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELDateClassFieldReaderConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELDateClassFieldReaderConcurrencyTest.java index 9d967b5daed..c4479ef3758 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELDateClassFieldReaderConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELDateClassFieldReaderConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELNumberClassFieldReaderConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELNumberClassFieldReaderConcurrencyTest.java index 75be20b90bf..b104a5d4b3a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELNumberClassFieldReaderConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELNumberClassFieldReaderConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELObjectClassFieldReaderConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELObjectClassFieldReaderConcurrencyTest.java index 10c960f5fe4..129ee86fe8e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELObjectClassFieldReaderConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/MVELObjectClassFieldReaderConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/StaticUtils.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/StaticUtils.java index 182b37b4f4c..54e8a0897c2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/StaticUtils.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/concurrency/StaticUtils.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.concurrency; public class StaticUtils { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/AbstractDeclareTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/AbstractDeclareTest.java index 40e007a6829..ae2c73ab465 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/AbstractDeclareTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/AbstractDeclareTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/BindTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/BindTest.java index 0a23a47e82b..274f73616ce 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/BindTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/BindTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/CommentTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/CommentTest.java index 88f44891954..256298cfe16 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/CommentTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/CommentTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ConsequenceTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ConsequenceTest.java index 4f60531d901..7b645668712 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ConsequenceTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ConsequenceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DRLCepTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DRLCepTest.java index c484851bb82..3ba7d1292d7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DRLCepTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DRLCepTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DRLTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DRLTest.java index 3317b65352a..796da8ad124 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DRLTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DRLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DeclareTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DeclareTest.java index 9e362465bf1..ee85a7a6c2e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DeclareTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DeclareTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DrlSpecificFeaturesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DrlSpecificFeaturesTest.java index 15c6450e4e1..8d927b5e6d4 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DrlSpecificFeaturesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/DrlSpecificFeaturesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.ArrayList; @@ -35,7 +37,8 @@ import org.kie.api.runtime.KieSession; import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Assertions.fail; +import static org.assertj.core.api.Assertions.assertThatCode; +import static org.assertj.core.api.Assertions.assertThatThrownBy; @RunWith(Parameterized.class) public class DrlSpecificFeaturesTest { @@ -197,33 +200,27 @@ public void testNoneTypeSafeDeclarations() { } private void executeTypeSafeDeclarations(final String drl, final boolean mustSucceed) { - final KieBase kbase; - try { - kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("declare-test", kieBaseTestConfiguration, drl); - if (!mustSucceed) { - fail("Compilation Should fail"); - } - } catch (final Throwable e) { - if (mustSucceed) { - fail("Compilation Should succeed"); - } - return; - } - - final KieSession ksession = kbase.newKieSession(); - try { - final List list = new ArrayList(); - ksession.setGlobal("list", list); - - final Address a = new Address("s1", 10, "city"); - final Person p = new Person("yoda"); - p.setObject(a); - - ksession.insert(p); - ksession.fireAllRules(); - assertThat(list.get(0)).isEqualTo(p); - } finally { - ksession.dispose(); + if (!mustSucceed) { + assertThatThrownBy(()-> KieBaseUtil.getKieBaseFromKieModuleFromDrl("declare-test", kieBaseTestConfiguration, drl)).isInstanceOf(Throwable.class); + } else { + assertThatCode(() -> { + final KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("declare-test", kieBaseTestConfiguration, drl); + final KieSession ksession = kbase.newKieSession(); + try { + final List list = new ArrayList(); + ksession.setGlobal("list", list); + + final Address a = new Address("s1", 10, "city"); + final Person p = new Person("yoda"); + p.setObject(a); + + ksession.insert(p); + ksession.fireAllRules(); + assertThat(list.get(0)).isEqualTo(p); + } finally { + ksession.dispose(); + } + }).doesNotThrowAnyException(); } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ExceptionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ExceptionTest.java index e5a57ece594..0281c2218b7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ExceptionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ExceptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/GlobalTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/GlobalTest.java index ac6674dbf72..4e4c1648990 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/GlobalTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/GlobalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ImportsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ImportsTest.java index f63e790a917..48c7cd68fb6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ImportsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/ImportsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/LiteralTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/LiteralTest.java index b011c37d7bf..657e2bcd129 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/LiteralTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/LiteralTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/NestingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/NestingTest.java index bfe88634d36..aa0370f918c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/NestingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/NestingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.io.StringReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/PatternTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/PatternTest.java index 40187ce148c..af6f7bf9e0b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/PatternTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/PatternTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.math.BigDecimal; @@ -23,8 +25,8 @@ import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.InternalFactHandle; -import org.drools.core.impl.RuleBase; -import org.drools.core.reteoo.InitialFactImpl; +import org.drools.core.impl.InternalRuleBase; +import org.drools.base.reteoo.InitialFactImpl; import org.drools.testcoverage.common.model.Cheese; import org.drools.testcoverage.common.model.ClassA; import org.drools.testcoverage.common.model.ClassB; @@ -683,7 +685,7 @@ public void testSelfJoinAndNotWithIndex() { ksession.fireAllRules(); // selects p1 and p3 - if (((RuleBase) kbase).getRuleBaseConfiguration().getAssertBehaviour().equals( RuleBaseConfiguration.AssertBehaviour.IDENTITY )) { + if (((InternalRuleBase) kbase).getRuleBaseConfiguration().getAssertBehaviour().equals(RuleBaseConfiguration.AssertBehaviour.IDENTITY)) { assertThat(list.size()).isEqualTo(2); assertThat(list.get(0)).isSameAs(p1); assertThat(list.get(1)).isSameAs(p3); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/RHSTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/RHSTest.java index 0af26628f8a..17623dfba11 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/RHSTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/RHSTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/RuleFlowGroupTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/RuleFlowGroupTest.java index 8c3fba9324f..64095a7a624 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/RuleFlowGroupTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/RuleFlowGroupTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/StaticMethods.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/StaticMethods.java index ab49a3a6479..ff9054afeab 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/StaticMethods.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/StaticMethods.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; public class StaticMethods { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/StaticMethods2.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/StaticMethods2.java index 4df6917c7fc..2adca87d6d8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/StaticMethods2.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/StaticMethods2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; public class StaticMethods2 { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/VariableTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/VariableTest.java index 1bf85ef6a0d..a1c299c028e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/VariableTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/drl/VariableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.drl; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/AccumulateCepEqualityModeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/AccumulateCepEqualityModeTest.java index 9fd976048b4..c22b113d3fa 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/AccumulateCepEqualityModeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/AccumulateCepEqualityModeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.equalitymode; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/BackwardChainingEqualityModeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/BackwardChainingEqualityModeTest.java index 364459a0945..b15e2189943 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/BackwardChainingEqualityModeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/BackwardChainingEqualityModeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.equalitymode; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/CellEqualityModeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/CellEqualityModeTest.java index 2a1f67ce8f4..0d5a84f7d2c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/CellEqualityModeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/CellEqualityModeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.equalitymode; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/CepEspEqualityModeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/CepEspEqualityModeTest.java index 4797dad7adb..6ba92883881 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/CepEspEqualityModeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/CepEspEqualityModeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.equalitymode; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/DeclareEqualityModeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/DeclareEqualityModeTest.java index 84a76b28b32..dccd34e8c8d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/DeclareEqualityModeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/DeclareEqualityModeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.equalitymode; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/EqualityModeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/EqualityModeTest.java index 53c01d637cd..bdf5ef03b0d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/EqualityModeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/EqualityModeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.equalitymode; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/FactWithEquals.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/FactWithEquals.java index a5bbcc1f5de..c5211341a69 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/FactWithEquals.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/equalitymode/FactWithEquals.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.equalitymode; import java.util.Objects; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AbstractAddRemoveGenerated2RulesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AbstractAddRemoveGenerated2RulesTest.java index 7ebc8e567c3..83820fc62e8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AbstractAddRemoveGenerated2RulesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AbstractAddRemoveGenerated2RulesTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesEval2Test.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesEval2Test.java index f2ae8d7832b..1dc4b164ad6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesEval2Test.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesEval2Test.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesEvalTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesEvalTest.java index 9703a4e84e1..e94029ef2e9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesEvalTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesEvalTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import org.junit.runner.RunWith; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesIntegerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesIntegerTest.java index 97218da7e32..ca858cceab8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesIntegerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesIntegerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import org.junit.runner.RunWith; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesMapContainsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesMapContainsTest.java index 7ac907ae0a7..e8225928f75 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesMapContainsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesMapContainsTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import org.junit.runner.RunWith; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesNotNotTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesNotNotTest.java index 24caa0bc4a6..9e35af06fef 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesNotNotTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesNotNotTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesNotTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesNotTest.java index 947d184e01f..86887457a05 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesNotTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesNotTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import org.junit.runner.RunWith; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesStringIntegerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesStringIntegerTest.java index 56bda11b824..881249e4ecb 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesStringIntegerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesStringIntegerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import org.junit.runner.RunWith; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesStringTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesStringTest.java index 6caa4132d11..6c7aedb479a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesStringTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveGenerated2RulesStringTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import org.junit.runner.RunWith; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesAddDeleteFactsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesAddDeleteFactsTest.java index 8886d985311..b1b3fd89f11 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesAddDeleteFactsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesAddDeleteFactsTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesAdvOperatorsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesAdvOperatorsTest.java index fe1dc96f7b8..28fb1e431c6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesAdvOperatorsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesAdvOperatorsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesTest.java index c43cf6a0bd0..20defff6170 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveRulesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; import java.io.StringReader; @@ -274,7 +277,7 @@ public void testAddRemoveFromKB() { final KieSession kSession = base.newKieSession(); kSession.fireAllRules(); - ((InternalKnowledgeBase) kSession.getKieBase()).addPackages( kbuilder.getKnowledgePackages() ); + ((InternalKnowledgeBase) kSession.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); } @Test @@ -298,7 +301,7 @@ public void testAddRemoveDeletingFact() { final FactHandle fh = kSession.insert(0.0f); kSession.fireAllRules(); - ((InternalKnowledgeBase)kSession.getKieBase()).addPackages( kbuilder.getKnowledgePackages() ); + ((InternalKnowledgeBase)kSession.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); kSession.delete(fh); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveTestCases.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveTestCases.java index 0a6e8180d93..f24236c7ca7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveTestCases.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRemoveTestCases.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRuleTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRuleTest.java index fa101b5ac5b..41f4bd150f6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRuleTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/AddRuleTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/ClassLoaderLeakTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/ClassLoaderLeakTest.java index a1fab64b542..ffa8baf7628 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/ClassLoaderLeakTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/ClassLoaderLeakTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.integrationtests.incrementalcompilation; import org.drools.compiler.kie.builder.impl.KieContainerImpl; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/ConstraintsPair.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/ConstraintsPair.java index 1c57864ef85..aac291c5ae1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/ConstraintsPair.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/ConstraintsPair.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; public class ConstraintsPair { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationCepTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationCepTest.java index 28f91d906d5..65f2fdc4193 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationCepTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationCepTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.incrementalcompilation; import java.io.ByteArrayOutputStream; @@ -29,10 +31,10 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.core.time.impl.PseudoClockScheduler; import org.drools.testcoverage.common.model.ChildEventA; import org.drools.testcoverage.common.model.ChildEventB; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationNonExecModelTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationNonExecModelTest.java index 0b637f0e6e7..535177026ec 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationNonExecModelTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationNonExecModelTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationTest.java index e6127307a0c..ce4c053c114 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/IncrementalCompilationTest.java @@ -1,43 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.incrementalcompilation; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.StringReader; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.Callable; -import java.util.concurrent.CompletionService; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.ExecutorCompletionService; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.atomic.AtomicInteger; - import org.drools.commands.runtime.rule.FireAllRulesCommand; import org.drools.compiler.kie.builder.impl.DrlProject; import org.drools.core.ClassObjectFilter; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.event.DefaultAgendaEventListener; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.Rete; @@ -89,6 +75,23 @@ import org.kie.internal.builder.InternalKieBuilder; import org.kie.internal.command.CommandFactory; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.StringReader; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.Callable; +import java.util.concurrent.CompletionService; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutorCompletionService; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.atomic.AtomicInteger; + import static java.util.Arrays.asList; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; @@ -679,8 +682,8 @@ public void testRuleRemoval() { assertThat(rules.get("R2")).isNotNull(); assertThat(rules.get("R3")).isNotNull(); - final RuleTerminalNode rtn1_1 = (RuleTerminalNode) ((RuleBase) kc.getKieBase()).getReteooBuilder().getTerminalNodes("org.drools.compiler.R1")[0]; - final RuleTerminalNode rtn3_1 = (RuleTerminalNode) ((RuleBase) kc.getKieBase()).getReteooBuilder().getTerminalNodes("org.drools.compiler.R3")[0]; + final RuleTerminalNode rtn1_1 = (RuleTerminalNode) ((InternalRuleBase) kc.getKieBase()).getReteooBuilder().getTerminalNodes("org.drools.compiler.R1")[0]; + final RuleTerminalNode rtn3_1 = (RuleTerminalNode) ((InternalRuleBase) kc.getKieBase()).getReteooBuilder().getTerminalNodes("org.drools.compiler.R3")[0]; // Create a new jar for version 1.1.0 final ReleaseId releaseId2 = ks.newReleaseId("org.kie", "test-upgrade", "1.1.0"); @@ -688,7 +691,7 @@ public void testRuleRemoval() { // try to update the container to version 1.1.0 kc.updateToVersion(releaseId2); - final RuleBase rb_2 = ((RuleBase) kc.getKieBase()); + final InternalRuleBase rb_2 = ((InternalRuleBase) kc.getKieBase()); final RuleTerminalNode rtn1_2 = (RuleTerminalNode) rb_2.getReteooBuilder().getTerminalNodes("org.drools.compiler.R1")[0]; final RuleTerminalNode rtn3_2 = (RuleTerminalNode) rb_2.getReteooBuilder().getTerminalNodes("org.drools.compiler.R3")[0]; @@ -5070,4 +5073,157 @@ public void testRemoveSharedConstraintWithEval() throws Exception { ksession.insert("test"); assertThat(ksession.fireAllRules()).isEqualTo(1); } + + @Test + public void testReaddAllRulesWithComplexNodeSharing() { + // DROOLS-7430 + final String drl1 = + "import " + Message.class.getCanonicalName() + ";\n" + + "\n" + + "global java.util.List fired;\n" + + "\n" + + "rule R1 when\n" + + " Message()\n" + + " Integer(this == 1)\n" + + "then\n" + + " fired.add(drools.getRule().getName());\n" + + "end\n" + + "\n" + + "rule R2 when\n" + + " $s : Message()\n" + + " and\n" + + " (\n" + + " Integer(this == 2)\n" + + " or\n" + + " Integer(this == 3) and not ( String( toString == $s.message ) )\n" + + " )\n" + + "then\n" + + " fired.add(drools.getRule().getName());\n" + + "end\n" + + "\n" + + "rule R3 when\n" + + " $s : Message()\n" + + " Integer()\n" + + " not ( String( toString == $s.message ) )\n" + + "then\n" + + " fired.add(drools.getRule().getName());\n" + + "end\n"; + + final String drl2 = + "import " + Message.class.getCanonicalName() + ";\n" + + "\n" + + "global java.util.List fired;\n" + + "\n" + + "rule R4 when\n" + + " Message()\n" + + " Integer(this == 1)\n" + + "then\n" + + " fired.add(drools.getRule().getName());\n" + + "end\n" + + "\n" + + "rule R5 when\n" + + " $s : Message()\n" + + " and\n" + + " (\n" + + " Integer(this == 2)\n" + + " or\n" + + " Integer(this == 3) and not ( String( toString == $s.message ) )\n" + + " )\n" + + "then\n" + + " fired.add(drools.getRule().getName());\n" + + "end\n" + + "\n" + + "rule R6 when\n" + + " $s : Message()\n" + + " Integer()\n" + + " not ( String( toString == $s.message ) )\n" + + "then\n" + + " fired.add(drools.getRule().getName());\n" + + "end\n"; + + final KieServices ks = KieServices.Factory.get(); + + final ReleaseId releaseId1 = ks.newReleaseId("org.kie", "test-upgrade", "1.0.0"); + KieUtil.getKieModuleFromDrls(releaseId1, kieBaseTestConfiguration, drl1); + + final KieContainer kc = ks.newKieContainer(releaseId1); + KieSession ksession = kc.newKieSession(); + + List fired = new ArrayList<>(); + ksession.setGlobal("fired", fired); + + ksession.insert(new Message("test")); + ksession.insert(0); + + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(fired).containsExactly("R3"); + + final ReleaseId releaseId2 = ks.newReleaseId("org.kie", "test-upgrade", "1.1.0"); + KieUtil.getKieModuleFromDrls(releaseId2, kieBaseTestConfiguration, drl2); + + kc.updateToVersion(releaseId2); + + fired.clear(); + + assertThat(ksession.fireAllRules()).isEqualTo(1); + assertThat(fired).containsExactly("R6"); + } + + @Test + public void testReaddAllRulesWithIdenticalRules() { + // DROOLS-7462 + + final String drl1 = + "import " + Message.class.getCanonicalName() + ";\n" + + "\n" + + "rule R1 when\n" + + " $m: Message()\n" + + " exists String(toString == $m.message)\n" + + "then\n" + + "end\n" + + "\n" + + "rule R2 when\n" + + " $m: Message()\n" + + " exists String(toString == $m.message)\n" + + "then\n" + + "end\n"; + + final String drl2 = + "import " + Message.class.getCanonicalName() + ";\n" + + "\n" + + "rule R3 when\n" + + " $m: Message()\n" + + " exists String(toString == $m.message)\n" + + "then\n" + + "end\n" + + "\n" + + "rule R4 when\n" + + " $m: Message()\n" + + " exists String(toString == $m.message)\n" + + "then\n" + + "end\n"; + + final KieServices ks = KieServices.Factory.get(); + + final ReleaseId releaseId1 = ks.newReleaseId("org.kie", "test-upgrade", "1.0.0"); + KieUtil.getKieModuleFromDrls(releaseId1, kieBaseTestConfiguration, drl1); + + final KieContainer kc = ks.newKieContainer(releaseId1); + KieSession ksession = kc.newKieSession(); + + ksession.insert(new Message("test1")); + ksession.insert("test1"); + ksession.insert(new Message("test2")); + ksession.insert("test2"); + + int fired = ksession.fireAllRules(); + assertThat(fired).isEqualTo(4); + + final ReleaseId releaseId2 = ks.newReleaseId("org.kie", "test-upgrade", "1.1.0"); + KieUtil.getKieModuleFromDrls(releaseId2, kieBaseTestConfiguration, drl2); + + kc.updateToVersion(releaseId2); + fired = ksession.fireAllRules(); + assertThat(fired).isEqualTo(4); + } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/MultipleIncrementalCompilationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/MultipleIncrementalCompilationTest.java index ae588bf0dbd..77eae19acd6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/MultipleIncrementalCompilationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/MultipleIncrementalCompilationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.incrementalcompilation; import java.io.StringReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/RemoveRuleTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/RemoveRuleTest.java index e3b7758a9fa..6674de8eab6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/RemoveRuleTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/RemoveRuleTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.Arrays; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/StringPermutation.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/StringPermutation.java index 6e87c07b6f6..6ec4e85ce0a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/StringPermutation.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/StringPermutation.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.compiler.integrationtests.incrementalcompilation; public class StringPermutation { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/TestUtil.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/TestUtil.java index 16f1690ead4..afb766bb98a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/TestUtil.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/incrementalcompilation/TestUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.incrementalcompilation; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/AndTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/AndTest.java index 889e7657039..cd4564ac5a7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/AndTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/AndTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ContainsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ContainsTest.java index 407c5c3b749..a2e7b4bc73c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ContainsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ContainsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EnabledTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EnabledTest.java index 50e14bd2dd6..a3c837bf20f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EnabledTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EnabledTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EqualsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EqualsTest.java index d8756e24e77..7c68e02c6ee 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EqualsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EqualsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EvalRewriteTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EvalRewriteTest.java index 9e22a4d9d11..a24bae0c194 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EvalRewriteTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EvalRewriteTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EvalTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EvalTest.java index 9eb999e9f4b..5f728494d27 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EvalTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/EvalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.lang.reflect.InvocationTargetException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ExistsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ExistsTest.java index 293674df95f..cebb40e4b5e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ExistsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ExistsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ForAllTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ForAllTest.java index d0927b57cee..6ece353028a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ForAllTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/ForAllTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.text.SimpleDateFormat; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FormulaTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FormulaTest.java index dc93f453136..eea8a94149c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FormulaTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FormulaTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FromOnlyExecModelTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FromOnlyExecModelTest.java index 925bff298cf..290736d2d63 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FromOnlyExecModelTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FromOnlyExecModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FromTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FromTest.java index 3189a331b34..212c091146d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FromTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/FromTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; @@ -25,15 +27,15 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Stream; -import org.drools.core.base.ClassObjectType; -import org.drools.core.common.NetworkNode; +import org.drools.base.base.ClassObjectType; +import org.drools.base.common.NetworkNode; import org.drools.core.event.DebugAgendaEventListener; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.FromNode; import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.testcoverage.common.model.Address; import org.drools.testcoverage.common.model.Cheese; @@ -254,7 +256,7 @@ public void testFromSharingWithAccumulate() { kieBaseTestConfiguration, drl); - EntryPointNode epn = (( InternalKnowledgeBase ) kbase).getRete().getEntryPointNode( EntryPointId.DEFAULT ); + EntryPointNode epn = ((InternalKnowledgeBase) kbase).getRete().getEntryPointNode(EntryPointId.DEFAULT); ObjectTypeNode otn = epn.getObjectTypeNodes().get( new ClassObjectType( Cheesery.class) ); NetworkNode[] otnSinks = otn.getSinks(); assertThat(otnSinks.length).isEqualTo(1); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/InTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/InTest.java index d4c13d6313c..f1e28fec62d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/InTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/InTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/InstanceOfTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/InstanceOfTest.java index b2e929ccba3..ec125b917ba 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/InstanceOfTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/InstanceOfTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MatchesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MatchesTest.java index afe209bca79..2019fd37f48 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MatchesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MatchesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MathTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MathTest.java index 220bfdd6431..b6aeac7eccd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MathTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MathTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MemberOfTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MemberOfTest.java index 3af4671e1b7..8bc640f4de1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MemberOfTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/MemberOfTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/NotTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/NotTest.java index 4604ecb0a26..3a5a28f029b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/NotTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/NotTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.math.BigDecimal; @@ -21,11 +23,10 @@ import java.util.Collection; import java.util.List; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.NodeMemories; -import org.drools.core.impl.RuleBase; -import org.drools.core.reteoo.AlphaNode; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.ObjectTypeNode; @@ -224,7 +225,7 @@ private InternalFactHandle getBlockerFactHandle(KieSession ksession) { } public static ObjectTypeNode getObjectTypeNode(KieBase kbase, Class nodeClass) { - List nodes = ((RuleBase) kbase).getRete().getObjectTypeNodes(); + List nodes = ((InternalRuleBase) kbase).getRete().getObjectTypeNodes(); for (ObjectTypeNode n : nodes) { if (((ClassObjectType) n.getObjectType()).getClassType() == nodeClass) { return n; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/OrTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/OrTest.java index f74dba228e6..be828e8ec5b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/OrTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/OrTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/SoundsLikeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/SoundsLikeTest.java index 7641b430e86..d44158f5cc3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/SoundsLikeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/operators/SoundsLikeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.operators; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/phases/ExplicitCanonicalModelCompilerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/phases/ExplicitCanonicalModelCompilerTest.java index 3e9a755332f..2c579f065a0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/phases/ExplicitCanonicalModelCompilerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/phases/ExplicitCanonicalModelCompilerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.phases; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/phases/ExplicitCompilerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/phases/ExplicitCompilerTest.java index e4880e7435e..7e12fb43daf 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/phases/ExplicitCompilerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/compiler/integrationtests/phases/ExplicitCompilerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.compiler.integrationtests.phases; import org.drools.compiler.builder.impl.BuildResultCollectorImpl; @@ -43,8 +46,8 @@ import org.drools.compiler.builder.impl.processors.WindowDeclarationCompilationPhase; import org.drools.compiler.builder.impl.resources.DrlResourceHandler; import org.drools.compiler.compiler.PackageRegistry; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.impl.RuleBaseFactory; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.PackageDescr; @@ -53,12 +56,9 @@ import org.drools.kiesession.rulebase.SessionsAwareKnowledgeBase; import org.drools.io.ClassPathResource; import org.junit.Test; -import org.kie.api.KieBaseConfiguration; import org.kie.api.io.Resource; import org.kie.api.runtime.KieSession; import org.kie.internal.builder.KnowledgeBuilderFactory; -import org.kie.internal.conf.CompositeBaseConfiguration; -import org.kie.internal.utils.ChainedProperties; import java.io.IOException; import java.util.List; @@ -147,7 +147,7 @@ public void testCompile() throws DroolsParserException, IOException { List packages = packageRegistryManager.getPackageRegistry().values() .stream().map(PackageRegistry::getPackage).collect(Collectors.toList()); - RuleBase kbase = RuleBaseFactory.newRuleBase(); + InternalRuleBase kbase = RuleBaseFactory.newRuleBase(); kbase.addPackages(packages); SessionsAwareKnowledgeBase sessionsAwareKnowledgeBase = new SessionsAwareKnowledgeBase(kbase); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/core/util/index/IndexTestUtil.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/core/util/index/IndexTestUtil.java deleted file mode 100644 index ede784200bb..00000000000 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/core/util/index/IndexTestUtil.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.drools.core.util.index; - -public class IndexTestUtil { - - public static void enableRangeIndexForJoin() { - // In order to enable range index for Join, you also need to set BetaRangeIndexOption ENABLED - IndexUtil.USE_COMPARISON_INDEX_JOIN = true; - } - - public static void disableRangeIndexForJoin() { - // If you set this flag 'false', range index for Join is disabled even if you set BetaRangeIndexOption ENABLED - IndexUtil.USE_COMPARISON_INDEX_JOIN = false; - } -} diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/BaseTupleIndexHashTableIteratorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/AbstractTupleIndexHashTableIteratorTest.java similarity index 83% rename from drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/BaseTupleIndexHashTableIteratorTest.java rename to drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/AbstractTupleIndexHashTableIteratorTest.java index 0b686308e20..6c1bb2ff202 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/BaseTupleIndexHashTableIteratorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/AbstractTupleIndexHashTableIteratorTest.java @@ -1,15 +1,20 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ package org.drools.mvel; @@ -19,11 +24,11 @@ import org.drools.compiler.builder.impl.EvaluatorRegistry; import org.drools.core.base.ClassFieldAccessorCache; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.util.Entry; import org.drools.core.util.index.IndexMemory; import org.drools.core.util.index.TupleIndexHashTable; @@ -40,7 +45,7 @@ import static org.assertj.core.api.Assertions.assertThat; @RunWith(Parameterized.class) -public abstract class BaseTupleIndexHashTableIteratorTest { +public abstract class AbstractTupleIndexHashTableIteratorTest { public static EvaluatorRegistry registry = new EvaluatorRegistry(); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/AlphaNodeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/AlphaNodeTest.java index 8b52eaf7e63..562178b1b06 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/AlphaNodeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/AlphaNodeTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.util.ArrayList; @@ -24,13 +28,13 @@ import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.PropagationContextFactory; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.MockObjectSink; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.core.common.PropagationContext; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/BaseBetaConstraintsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/BaseBetaConstraintsTest.java index f8c493af61e..dff4da37ce2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/BaseBetaConstraintsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/BaseBetaConstraintsTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.util.ArrayList; @@ -23,22 +27,22 @@ import org.drools.core.reteoo.TupleMemory; import org.drools.core.impl.RuleBaseFactory; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.compiler.builder.impl.EvaluatorRegistry; import org.drools.drl.parser.impl.Operator; import org.drools.core.common.BetaConstraints; import org.drools.core.reteoo.BetaMemory; -import org.drools.core.reteoo.NodeTypeEnums; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.IndexableConstraint; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.util.AbstractHashTable.FieldIndex; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.IndexableConstraint; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.util.FieldIndex; import org.drools.core.util.AbstractHashTable.Index; import org.drools.core.util.LinkedList; import org.drools.core.util.LinkedListEntry; -import org.drools.core.util.index.IndexUtil.ConstraintType; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.core.util.index.TupleList; import org.drools.model.functions.Predicate1; import org.drools.modelcompiler.util.EvaluationUtil; @@ -148,7 +152,7 @@ protected void checkBetaConstraints(BetaNodeFieldConstraint[] constraints, BetaMemory betaMemory = betaConstraints.createBetaMemory( config, NodeTypeEnums.JoinNode ); if ( indexedPositions.length > 0 ) { - if (((IndexableConstraint)constraints[indexedPositions[0]]).getConstraintType() == ConstraintType.EQUAL) { + if (((IndexableConstraint)constraints[indexedPositions[0]]).getConstraintType() == ConstraintTypeOperator.EQUAL) { TupleMemory tupleHashTable = betaMemory.getLeftTupleMemory(); assertThat(tupleHashTable.isIndexed()).isTrue(); Index index = tupleHashTable.getIndex(); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/CommonTestMethodBase.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/CommonTestMethodBase.java index 11e217ddc6f..c09b2d14ea1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/CommonTestMethodBase.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/CommonTestMethodBase.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.ByteArrayInputStream; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/CompositeObjectSinkAdapterTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/CompositeObjectSinkAdapterTest.java index 21b41c7206a..ccf0c42d9e2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/CompositeObjectSinkAdapterTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/CompositeObjectSinkAdapterTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.util.ArrayList; @@ -21,12 +25,12 @@ import java.util.List; import org.drools.core.base.ClassFieldAccessorCache; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.drools.kiesession.entrypoints.DisconnectedWorkingMemoryEntryPoint; import org.drools.core.common.InternalFactHandle; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.CompositeObjectSinkAdapter; @@ -34,8 +38,8 @@ import org.drools.core.reteoo.ObjectSink; import org.drools.core.reteoo.ReteooFactHandleFactory; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.PredicateConstraint; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.PredicateConstraint; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.mvel.model.Cheese; import org.drools.mvel.model.MockObjectSource; @@ -49,7 +53,7 @@ @RunWith(Parameterized.class) public class CompositeObjectSinkAdapterTest { - private InternalKnowledgeBase kBase; + private InternalKnowledgeBase kBase; private BuildContext buildContext; private CompositeObjectSinkAdapter ad; private ReadAccessor extractor; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/ConstraintTestUtil.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/ConstraintTestUtil.java index 3b0abb0299d..b280d228b40 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/ConstraintTestUtil.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/ConstraintTestUtil.java @@ -1,12 +1,30 @@ +/** + * 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. + */ package org.drools.mvel; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.drools.mvel.accessors.ClassFieldReader; import org.drools.mvel.field.FieldFactory; import org.drools.mvel.field.LongFieldImpl; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.model.Cheese; public class ConstraintTestUtil { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/DefaultBetaConstraintsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/DefaultBetaConstraintsTest.java index 904670ff062..14f164d401a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/DefaultBetaConstraintsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/DefaultBetaConstraintsTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import org.drools.drl.parser.impl.Operator; import org.drools.core.common.DefaultBetaConstraints; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.junit.Test; public class DefaultBetaConstraintsTest extends BaseBetaConstraintsTest { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/DoubleBetaConstraintsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/DoubleBetaConstraintsTest.java index ca4c97479f1..a832af70f39 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/DoubleBetaConstraintsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/DoubleBetaConstraintsTest.java @@ -1,23 +1,27 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import org.drools.drl.parser.impl.Operator; import org.drools.core.common.DoubleBetaConstraints; -import org.drools.core.reteoo.NodeTypeEnums; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.junit.Test; public class DoubleBetaConstraintsTest extends BaseBetaConstraintsTest { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/FieldConstraintTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/FieldConstraintTest.java index 07e8a3b7007..0b1440c456c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/FieldConstraintTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/FieldConstraintTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.IOException; @@ -20,23 +24,23 @@ import java.util.ArrayList; import java.util.Collection; +import org.drools.base.base.ValueResolver; import org.drools.core.base.ClassFieldAccessorCache; +import org.drools.base.reteoo.BaseTuple; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.drools.mvel.accessors.ClassFieldReader; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.JoinNodeLeftTuple; import org.drools.core.reteoo.RightTupleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.PredicateConstraint; -import org.drools.core.rule.PredicateConstraint.PredicateContextEntry; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.PredicateExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.PredicateConstraint; +import org.drools.base.rule.PredicateConstraint.PredicateContextEntry; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.PredicateExpression; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.drools.mvel.model.Cheese; @@ -44,6 +48,7 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; +import org.kie.api.runtime.rule.FactHandle; import static org.assertj.core.api.Assertions.assertThat; @@ -191,15 +196,15 @@ public void testPredicateConstraint() { private static final long serialVersionUID = 510l; - public boolean evaluate(InternalFactHandle handle, - Tuple tuple, + public boolean evaluate(FactHandle handle, + BaseTuple tuple, Declaration[] previousDeclarations, Declaration[] localDeclarations, - ReteEvaluator reteEvaluator, + ValueResolver valueResolver, Object context) { - int price1 = previousDeclarations[0].getIntValue( reteEvaluator, + int price1 = previousDeclarations[0].getIntValue( valueResolver, tuple.getObject( previousDeclarations[0] ) ); - int price2 = localDeclarations[0].getIntValue( reteEvaluator, + int price2 = localDeclarations[0].getIntValue( valueResolver, handle.getObject() ); return (price2 == (price1 * 2)); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/GenericTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/GenericTest.java new file mode 100644 index 00000000000..934c878f082 --- /dev/null +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/GenericTest.java @@ -0,0 +1,58 @@ +/** + * 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. + */ +package org.drools.mvel; + +public class GenericTest { + + public static class A { + public void go() { + + } + } + + public static class B extends A { + public void stop() { + + } + } + + public static interface FactHandle1 { + public T getObject(); + + K as(Class klass) throws ClassCastException; + } + + public static interface FactHandle2 { + public Object getObject(); + + K as(Class klass) throws ClassCastException; + } + + public void test1() { + FactHandle1 fh = null; + fh.getObject().go(); + fh.as(B.class).stop(); + } + + public void test2() { + FactHandle2 fh = null; + ((A)fh.getObject()).go(); + fh.as(B.class).stop(); + } +} diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/RuleBaseEventSupportTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/InternalRuleBaseEventSupportTest.java similarity index 89% rename from drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/RuleBaseEventSupportTest.java rename to drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/InternalRuleBaseEventSupportTest.java index 5ad44be66d8..b1ad9689c78 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/RuleBaseEventSupportTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/InternalRuleBaseEventSupportTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.IOException; @@ -20,16 +24,16 @@ import java.util.ArrayList; import java.util.Collection; +import org.drools.base.base.ValueResolver; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.base.ClassObjectType; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.core.test.model.Cheese; import org.drools.kiesession.rulebase.InternalKnowledgeBase; @@ -61,7 +65,7 @@ import static org.assertj.core.api.Assertions.assertThat; @RunWith(Parameterized.class) -public class RuleBaseEventSupportTest { +public class InternalRuleBaseEventSupportTest { private InternalKnowledgeBase kBase; private TestRuleBaseListener listener1; @@ -70,7 +74,7 @@ public class RuleBaseEventSupportTest { private final boolean useLambdaConstraint; - public RuleBaseEventSupportTest(boolean useLambdaConstraint) { + public InternalRuleBaseEventSupportTest(boolean useLambdaConstraint) { this.useLambdaConstraint = useLambdaConstraint; } @@ -107,11 +111,11 @@ public void setUp() throws Exception { pattern.addConstraint( constraint ); rule1.addPattern( pattern ); - rule1.setConsequence( new Consequence() { + rule1.setConsequence( new Consequence() { private static final long serialVersionUID = 510l; public void evaluate(final KnowledgeHelper knowledgeHelper, - final ReteEvaluator reteEvaluator) throws Exception { + final ValueResolver valueResolver) throws Exception { } public void readExternal(ObjectInput in) throws IOException, @@ -138,11 +142,11 @@ public String getName() { pattern2.addConstraint( constraint2 ); rule2.addPattern( pattern2 ); - rule2.setConsequence( new Consequence() { + rule2.setConsequence( new Consequence() { private static final long serialVersionUID = 510l; public void evaluate(final KnowledgeHelper knowledgeHelper, - final ReteEvaluator reteEvaluator) throws Exception { + final ValueResolver valueResolver) throws Exception { } public void readExternal(ObjectInput in) throws IOException, diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/KnowledgeBaseEventSupportTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/KnowledgeBaseEventSupportTest.java index 401fe0aacd6..a01a2148814 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/KnowledgeBaseEventSupportTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/KnowledgeBaseEventSupportTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.io.IOException; @@ -21,19 +25,19 @@ import java.util.Collection; import java.util.Collections; +import org.drools.base.base.ValueResolver; import org.drools.core.base.ClassFieldAccessorCache; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.base.ClassObjectType; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.core.test.model.Cheese; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.junit.Before; import org.junit.Test; @@ -108,11 +112,11 @@ public void setUp() throws Exception { pattern.addConstraint( constraint ); rule1.addPattern( pattern ); - rule1.setConsequence( new Consequence() { + rule1.setConsequence( new Consequence() { private static final long serialVersionUID = 510l; public void evaluate(final KnowledgeHelper knowledgeHelper, - final ReteEvaluator reteEvaluator) throws Exception { + final ValueResolver valueResolver) throws Exception { } public void readExternal(ObjectInput in) throws IOException, @@ -139,11 +143,11 @@ public String getName() { pattern2.addConstraint( constraint2 ); rule2.addPattern( pattern2 ); - rule2.setConsequence( new Consequence() { + rule2.setConsequence( new Consequence() { private static final long serialVersionUID = 510l; public void evaluate(final KnowledgeHelper knowledgeHelper, - final ReteEvaluator reteEvaluator) throws Exception { + final ValueResolver valueResolver) throws Exception { } public void readExternal(ObjectInput in) throws IOException, diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/LambdaConstraintTestUtil.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/LambdaConstraintTestUtil.java index ac7c5053930..bf82b7fea7b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/LambdaConstraintTestUtil.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/LambdaConstraintTestUtil.java @@ -1,23 +1,27 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.PatternExtractor; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.PatternExtractor; import org.drools.model.Index; import org.drools.model.constraints.SingleConstraint1; import org.drools.model.constraints.SingleConstraint2; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/LeftTupleIndexHashTableIteratorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/LeftTupleIndexHashTableIteratorTest.java index b1f23cab41c..a37d884228d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/LeftTupleIndexHashTableIteratorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/LeftTupleIndexHashTableIteratorTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.util.ArrayList; @@ -24,10 +28,9 @@ import org.drools.core.impl.RuleBaseFactory; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.JoinNodeLeftTuple; -import org.drools.core.reteoo.NodeTypeEnums; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.util.AbstractHashTable; -import org.drools.core.util.Entry; import org.drools.core.util.Iterator; import org.drools.core.util.index.TupleIndexHashTable; import org.drools.core.util.index.TupleIndexHashTable.FieldIndexHashTableFullIterator; @@ -41,7 +44,7 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -public class LeftTupleIndexHashTableIteratorTest extends BaseTupleIndexHashTableIteratorTest { +public class LeftTupleIndexHashTableIteratorTest extends AbstractTupleIndexHashTableIteratorTest { public LeftTupleIndexHashTableIteratorTest(boolean useLambdaConstraint) { this.useLambdaConstraint = useLambdaConstraint; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/MVELConstraintTestUtil.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/MVELConstraintTestUtil.java index a95d2b28209..3bd52694e57 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/MVELConstraintTestUtil.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/MVELConstraintTestUtil.java @@ -1,27 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.util.ArrayList; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.test.model.Cheese; -import org.drools.core.util.index.IndexUtil; +import org.drools.base.util.index.ConstraintTypeOperator; import org.mvel2.MVEL; import org.mvel2.ParserConfiguration; @@ -43,39 +47,39 @@ public MVELConstraintTestUtil( String expression, Declaration declaration, ReadA } public MVELConstraintTestUtil( String expression, String operator, Declaration declaration, ReadAccessor extractor) { - this(expression, IndexUtil.ConstraintType.decode(operator), declaration, extractor); + this(expression, ConstraintTypeOperator.decode(operator), declaration, extractor); } - public MVELConstraintTestUtil( String expression, IndexUtil.ConstraintType constraintType, Declaration declaration, ReadAccessor extractor) { + public MVELConstraintTestUtil(String expression, ConstraintTypeOperator constraintType, Declaration declaration, ReadAccessor extractor) { super(new ArrayList(), expression, new Declaration[] { declaration }, null, null, constraintType, declaration, extractor, expression.contains(":=")); } @Override - protected ParserConfiguration getParserConfiguration(ReteEvaluator reteEvaluator) { + protected ParserConfiguration getParserConfiguration(ValueResolver valueResolver) { ParserConfiguration parserConfiguration = new ParserConfiguration(); parserConfiguration.addImport(Cheese.class); return parserConfiguration; } - private static IndexUtil.ConstraintType findConstraintTypeForExpression(String expression) { + private static ConstraintTypeOperator findConstraintTypeForExpression(String expression) { if (expression.contains("==")) { - return IndexUtil.ConstraintType.EQUAL; + return ConstraintTypeOperator.EQUAL; } if (expression.contains("!=")) { - return IndexUtil.ConstraintType.NOT_EQUAL; + return ConstraintTypeOperator.NOT_EQUAL; } if (expression.contains(">")) { - return IndexUtil.ConstraintType.GREATER_THAN; + return ConstraintTypeOperator.GREATER_THAN; } if (expression.contains(">=")) { - return IndexUtil.ConstraintType.GREATER_OR_EQUAL; + return ConstraintTypeOperator.GREATER_OR_EQUAL; } if (expression.contains("<")) { - return IndexUtil.ConstraintType.LESS_THAN; + return ConstraintTypeOperator.LESS_THAN; } if (expression.contains("<=")) { - return IndexUtil.ConstraintType.LESS_OR_EQUAL; + return ConstraintTypeOperator.LESS_OR_EQUAL; } - return IndexUtil.ConstraintType.UNKNOWN; + return ConstraintTypeOperator.UNKNOWN; } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/MockBetaNode.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/MockBetaNode.java index 6dcfedb1f40..96ef70f3547 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/MockBetaNode.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/MockBetaNode.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel; import org.drools.core.RuleBaseConfiguration; @@ -73,8 +91,8 @@ public void modifyRightTuple(RightTuple rightTuple, ReteEvaluator reteEvaluator) { } - public LeftTuple createLeftTuple( InternalFactHandle factHandle, - boolean leftTupleMemoryEnabled) { + public LeftTuple createLeftTuple(InternalFactHandle factHandle, + boolean leftTupleMemoryEnabled) { return new JoinNodeLeftTuple(factHandle, this, leftTupleMemoryEnabled ); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/QuadroupleBetaConstraintsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/QuadroupleBetaConstraintsTest.java index 226618d55fd..6db9899ef25 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/QuadroupleBetaConstraintsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/QuadroupleBetaConstraintsTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import org.drools.drl.parser.impl.Operator; import org.drools.core.common.QuadroupleBetaConstraints; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.junit.Test; public class QuadroupleBetaConstraintsTest extends BaseBetaConstraintsTest { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/RightTupleIndexHashTableIteratorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/RightTupleIndexHashTableIteratorTest.java index 36f124817ee..0cd374e3428 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/RightTupleIndexHashTableIteratorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/RightTupleIndexHashTableIteratorTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import java.util.ArrayList; @@ -24,12 +28,11 @@ import org.drools.core.impl.RuleBaseFactory; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.JoinNodeLeftTuple; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.RightTupleImpl; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.core.util.AbstractHashTable; -import org.drools.core.util.Entry; import org.drools.core.util.Iterator; import org.drools.core.util.index.TupleIndexHashTable; import org.drools.core.util.index.TupleIndexHashTable.FieldIndexHashTableFullIterator; @@ -43,7 +46,7 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -public class RightTupleIndexHashTableIteratorTest extends BaseTupleIndexHashTableIteratorTest { +public class RightTupleIndexHashTableIteratorTest extends AbstractTupleIndexHashTableIteratorTest { public RightTupleIndexHashTableIteratorTest(boolean useLambdaConstraint) { this.useLambdaConstraint = useLambdaConstraint; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/SingleBetaConstraintsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/SingleBetaConstraintsTest.java index 430eb0d7d91..0b16fc53ea6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/SingleBetaConstraintsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/SingleBetaConstraintsTest.java @@ -1,23 +1,27 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import org.drools.drl.parser.impl.Operator; import org.drools.core.common.SingleBetaConstraints; -import org.drools.core.reteoo.NodeTypeEnums; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.reteoo.NodeTypeEnums; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.junit.Test; public class SingleBetaConstraintsTest extends BaseBetaConstraintsTest { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/TripleBetaConstraintsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/TripleBetaConstraintsTest.java index f733bfcae9c..479c1d2a79c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/TripleBetaConstraintsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/TripleBetaConstraintsTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel; import org.drools.drl.parser.impl.Operator; import org.drools.core.common.TripleBetaConstraints; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.junit.Test; public class TripleBetaConstraintsTest extends BaseBetaConstraintsTest { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/asm/BaseClassFieldAccessorFactoryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/asm/BaseClassFieldAccessorFactoryTest.java index 2a24c97ebb3..7b31ac52713 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/asm/BaseClassFieldAccessorFactoryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/asm/BaseClassFieldAccessorFactoryTest.java @@ -1,23 +1,27 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.asm; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.util.asm.BeanInherit; import org.drools.core.util.asm.TestAbstract; import org.drools.core.util.asm.TestAbstractImpl; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Address.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Address.java index 33e355688bc..75b06e68a84 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Address.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Address.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Approach.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Approach.java index 7d4fc4124e7..9d7254809a0 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Approach.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Approach.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Approach { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Asset.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Asset.java index 4b31eade9c8..3c05a16ef12 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Asset.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Asset.java @@ -1,17 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.mvel.compiler; public class Asset { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/AssetCard.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/AssetCard.java index b948ad9fe95..835ab75e561 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/AssetCard.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/AssetCard.java @@ -1,17 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.mvel.compiler; public class AssetCard { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Attribute.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Attribute.java index 6d1623c5901..b07642fe543 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Attribute.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Attribute.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Bar.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Bar.java index 01c7c1d53de..230703d70ae 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Bar.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Bar.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Bar { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Car.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Car.java index ce3274d8c2d..96f41501a61 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Car.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Car.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cat.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cat.java index 0fa10a6d500..b3975846451 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cat.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cat.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Cat extends Pet { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cell.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cell.java index 228f683d06d..b828b020c11 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cell.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cell.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cheese.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cheese.java index a1dc0b496f3..6002a3915ec 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cheese.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cheese.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/CheeseEqual.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/CheeseEqual.java index b5ca29c7435..a1bb7916820 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/CheeseEqual.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/CheeseEqual.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cheesery.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cheesery.java index f905e0b3acd..97ad2d12574 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cheesery.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Cheesery.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Externalizable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Child.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Child.java index 1e5010607cb..733dd40b2ff 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Child.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Child.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Child extends Parent { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ChildHolder.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ChildHolder.java index 81f822e582d..18824d3beb6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ChildHolder.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ChildHolder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class ChildHolder { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Close.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Close.java index e1d854a65a1..cd6b2094505 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Close.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Close.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Close { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/DomainObject.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/DomainObject.java index 4b7749d8a8e..5e73b83285c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/DomainObject.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/DomainObject.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class DomainObject { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactA.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactA.java index b9bb38eb04e..30ebc6d1d77 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactA.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactA.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactB.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactB.java index 7ad9fff471c..dba6b85e10c 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactB.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactB.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactC.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactC.java index 70a221b6783..f6b7a52c544 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactC.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/FactC.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Foo.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Foo.java index f20396d626e..d417f5af71f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Foo.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Foo.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Foo implements Cloneable { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/GrandParent.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/GrandParent.java index c53c4a245fb..54b62e23d67 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/GrandParent.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/GrandParent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/I18nPerson.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/I18nPerson.java index eec05c48a52..d57b8005473 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/I18nPerson.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/I18nPerson.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/IndexedNumber.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/IndexedNumber.java index 1efe58d7972..629f84cadd5 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/IndexedNumber.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/IndexedNumber.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/InlineCastTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/InlineCastTest.java index 71cf3dd86b7..6ff955ccc59 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/InlineCastTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/InlineCastTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/InsertedObject.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/InsertedObject.java index c0e8aba0fec..9884b9a4a52 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/InsertedObject.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/InsertedObject.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Interval.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Interval.java index 5d22220ce20..ccb005803a5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Interval.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Interval.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Interval { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/LegacyBean.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/LegacyBean.java index 8554f26f54a..04d0a3bd7c5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/LegacyBean.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/LegacyBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.compiler; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/LongAddress.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/LongAddress.java index 1e91d44b792..e018f52139a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/LongAddress.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/LongAddress.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class LongAddress extends Address { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MemoryLeakTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MemoryLeakTest.java index d0edaf9a195..eff7e1bfaed 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MemoryLeakTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MemoryLeakTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.lang.reflect.Field; @@ -31,7 +33,7 @@ import org.drools.core.common.NodeMemories; import org.drools.core.common.TruthMaintenanceSystemFactory; import org.drools.core.common.TupleSets; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.JoinNode; @@ -107,7 +109,7 @@ public void testStagedTupleLeak() throws Exception { ksession.fireAllRules(); } - Rete rete = ( (RuleBase) kbase ).getRete(); + Rete rete = ( (InternalRuleBase) kbase ).getRete(); JoinNode joinNode = null; for ( ObjectTypeNode otn : rete.getObjectTypeNodes() ) { if ( String.class == otn.getObjectType().getValueType().getClassType() ) { @@ -150,7 +152,7 @@ public void testStagedLeftTupleLeak() throws Exception { ksession.fireAllRules(); } - Rete rete = ( (RuleBase) kbase ).getRete(); + Rete rete = ( (InternalRuleBase) kbase ).getRete(); LeftInputAdapterNode liaNode = null; for ( ObjectTypeNode otn : rete.getObjectTypeNodes() ) { if ( String.class == otn.getObjectType().getValueType().getClassType() ) { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Message.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Message.java index d9cf7d714ea..fdc16e4ac04 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Message.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Message.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MockPersistentSet.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MockPersistentSet.java index 3b42a3e1f8c..12a7722c731 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MockPersistentSet.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MockPersistentSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.util.AbstractSet; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MockPersistentSetException.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MockPersistentSetException.java index e30fc2c6546..ac913da0eb6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MockPersistentSetException.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MockPersistentSetException.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class MockPersistentSetException extends RuntimeException diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Move.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Move.java index 4d0fa53b4cf..ae970b500d8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Move.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Move.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Move { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MyUtil.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MyUtil.java index 1eb7e08af4b..cc04b164f59 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MyUtil.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/MyUtil.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.compiler; public class MyUtil { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Neighbor.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Neighbor.java index 2e6daf6b00b..b08215e67a4 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Neighbor.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Neighbor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Neighbor { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/NestedAccessorsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/NestedAccessorsTest.java index 13d40051650..0d350995d3e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/NestedAccessorsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/NestedAccessorsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/NodeHashingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/NodeHashingTest.java index d06c5b0282c..d08a0e7d964 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/NodeHashingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/NodeHashingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ObjectWithSet.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ObjectWithSet.java index cde18a5ea24..080073ad28c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ObjectWithSet.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ObjectWithSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.util.Set; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Option.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Option.java index 06bbd212327..d0bfa775955 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Option.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Option.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Option { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Order.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Order.java index 8e51b5c18de..469f4153c86 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Order.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Order.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/OrderItem.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/OrderItem.java index 0e4aed67d52..2bf39185f8f 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/OrderItem.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/OrderItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Externalizable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/OuterClass.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/OuterClass.java index 9f85f5f4a58..58d8384f639 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/OuterClass.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/OuterClass.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class OuterClass { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Parent.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Parent.java index 6b5c1e2c94e..23773eba0ab 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Parent.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Parent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.compiler; public class Parent extends GrandParent { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java index a356782f801..13641acfe0b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Person.java @@ -1,22 +1,24 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonFinal.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonFinal.java index 09085991c4a..e46ea6025c4 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonFinal.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonFinal.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public final class PersonFinal extends Person { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonHolder.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonHolder.java index 2c84bf805cf..c96e42ecee3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonHolder.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonHolder.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.compiler; public class PersonHolder { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonInterface.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonInterface.java index e0544fc4baa..9f7ca9cf9db 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonInterface.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PersonInterface.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Pet.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Pet.java index 761889f9457..0bac2215ba0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Pet.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Pet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.util.HashMap; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PolymorphicFact.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PolymorphicFact.java index b6557f85861..30a11d74607 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PolymorphicFact.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/PolymorphicFact.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class PolymorphicFact { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Precondition.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Precondition.java index c38e29de2d9..5b5244fe0ee 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Precondition.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Precondition.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Primitives.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Primitives.java index a7f5154c05c..086802fcdd8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Primitives.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Primitives.java @@ -1,17 +1,20 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/RoutingMessage.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/RoutingMessage.java index 3825a86134c..dfe823d33cb 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/RoutingMessage.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/RoutingMessage.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class RoutingMessage { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ScenarioType.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ScenarioType.java index c46f9bcf51a..748be3f00c5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ScenarioType.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/ScenarioType.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class ScenarioType { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/SpecialString.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/SpecialString.java index 14db251f248..27b250ac345 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/SpecialString.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/SpecialString.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class SpecialString { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/State.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/State.java index 645c84349c4..e2d0d36ad42 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/State.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/State.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.beans.PropertyChangeListener; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StaticMethods.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StaticMethods.java index 39c12c0dd04..fcb83d7e3b3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StaticMethods.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StaticMethods.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; public class StaticMethods { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StaticMethods2.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StaticMethods2.java index c976c5160fd..5b9b1cdc3f9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StaticMethods2.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StaticMethods2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; public class StaticMethods2 { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StockTick.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StockTick.java index e91bef06430..8abd049eb69 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StockTick.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StockTick.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StockTickInterface.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StockTickInterface.java index 71a7a372dba..e337bcd18d8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StockTickInterface.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/StockTickInterface.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; import java.util.Date; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Target.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Target.java index 917ea15cbaa..76679d9ee1b 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Target.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Target.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Target { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/TestEnum.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/TestEnum.java index 5b009f51a5f..7528fe6df04 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/TestEnum.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/TestEnum.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public enum TestEnum { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/TestUtil.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/TestUtil.java index 3a5f28ae6e3..15e979fcd9a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/TestUtil.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/TestUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Triangle.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Triangle.java index d38595031ed..bb4188acb9f 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Triangle.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Triangle.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Triangle { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Win.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Win.java index 8cc68febad6..1ed2c175520 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Win.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Win.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler; public class Win { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Worker.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Worker.java index 427f40ed3e8..80c80d98acc 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Worker.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/Worker.java @@ -1,17 +1,20 @@ -/* - * Copyright 2008 Red Hat - * - * Licensed 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. +/** + * 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. */ package org.drools.mvel.compiler; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/api/KnowledgeBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/api/KnowledgeBuilderTest.java index 3830176a0c1..d612968e5e6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/api/KnowledgeBuilderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/api/KnowledgeBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.api; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/abductive/AbductionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/abductive/AbductionTest.java index 5e091f3c1d9..0a8b9988e48 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/abductive/AbductionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/abductive/AbductionTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.beliefsystem.abductive; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/defeasible/DefeasibilityTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/defeasible/DefeasibilityTest.java index 0b1d7ce3306..47ca30372ea 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/defeasible/DefeasibilityTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/defeasible/DefeasibilityTest.java @@ -1,18 +1,21 @@ -/* -* Copyright 2012 Red Hat -* -* Licensed 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. -*/ +/** + * 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. + */ package org.drools.mvel.compiler.beliefsystem.defeasible; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/jtms/JTMSTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/jtms/JTMSTest.java index 6977944f34a..356d57aecd5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/jtms/JTMSTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/beliefsystem/jtms/JTMSTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.beliefsystem.jtms; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/KieBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/KieBuilderTest.java index 4a0db6a5bd7..75736cbd2c0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/KieBuilderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/KieBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.builder; import java.io.File; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/KnowledgeBuilderConfigurationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/KnowledgeBuilderConfigurationTest.java index e40262cd3f1..23c79a5c255 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/KnowledgeBuilderConfigurationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/KnowledgeBuilderConfigurationTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2008 Red Hat - * - * Licensed 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. +/** + * 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. */ package org.drools.mvel.compiler.builder; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KieFileSystemScannerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KieFileSystemScannerTest.java index e94d5e802f4..0bb5010bf6a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KieFileSystemScannerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KieFileSystemScannerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.builder.impl; import java.io.File; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderConfigurationImplTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderConfigurationImplTest.java index f41f2804e9c..d2b1711fccb 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderConfigurationImplTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderConfigurationImplTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler.builder.impl; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderImplTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderImplTest.java index d9ed80c13ed..5813d5eb5fa 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderImplTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderImplTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.compiler.builder.impl; import java.io.File; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderTest.java index fc4d5ef4f67..cd99359863e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/builder/impl/KnowledgeBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.builder.impl; import java.io.IOException; @@ -31,33 +33,33 @@ import org.drools.compiler.compiler.DialectCompiletimeRegistry; import org.drools.compiler.compiler.DuplicateFunction; import org.drools.compiler.compiler.DuplicateRule; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.ActivationGroupNode; import org.drools.core.common.ActivationNode; import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalRuleFlowGroup; import org.drools.core.common.PropagationContext; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.phreak.RuleAgendaItem; import org.drools.core.reteoo.JoinNodeLeftTuple; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.RuleTerminalNode; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Behavior; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EvalCondition; -import org.drools.core.rule.GroupElement; +import org.drools.base.rule.Behavior; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EvalCondition; +import org.drools.base.rule.GroupElement; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.Pattern; +import org.drools.base.rule.Pattern; import org.drools.core.rule.SlidingTimeWindow; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.accessor.CompiledInvoker; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.accessor.CompiledInvoker; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.consequence.Consequence; -import org.drools.core.rule.constraint.Constraint; +import org.drools.base.rule.consequence.Consequence; +import org.drools.base.rule.constraint.Constraint; import org.drools.drl.ast.descr.AndDescr; import org.drools.drl.ast.descr.BaseDescr; import org.drools.drl.ast.descr.BehaviorDescr; @@ -187,7 +189,7 @@ public void testReload() throws Exception { workingMemory.setGlobal( "map", map ); - final LeftTuple tuple = new MockTuple( new HashMap() ); + final LeftTuple tuple = new MockTuple(new HashMap() ); tuple.setLeftTupleSink( new RuleTerminalNode(1, new MockBetaNode(), rule,rule.getLhs(), 0,new BuildContext(kBase, Collections.emptyList()) ) ); final InternalMatch internalMatch = new MockInternalMatch(rule, 0, @@ -265,7 +267,7 @@ public void testSerializable() throws Exception { workingMemory.setGlobal( "map", map ); - final LeftTuple tuple = new MockTuple( new HashMap() ); + final LeftTuple tuple = new MockTuple(new HashMap() ); tuple.setLeftTupleSink( new RuleTerminalNode(1, new MockBetaNode(), newRule,newRule.getLhs(), 0, new BuildContext(kBase, Collections.emptyList()) ) ); final InternalMatch internalMatch = new MockInternalMatch(newRule, 0, @@ -1232,7 +1234,7 @@ public void testTimeWindowBehavior() throws Exception { final Pattern pattern = (Pattern) rule.getLhs().getChildren().get( 0 ); assertThat(((ClassObjectType) pattern.getObjectType()).getClassType().getName()).isEqualTo(StockTick.class.getName()); - final Behavior window = pattern.getBehaviors().get( 0 ); + final Behavior window = pattern.getBehaviors().get(0); assertThat(window.getType()).isEqualTo(Behavior.BehaviorType.TIME_WINDOW); assertThat(((SlidingTimeWindow) window).getSize()).isEqualTo(60000); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/DisposeCommandPublicAPITest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/DisposeCommandPublicAPITest.java index d4fa974d8b3..ed5a8af3a9c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/DisposeCommandPublicAPITest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/DisposeCommandPublicAPITest.java @@ -1,11 +1,29 @@ +/** + * 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. + */ package org.drools.mvel.compiler.command; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.rule.consequence.KnowledgeHelper; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; @@ -33,8 +51,8 @@ public void testDisposeCommand() { pkg.getDialectRuntimeRegistry().setDialectData("java", data); rule = new RuleImpl("Test"); rule.setDialect("java"); - rule.setConsequence(new Consequence() { - public void evaluate(KnowledgeHelper knowledgeHelper, ReteEvaluator reteEvaluator) throws Exception { + rule.setConsequence(new Consequence() { + public void evaluate(KnowledgeHelper knowledgeHelper, ValueResolver valueResolver) throws Exception { } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/MoreBatchExecutionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/MoreBatchExecutionTest.java index fc167d7c11a..8d7221b0e62 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/MoreBatchExecutionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/MoreBatchExecutionTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat Inc. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler.command; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/PropagationListTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/PropagationListTest.java index b43737b08ea..b98f83ab365 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/PropagationListTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/PropagationListTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.command; import java.util.concurrent.Callable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/RegisterWorkItemHandlerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/RegisterWorkItemHandlerTest.java index b82f7061d45..17aca668e1b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/RegisterWorkItemHandlerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/RegisterWorkItemHandlerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.command; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/SimpleBatchExecutionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/SimpleBatchExecutionTest.java index 987290349ad..efd2b65b395 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/SimpleBatchExecutionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/command/SimpleBatchExecutionTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat Inc. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler.command; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/common/InternalMatchIteratorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/common/InternalMatchIteratorTest.java index 81c305d13b5..06b52dce024 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/common/InternalMatchIteratorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/common/InternalMatchIteratorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.common; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/common/TerminalNodeIteratorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/common/TerminalNodeIteratorTest.java index ec899c09e13..e5e40f46871 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/common/TerminalNodeIteratorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/common/TerminalNodeIteratorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.common; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/commons/jci/compilers/NativeJavaCompilerSettingsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/commons/jci/compilers/NativeJavaCompilerSettingsTest.java index ba6a7eac0f5..b2227bbb255 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/commons/jci/compilers/NativeJavaCompilerSettingsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/commons/jci/compilers/NativeJavaCompilerSettingsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.commons.jci.compilers; import java.util.List; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/CImpl.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/CImpl.java index 4fded37c0e8..cbb5c869e80 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/CImpl.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/CImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; public class CImpl implements IB { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/CompilerPerfProfileTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/CompilerPerfProfileTest.java index 40c7b98ef21..53b3a77feef 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/CompilerPerfProfileTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/CompilerPerfProfileTest.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; import java.io.IOException; import java.io.InputStreamReader; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.drl.parser.DroolsParserException; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DImpl.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DImpl.java index 948a7118612..d9f3a0a1a1b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DImpl.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; public class DImpl extends CImpl implements IA { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DescrResourceSetTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DescrResourceSetTest.java index 6abebd1f45b..046b3b293a2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DescrResourceSetTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DescrResourceSetTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.compiler.compiler; import java.io.File; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DrlParserTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DrlParserTest.java index 21c9bca9759..e9f8b0af96d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DrlParserTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/DrlParserTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; import java.io.StringReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/IA.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/IA.java index 0b6f99b9eb7..80c56c91645 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/IA.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/IA.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; public interface IA { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/IB.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/IB.java index 11d6b0a8da6..333124bc9b1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/IB.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/IB.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; public interface IB { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PackageBuilderConfigurationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PackageBuilderConfigurationTest.java index 75547560616..013bac852bd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PackageBuilderConfigurationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PackageBuilderConfigurationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; import java.util.ArrayList; @@ -34,6 +37,7 @@ import org.drools.compiler.rule.builder.EnabledBuilder; import org.drools.compiler.rule.builder.EntryPointBuilder; import org.drools.compiler.rule.builder.FromBuilder; +import org.drools.compiler.rule.builder.GroupByBuilder; import org.drools.compiler.rule.builder.GroupElementBuilder; import org.drools.compiler.rule.builder.PackageBuildContext; import org.drools.compiler.rule.builder.PatternBuilder; @@ -44,12 +48,12 @@ import org.drools.compiler.rule.builder.RuleConditionBuilder; import org.drools.compiler.rule.builder.SalienceBuilder; import org.drools.util.TypeResolver; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Pattern; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.Pattern; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.rule.RuleConditionElement; import org.drools.drl.ast.descr.AndDescr; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.BaseDescr; @@ -308,6 +312,11 @@ public AccumulateBuilder getAccumulateBuilder() { return null; } + public GroupByBuilder getGroupByBuilder() { + // TODO Auto-generated method stub + return null; + } + public RuleConditionBuilder getBuilder(Class clazz) { if (clazz == EvalDescr.class) { return getEvalBuilder(); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PackageDescrResourceVisitor.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PackageDescrResourceVisitor.java index b2b5e4779d2..26eaeec8bf9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PackageDescrResourceVisitor.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PackageDescrResourceVisitor.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.compiler.compiler; import org.drools.drl.ast.descr.AccessorDescr; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PatternBuilderForQueryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PatternBuilderForQueryTest.java index 61f305b3322..6ab6221c6c7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PatternBuilderForQueryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/PatternBuilderForQueryTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; import java.util.Arrays; @@ -31,7 +34,6 @@ import org.drools.mvel.compiler.Cheese; import org.drools.mvel.compiler.Person; import org.junit.Test; -import org.kie.api.definition.KiePackage; import org.kie.api.runtime.KieSession; import org.kie.api.runtime.rule.QueryResults; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/RuleErrorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/RuleErrorTest.java index 7a535ebaf39..4dcbe458ae7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/RuleErrorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/RuleErrorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; import org.drools.compiler.compiler.DescrBuildError; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationMergingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationMergingTest.java index 1410e3337cb..600e454e723 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationMergingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationMergingTest.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; -import org.drools.core.rule.TypeDeclaration; -import org.drools.core.rule.TypeDeclaration.Format; +import org.drools.base.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration.Format; import org.junit.Test; import org.kie.api.definition.type.Position; import org.kie.api.definition.type.Role; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationTest.java index f25b65679af..b85952cc472 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.compiler; import java.io.StringReader; @@ -28,9 +31,9 @@ import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; import org.drools.compiler.kie.builder.impl.InternalKieModule; -import org.drools.core.common.EventFactHandle; -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.rule.TypeDeclaration; +import org.drools.core.common.DefaultEventHandle; +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.base.rule.TypeDeclaration; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.KieUtil; @@ -527,7 +530,7 @@ public void testTypeDeclarationWithInnerClasses() { KieSession knowledgeSession = kBase.newKieSession(); FactHandle handle = knowledgeSession.insert( new EventBar.Foo() ); - assertThat(handle instanceof EventFactHandle).isTrue(); + assertThat(handle instanceof DefaultEventHandle).isTrue(); } @@ -549,7 +552,7 @@ public void testTypeDeclarationWithInnerClassesImport() { KieSession knowledgeSession = kBase.newKieSession(); FactHandle handle = knowledgeSession.insert( new EventBar.Foo() ); - assertThat(handle instanceof EventFactHandle).isTrue(); + assertThat(handle instanceof DefaultEventHandle).isTrue(); } @@ -952,7 +955,7 @@ public void testMultipleAnnotationDeclarations() { FactHandle handle = session.insert( foo ); int n = session.fireAllRules( 5 ); - assertThat(handle instanceof EventFactHandle).isTrue(); + assertThat(handle instanceof DefaultEventHandle).isTrue(); assertThat(n).isEqualTo(1); assertThat(type.get(foo, "age")).isEqualTo(99); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationUnsupportedModelTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationUnsupportedModelTest.java index f9957af4871..caefebe4588 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationUnsupportedModelTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/TypeDeclarationUnsupportedModelTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.compiler.compiler; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/io/memory/MemoryFileSystemTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/io/memory/MemoryFileSystemTest.java index 7aafd3dda37..47f9d913a85 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/io/memory/MemoryFileSystemTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/compiler/io/memory/MemoryFileSystemTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.compiler.io.memory; import org.drools.compiler.compiler.io.File; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/conf/KnowledgeBaseConfigurationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/conf/KnowledgeBaseConfigurationTest.java index 32b1384b549..e11b7725696 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/conf/KnowledgeBaseConfigurationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/conf/KnowledgeBaseConfigurationTest.java @@ -1,23 +1,24 @@ -/* - * Copyright 2008 Red Hat - * - * Licensed 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. +/** + * 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. */ package org.drools.mvel.compiler.conf; import org.drools.core.runtime.rule.impl.DefaultConsequenceExceptionHandler; -import org.drools.core.util.MemoryUtil; -import org.junit.Assume; import org.junit.Before; import org.junit.Test; import org.kie.api.KieBaseConfiguration; @@ -36,7 +37,7 @@ import org.kie.internal.conf.IndexPrecedenceOption; import org.kie.internal.conf.IndexRightBetaMemoryOption; import org.kie.internal.conf.MaxThreadsOption; -import org.kie.internal.conf.MultithreadEvaluationOption; +import org.kie.internal.conf.ParallelExecutionOption; import org.kie.internal.conf.SequentialAgendaOption; import org.kie.internal.conf.ShareAlphaNodesOption; import org.kie.internal.conf.ShareBetaNodesOption; @@ -376,8 +377,7 @@ public void testMaxThreadsConfiguration() { assertThat(config.getProperty(MaxThreadsOption.PROPERTY_NAME)).isEqualTo("5"); // setting the options using the string based setProperty() method - config.setProperty( MaxThreadsOption.PROPERTY_NAME, - "8" ); + config.setProperty( MaxThreadsOption.PROPERTY_NAME, "8" ); // checking the type safe getOption() method assertThat(config.getOption(MaxThreadsOption.KEY)).isEqualTo(MaxThreadsOption.get(8)); @@ -386,23 +386,22 @@ public void testMaxThreadsConfiguration() { } @Test - public void testMultithreadEvaluationConfiguration() { + public void testParallelExecutionConfiguration() { // setting the option using the type safe method - config.setOption( MultithreadEvaluationOption.YES ); + config.setOption( ParallelExecutionOption.FULLY_PARALLEL ); // checking the type safe getOption() method - assertThat(config.getOption(MultithreadEvaluationOption.KEY)).isEqualTo(MultithreadEvaluationOption.YES); + assertThat(config.getOption(ParallelExecutionOption.KEY)).isEqualTo(ParallelExecutionOption.FULLY_PARALLEL); // checking the string based getProperty() method - assertThat(config.getProperty(MultithreadEvaluationOption.PROPERTY_NAME)).isEqualTo("true"); + assertThat(config.getProperty(ParallelExecutionOption.PROPERTY_NAME)).isEqualTo("fully_parallel"); // setting the options using the string based setProperty() method - config.setProperty( MultithreadEvaluationOption.PROPERTY_NAME, - "false" ); + config.setProperty( ParallelExecutionOption.PROPERTY_NAME,"sequential" ); // checking the type safe getOption() method - assertThat(config.getOption(MultithreadEvaluationOption.KEY)).isEqualTo(MultithreadEvaluationOption.NO); + assertThat(config.getOption(ParallelExecutionOption.KEY)).isEqualTo(ParallelExecutionOption.SEQUENTIAL); // checking the string based getProperty() method - assertThat(config.getProperty(MultithreadEvaluationOption.PROPERTY_NAME)).isEqualTo("false"); + assertThat(config.getProperty(ParallelExecutionOption.PROPERTY_NAME)).isEqualTo("sequential"); } @Test diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/conf/KnowledgeSessionConfigurationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/conf/KnowledgeSessionConfigurationTest.java index 10656ba7d6f..c91ebb04427 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/conf/KnowledgeSessionConfigurationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/conf/KnowledgeSessionConfigurationTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2008 Red Hat - * - * Licensed 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. +/** + * 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. */ package org.drools.mvel.compiler.conf; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/definitions/KnowledgePackageMetaDataTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/definitions/KnowledgePackageMetaDataTest.java index a4c821bab7f..c65545359f9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/definitions/KnowledgePackageMetaDataTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/definitions/KnowledgePackageMetaDataTest.java @@ -1,25 +1,27 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.definitions; import java.util.Collection; -import org.drools.core.definitions.rule.impl.GlobalImpl; +import org.drools.base.definitions.rule.impl.GlobalImpl; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.TestParametersUtil; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/DslExpansionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/DslExpansionTest.java index 7fa9c1285df..7c9778adc95 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/DslExpansionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/DslExpansionTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.kie.builder; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/WireChannelTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/WireChannelTest.java index 25613487cf3..3f8983c5211 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/WireChannelTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/WireChannelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.kie.builder; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/WireListenerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/WireListenerTest.java index b81b072df7d..3e19ade2f73 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/WireListenerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/WireListenerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.kie.builder; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/ClasspathKieProjectTransformUrlToFileSystemPathTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/ClasspathKieProjectTransformUrlToFileSystemPathTest.java index 46b9457f35b..9bbe587d83f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/ClasspathKieProjectTransformUrlToFileSystemPathTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/ClasspathKieProjectTransformUrlToFileSystemPathTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.kie.builder.impl; import java.net.URL; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieBuilderSetImplTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieBuilderSetImplTest.java index 18713ecab53..6adf0fd8a3a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieBuilderSetImplTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieBuilderSetImplTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.kie.builder.impl; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieFileSystemImplTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieFileSystemImplTest.java index 8f3182f5846..5be259b2cb1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieFileSystemImplTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieFileSystemImplTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.kie.builder.impl; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieModuleRepoTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieModuleRepoTest.java index f7b6306b976..089286228ac 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieModuleRepoTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/KieModuleRepoTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.compiler.kie.builder.impl; import java.io.File; @@ -21,7 +39,7 @@ import org.drools.compiler.kie.builder.impl.KieRepositoryImpl; import org.drools.compiler.kie.builder.impl.KieRepositoryImpl.KieModuleRepo; import org.drools.compiler.kproject.models.KieBaseModelImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.io.InternalResource; import org.drools.wiring.api.ResourceProvider; @@ -400,7 +418,7 @@ public KnowledgeBuilderConfiguration createBuilderConfiguration( KieBaseModel kB } @Override - public InternalKnowledgeBase createKieBase(KieBaseModelImpl kBaseModel, KieProject kieProject, BuildContext buildContext, KieBaseConfiguration conf ) { + public InternalKnowledgeBase createKieBase(KieBaseModelImpl kBaseModel, KieProject kieProject, BuildContext buildContext, KieBaseConfiguration conf) { throw new UnsupportedOperationException(); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/MemoryKieModuleResourceProviderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/MemoryKieModuleResourceProviderTest.java index 20dd47cfeaa..2815cde5b1d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/MemoryKieModuleResourceProviderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/builder/impl/MemoryKieModuleResourceProviderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.kie.builder.impl; import org.apache.commons.io.IOUtils; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/util/ChangeSetBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/util/ChangeSetBuilderTest.java index e683f30c615..2b2777c0201 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/util/ChangeSetBuilderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kie/util/ChangeSetBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.kie.util; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/ReleaseIdTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/ReleaseIdTest.java index 63b93f572b1..09b3d056712 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/ReleaseIdTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/ReleaseIdTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.compiler.kproject; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryFileTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryFileTest.java index fcf125f5fdd..0d8ae2bdf13 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryFileTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryFileTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.kproject.memory; import java.io.ByteArrayInputStream; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryFolderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryFolderTest.java index f861a7b9d2a..8d308f7fa83 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryFolderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryFolderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.kproject.memory; import java.io.ByteArrayInputStream; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryURLConnection.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryURLConnection.java index 97d40476be4..f6333389bd6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryURLConnection.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemoryURLConnection.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.kproject.memory; import java.io.ByteArrayInputStream; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemorytURLStreamHandler.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemorytURLStreamHandler.java index fab7d9898a6..78bc523d5e6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemorytURLStreamHandler.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/kproject/memory/MemorytURLStreamHandler.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.kproject.memory; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLContextTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLContextTest.java index a2bff9f99ff..efda0727f2f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLContextTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLContextTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang; import java.util.LinkedList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLExprParserTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLExprParserTest.java index 6fa185c3bdf..08eeb33edae 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLExprParserTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLExprParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.compiler.lang; import org.drools.compiler.builder.impl.EvaluatorRegistry; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLIncompleteCodeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLIncompleteCodeTest.java index 6faa9727648..04ba8d26389 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLIncompleteCodeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DRLIncompleteCodeTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang; import java.util.LinkedList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DescrDumperTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DescrDumperTest.java index 3eaecd621b2..649b43c37fe 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DescrDumperTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DescrDumperTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang; import org.drools.drl.parser.DrlExprParser; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DroolsSoftKeywordsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DroolsSoftKeywordsTest.java index 803f3cd93c5..a12b9f1b100 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DroolsSoftKeywordsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/DroolsSoftKeywordsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang; import org.drools.drl.parser.lang.DroolsSoftKeywords; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/ErrorsParserTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/ErrorsParserTest.java index 1fade55efa0..535d8a1105e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/ErrorsParserTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/ErrorsParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.lang; import java.io.InputStream; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/MockExpander.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/MockExpander.java index 600856319df..3df10737e6f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/MockExpander.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/MockExpander.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.lang; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/MockExpanderResolver.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/MockExpanderResolver.java index efbb84a8359..8ac9514dfb7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/MockExpanderResolver.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/MockExpanderResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.lang; import java.util.HashMap; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/RuleParserTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/RuleParserTest.java index 5d60aac3f0d..4968c0dfa14 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/RuleParserTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/RuleParserTest.java @@ -1,19 +1,21 @@ -/* -* Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.lang; import java.io.InputStream; @@ -44,8 +46,8 @@ import org.drools.drl.ast.descr.ForallDescr; import org.drools.drl.ast.descr.FromDescr; import org.drools.drl.ast.descr.FunctionDescr; -import org.drools.drl.ast.descr.FunctionImportDescr; import org.drools.drl.ast.descr.GlobalDescr; +import org.drools.drl.ast.descr.GroupByDescr; import org.drools.drl.ast.descr.ImportDescr; import org.drools.drl.ast.descr.MVELExprDescr; import org.drools.drl.ast.descr.NotDescr; @@ -2036,6 +2038,52 @@ public void testQualifiedClassname() throws Exception { assertThat(p.getObjectType()).isEqualTo("com.cheeseco.Cheese"); } + @Test + public void testGroupBy() throws Exception { + final PackageDescr pkg = (PackageDescr) parseResource( "compilationUnit", + "groupBy.drl" ); + + assertThat(pkg.getRules().size()).isEqualTo(1); + final RuleDescr rule = pkg.getRules().get(0); + assertThat(rule.getLhs().getDescrs().size()).isEqualTo(1); + + final PatternDescr outPattern = (PatternDescr) rule.getLhs().getDescrs().get( 0 ); + final GroupByDescr groupBy = (GroupByDescr) outPattern.getSource(); + assertEqualsIgnoreWhitespace( "$initial", + groupBy.getGroupingKey() ); + assertEqualsIgnoreWhitespace( "$p.getName().substring(0, 1)", + groupBy.getGroupingFunction() ); + assertThat(groupBy.getActionCode()).isNull(); + assertThat(groupBy.getReverseCode()).isNull(); + assertThat(groupBy.getFunctions()).hasSize(2); + assertEqualsIgnoreWhitespace( "sum", + groupBy.getFunctions().get(0).getFunction() ); + assertEqualsIgnoreWhitespace( "count", + groupBy.getFunctions().get(1).getFunction() ); + + assertThat(groupBy.getFunctions().get(0).getParams()).hasSize(1); + assertEqualsIgnoreWhitespace("$age", + groupBy.getFunctions().get(0).getParams()[0]); + + assertThat(groupBy.getFunctions().get(1).getParams()).hasSize(0); + + assertThat(groupBy.isExternalFunction()).isTrue(); + + final PatternDescr pattern = groupBy.getInputPattern(); + assertThat(pattern.getObjectType()).isEqualTo("Person"); + assertThat(pattern.getConstraint().getDescrs()).hasSize(1); + assertEqualsIgnoreWhitespace("$age : age < 30", + pattern.getConstraint().getDescrs().get(0).getText()); + + assertThat(pattern.getConstraint().getDescrs()).hasSize(1); + assertEqualsIgnoreWhitespace("$age : age < 30", + pattern.getConstraint().getDescrs().get(0).getText()); + + assertThat(outPattern.getConstraint().getDescrs()).hasSize(1); + assertEqualsIgnoreWhitespace("$sumOfAges > 10", + outPattern.getConstraint().getDescrs().get(0).getText()); + } + @Test public void testAccumulate() throws Exception { final PackageDescr pkg = (PackageDescr) parseResource( "compilationUnit", diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/TestDRL.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/TestDRL.java index 16ffb169719..58b092c0de2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/TestDRL.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/TestDRL.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang; public class TestDRL { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/Tree2TestDRL.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/Tree2TestDRL.java index 37a9b996146..200fd403edd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/Tree2TestDRL.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/Tree2TestDRL.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ // $ANTLR 3.3 Nov 30, 2010 12:46:29 src/main/resources/org/drools/lang/Tree2TestDRL.g 2011-01-18 19:45:14 package org.drools.mvel.compiler.lang; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/api/DescrBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/api/DescrBuilderTest.java index e077b5b7765..087a0b095cd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/api/DescrBuilderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/api/DescrBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.compiler.lang.api; import java.util.ArrayList; @@ -25,11 +27,11 @@ import java.util.List; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.io.ByteArrayResource; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.RuleConditionElement; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.RuleConditionElement; import org.drools.drl.ast.descr.AttributeDescr; import org.drools.drl.ast.descr.PackageDescr; import org.drools.drl.ast.dsl.DescrFactory; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/AndDescrTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/AndDescrTest.java index bc8ae05fe94..8a4d6cf7df1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/AndDescrTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/AndDescrTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang.descr; import org.drools.drl.ast.descr.AndDescr; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/ConnectiveDescrTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/ConnectiveDescrTest.java index 1863ec5a1f7..346adfca684 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/ConnectiveDescrTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/ConnectiveDescrTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang.descr; import org.drools.drl.ast.descr.ConnectiveDescr; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/PackageDescrTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/PackageDescrTest.java index 8e53065c299..d924b3df113 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/PackageDescrTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/descr/PackageDescrTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang.descr; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/ANTLRDSLTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/ANTLRDSLTest.java index 268d1a85d2c..154f7ba3027 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/ANTLRDSLTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/ANTLRDSLTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang.dsl; import java.io.InputStreamReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLMappingEntryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLMappingEntryTest.java index 039d7b371f0..4615e200883 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLMappingEntryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLMappingEntryTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang.dsl; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLMappingFileTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLMappingFileTest.java index 7c3296fb9ca..8aed7b802b8 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLMappingFileTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLMappingFileTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang.dsl; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLTokenizedMappingFileTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLTokenizedMappingFileTest.java index bccd69589ed..f69963ca222 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLTokenizedMappingFileTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DSLTokenizedMappingFileTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang.dsl; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DefaultExpanderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DefaultExpanderTest.java index 7508770bd37..01012d786ad 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DefaultExpanderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/lang/dsl/DefaultExpanderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.lang.dsl; import java.io.InputStreamReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathAccumulateTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathAccumulateTest.java index 40141e1a856..5701330e263 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathAccumulateTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathAccumulateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathBenchmarkTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathBenchmarkTest.java index 3ab644b49af..8536597d79d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathBenchmarkTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathBenchmarkTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.oopath; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathBindTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathBindTest.java index cc3d8e6ee27..a8f39f99bf8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathBindTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathBindTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathCastTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathCastTest.java index 43fec6ceee0..638326db10f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathCastTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathCastTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathMultilevelTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathMultilevelTest.java index 559e2a9f76f..30be8d32c45 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathMultilevelTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathMultilevelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathQueriesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathQueriesTest.java index 30bf324289c..4d874a900cc 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathQueriesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathQueriesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.oopath; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathReactiveTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathReactiveTest.java index be0c5321599..55ac454de91 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathReactiveTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathReactiveTest.java @@ -1,31 +1,32 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath; import java.util.ArrayList; import java.util.Collection; import java.util.List; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.LeftInputAdapterNode; -import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.ReactiveFromNode; import org.drools.core.reteoo.Tuple; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathTest.java index ceccf3dec7c..43ec72696f3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/OOPathTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.oopath; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/RecursiveQueryBenchmark.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/RecursiveQueryBenchmark.java index 1451676a52c..70358f46199 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/RecursiveQueryBenchmark.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/RecursiveQueryBenchmark.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.oopath; import org.kie.api.KieBase; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/Edge.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/Edge.java index 1631ad7585a..92c2d3974fe 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/Edge.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/Edge.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.graph; public class Edge { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/OOPathOnGraphTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/OOPathOnGraphTest.java index b62758ffe28..93feca06d63 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/OOPathOnGraphTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/OOPathOnGraphTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.graph; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/Vertex.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/Vertex.java index 9d26b8bf23e..2ae263c32e9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/Vertex.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/graph/Vertex.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.graph; import org.drools.core.phreak.AbstractReactiveObject; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Adult.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Adult.java index 950a225230b..3db83ef0cbf 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Adult.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Adult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import org.drools.core.phreak.ReactiveList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Appliance.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Appliance.java index 96373f1ace4..ed523c3c7fc 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Appliance.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Appliance.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.oopath.model; import org.drools.core.phreak.AbstractReactiveObject; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BabyBoy.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BabyBoy.java index 7c52566eea0..97326190e41 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BabyBoy.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BabyBoy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; public class BabyBoy extends Child { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BabyGirl.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BabyGirl.java index 69c64300d8c..eef81a8a87f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BabyGirl.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BabyGirl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; public class BabyGirl extends Child { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BodyMeasurement.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BodyMeasurement.java index 89d468d50fd..1dc692dd233 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BodyMeasurement.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/BodyMeasurement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; public enum BodyMeasurement { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Child.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Child.java index 1ba445dcc31..b2c863e55e0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Child.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Child.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import org.drools.core.phreak.ReactiveList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Company.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Company.java index c4c74d871b2..d81af2aeb00 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Company.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Company.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Disease.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Disease.java index 0b6b6136845..74fc735ed26 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Disease.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Disease.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Employee.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Employee.java index d873205aa74..3ee1fe2280e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Employee.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Employee.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; public class Employee extends Person { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Group.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Group.java index f623f8d90c2..c48ff2f2e64 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Group.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Group.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import java.util.List; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Man.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Man.java index a4048bd0d5d..2df23be04b1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Man.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Man.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; public class Man extends Adult { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Person.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Person.java index f37354e976f..e22d5a6aa3c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Person.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import org.drools.core.phreak.AbstractReactiveObject; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Room.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Room.java index 7443e424e4e..11c49f38540 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Room.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Room.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.oopath.model; import org.drools.core.phreak.AbstractReactiveObject; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/School.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/School.java index 552d22e2f35..fa5d98fed37 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/School.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/School.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import java.util.List; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Sensor.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Sensor.java index 91a5e577593..64e1c67c491 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Sensor.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Sensor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.oopath.model; import org.drools.core.phreak.AbstractReactiveObject; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/SensorEvent.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/SensorEvent.java index f813298c114..07e66250fd2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/SensorEvent.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/SensorEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.oopath.model; public class SensorEvent { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMDirectory.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMDirectory.java index 129f81f7519..d0670683f73 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMDirectory.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMDirectory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import java.util.List; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFile.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFile.java index 24ccc854d9e..bf5d1edad90 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFile.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import org.drools.core.phreak.AbstractReactiveObject; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFileSet.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFileSet.java index c36d8d0fe70..e6799fb7501 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFileSet.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFileSet.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import java.util.Set; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFileWithParentObj.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFileWithParentObj.java index 083358c43ec..595e1b9c866 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFileWithParentObj.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/TMFileWithParentObj.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; public class TMFileWithParentObj extends TMFile { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Thing.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Thing.java index f8bde831725..0786ac3eea0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Thing.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Thing.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Toy.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Toy.java index f4843947c14..1a6ca537fa2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Toy.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Toy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; import org.drools.core.phreak.AbstractReactiveObject; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Woman.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Woman.java index c89308c53af..c6d5dcb2186 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Woman.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/oopath/model/Woman.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.oopath.model; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/phreak/A.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/phreak/A.java index 982a95073f9..aa3b6bc81f7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/phreak/A.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/phreak/A.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.phreak; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/MockLeftTupleSink.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/MockLeftTupleSink.java index 519e02f857f..035edb0e972 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/MockLeftTupleSink.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/MockLeftTupleSink.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.drools.mvel.compiler.reteoo; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/MockRightTupleSink.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/MockRightTupleSink.java index 58338675132..2f3cfcbe3d7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/MockRightTupleSink.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/MockRightTupleSink.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.reteoo; import java.io.IOException; @@ -21,15 +24,15 @@ import java.util.ArrayList; import java.util.List; -import org.drools.core.common.NetworkNode; +import org.drools.base.common.NetworkNode; import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.common.RuleBasePartitionId; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.common.RuleBasePartitionId; +import org.drools.base.reteoo.BaseTerminalNode; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.RightTupleSink; -import org.drools.core.reteoo.TerminalNode; import org.kie.api.definition.rule.Rule; public class MockRightTupleSink @@ -81,11 +84,11 @@ public boolean isAssociatedWith( Rule rule ) { } @Override - public void addAssociatedTerminal(TerminalNode terminalNode) { + public void addAssociatedTerminal(BaseTerminalNode terminalNode) { } @Override - public void removeAssociatedTerminal(TerminalNode terminalNode) { + public void removeAssociatedTerminal(BaseTerminalNode terminalNode) { } @Override @@ -94,7 +97,7 @@ public int getAssociatedTerminalsSize() { } @Override - public boolean hasAssociatedTerminal(NetworkNode terminalNode) { + public boolean hasAssociatedTerminal(BaseTerminalNode terminalNode) { return false; } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/ReteooBuilderPerformanceTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/ReteooBuilderPerformanceTest.java index d9d9e2e00d2..3df0bf9bd56 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/ReteooBuilderPerformanceTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/ReteooBuilderPerformanceTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.reteoo; import java.io.IOException; @@ -20,12 +23,11 @@ import java.util.Collections; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; +import org.drools.core.impl.KnowledgeBaseImpl; import org.drools.core.impl.RuleBaseFactory; import org.drools.drl.parser.DroolsParserException; -import org.drools.core.RuleBaseConfiguration; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.KnowledgeBaseImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.ReteooBuilder; import org.drools.mvel.integrationtests.LargeRuleBase; import org.junit.Ignore; @@ -68,7 +70,7 @@ private static ReteooBuilder[] getReteBuilders(int count) { CompositeBaseConfiguration conf = (CompositeBaseConfiguration) RuleBaseFactory.newKnowledgeBaseConfiguration(); for (int i = 0; i < reteBuilders.length; i++) { - reteBuilders[i] = new ReteooBuilder(new KnowledgeBaseImpl( "id1", conf )); + reteBuilders[i] = new ReteooBuilder(new KnowledgeBaseImpl("id1", conf )); } return reteBuilders; } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/ReteooBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/ReteooBuilderTest.java index ccba61d13bf..e935ab5fe06 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/ReteooBuilderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/reteoo/ReteooBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.reteoo; import java.io.BufferedWriter; @@ -23,7 +26,7 @@ import com.thoughtworks.xstream.XStream; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.LeftTupleSource; @@ -85,7 +88,7 @@ private void checkRuleBase(final String name) throws Exception { final XStream xstream = createNonTrustingXStream(); - final InternalKnowledgeBase goodKBase = (InternalKnowledgeBase) xstream.fromXML( getClass().getResourceAsStream( name ) ); + final InternalKnowledgeBase goodKBase = (InternalKnowledgeBase) xstream.fromXML(getClass().getResourceAsStream(name)); nodesEquals( goodKBase.getRete(), kBase.getRete() ); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/XpathAnalysisTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/XpathAnalysisTest.java index 21b90883f7b..ff75cbeb239 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/XpathAnalysisTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/XpathAnalysisTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/JavaAndMVELCombinedTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/JavaAndMVELCombinedTest.java index 781ff1cca6b..700960bdc97 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/JavaAndMVELCombinedTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/JavaAndMVELCombinedTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/AccumulateTemplateTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/AccumulateTemplateTest.java index adf1678282b..0a03041b52d 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/AccumulateTemplateTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/AccumulateTemplateTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.java; import java.util.Arrays; @@ -22,9 +25,9 @@ import org.drools.core.base.ClassFieldAccessorCache; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.PatternExtractor; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.PatternExtractor; import org.drools.util.StringUtils; import org.drools.mvel.compiler.Cheese; import org.drools.mvel.compiler.Person; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/AsmGeneratorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/AsmGeneratorTest.java index 7753cd6b4da..650998e295f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/AsmGeneratorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/AsmGeneratorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.rule.builder.dialect.java; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/RuleBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/RuleBuilderTest.java index d89e5958fdf..4e2fc39a81c 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/RuleBuilderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/rule/builder/dialect/java/RuleBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2006 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.rule.builder.dialect.java; import java.io.InputStreamReader; @@ -32,12 +34,12 @@ import org.drools.drl.ast.descr.RuleDescr; import org.drools.compiler.rule.builder.RuleBuildContext; import org.drools.compiler.rule.builder.RuleBuilder; -import org.drools.core.base.EnabledBoolean; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.Pattern; -import org.drools.core.time.TimeUtils; +import org.drools.base.base.EnabledBoolean; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.Pattern; +import org.drools.base.time.TimeUtils; import org.drools.core.time.impl.IntervalTimer; import org.drools.drl.parser.DroolsParserException; import org.drools.util.DateUtils; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/simulation/BatchRunFluentTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/simulation/BatchRunFluentTest.java index ed5583949ec..831c8dda03a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/simulation/BatchRunFluentTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/simulation/BatchRunFluentTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.simulation; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/Man.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/Man.java index 31020b59c48..6c71473cdbd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/Man.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/Man.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.test; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/Person.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/Person.java index ba356b022ce..b6996d63056 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/Person.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/Person.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.test; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/PositionalTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/PositionalTest.java index 6622d30db25..3770a5dfec9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/PositionalTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/test/PositionalTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.test; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/DumbFact.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/DumbFact.java index 2edcd6be465..4d9bd07c6f3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/DumbFact.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/DumbFact.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.testframework; public class DumbFact { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/FactPopulatorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/FactPopulatorTest.java index 19f7c516422..63995a59af1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/FactPopulatorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/FactPopulatorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.testframework; import java.util.HashMap; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/MockFactHandle.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/MockFactHandle.java index dbcc9ac1b1b..7c01b433a6b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/MockFactHandle.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/MockFactHandle.java @@ -1,18 +1,21 @@ -/* -* Copyright 2005 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ +/** + * 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. + */ package org.drools.mvel.compiler.testframework; @@ -37,6 +40,31 @@ public MockFactHandle(final int id) { this.id = id; } + @Override + public Object getObject() { + return null; + } + + @Override + public boolean isNegated() { + return false; + } + + @Override + public boolean isEvent() { + return false; + } + + @Override + public K as(Class klass) throws ClassCastException { + return null; + } + + @Override + public boolean isValid() { + return false; + } + public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { id = in.readInt(); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/RuleCoverageListenerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/RuleCoverageListenerTest.java index 8c5bea0daae..b1a32e892be 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/RuleCoverageListenerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/testframework/RuleCoverageListenerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.testframework; import java.util.HashSet; @@ -24,14 +27,13 @@ import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalRuleFlowGroup; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.event.rule.impl.AfterActivationFiredEventImpl; import org.drools.core.phreak.RuleAgendaItem; import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.Tuple; -import org.drools.core.rule.GroupElement; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.consequence.Consequence; +import org.drools.base.rule.consequence.Consequence; import org.drools.core.common.PropagationContext; import org.junit.Test; import org.kie.api.runtime.rule.FactHandle; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/util/debug/DebugList.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/util/debug/DebugList.java index cbd5eb7035f..314cefd8596 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/util/debug/DebugList.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/util/debug/DebugList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.compiler.util.debug; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/util/debug/SessionInspectorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/util/debug/SessionInspectorTest.java index d9a1ad1ac07..c76b87225f9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/util/debug/SessionInspectorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/compiler/util/debug/SessionInspectorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.compiler.util.debug; import java.awt.Dimension; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/BaseClassFieldExtractorsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/BaseClassFieldExtractorsTest.java index c15ef0045bb..a6e921346bd 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/BaseClassFieldExtractorsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/BaseClassFieldExtractorsTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; public abstract class BaseClassFieldExtractorsTest { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/BooleanClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/BooleanClassFieldExtractorTest.java index de387b413d9..7a050f26e6c 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/BooleanClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/BooleanClassFieldExtractorTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ByteClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ByteClassFieldExtractorTest.java index 4e67dea8b46..b8df855d4a3 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ByteClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ByteClassFieldExtractorTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/CharClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/CharClassFieldExtractorTest.java index 4dc73032bac..18b7702d638 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/CharClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/CharClassFieldExtractorTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ClassFieldAccessorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ClassFieldAccessorTest.java index 0e0412bdb13..5bc96bb4763 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ClassFieldAccessorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ClassFieldAccessorTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.mvel.accessors.ClassFieldAccessor; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/DoubleClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/DoubleClassFieldExtractorTest.java index 1f1305803ed..1a39f866234 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/DoubleClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/DoubleClassFieldExtractorTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/FieldIndexEntryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/FieldIndexEntryTest.java index 3cf2dbcb863..9127af56477 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/FieldIndexEntryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/FieldIndexEntryTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.core.base.ClassFieldAccessorCache; @@ -21,11 +25,11 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.RightTupleImpl; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.drools.core.reteoo.Tuple; import org.drools.core.test.model.Cheese; import org.drools.core.util.AbstractHashTable; -import org.drools.core.util.AbstractHashTable.FieldIndex; +import org.drools.base.util.FieldIndex; import org.drools.core.util.AbstractHashTable.SingleIndex; import org.drools.core.util.index.TupleList; import org.junit.Before; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/FloatClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/FloatClassFieldExtractorTest.java index f97c70a9e40..0e4a21dccc0 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/FloatClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/FloatClassFieldExtractorTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/IntClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/IntClassFieldExtractorTest.java index b0513230f71..b759031451e 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/IntClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/IntClassFieldExtractorTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/LongClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/LongClassFieldExtractorTest.java index 238ce72c60a..abbc20b3bfd 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/LongClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/LongClassFieldExtractorTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/MVELClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/MVELClassFieldExtractorTest.java index 7ca9020cf8d..7e8641b446e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/MVELClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/MVELClassFieldExtractorTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import java.util.Vector; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ObjectClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ObjectClassFieldExtractorTest.java index 624ec6c2d9a..36a2f6f9305 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ObjectClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ObjectClassFieldExtractorTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import java.util.Collections; @@ -19,7 +23,7 @@ import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ShortClassFieldExtractorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ShortClassFieldExtractorTest.java index d7dd42cab59..6f9a983606d 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ShortClassFieldExtractorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/extractors/ShortClassFieldExtractorTest.java @@ -1,22 +1,26 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.extractors; import org.drools.core.base.ClassFieldAccessorCache; import org.drools.core.base.TestBean; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/AlphaNodeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/AlphaNodeTest.java index 119e22ff3ff..d4089c34601 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/AlphaNodeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/AlphaNodeTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DRLDumperTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DRLDumperTest.java index 6a7a320d721..21c08ce7094 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DRLDumperTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DRLDumperTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DateCoercionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DateCoercionTest.java index eb8477635ae..5d6a7157042 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DateCoercionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DateCoercionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DateComparisonTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DateComparisonTest.java index bbb222348de..164fa148f73 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DateComparisonTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DateComparisonTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DeclarativeAgendaTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DeclarativeAgendaTest.java index b3e3fb0b8b8..b666ceedfe2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DeclarativeAgendaTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DeclarativeAgendaTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsEventList.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsEventList.java index a3c7fbbc0e6..ad20542c184 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsEventList.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsEventList.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsEventListTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsEventListTest.java index 242355cdfe6..6c00f973e30 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsEventListTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsEventListTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsFromRHSTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsFromRHSTest.java index 8094a06e52c..61188563f25 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsFromRHSTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsFromRHSTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsTest.java index eeaab9b621a..31edd9bf1ca 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DroolsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DslTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DslTest.java index 3c8684ad876..18cf572779e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DslTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DslTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicEvalTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicEvalTest.java index 80f7920753f..819ef874f53 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicEvalTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicEvalTest.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.impl.RuleBaseFactory; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.junit.After; @@ -112,7 +115,7 @@ public void testDynamicAdd() { "\nend"; loadPackages( ResourceFactory.newByteArrayResource( test.getBytes() ), ResourceType.DRL ); - ((RuleBase)session.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); + ((InternalRuleBase)session.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); session.addEventListener( new DebugRuleRuntimeEventListener( ) ); int fired = session.fireAllRules(); // 1 @@ -130,7 +133,7 @@ public void testDynamicAdd() { "\nend"; loadPackages(ResourceFactory.newByteArrayResource(test2.getBytes()), ResourceType.DRL); - ((RuleBase)session.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); + ((InternalRuleBase)session.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); fired = session.fireAllRules(); // 0 @@ -159,7 +162,7 @@ public void testDynamicAdd2() { loadPackages( ResourceFactory.newByteArrayResource( test.getBytes() ), ResourceType.DRL ); - ((RuleBase)session.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); + ((InternalRuleBase)session.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); session.addEventListener( new DebugRuleRuntimeEventListener( ) ); session.insert( "go" ); @@ -182,7 +185,7 @@ public void testDynamicAdd2() { "\nend"; loadPackages(ResourceFactory.newByteArrayResource(test2.getBytes()), ResourceType.DRL); - ((RuleBase)session.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); + ((InternalRuleBase)session.getKieBase()).addPackages(kbuilder.getKnowledgePackages()); fired = session.fireAllRules(); // 0 diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRuleLoadTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRuleLoadTest.java index 024286509cc..ea3fe5eec45 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRuleLoadTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRuleLoadTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.lang.reflect.Field; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRuleRemovalTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRuleRemovalTest.java index 2cb8f5ea856..0cf264cebce 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRuleRemovalTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRuleRemovalTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRulesChangesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRulesChangesTest.java index 6148a41cf77..b39fd2ce3c7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRulesChangesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRulesChangesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; @@ -26,7 +29,7 @@ import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.kie.api.definition.rule.Rule; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; @@ -200,7 +203,7 @@ public static void addRule(String ruleName) throws Exception { addRule(ruleName, null); } - public static void addRule(String ruleName, RuleImpl firingRule) throws Exception { + public static void addRule(String ruleName, Rule firingRule) throws Exception { String rule = rules.get(ruleName); KieBuilder kieBuilder = KieUtil.getKieBuilderFromDrls(staticKieBaseTestConfiguration, true, rule); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRulesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRulesTest.java index 61c3acf4fa3..ae39735735b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRulesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/DynamicRulesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.net.URL; @@ -63,6 +65,7 @@ import org.mockito.ArgumentCaptor; import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.assertj.core.api.Assertions.fail; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.mock; @@ -297,11 +300,7 @@ public void testDynamicFunction() throws Exception { 5 ); workingMemory.insert( cheddar ); - try { - workingMemory.fireAllRules(); - fail( "Function should have been removed and NoClassDefFoundError thrown from the Consequence" ); - } catch ( final Throwable e ) { - } + assertThatThrownBy(() -> workingMemory.fireAllRules()).isInstanceOf(Throwable.class); // Check a new function can be added to replace an old function Collection kpkgs2 = KieBaseUtil.getKieBaseFromClasspathResources("tmp", getClass(), kieBaseTestConfiguration, "test_DynamicFunction2.drl").getKiePackages(); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EdgeCaseNonExecModelTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EdgeCaseNonExecModelTest.java index 871e2e2c771..2ab9ee21fc1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EdgeCaseNonExecModelTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EdgeCaseNonExecModelTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EnableAuditLogCommandTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EnableAuditLogCommandTest.java index 6401e45064e..cc41a067d8f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EnableAuditLogCommandTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EnableAuditLogCommandTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.integrationtests; import java.io.File; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EnumTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EnumTest.java index a8d55728b42..c861d912349 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EnumTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/EnumTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExecutionFlowControlTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExecutionFlowControlTest.java index 5c1103f1632..510bffa593e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExecutionFlowControlTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExecutionFlowControlTest.java @@ -1,25 +1,23 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import java.util.concurrent.atomic.AtomicBoolean; - import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.InternalRuleFlowGroup; @@ -49,6 +47,11 @@ import org.kie.api.runtime.KieSession; import org.kie.api.runtime.rule.FactHandle; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.atomic.AtomicBoolean; + import static org.assertj.core.api.Assertions.assertThat; @RunWith(Parameterized.class) @@ -470,11 +473,11 @@ public void testLockOnActiveWithModify() throws Exception { final InternalAgendaGroup group1 = agenda.getAgendaGroupsManager().getAgendaGroup( "group1" ); agenda.getAgendaGroupsManager().setFocus( group1 ); assertThat(group1.size()).isEqualTo(1); - RuleAgendaItem ruleItem1 = (RuleAgendaItem) group1.getActivations().iterator().next(); + RuleAgendaItem ruleItem1 = group1.getActivations().iterator().next(); ruleItem1.getRuleExecutor().evaluateNetwork(wm.getAgenda()); assertThat(ruleItem1.getRuleExecutor().getLeftTupleList().size()).isEqualTo(3); - agenda.fireNextItem( null, 0, 0 ); + ruleItem1.getRuleExecutor().fire(agenda); assertThat(group1.size()).isEqualTo(1); assertThat(ruleItem1.getRuleExecutor().getLeftTupleList().size()).isEqualTo(2); @@ -486,11 +489,11 @@ public void testLockOnActiveWithModify() throws Exception { InternalAgendaGroup group2 = agenda.getAgendaGroupsManager().getAgendaGroup( "group2" ); agenda.getAgendaGroupsManager().setFocus( group2); assertThat(group2.size()).isEqualTo(1); - RuleAgendaItem ruleItem2 = (RuleAgendaItem) group2.getActivations().iterator().next(); + RuleAgendaItem ruleItem2 = group2.getActivations().iterator().next(); ruleItem2.getRuleExecutor().evaluateNetwork(wm.getAgenda()); assertThat(ruleItem2.getRuleExecutor().getLeftTupleList().size()).isEqualTo(3); - agenda.fireNextItem( null, 0, 0 ); + ruleItem2.getRuleExecutor().fire(agenda); assertThat(group2.size()).isEqualTo(1); assertThat(ruleItem2.getRuleExecutor().getLeftTupleList().size()).isEqualTo(2); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExistentialOperatorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExistentialOperatorTest.java index b0d4750fb07..4e1de4569cf 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExistentialOperatorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExistentialOperatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExpirationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExpirationTest.java index 88ba1943a89..a91fbbc3f1b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExpirationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExpirationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.time.Duration; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExtendsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExtendsTest.java index 8270c1d3c87..d36a355de2d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExtendsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ExtendsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.lang.reflect.Constructor; @@ -23,7 +25,7 @@ import java.util.LinkedList; import java.util.List; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.common.InternalFactHandle; import org.drools.drl.ast.dsl.DescrFactory; import org.drools.drl.ast.dsl.PackageDescrBuilder; @@ -512,7 +514,7 @@ public void testInheritAnnotationsInOtherPackage() throws Exception { for ( Object o : kSession.getObjects() ) { FactHandle h = kSession.getFactHandle( o ); - assertThat(h instanceof EventFactHandle).isTrue(); + assertThat(h instanceof DefaultEventHandle).isTrue(); } System.out.println( list ); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FailureOnRemovalTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FailureOnRemovalTest.java index 3c2b0d9dd6e..65d29feda7c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FailureOnRemovalTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FailureOnRemovalTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.IOException; @@ -75,7 +78,7 @@ public void testWithoutBetaNodeSharing() throws Exception { } private void runTest(boolean shareBetaNodes) throws Exception { - InternalKnowledgeBase kbase = (InternalKnowledgeBase) createKnowledgeBase( shareBetaNodes ); + InternalKnowledgeBase kbase = (InternalKnowledgeBase) createKnowledgeBase(shareBetaNodes); Collection rule1 = compileRule( RULE_1 ); kbase.addPackages( rule1 ); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FakeDRFAssemblerService.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FakeDRFAssemblerService.java index 20576661278..8519aa265d7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FakeDRFAssemblerService.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FakeDRFAssemblerService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.StringReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireAllRulesCommandTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireAllRulesCommandTest.java index 693e51ca6b2..d47c637d53e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireAllRulesCommandTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireAllRulesCommandTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireUntilHaltAccumulateTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireUntilHaltAccumulateTest.java index 73b16fd3e84..b6eb6579f48 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireUntilHaltAccumulateTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireUntilHaltAccumulateTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireUntilHaltTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireUntilHaltTest.java index 5fdaaccc3db..d734e8586b8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireUntilHaltTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FireUntilHaltTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FirstOrderLogicTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FirstOrderLogicTest.java index 586faf2e953..949113a5d2f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FirstOrderLogicTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FirstOrderLogicTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FunctionsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FunctionsTest.java index a985dcea357..0c805357790 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FunctionsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/FunctionsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/GeneratedBeansTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/GeneratedBeansTest.java index 6e05d690380..9bd892d00e6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/GeneratedBeansTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/GeneratedBeansTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/HelloWorldTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/HelloWorldTest.java index 384ac46cff3..fd8bf498272 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/HelloWorldTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/HelloWorldTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.File; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/I18nTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/I18nTest.java index 6671877ee31..6f0702fe738 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/I18nTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/I18nTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/IntegrationInterfacesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/IntegrationInterfacesTest.java index 939e7b7f474..dbaa6a7127d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/IntegrationInterfacesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/IntegrationInterfacesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java index f938158679a..697e8808d74 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/IteratorToList.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/JBRULESTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/JBRULESTest.java index 877764f250d..3959dbc867e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/JBRULESTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/JBRULESTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.ByteArrayOutputStream; @@ -24,7 +26,7 @@ import java.util.jar.JarEntry; import java.util.jar.JarInputStream; -import org.drools.core.rule.MapBackedClassLoader; +import org.drools.base.rule.MapBackedClassLoader; import org.drools.mvel.compiler.Bar; import org.drools.mvel.compiler.Cheese; import org.drools.mvel.compiler.FactA; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/JittingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/JittingTest.java index 5fe4bad8619..f9d50b4f6c2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/JittingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/JittingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBaseIncludesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBaseIncludesTest.java index 44f859eaa54..e9b358f02da 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBaseIncludesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBaseIncludesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java index d2949bf1df8..a819366f5a5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieCompilationCacheTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieCompilationCacheTest.java index 0072ca4368d..eee8d9b4c09 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieCompilationCacheTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieCompilationCacheTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieContainerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieContainerTest.java index 8f9087ca974..0bebcd07b8e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieContainerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieContainerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieDefaultPackageTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieDefaultPackageTest.java index 977680a4409..6c250b66f27 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieDefaultPackageTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieDefaultPackageTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieHelloWorldTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieHelloWorldTest.java index 072172aecad..8b5260098e5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieHelloWorldTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieHelloWorldTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.ByteArrayInputStream; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieLoggersTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieLoggersTest.java index e0cd752f352..5f5a6bd9255 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieLoggersTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieLoggersTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.File; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieRepositoryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieRepositoryTest.java index 383ac7e8bdc..59e6d0980e3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieRepositoryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieRepositoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.net.URL; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieRuntimeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieRuntimeTest.java index 8cfacaab7be..0f3becd4840 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieRuntimeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieRuntimeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieServicesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieServicesTest.java index ebc663a68a6..17a3aead1f4 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieServicesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieServicesTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieSessionIterationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieSessionIterationTest.java index 80c24c7d3b3..34fff749d83 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieSessionIterationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KieSessionIterationTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.mvel.integrationtests; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KmoduleXmlTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KmoduleXmlTest.java new file mode 100644 index 00000000000..ff01c6167c2 --- /dev/null +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KmoduleXmlTest.java @@ -0,0 +1,124 @@ +/** + * 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. + */ +package org.drools.mvel.integrationtests; + +import java.util.Collection; +import java.util.List; + +import org.drools.testcoverage.common.util.KieBaseTestConfiguration; +import org.drools.testcoverage.common.util.KieUtil; +import org.drools.testcoverage.common.util.TestParametersUtil; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.kie.api.KieServices; +import org.kie.api.builder.KieBuilder; +import org.kie.api.builder.KieFileSystem; +import org.kie.api.builder.Message; + +import static org.assertj.core.api.Assertions.assertThat; + +@RunWith(Parameterized.class) +public class KmoduleXmlTest { + + enum Element { + KBASE, + KSESSION + } + + private final KieBaseTestConfiguration kieBaseTestConfiguration; + + public KmoduleXmlTest(final KieBaseTestConfiguration kieBaseTestConfiguration) { + this.kieBaseTestConfiguration = kieBaseTestConfiguration; + } + + @Parameterized.Parameters(name = "KieBase type={0}") + public static Collection getParameters() { + return TestParametersUtil.getKieBaseCloudConfigurations(true); + } + + @Test + public void kbaseEmptyName() throws Exception { + List errors = buildKmoduleWithEmptyValue("name", Element.KBASE); + + assertThat(errors).isNotEmpty(); + assertThat(errors.get(0).getText()).contains("kbase name is empty in kmodule.xml"); + } + + @Test + public void kbaseEmptyIncludes() throws Exception { + List errors = buildKmoduleWithEmptyValue("includes", Element.KBASE); + + assertThat(errors).as("Empty includes is fine. It's ignored") + .isEmpty(); + } + + @Test + public void kbaseEmptyPackages() throws Exception { + List errors = buildKmoduleWithEmptyValue("packages", Element.KBASE); + + assertThat(errors).as("Empty packages is fine. It means the default package") + .isEmpty(); + } + + @Test + public void ksessionEmptyName() throws Exception { + List errors = buildKmoduleWithEmptyValue("name", Element.KSESSION); + + assertThat(errors).isNotEmpty(); + assertThat(errors.get(0).getText()).contains("ksession name is empty in kmodule.xml"); + } + + private List buildKmoduleWithEmptyValue(String emptyAttribute, Element element) throws Exception { + String drl = + "package org.example\n" + + "rule R1 when\n" + + "then\n" + + "end\n"; + + KieServices ks = KieServices.Factory.get(); + + KieFileSystem kfs = ks.newKieFileSystem(); + kfs.write("src/main/resources/org/example/r1.drl", drl); + kfs.write("src/main/resources/META-INF/kmodule.xml", getKmoduleString(emptyAttribute, element)); + final KieBuilder kieBuilder = KieUtil.getKieBuilderFromKieFileSystem(kieBaseTestConfiguration, kfs, false); + + return kieBuilder.getResults().getMessages(Message.Level.ERROR); + } + + private String getKmoduleString(String emptyAttribute, Element element) { + StringBuilder sb = new StringBuilder(); + sb.append("\n"); + sb.append("\n"); + if (element == Element.KBASE) { + // if kbase name is omitted, UUID is given to its name + sb.append("\n"); + sb.append(" \n"); + } else if (element == Element.KSESSION) { + sb.append("\n"); + // if you test an attribute other than "name" in ksession, you need to add "name" attribute as it's required + sb.append(" \n"); + } else { + throw new IllegalArgumentException("Unsupported element : " + element); + } + sb.append("\n"); + sb.append("\n"); + return sb.toString(); + } +} diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnowledgeBuilderTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnowledgeBuilderTest.java index 0c570e4fc0b..13690ca611d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnowledgeBuilderTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnowledgeBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.math.BigInteger; @@ -20,9 +23,9 @@ import java.util.Collection; import java.util.List; -import org.drools.core.definitions.impl.KnowledgePackageImpl; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.definitions.impl.KnowledgePackageImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.rule.TypeDeclaration; import org.drools.core.util.FileManager; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnowledgeContextTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnowledgeContextTest.java index 223ea427428..52de6f887fb 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnowledgeContextTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnowledgeContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnownExecModelDifferenceTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnownExecModelDifferenceTest.java index 7c63d1209ee..5282f09451c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnownExecModelDifferenceTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/KnownExecModelDifferenceTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LargeRuleBase.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LargeRuleBase.java index db01aa1513a..28e0f77540d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LargeRuleBase.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LargeRuleBase.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.File; @@ -23,8 +26,8 @@ import java.io.ObjectOutput; import org.drools.drl.parser.DroolsParserException; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.kie.api.KieBase; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LengthSlidingWindowTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LengthSlidingWindowTest.java index ae3fd6113be..2a90bfe4795 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LengthSlidingWindowTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LengthSlidingWindowTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LifecycleTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LifecycleTest.java index e4a43eb578a..3eb0e34e61e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LifecycleTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LifecycleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LinkingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LinkingTest.java index b49a346ba08..33c37127d1e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LinkingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/LinkingTest.java @@ -1,30 +1,33 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; import java.util.Collection; import java.util.List; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalAgendaGroup; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.MemoryFactory; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.RightInputAdapterNode.RiaPathMemory; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.drools.core.phreak.RuleAgendaItem; @@ -1617,7 +1620,7 @@ public void testNestedSubnetwork() throws Exception { } public static ObjectTypeNode getObjectTypeNode(KieBase kbase, Class nodeClass) { - List nodes = ((RuleBase)kbase).getRete().getObjectTypeNodes(); + List nodes = ((InternalRuleBase)kbase).getRete().getObjectTypeNodes(); for ( ObjectTypeNode n : nodes ) { if ( ((ClassObjectType)n.getObjectType()).getClassType() == nodeClass ) { return n; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ListenersTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ListenersTest.java index 44f3877efac..04e74f7f11d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ListenersTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ListenersTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MBeansMonitoringTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MBeansMonitoringTest.java index b41d4bae363..702c0877bae 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MBeansMonitoringTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MBeansMonitoringTest.java @@ -1,17 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.mvel.integrationtests; import java.io.StringReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MTEntryPointsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MTEntryPointsTest.java index 057f3cee4bb..6351fa8fe7a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MTEntryPointsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MTEntryPointsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MVELTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MVELTest.java index 0eb30e79459..e878e4c65aa 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MVELTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MVELTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.Serializable; @@ -27,12 +30,12 @@ import java.util.List; import java.util.Map; -import org.drools.mvel.accessors.ClassFieldReader; -import org.drools.core.base.ClassObjectType; import org.drools.kiesession.rulebase.InternalKnowledgeBase; +import org.drools.mvel.accessors.ClassFieldReader; +import org.drools.base.base.ClassObjectType; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; import org.drools.util.DateUtils; import org.drools.mvel.MVELConstraint; import org.drools.mvel.compiler.Address; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MapConstraintTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MapConstraintTest.java index fb6be59102d..b4a479561c4 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MapConstraintTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MapConstraintTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MatchTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MatchTest.java index 6ce88e1f0dc..8872bb9e49c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MatchTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MatchTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MergePackageTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MergePackageTest.java index e1fec76a16a..9851873a485 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MergePackageTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MergePackageTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MessageImplTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MessageImplTest.java index 9c60ddb6dd9..3660cca0c43 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MessageImplTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/MessageImplTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Misc2Test.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Misc2Test.java index d3cfb7cbb21..011c42113ff 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Misc2Test.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Misc2Test.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.Serializable; @@ -41,33 +43,32 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.drools.base.base.ValueResolver; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; import org.drools.core.ClassObjectFilter; -import org.drools.core.InitialFact; -import org.drools.core.base.ClassObjectType; +import org.drools.base.InitialFact; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.InternalAgenda; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Memory; import org.drools.core.common.NodeMemories; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.facttemplates.FactTemplate; -import org.drools.core.facttemplates.FactTemplateImpl; -import org.drools.core.facttemplates.FieldTemplate; -import org.drools.core.facttemplates.FieldTemplateImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.facttemplates.FactTemplateImpl; +import org.drools.base.facttemplates.FieldTemplate; +import org.drools.base.facttemplates.FieldTemplateImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.Rete; import org.drools.core.reteoo.SegmentMemory; -import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.rule.accessor.Salience; +import org.drools.base.rule.accessor.Salience; import org.drools.drl.ast.descr.PackageDescr; import org.drools.drl.ast.descr.PatternDescr; import org.drools.drl.ast.descr.RuleDescr; @@ -1831,14 +1832,14 @@ public void testSelfChangingRuleSet() { "when \n" + " $packs : java.util.Collection() \n" + "then \n" + - " ((org.drools.core.impl.RuleBase)drools.getKieRuntime().getKieBase()).addPackages( $packs );" + + " ((org.drools.core.impl.InternalRuleBase)drools.getKieRuntime().getKieBase()).addPackages( $packs );" + "end \n" + "" + "rule \"Self-change\"\n" + "when\n" + " String( this == \"go\" )\n" + "then\n" + - " ((org.drools.core.impl.RuleBase)drools.getKieRuntime().getKieBase()).removeRule( \"org.drools.mvel.integrationtests\", \"React\" ); \n" + + " ((org.drools.core.impl.InternalRuleBase)drools.getKieRuntime().getKieBase()).removeRule( \"org.drools.mvel.integrationtests\", \"React\" ); \n" + "end\n" + "\n" + "\n" + @@ -6345,7 +6346,7 @@ public void testCustomDynamicSalience() { for ( Rule r : session.getKieBase().getKiePackage( "org.drools.test" ).getRules() ) { ( (RuleImpl) r ).setSalience( new Salience() { @Override - public int getValue(InternalMatch internalMatch, Rule rule, ReteEvaluator reteEvaluator) { + public int getValue(Match internalMatch, Rule rule, ValueResolver valueResolver) { if (internalMatch == null ) { return 0; } @@ -7803,7 +7804,7 @@ public void testFromEPDontRequireLeftInput() { KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("test", kieBaseTestConfiguration, drl); - Rete rete = ( (RuleBase) kbase ).getRete(); + Rete rete = ( (InternalRuleBase) kbase ).getRete(); LeftInputAdapterNode liaNode = null; for ( ObjectTypeNode otn : rete.getObjectTypeNodes() ) { Class otnType = ( (ClassObjectType) otn.getObjectType() ).getClassType(); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NamedConsequencesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NamedConsequencesTest.java index 3026a703c92..f9e77b371cc 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NamedConsequencesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NamedConsequencesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NewLineAtEoFTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NewLineAtEoFTest.java index 0fc8187b475..5ccb5467fa7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NewLineAtEoFTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NewLineAtEoFTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.mvel.integrationtests; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NodePositionInPathTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NodePositionInPathTest.java index 390e2817a22..dec094bab13 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NodePositionInPathTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NodePositionInPathTest.java @@ -1,25 +1,27 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; -import org.drools.core.base.ClassObjectType; -import org.drools.core.impl.RuleBase; +import org.drools.base.base.ClassObjectType; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.ExistsNode; import org.drools.core.reteoo.LeftInputAdapterNode; @@ -71,9 +73,9 @@ public void test() { KieBase kbase = KieBaseUtil.getKieBaseFromKieModuleFromDrl("test", kieBaseTestConfiguration, drl); - ReteDumper.dumpRete( ( (RuleBase) kbase ) ); + ReteDumper.dumpRete( ( (InternalRuleBase) kbase )); - Rete rete = ( (RuleBase) kbase ).getRete(); + Rete rete = ( (InternalRuleBase) kbase ).getRete(); LeftInputAdapterNode liaNode = null; for ( ObjectTypeNode otn : rete.getObjectTypeNodes() ) { Class otnType = ( (ClassObjectType) otn.getObjectType() ).getClassType(); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NodesPartitioningTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NodesPartitioningTest.java index 159f2ff7c83..4c2fc022dab 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NodesPartitioningTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NodesPartitioningTest.java @@ -1,39 +1,30 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; -import java.util.Collection; - -import org.drools.core.InitialFact; -import org.drools.core.base.ClassObjectType; +import org.drools.base.InitialFact; +import org.drools.base.base.ClassObjectType; +import org.drools.base.common.NetworkNode; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.common.BaseNode; -import org.drools.core.common.NetworkNode; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.core.reteoo.*; import org.drools.kiesession.rulebase.InternalKnowledgeBase; -import org.drools.core.reteoo.BetaNode; -import org.drools.core.reteoo.CompositePartitionAwareObjectSinkAdapter; -import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.reteoo.LeftTupleSource; -import org.drools.core.reteoo.ObjectSink; -import org.drools.core.reteoo.ObjectSinkPropagator; -import org.drools.core.reteoo.ObjectSource; -import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.reteoo.Rete; -import org.drools.core.reteoo.TerminalNode; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.KieUtil; @@ -42,7 +33,9 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.kie.api.builder.KieModule; -import org.kie.internal.conf.MultithreadEvaluationOption; +import org.kie.internal.conf.ParallelExecutionOption; + +import java.util.Collection; import static org.assertj.core.api.Assertions.assertThat; @@ -81,7 +74,7 @@ public void testPartitioningWithSharedNodes() { private void checkDrl(String drl) { final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, drl); - final InternalKnowledgeBase kbase = (InternalKnowledgeBase)KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES); + final InternalKnowledgeBase kbase = (InternalKnowledgeBase)KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL); Rete rete = kbase.getRete(); for (EntryPointNode entryPointNode : rete.getEntryPointNodes().values()) { traverse( entryPointNode ); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullCheckOnExistentialNodeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullCheckOnExistentialNodeTest.java index 78a5103e7db..da0c638eb85 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullCheckOnExistentialNodeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullCheckOnExistentialNodeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullSafeDereferencingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullSafeDereferencingTest.java index 3715e326529..ea031126f54 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullSafeDereferencingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullSafeDereferencingTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullTest.java index ed8a6563955..97b7d0a6c31 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/NullTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ObjectTypeNodeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ObjectTypeNodeTest.java index 782bb11cc49..1fb7283169e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ObjectTypeNodeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ObjectTypeNodeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/OutOfMemoryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/OutOfMemoryTest.java index fcaf5522d8f..e5d6b4933b4 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/OutOfMemoryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/OutOfMemoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.FileWriter; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PackageInMultipleResourcesTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PackageInMultipleResourcesTest.java index bbd3ec57ba4..f30b5f4c213 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PackageInMultipleResourcesTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PackageInMultipleResourcesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PackageProtected.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PackageProtected.java index 806a4021de1..484a7ab5542 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PackageProtected.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PackageProtected.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; class PackageProtected { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelBuildTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelBuildTest.java index bc202c23860..08c0b8685b6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelBuildTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelBuildTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Arrays; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelCompilationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelCompilationTest.java index 72313ce8939..7d9720e05c0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelCompilationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelCompilationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelEvaluationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelEvaluationTest.java index d3f9c79f85e..c6e5a5f9fcf 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelEvaluationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelEvaluationTest.java @@ -1,62 +1,41 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.List; -import java.util.concurrent.Callable; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.Future; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; -import java.util.concurrent.atomic.AtomicInteger; - -import org.drools.core.ClockType; -import org.drools.core.base.ClassObjectType; -import org.drools.core.common.InternalWorkingMemory; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; -import org.drools.core.impl.RuleBaseFactory; -import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; -import org.drools.core.reteoo.CompositePartitionAwareObjectSinkAdapter; -import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.rule.EntryPointId; -import org.drools.core.time.impl.PseudoClockScheduler; import org.drools.mvel.compiler.util.debug.DebugList; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.KieUtil; import org.drools.testcoverage.common.util.TestParametersUtil; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.kie.api.KieBase; import org.kie.api.builder.KieModule; import org.kie.api.runtime.KieSession; -import org.kie.api.runtime.KieSessionConfiguration; -import org.kie.api.runtime.conf.ClockTypeOption; -import org.kie.api.runtime.rule.FactHandle; -import org.kie.internal.conf.MultithreadEvaluationOption; +import org.kie.internal.conf.ParallelExecutionOption; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; +import java.util.stream.Collectors; +import java.util.stream.Stream; import static org.assertj.core.api.Assertions.assertThat; @@ -74,133 +53,12 @@ public static Collection getParameters() { return TestParametersUtil.getKieBaseCloudConfigurations(true); } - @Test(timeout = 40000L) - public void test() { - StringBuilder sb = new StringBuilder( 400 ); - sb.append( "global java.util.List list;\n" ); - for (int i = 0; i < 10; i++) { - sb.append( getRule( i, "" ) ); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - - EntryPointNode epn = ((InternalKnowledgeBase) kbase).getRete().getEntryPointNode( EntryPointId.DEFAULT ); - ObjectTypeNode otn = epn.getObjectTypeNodes().get( new ClassObjectType( Integer.class ) ); - assertThat(((CompositePartitionAwareObjectSinkAdapter) otn.getObjectSinkPropagator()).isHashed()).isTrue(); - - KieSession ksession = kbase.newKieSession(); - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - for (int i = 0; i < 10; i++) { - ksession.insert( i ); - ksession.insert( "" + i ); - } - - ksession.fireAllRules(); - - assertThat(list.size()).isEqualTo(10); - } - - @Test(timeout = 40000L) - public void testWithInsertions() { - StringBuilder sb = new StringBuilder( 4000 ); - sb.append( "global java.util.List list;\n" ); - int ruleNr = 200; - - for (int i = 0; i < ruleNr; i++) { - sb.append( getRule( i, "insert( $i + 10 );\ninsert( \"\" + ($i + 10) );\n" ) ); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(); - - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - for (int i = 0; i < 10; i++) { - ksession.insert( i ); - ksession.insert( "" + i ); - } - - ksession.fireAllRules(); - - assertThat(list.size()).isEqualTo(ruleNr); - } - - @Test(timeout = 40000L) - public void testWithDeletes() { - StringBuilder sb = new StringBuilder( 400 ); - sb.append( "global java.util.List list;\n" ); - for (int i = 1; i < 11; i++) { - sb.append( getRule( i, "delete( $i );\n" ) ); - } - for (int i = 1; i < 11; i++) { - sb.append( getNotRule( i ) ); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(); - - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - for (int i = 1; i < 11; i++) { - ksession.insert( i ); - ksession.insert( "" + i ); - } - - ksession.fireAllRules(); - - assertThat(list.size()).isEqualTo(20); - } - - @Test(timeout = 40000L) - public void testWithAsyncInsertions() { - StringBuilder sb = new StringBuilder( 4000 ); - sb.append( "global java.util.List list;\n" ); - int ruleNr = 200; - - for (int i = 0; i < ruleNr; i++) { - sb.append( getRule( i, "insertAsync( $i + 10 );\ninsertAsync( \"\" + ($i + 10) );\n" ) ); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(); - - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - StatefulKnowledgeSessionImpl session = (StatefulKnowledgeSessionImpl) ksession; - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - for (int i = 0; i < 10; i++) { - session.insertAsync( i ); - session.insertAsync( "" + i ); - } - - ksession.fireAllRules(); - - assertThat(list.size()).isEqualTo(ruleNr); - } - private String getRule(int i, String rhs) { return getRule( i, rhs, "" ); } private String getRule(int i, String rhs, String attributes) { - return "rule R" + i + " " + attributes + "when\n" + + return "rule R" + i + " " + attributes + " when\n" + " $i : Integer( intValue == " + i + " )" + " String( toString == $i.toString )\n" + "then\n" + @@ -218,855 +76,67 @@ private String getNotRule(int i) { "end\n"; } - @Test(timeout = 40000L) - public void testFireUntilHalt() { + @Test + public void testSalience() { + int ruleNr = 20; StringBuilder sb = new StringBuilder( 400 ); sb.append( "global java.util.List list;\n" ); - for (int i = 0; i < 10; i++) { - sb.append( getRule( i, "" ) ); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(); - - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - CountDownLatch done = new CountDownLatch(1); - - DebugList list = new DebugList(); - list.onItemAdded = ( l -> { if (l.size() == 10) { - ksession.halt(); - done.countDown(); - }} ); - ksession.setGlobal( "list", list ); - - new Thread(ksession::fireUntilHalt).start(); - try { - for (int i = 0; i < 10; i++) { - ksession.insert( i ); - ksession.insert( "" + i ); - } - - try { - done.await(); - } catch (InterruptedException e) { - throw new RuntimeException( e ); - } - - assertThat(list.size()).isEqualTo(10); - } finally { - ksession.halt(); - ksession.dispose(); - } - } - - @Test(timeout = 40000L) - @Ignore("this test is failing on Jenkins but not locally, we need to figure out why") - public void testFireUntilHalt2() { - int rulesNr = 4; - int factsNr = 1; - int fireNr = rulesNr * factsNr; - - String drl = "import " + A.class.getCanonicalName() + ";\n" + - "import " + B.class.getCanonicalName() + ";\n" + - "global java.util.concurrent.atomic.AtomicInteger counter\n" + - "global java.util.concurrent.CountDownLatch done\n" + - "global java.util.List list;\n"; - - for (int i = 0; i < rulesNr; i++) { - drl += getFireUntilHaltRule(fireNr, i); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, drl); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - - for (int loop = 0; loop < 10; loop++) { - System.out.println("Starting loop " + loop); - KieSession ksession = kbase.newKieSession(); - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - CountDownLatch done = new CountDownLatch( 1 ); - ksession.setGlobal( "done", done ); - - AtomicInteger counter = new AtomicInteger( 0 ); - ksession.setGlobal( "counter", counter ); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - new Thread(ksession::fireUntilHalt).start(); - try { - A a = new A( rulesNr + 1 ); - ksession.insert( a ); - - for ( int i = 0; i < factsNr; i++ ) { - ksession.insert( new B( rulesNr + i + 3 ) ); - } - - try { - done.await(); - } catch (InterruptedException e) { - throw new RuntimeException( e ); - } - - assertThat(counter.get()).isEqualTo(fireNr); - } finally { - ksession.halt(); - ksession.dispose(); - } - - System.out.println("Loop " + loop + " terminated"); - } - } - - private String getFireUntilHaltRule(int fireNr, int i) { - return "rule R" + i + " when\n" + - " A( $a : value > " + i + ")\n" + - " B( $b : value > $a )\n" + - "then\n" + - " list.add( drools.getRule().getName() );" + - " if (counter.incrementAndGet() == " + fireNr + " ) {\n" + - " drools.halt();\n" + - " done.countDown();\n" + - " }\n" + - "end\n"; - } - - public static class A { - private int value; - - public A( int value ) { - this.value = value; - } - - public int getValue() { - return value; - } - - public void setValue( int value ) { - this.value = value; - } - } - - public static class B { - private int value; - - public B( int value ) { - this.value = value; - } - - public int getValue() { - return value; - } - - public void setValue( int value ) { - this.value = value; - } - } - - @Test(timeout = 40000L) - public void testFireUntilHaltWithAsyncInsert() { - StringBuilder sb = new StringBuilder( 400 ); - sb.append( "global java.util.List list;\n" ); - for (int i = 0; i < 10; i++) { - sb.append( getRule( i, "" ) ); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(); - - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - StatefulKnowledgeSessionImpl session = (StatefulKnowledgeSessionImpl) ksession; - - CountDownLatch done = new CountDownLatch(1); - - DebugList list = new DebugList(); - list.onItemAdded = ( l -> { if (l.size() == 10) { - ksession.halt(); - done.countDown(); - }} ); - ksession.setGlobal( "list", list ); - - new Thread(ksession::fireUntilHalt).start(); - try { - for (int i = 0; i < 10; i++) { - session.insertAsync( i ); - session.insertAsync( "" + i ); - } - - try { - done.await(); - } catch (InterruptedException e) { - throw new RuntimeException( e ); - } - - assertThat(list.size()).isEqualTo(10); - } finally { - ksession.halt(); - ksession.dispose(); - } - } - - @Test(timeout = 40000L) - public void testDisableParallelismOnSinglePartition() { - String drl = - "rule R1 when\n" + - " $i : Integer( this == 4 )" + - " String( length > $i )\n" + - "then end \n" + - "rule R2 when\n" + - " $i : Integer( this == 4 )" + - " String( length == $i )\n" + - "then end \n" + - "rule R3 when\n" + - " $i : Integer( this == 4 )" + - " String( length < $i )\n" + - "then end \n"; - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, drl); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(); - - InternalWorkingMemory session = (InternalWorkingMemory) ksession; - - // since there is only one partition the multithread evaluation should be disabled and run with the DefaultAgenda - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isFalse(); - } - - @Test(timeout = 40000L) - public void testEventsExpiration() { - StringBuilder sb = new StringBuilder( 400 ); - sb.append( "global java.util.List list;\n" ); - sb.append( "import " + MyEvent.class.getCanonicalName() + ";\n" ); - sb.append( "declare MyEvent @role( event ) @expires( 20ms ) @timestamp( timestamp ) end\n" ); - for (int i = 0; i < 10; i++) { - sb.append( getRuleWithEvent( i ) ); - } - - KieSessionConfiguration sessionConfig = RuleBaseFactory.newKnowledgeSessionConfiguration(); - sessionConfig.setOption( ClockTypeOption.get( ClockType.PSEUDO_CLOCK.getId() ) ); - - KieBaseTestConfiguration streamConfig = TestParametersUtil.getStreamInstanceOf(kieBaseTestConfiguration); - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", streamConfig, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, streamConfig, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(sessionConfig, null); - - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - PseudoClockScheduler sessionClock = ksession.getSessionClock(); - sessionClock.setStartupTime(0); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - for (int i = 0; i < 10; i++) { - ksession.insert( new MyEvent( i, i*2L ) ); - } - - ksession.fireAllRules(); - - assertThat(list.size()).isEqualTo(10); - assertThat(ksession.getFactCount()).isEqualTo(10L); - - sessionClock.advanceTime( 29, TimeUnit.MILLISECONDS ); - ksession.fireAllRules(); - assertThat(ksession.getFactCount()).isEqualTo(5L); - - sessionClock.advanceTime( 12, TimeUnit.MILLISECONDS ); - ksession.fireAllRules(); - assertThat(ksession.getFactCount()).isEqualTo(0L); - } - - @Test(timeout = 40000L) - public void testImmediateEventsExpiration() { - StringBuilder sb = new StringBuilder( 400 ); - sb.append( "global java.util.List list;\n" ); - sb.append( "import " + MyEvent.class.getCanonicalName() + ";\n" ); - sb.append( "declare MyEvent @role( event ) @expires( 1ms ) @timestamp( timestamp ) end\n" ); - for (int i = 0; i < 10; i++) { - sb.append( getRuleWithEvent( i ) ); - } - - KieSessionConfiguration sessionConfig = RuleBaseFactory.newKnowledgeSessionConfiguration(); - - KieBaseTestConfiguration streamConfig = TestParametersUtil.getStreamInstanceOf(kieBaseTestConfiguration); - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", streamConfig, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, streamConfig, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(sessionConfig, null); - - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - for (int i = 0; i < 10; i++) { - ksession.insert( new MyEvent( i, i*2L ) ); - } - - ksession.fireAllRules(); - - assertThat(list.size()).isEqualTo(10); - } - - public static class MyEvent { - private final int id; - private final long timestamp; - - public MyEvent( int id, long timestamp ) { - this.id = id; - this.timestamp = timestamp; - } - - public long getTimestamp() { - return timestamp; - } - - public int getId() { - return id; - } - - @Override - public String toString() { - return "MyEvent[" + id + "]"; - } - } - - private String getRuleWithEvent(int i) { - return "rule R" + i + " when\n" + - " $i : MyEvent( id == " + i + " )" + - "then\n" + - " list.add($i);\n" + - "end\n"; - } - - private String getRuleWithEventForExpiration(int i) { - return "rule R" + i + " when\n" + - " $i : MyEvent( id == " + i + " )\n" + - "then\n" + - " list.add($i);\n" + - " insert(" + i + ");\n" + - "end\n" + - "rule R" + i + "not when\n" + - " Integer( this == " + i + " )\n" + - " not MyEvent( id == " + i + " )\n" + - "then\n" + - " list.add(" + i + ");\n" + - "end\n"; - } - - @Test(timeout = 40000L) - public void testFireUntilHaltWithExpiration() { - StringBuilder sb = new StringBuilder( 400 ); - sb.append( "global java.util.List list;\n" ); - sb.append( "import " + MyEvent.class.getCanonicalName() + ";\n" ); - sb.append( "declare MyEvent @role( event ) @expires( 20ms ) @timestamp( timestamp ) end\n" ); - for (int i = 0; i < 5; i++) { - sb.append( getRuleWithEventForExpiration( i ) ); - } - - // See DROOLS-6352 : To avoid bias in CompositePartitionAwareObjectSinkAdapter.partitionedPropagators by artificial repetition of rule pattern - sb.append("rule R_ex1\n when MyEvent(id == 100)\n then\n end\n"); - - for (int i = 5; i < 10; i++) { - sb.append( getRuleWithEventForExpiration( i ) ); - } - - KieSessionConfiguration sessionConfig = RuleBaseFactory.newKnowledgeSessionConfiguration(); - sessionConfig.setOption( ClockTypeOption.get( ClockType.PSEUDO_CLOCK.getId() ) ); - - KieBaseTestConfiguration streamConfig = TestParametersUtil.getStreamInstanceOf(kieBaseTestConfiguration); - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", streamConfig, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, streamConfig, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(sessionConfig, null); - - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - PseudoClockScheduler sessionClock = ksession.getSessionClock(); - sessionClock.setStartupTime(0); - - DebugList list = new DebugList(); - CountDownLatch done1 = new CountDownLatch(1); - list.onItemAdded = ( l -> { if (l.size() == 10) { - done1.countDown(); - }} ); - ksession.setGlobal( "list", list ); - - for (int i = 0; i < 10; i++) { - ksession.insert( new MyEvent( i, i*2L ) ); - } - - new Thread(ksession::fireUntilHalt).start(); - try { - try { - done1.await(); - } catch (InterruptedException e) { - throw new RuntimeException( e ); - } - - assertThat(list.size()).isEqualTo(10); - list.clear(); - - CountDownLatch done2 = new CountDownLatch(1); - list.onItemAdded = ( l -> { if (l.size() == 5) { - done2.countDown(); - }} ); - - ksession.insert( 1 ); - sessionClock.advanceTime( 29, TimeUnit.MILLISECONDS ); - - try { - done2.await(); - } catch (InterruptedException e) { - throw new RuntimeException( e ); - } - - assertThat(list.size()).isEqualTo(5); - list.clear(); - - CountDownLatch done3 = new CountDownLatch(1); - list.onItemAdded = ( l -> { if (l.size() == 5) { - done3.countDown(); - }} ); - - sessionClock.advanceTime( 12, TimeUnit.MILLISECONDS ); - try { - done3.await(); - } catch (InterruptedException e) { - throw new RuntimeException( e ); - } - - assertThat(list.size()).isEqualTo(5); - } finally { - ksession.halt(); - ksession.dispose(); - } - } - - @Test(timeout = 40000L) - @Ignore("this test is failing on Jenkins but not locally, we need to figure out why") - public void testFireUntilHaltWithExpiration2() throws InterruptedException { - String drl = - "import " + A.class.getCanonicalName() + "\n" + - "import " + B.class.getCanonicalName() + "\n" + - "declare A @role( event ) @expires(11ms) end\n" + - "declare B @role( event ) @expires(11ms) end\n" + - "global java.util.concurrent.atomic.AtomicInteger counter;\n" + - "global java.util.concurrent.CountDownLatch fireLatch;\n" + - "rule R0 when\n" + - " $A: A( $Aid : value > 0 )\n" + - " $B: B( ($Bid: value <= $Aid) && (value > ($Aid - 1 )))\n" + - "then\n" + - " counter.incrementAndGet();\n" + - " fireLatch.countDown();" + - "end\n" + - "rule R1 when\n" + - " $A: A( $Aid: value > 1 )\n" + - " $B: B( ($Bid: value <= $Aid) && (value > ($Aid - 1 )))\n" + - "then\n" + - " counter.incrementAndGet();\n" + - " fireLatch.countDown();" + - "end\n" + - "rule R2 when\n" + - " $A: A( $Aid: value > 2 )\n" + - " $B: B( ($Bid: value <= $Aid) && (value > ($Aid - 1 )))\n" + - "then\n" + - " counter.incrementAndGet();\n" + - " fireLatch.countDown();" + - "end\n" + - "rule R3 when\n" + - " $A: A( $Aid: value > 3 )\n" + - " $B: B( ($Bid: value <= $Aid) && (value > ($Aid - 1 )))\n" + - "then\n" + - " counter.incrementAndGet();\n" + - " fireLatch.countDown();" + - "end"; - - KieSessionConfiguration sessionConfig = RuleBaseFactory.newKnowledgeSessionConfiguration(); - sessionConfig.setOption( ClockTypeOption.get( ClockType.PSEUDO_CLOCK.getId() ) ); - - KieBaseTestConfiguration streamConfig = TestParametersUtil.getStreamInstanceOf(kieBaseTestConfiguration); - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", streamConfig, drl); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, streamConfig, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(sessionConfig, null); - - try { - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - PseudoClockScheduler sessionClock = ksession.getSessionClock(); - sessionClock.setStartupTime( 0 ); - - AtomicInteger counter = new AtomicInteger( 0 ); - ksession.setGlobal( "counter", counter ); - - new Thread( () -> ksession.fireUntilHalt() ).start(); - - int eventsNr = 5; - final CountDownLatch fireLatch = new CountDownLatch(eventsNr * 4); - ksession.setGlobal("fireLatch", fireLatch); - for ( int i = 0; i < eventsNr; i++ ) { - ksession.insert( new A( i + 4 ) ); - ksession.insert( new B( i + 4 ) ); - sessionClock.advanceTime( 10, TimeUnit.MILLISECONDS ); - } - - fireLatch.await(); - assertThat(counter.get()).isEqualTo(eventsNr * 4); - } finally { - ksession.halt(); - ksession.dispose(); - } - } - - @Test(timeout = 40000L) - public void testWithUpdates() { - StringBuilder sb = new StringBuilder( 400 ); - sb.append( "global java.util.List list;\n" ); - for (int i = 0; i < 10; i++) { - sb.append( getRule( i, "" ) ); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - KieSession ksession = kbase.newKieSession(); - - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - FactHandle[] fhs = new FactHandle[10]; - - for (int i = 0; i < 10; i++) { - fhs[i] = ksession.insert( i ); - ksession.insert( "" + i ); - } - - ksession.fireAllRules(); - assertThat(list.size()).isEqualTo(10); - - list.clear(); - - for (int i = 0; i < 10; i++) { - ksession.update( fhs[i], i ); - } - - ksession.fireAllRules(); - assertThat(list.size()).isEqualTo(10); - } - - @Test(timeout = 40000L) - public void testDisableParallelismWithAgendaGroups() { - StringBuilder sb = new StringBuilder( 400 ); - sb.append( "global java.util.List list;\n" ); - sb.append( "rule first\n" + - "when\n" + - "then\n" + - " drools.getKnowledgeRuntime().getAgenda().getAgendaGroup(\"agenda\").setFocus();\n" + - "end\n" ); - for (int i = 0; i < 10; i++) { - sb.append( getRule( i, "", "agenda-group \"agenda\"" ) ); + for (int i = 0; i < ruleNr; i++) { + sb.append( getRule( i, "", "salience " + i ) ); } final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.PARALLEL_EVALUATION ); KieSession ksession = kbase.newKieSession(); - // multithread evaluation is not allowed when using agenda-groups - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isFalse(); - - List list = new DebugList(); + List list = new DebugList<>(); ksession.setGlobal( "list", list ); - for (int i = 0; i < 10; i++) { + for (int i = 0; i < ruleNr; i++) { ksession.insert( i ); ksession.insert( "" + i ); } ksession.fireAllRules(); - assertThat(list.size()).isEqualTo(10); + assertThat(list.size()).isEqualTo(ruleNr); + + List expected = Stream.iterate(ruleNr-1, i -> i-1).limit(ruleNr).collect(Collectors.toList()); + assertThat(list).isEqualTo(expected); } - @Test(timeout = 40000L) - public void testDisableParallelismWithSalience() { + @Test + public void testSalienceWithInserts() { + int ruleNr = 20; StringBuilder sb = new StringBuilder( 400 ); sb.append( "global java.util.List list;\n" ); - for (int i = 0; i < 10; i++) { - sb.append( getRule( i, "", "salience " + i ) ); + for (int i = 0; i < ruleNr; i++) { + String rhs = i % 2 == 0 ? "insert(" + (i+1) + ");\n" : ""; + sb.append( getRule( i, rhs, "salience " + i ) ); } final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.PARALLEL_EVALUATION ); KieSession ksession = kbase.newKieSession(); - // multithread evaluation is not allowed when using salience - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isFalse(); - - List list = new DebugList(); + List list = new DebugList<>(); ksession.setGlobal( "list", list ); - for (int i = 0; i < 10; i++) { - ksession.insert( i ); - ksession.insert( "" + i ); - } - - ksession.fireAllRules(); - - assertThat(list.size()).isEqualTo(10); - assertThat(Arrays.asList(9, 8, 7, 6, 5, 4, 3, 2, 1, 0)).isEqualTo(list); - } - - @Test(timeout = 40000L) - public void testMultipleParallelKieSessionsWithInsertions() throws InterruptedException, ExecutionException, TimeoutException { - final int NUMBER_OF_PARALLEL_SESSIONS = 5; - - /* Create KIE base */ - StringBuilder sb = new StringBuilder(); - sb.append("global java.util.List list;\n"); - final int ruleNr = 200; - for (int i = 0; i < ruleNr; i++) { - sb.append(getRule(i, "insert( $i + 10 );\ninsert( \"\" + ($i + 10) );\n")); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kBase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - - /* Create parallel tasks */ - List> tasks = new ArrayList<>(); - for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { - tasks.add(getMultipleParallelKieSessionsWithInsertionsCallable(kBase, ruleNr)); - } - - runTasksInParallel(tasks); - } - - private Callable getMultipleParallelKieSessionsWithInsertionsCallable(KieBase kBase, int ruleNr) { - return new Callable() { - @Override public Void call() { - KieSession ksession = kBase.newKieSession(); - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - insertFacts(ksession, 10); - - ksession.fireAllRules(); - assertThat(list.size()).isEqualTo(ruleNr); - - return null; - } - }; - } - - @Test(timeout = 40000L) - public void testMultipleParallelKieSessionsWithUpdates() throws InterruptedException, ExecutionException, TimeoutException { - final int NUMBER_OF_PARALLEL_SESSIONS = 5; - - /* Create KIE base */ - StringBuilder sb = new StringBuilder( 400 ); - sb.append( "global java.util.List list;\n" ); - for (int i = 0; i < 10; i++) { - sb.append( getRule( i, "" ) ); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kBase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - - /* Create parallel tasks */ - List> tasks = new ArrayList<>(); - for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { - tasks.add(getMultipleParallelKieSessionsWithUpdatesCallable(kBase)); - } - - /* Run tasks in parallel */ - runTasksInParallel(tasks); - } - - private Callable getMultipleParallelKieSessionsWithUpdatesCallable(KieBase kBase) { - return new Callable() { - @Override public Void call() { - KieSession ksession = kBase.newKieSession(); - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).as("Parallel agenda has to be enabled").isTrue(); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - FactHandle[] fhs = new FactHandle[10]; - fhs = insertFacts(ksession, 10); - - ksession.fireAllRules(); - assertThat(list.size()).isEqualTo(10); - - list.clear(); - - for (int i = 0; i < 10; i++) { - ksession.update( fhs[i], i ); - } - - ksession.fireAllRules(); - assertThat(list.size()).isEqualTo(10); - - return null; - } - }; - } - - @Test(timeout = 40000L) - public void testMultipleParallelKieSessionsWithDeletes() throws InterruptedException, ExecutionException, TimeoutException { - final int NUMBER_OF_PARALLEL_SESSIONS = 5; - - /* Create KIE base */ - StringBuilder sb = new StringBuilder(400); - sb.append("global java.util.List list;\n"); - for (int i = 1; i < 11; i++) { - sb.append(getRule(i, "delete( $i );\n")); - } - for (int i = 1; i < 11; i++) { - sb.append(getNotRule(i)); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - - List> tasks = new ArrayList<>(); - for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { - tasks.add(getMultipleParallelKieSessionsWithDeletesCallable(kbase)); - } - - /* Run tasks in parallel */ - runTasksInParallel(tasks); - } - - private Callable getMultipleParallelKieSessionsWithDeletesCallable(KieBase kbase) { - return new Callable() { - @Override public Void call() { - KieSession ksession = kbase.newKieSession(); - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - List list = new DebugList(); - ksession.setGlobal( "list", list ); - - insertFacts(ksession, 11); - ksession.fireAllRules(); - - assertThat(ksession.getObjects()).isEmpty(); - assertThat(list.size()).isEqualTo(20); - - return null; - } - }; - } - - @Test(timeout = 40000L) - public void testMultipleParallelKieSessionsFireUntilHalt() throws InterruptedException, ExecutionException, TimeoutException { - final int NUMBER_OF_PARALLEL_SESSIONS = 5; - - /* Create KIE base */ - StringBuilder sb = new StringBuilder(400); - sb.append("global java.util.List list;\n"); - for (int i = 0; i < 10; i++) { - sb.append(getRule(i, "")); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - - List> tasks = new ArrayList<>(); - for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { - tasks.add(getMultipleParallelKieSessionsFireUntilHaltCallable(kbase, false)); - } - - /* Run tasks in parallel */ - runTasksInParallel(tasks); - } - - private Callable getMultipleParallelKieSessionsFireUntilHaltCallable(KieBase kBase, boolean asyncInsert) { - return () -> { - KieSession ksession = kBase.newKieSession(); - assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); - - CountDownLatch done = new CountDownLatch(1); - - DebugList list = new DebugList(); - list.onItemAdded = (l -> { - if (l.size() == 10) { - ksession.halt(); - done.countDown(); - } - }); - ksession.setGlobal("list", list); - - new Thread(ksession::fireUntilHalt).start(); - if (asyncInsert) { - StatefulKnowledgeSessionImpl session = (StatefulKnowledgeSessionImpl) ksession; - for (int i = 0; i < 10; i++) { - session.insertAsync(i); - session.insertAsync("" + String.valueOf(i)); - } - } else { - insertFacts(ksession, 10); - } - - try { - done.await(); - } catch (InterruptedException e) { - throw new RuntimeException(e); + ksession.insert( "" + i ); + if (i % 2 == 0) { + ksession.insert(i); } - - assertThat(list.size()).isEqualTo(10); - - return null; - }; - } - - @Test(timeout = 40000L) - public void testMultipleParallelKieSessionsFireUntilHaltWithAsyncInsert() throws InterruptedException, ExecutionException, TimeoutException { - final int NUMBER_OF_PARALLEL_SESSIONS = 5; - - /* Create KIE base */ - StringBuilder sb = new StringBuilder(400); - sb.append("global java.util.List list;\n"); - for (int i = 0; i < 10; i++) { - sb.append(getRule(i, "")); - } - - final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); - final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, MultithreadEvaluationOption.YES ); - - /* Create parallel tasks */ - List> tasks = new ArrayList<>(); - for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { - tasks.add(getMultipleParallelKieSessionsFireUntilHaltCallable(kbase, true)); } - /* Run tasks in parallel */ - runTasksInParallel(tasks); - } - - private FactHandle[] insertFacts(KieSession ksession, int n) { - FactHandle[] fhs = new FactHandle[n]; - for (int i = 0; i < n; i++) { - fhs[i] = ksession.insert(i); - ksession.insert(String.valueOf(i)); - } + ksession.fireAllRules(); - return fhs; - } + assertThat(list.size()).isEqualTo(ruleNr); - private void runTasksInParallel(List> tasks) throws InterruptedException { - ExecutorService executorService = Executors.newFixedThreadPool(tasks.size()); - try { - List> futures = executorService.invokeAll(tasks); - assertThat(futures.size()).isEqualTo(tasks.size()); - } finally { - executorService.shutdownNow(); - } + List expected = Stream.iterate(ruleNr-1, i -> i-1).limit(ruleNr).filter(i -> i % 2 == 0) + .flatMap(i -> Arrays.asList(i, i+1).stream()).collect(Collectors.toList()); + assertThat(list).isEqualTo(expected); } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelExecutionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelExecutionTest.java new file mode 100644 index 00000000000..aa93a943854 --- /dev/null +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParallelExecutionTest.java @@ -0,0 +1,1077 @@ +/** + * 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. + */ +package org.drools.mvel.integrationtests; + +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.EntryPointId; +import org.drools.core.ClockType; +import org.drools.core.common.InternalWorkingMemory; +import org.drools.core.impl.RuleBaseFactory; +import org.drools.core.reteoo.CompositePartitionAwareObjectSinkAdapter; +import org.drools.core.reteoo.EntryPointNode; +import org.drools.core.reteoo.ObjectTypeNode; +import org.drools.core.time.impl.PseudoClockScheduler; +import org.drools.kiesession.rulebase.InternalKnowledgeBase; +import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; +import org.drools.mvel.compiler.util.debug.DebugList; +import org.drools.testcoverage.common.util.KieBaseTestConfiguration; +import org.drools.testcoverage.common.util.KieBaseUtil; +import org.drools.testcoverage.common.util.KieUtil; +import org.drools.testcoverage.common.util.TestParametersUtil; +import org.junit.Ignore; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.kie.api.KieBase; +import org.kie.api.builder.KieModule; +import org.kie.api.runtime.KieSession; +import org.kie.api.runtime.KieSessionConfiguration; +import org.kie.api.runtime.conf.ClockTypeOption; +import org.kie.api.runtime.rule.FactHandle; +import org.kie.internal.conf.ParallelExecutionOption; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; +import java.util.concurrent.*; +import java.util.concurrent.atomic.AtomicInteger; + +import static org.assertj.core.api.Assertions.assertThat; + +@RunWith(Parameterized.class) +public class ParallelExecutionTest { + + private final KieBaseTestConfiguration kieBaseTestConfiguration; + + public ParallelExecutionTest(final KieBaseTestConfiguration kieBaseTestConfiguration) { + this.kieBaseTestConfiguration = kieBaseTestConfiguration; + } + + @Parameterized.Parameters(name = "KieBase type={0}") + public static Collection getParameters() { + return TestParametersUtil.getKieBaseCloudConfigurations(true); + } + + @Test(timeout = 40000L) + public void test() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + for (int i = 0; i < 10; i++) { + sb.append( getRule( i, "" ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + + EntryPointNode epn = ((InternalKnowledgeBase) kbase).getRete().getEntryPointNode(EntryPointId.DEFAULT); + ObjectTypeNode otn = epn.getObjectTypeNodes().get( new ClassObjectType( Integer.class ) ); + assertThat(((CompositePartitionAwareObjectSinkAdapter) otn.getObjectSinkPropagator()).isHashed()).isTrue(); + + KieSession ksession = kbase.newKieSession(); + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + for (int i = 0; i < 10; i++) { + ksession.insert( i ); + ksession.insert( "" + i ); + } + + ksession.fireAllRules(); + + assertThat(list.size()).isEqualTo(10); + } + + @Test(timeout = 40000L) + public void testWithInsertions() { + StringBuilder sb = new StringBuilder( 4000 ); + sb.append( "global java.util.List list;\n" ); + int ruleNr = 200; + + for (int i = 0; i < ruleNr; i++) { + sb.append( getRule( i, "insert( $i + 10 );\ninsert( \"\" + ($i + 10) );\n" ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(); + + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + for (int i = 0; i < 10; i++) { + ksession.insert( i ); + ksession.insert( "" + i ); + } + + ksession.fireAllRules(); + + assertThat(list.size()).isEqualTo(ruleNr); + } + + @Test(timeout = 40000L) + public void testWithDeletes() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + for (int i = 1; i < 11; i++) { + sb.append( getRule( i, "delete( $i );\n" ) ); + } + for (int i = 1; i < 11; i++) { + sb.append( getNotRule( i ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(); + + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + for (int i = 1; i < 11; i++) { + ksession.insert( i ); + ksession.insert( "" + i ); + } + + ksession.fireAllRules(); + + assertThat(list.size()).isEqualTo(20); + } + + @Test(timeout = 40000L) + public void testWithAsyncInsertions() { + StringBuilder sb = new StringBuilder( 4000 ); + sb.append( "global java.util.List list;\n" ); + int ruleNr = 200; + + for (int i = 0; i < ruleNr; i++) { + sb.append( getRule( i, "insertAsync( $i + 10 );\ninsertAsync( \"\" + ($i + 10) );\n" ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(); + + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + StatefulKnowledgeSessionImpl session = (StatefulKnowledgeSessionImpl) ksession; + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + for (int i = 0; i < 10; i++) { + session.insertAsync( i ); + session.insertAsync( "" + i ); + } + + ksession.fireAllRules(); + + assertThat(list.size()).isEqualTo(ruleNr); + } + + private String getRule(int i, String rhs) { + return getRule( i, rhs, "" ); + } + + private String getRule(int i, String rhs, String attributes) { + return "rule R" + i + " " + attributes + "when\n" + + " $i : Integer( intValue == " + i + " )" + + " String( toString == $i.toString )\n" + + "then\n" + + " list.add($i);\n" + + rhs + + "end\n"; + } + + private String getNotRule(int i) { + return "rule Rnot" + i + " when\n" + + " String( toString == \"" + i + "\" )\n" + + " not Integer( intValue == " + i + " )" + + "then\n" + + " list.add(" + -i + ");\n" + + "end\n"; + } + + @Test(timeout = 40000L) + public void testFireUntilHalt() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + for (int i = 0; i < 10; i++) { + sb.append( getRule( i, "" ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(); + + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + CountDownLatch done = new CountDownLatch(1); + + DebugList list = new DebugList(); + list.onItemAdded = ( l -> { if (l.size() == 10) { + ksession.halt(); + done.countDown(); + }} ); + ksession.setGlobal( "list", list ); + + new Thread(ksession::fireUntilHalt).start(); + try { + for (int i = 0; i < 10; i++) { + ksession.insert( i ); + ksession.insert( "" + i ); + } + + try { + done.await(); + } catch (InterruptedException e) { + throw new RuntimeException( e ); + } + + assertThat(list.size()).isEqualTo(10); + } finally { + ksession.halt(); + ksession.dispose(); + } + } + + @Test(timeout = 40000L) + @Ignore("this test is failing on Jenkins but not locally, we need to figure out why") + public void testFireUntilHalt2() { + int rulesNr = 4; + int factsNr = 1; + int fireNr = rulesNr * factsNr; + + String drl = "import " + A.class.getCanonicalName() + ";\n" + + "import " + B.class.getCanonicalName() + ";\n" + + "global java.util.concurrent.atomic.AtomicInteger counter\n" + + "global java.util.concurrent.CountDownLatch done\n" + + "global java.util.List list;\n"; + + for (int i = 0; i < rulesNr; i++) { + drl += getFireUntilHaltRule(fireNr, i); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, drl); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + + for (int loop = 0; loop < 10; loop++) { + System.out.println("Starting loop " + loop); + KieSession ksession = kbase.newKieSession(); + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + CountDownLatch done = new CountDownLatch( 1 ); + ksession.setGlobal( "done", done ); + + AtomicInteger counter = new AtomicInteger( 0 ); + ksession.setGlobal( "counter", counter ); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + new Thread(ksession::fireUntilHalt).start(); + try { + A a = new A( rulesNr + 1 ); + ksession.insert( a ); + + for ( int i = 0; i < factsNr; i++ ) { + ksession.insert( new B( rulesNr + i + 3 ) ); + } + + try { + done.await(); + } catch (InterruptedException e) { + throw new RuntimeException( e ); + } + + assertThat(counter.get()).isEqualTo(fireNr); + } finally { + ksession.halt(); + ksession.dispose(); + } + + System.out.println("Loop " + loop + " terminated"); + } + } + + private String getFireUntilHaltRule(int fireNr, int i) { + return "rule R" + i + " when\n" + + " A( $a : value > " + i + ")\n" + + " B( $b : value > $a )\n" + + "then\n" + + " list.add( drools.getRule().getName() );" + + " if (counter.incrementAndGet() == " + fireNr + " ) {\n" + + " drools.halt();\n" + + " done.countDown();\n" + + " }\n" + + "end\n"; + } + + public static class A { + private int value; + + public A( int value ) { + this.value = value; + } + + public int getValue() { + return value; + } + + public void setValue( int value ) { + this.value = value; + } + } + + public static class B { + private int value; + + public B( int value ) { + this.value = value; + } + + public int getValue() { + return value; + } + + public void setValue( int value ) { + this.value = value; + } + } + + @Test(timeout = 40000L) + public void testFireUntilHaltWithAsyncInsert() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + for (int i = 0; i < 10; i++) { + sb.append( getRule( i, "" ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(); + + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + StatefulKnowledgeSessionImpl session = (StatefulKnowledgeSessionImpl) ksession; + + CountDownLatch done = new CountDownLatch(1); + + DebugList list = new DebugList(); + list.onItemAdded = ( l -> { if (l.size() == 10) { + ksession.halt(); + done.countDown(); + }} ); + ksession.setGlobal( "list", list ); + + new Thread(ksession::fireUntilHalt).start(); + try { + for (int i = 0; i < 10; i++) { + session.insertAsync( i ); + session.insertAsync( "" + i ); + } + + try { + done.await(); + } catch (InterruptedException e) { + throw new RuntimeException( e ); + } + + assertThat(list.size()).isEqualTo(10); + } finally { + ksession.halt(); + ksession.dispose(); + } + } + + @Test(timeout = 40000L) + public void testDisableParallelismOnSinglePartition() { + String drl = + "rule R1 when\n" + + " $i : Integer( this == 4 )" + + " String( length > $i )\n" + + "then end \n" + + "rule R2 when\n" + + " $i : Integer( this == 4 )" + + " String( length == $i )\n" + + "then end \n" + + "rule R3 when\n" + + " $i : Integer( this == 4 )" + + " String( length < $i )\n" + + "then end \n"; + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, drl); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(); + + InternalWorkingMemory session = (InternalWorkingMemory) ksession; + + // since there is only one partition the multithread evaluation should be disabled and run with the DefaultAgenda + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isFalse(); + } + + @Test(timeout = 40000L) + public void testEventsExpiration() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + sb.append( "import " + MyEvent.class.getCanonicalName() + ";\n" ); + sb.append( "declare MyEvent @role( event ) @expires( 20ms ) @timestamp( timestamp ) end\n" ); + for (int i = 0; i < 10; i++) { + sb.append( getRuleWithEvent( i ) ); + } + + KieSessionConfiguration sessionConfig = RuleBaseFactory.newKnowledgeSessionConfiguration(); + sessionConfig.setOption( ClockTypeOption.get( ClockType.PSEUDO_CLOCK.getId() ) ); + + KieBaseTestConfiguration streamConfig = TestParametersUtil.getStreamInstanceOf(kieBaseTestConfiguration); + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", streamConfig, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, streamConfig, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(sessionConfig, null); + + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + PseudoClockScheduler sessionClock = ksession.getSessionClock(); + sessionClock.setStartupTime(0); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + for (int i = 0; i < 10; i++) { + ksession.insert( new MyEvent( i, i*2L ) ); + } + + ksession.fireAllRules(); + + assertThat(list.size()).isEqualTo(10); + assertThat(ksession.getFactCount()).isEqualTo(10L); + + sessionClock.advanceTime( 29, TimeUnit.MILLISECONDS ); + ksession.fireAllRules(); + assertThat(ksession.getFactCount()).isEqualTo(5L); + + sessionClock.advanceTime( 12, TimeUnit.MILLISECONDS ); + ksession.fireAllRules(); + assertThat(ksession.getFactCount()).isEqualTo(0L); + } + + @Test(timeout = 40000L) + public void testImmediateEventsExpiration() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + sb.append( "import " + MyEvent.class.getCanonicalName() + ";\n" ); + sb.append( "declare MyEvent @role( event ) @expires( 1ms ) @timestamp( timestamp ) end\n" ); + for (int i = 0; i < 10; i++) { + sb.append( getRuleWithEvent( i ) ); + } + + KieSessionConfiguration sessionConfig = RuleBaseFactory.newKnowledgeSessionConfiguration(); + sessionConfig.setOption( ClockTypeOption.get( ClockType.PSEUDO_CLOCK.getId() ) ); + + KieBaseTestConfiguration streamConfig = TestParametersUtil.getStreamInstanceOf(kieBaseTestConfiguration); + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", streamConfig, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, streamConfig, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(sessionConfig, null); + + PseudoClockScheduler sessionClock = ksession.getSessionClock(); + sessionClock.setStartupTime(0); + + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + List list = new DebugList<>(); + ksession.setGlobal( "list", list ); + + int eventNr = 10; + for (int i = 0; i < eventNr; i++) { + ksession.insert( new MyEvent( i, i ) ); + sessionClock.advanceTime(1, TimeUnit.MILLISECONDS); + } + sessionClock.advanceTime(1, TimeUnit.MILLISECONDS); + + ksession.fireAllRules(); + + assertThat(list.size()).isEqualTo(eventNr); + + // check that all events have been expired + assertThat(ksession.getFactHandles()).isEmpty(); + } + + public static class MyEvent { + private final int id; + private final long timestamp; + + public MyEvent( int id, long timestamp ) { + this.id = id; + this.timestamp = timestamp; + } + + public long getTimestamp() { + return timestamp; + } + + public int getId() { + return id; + } + + @Override + public String toString() { + return "MyEvent[" + id + "]"; + } + } + + private String getRuleWithEvent(int i) { + return "rule R" + i + " when\n" + + " $i : MyEvent( id == " + i + " )" + + "then\n" + + " list.add($i);\n" + + "end\n"; + } + + private String getRuleWithEventForExpiration(int i) { + return "rule R" + i + " when\n" + + " $i : MyEvent( id == " + i + " )\n" + + "then\n" + + " list.add($i);\n" + + " insert(" + i + ");\n" + + "end\n" + + "rule R" + i + "not when\n" + + " Integer( this == " + i + " )\n" + + " not MyEvent( id == " + i + " )\n" + + "then\n" + + " list.add(" + i + ");\n" + + "end\n"; + } + + @Test(timeout = 40000L) + public void testFireUntilHaltWithExpiration() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + sb.append( "import " + MyEvent.class.getCanonicalName() + ";\n" ); + sb.append( "declare MyEvent @role( event ) @expires( 20ms ) @timestamp( timestamp ) end\n" ); + for (int i = 0; i < 5; i++) { + sb.append( getRuleWithEventForExpiration( i ) ); + } + + // See DROOLS-6352 : To avoid bias in CompositePartitionAwareObjectSinkAdapter.partitionedPropagators by artificial repetition of rule pattern + sb.append("rule R_ex1\n when MyEvent(id == 100)\n then\n end\n"); + + for (int i = 5; i < 10; i++) { + sb.append( getRuleWithEventForExpiration( i ) ); + } + + KieSessionConfiguration sessionConfig = RuleBaseFactory.newKnowledgeSessionConfiguration(); + sessionConfig.setOption( ClockTypeOption.get( ClockType.PSEUDO_CLOCK.getId() ) ); + + KieBaseTestConfiguration streamConfig = TestParametersUtil.getStreamInstanceOf(kieBaseTestConfiguration); + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", streamConfig, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, streamConfig, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(sessionConfig, null); + + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + PseudoClockScheduler sessionClock = ksession.getSessionClock(); + sessionClock.setStartupTime(0); + + DebugList list = new DebugList(); + CountDownLatch done1 = new CountDownLatch(1); + list.onItemAdded = ( l -> { if (l.size() == 10) { + done1.countDown(); + }} ); + ksession.setGlobal( "list", list ); + + for (int i = 0; i < 10; i++) { + ksession.insert( new MyEvent( i, i*2L ) ); + } + + new Thread(ksession::fireUntilHalt).start(); + try { + try { + done1.await(); + } catch (InterruptedException e) { + throw new RuntimeException( e ); + } + + assertThat(list.size()).isEqualTo(10); + list.clear(); + + CountDownLatch done2 = new CountDownLatch(1); + list.onItemAdded = ( l -> { if (l.size() == 5) { + done2.countDown(); + }} ); + + ksession.insert( 1 ); + sessionClock.advanceTime( 29, TimeUnit.MILLISECONDS ); + + try { + done2.await(); + } catch (InterruptedException e) { + throw new RuntimeException( e ); + } + + assertThat(list.size()).isEqualTo(5); + list.clear(); + + CountDownLatch done3 = new CountDownLatch(1); + list.onItemAdded = ( l -> { if (l.size() == 5) { + done3.countDown(); + }} ); + + sessionClock.advanceTime( 12, TimeUnit.MILLISECONDS ); + try { + done3.await(); + } catch (InterruptedException e) { + throw new RuntimeException( e ); + } + + assertThat(list.size()).isEqualTo(5); + } finally { + ksession.halt(); + ksession.dispose(); + } + } + + @Test(timeout = 40000L) + @Ignore("this test is failing on Jenkins but not locally, we need to figure out why") + public void testFireUntilHaltWithExpiration2() throws InterruptedException { + String drl = + "import " + A.class.getCanonicalName() + "\n" + + "import " + B.class.getCanonicalName() + "\n" + + "declare A @role( event ) @expires(11ms) end\n" + + "declare B @role( event ) @expires(11ms) end\n" + + "global java.util.concurrent.atomic.AtomicInteger counter;\n" + + "global java.util.concurrent.CountDownLatch fireLatch;\n" + + "rule R0 when\n" + + " $A: A( $Aid : value > 0 )\n" + + " $B: B( ($Bid: value <= $Aid) && (value > ($Aid - 1 )))\n" + + "then\n" + + " counter.incrementAndGet();\n" + + " fireLatch.countDown();" + + "end\n" + + "rule R1 when\n" + + " $A: A( $Aid: value > 1 )\n" + + " $B: B( ($Bid: value <= $Aid) && (value > ($Aid - 1 )))\n" + + "then\n" + + " counter.incrementAndGet();\n" + + " fireLatch.countDown();" + + "end\n" + + "rule R2 when\n" + + " $A: A( $Aid: value > 2 )\n" + + " $B: B( ($Bid: value <= $Aid) && (value > ($Aid - 1 )))\n" + + "then\n" + + " counter.incrementAndGet();\n" + + " fireLatch.countDown();" + + "end\n" + + "rule R3 when\n" + + " $A: A( $Aid: value > 3 )\n" + + " $B: B( ($Bid: value <= $Aid) && (value > ($Aid - 1 )))\n" + + "then\n" + + " counter.incrementAndGet();\n" + + " fireLatch.countDown();" + + "end"; + + KieSessionConfiguration sessionConfig = RuleBaseFactory.newKnowledgeSessionConfiguration(); + sessionConfig.setOption( ClockTypeOption.get( ClockType.PSEUDO_CLOCK.getId() ) ); + + KieBaseTestConfiguration streamConfig = TestParametersUtil.getStreamInstanceOf(kieBaseTestConfiguration); + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", streamConfig, drl); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, streamConfig, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(sessionConfig, null); + + try { + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + PseudoClockScheduler sessionClock = ksession.getSessionClock(); + sessionClock.setStartupTime( 0 ); + + AtomicInteger counter = new AtomicInteger( 0 ); + ksession.setGlobal( "counter", counter ); + + new Thread( () -> ksession.fireUntilHalt() ).start(); + + int eventsNr = 5; + final CountDownLatch fireLatch = new CountDownLatch(eventsNr * 4); + ksession.setGlobal("fireLatch", fireLatch); + for ( int i = 0; i < eventsNr; i++ ) { + ksession.insert( new A( i + 4 ) ); + ksession.insert( new B( i + 4 ) ); + sessionClock.advanceTime( 10, TimeUnit.MILLISECONDS ); + } + + fireLatch.await(); + assertThat(counter.get()).isEqualTo(eventsNr * 4); + } finally { + ksession.halt(); + ksession.dispose(); + } + } + + @Test(timeout = 40000L) + public void testWithUpdates() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + for (int i = 0; i < 10; i++) { + sb.append( getRule( i, "" ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + KieSession ksession = kbase.newKieSession(); + + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + FactHandle[] fhs = new FactHandle[10]; + + for (int i = 0; i < 10; i++) { + fhs[i] = ksession.insert( i ); + ksession.insert( "" + i ); + } + + ksession.fireAllRules(); + assertThat(list.size()).isEqualTo(10); + + list.clear(); + + for (int i = 0; i < 10; i++) { + ksession.update( fhs[i], i ); + } + + ksession.fireAllRules(); + assertThat(list.size()).isEqualTo(10); + } + + @Test(timeout = 40000L) + public void testDisableParallelismWithAgendaGroups() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + sb.append( "rule first\n" + + "when\n" + + "then\n" + + " drools.getKnowledgeRuntime().getAgenda().getAgendaGroup(\"agenda\").setFocus();\n" + + "end\n" ); + for (int i = 0; i < 10; i++) { + sb.append( getRule( i, "", "agenda-group \"agenda\"" ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + + KieSession ksession = kbase.newKieSession(); + + // multithread evaluation is not allowed when using agenda-groups + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isFalse(); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + for (int i = 0; i < 10; i++) { + ksession.insert( i ); + ksession.insert( "" + i ); + } + + ksession.fireAllRules(); + + assertThat(list.size()).isEqualTo(10); + } + + @Test(timeout = 40000L) + public void testDisableParallelismWithSalience() { + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + for (int i = 0; i < 10; i++) { + sb.append( getRule( i, "", "salience " + i ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + + KieSession ksession = kbase.newKieSession(); + + // multithread evaluation is not allowed when using salience + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isFalse(); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + for (int i = 0; i < 10; i++) { + ksession.insert( i ); + ksession.insert( "" + i ); + } + + ksession.fireAllRules(); + + assertThat(list.size()).isEqualTo(10); + assertThat(Arrays.asList(9, 8, 7, 6, 5, 4, 3, 2, 1, 0)).isEqualTo(list); + } + + @Test(timeout = 40000L) + public void testMultipleParallelKieSessionsWithInsertions() throws InterruptedException, ExecutionException, TimeoutException { + final int NUMBER_OF_PARALLEL_SESSIONS = 5; + + /* Create KIE base */ + StringBuilder sb = new StringBuilder(); + sb.append("global java.util.List list;\n"); + final int ruleNr = 200; + + for (int i = 0; i < ruleNr; i++) { + sb.append(getRule(i, "insert( $i + 10 );\ninsert( \"\" + ($i + 10) );\n")); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kBase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + + /* Create parallel tasks */ + List> tasks = new ArrayList<>(); + for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { + tasks.add(getMultipleParallelKieSessionsWithInsertionsCallable(kBase, ruleNr)); + } + + runTasksInParallel(tasks); + } + + private Callable getMultipleParallelKieSessionsWithInsertionsCallable(KieBase kBase, int ruleNr) { + return new Callable() { + @Override public Void call() { + KieSession ksession = kBase.newKieSession(); + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + insertFacts(ksession, 10); + + ksession.fireAllRules(); + assertThat(list.size()).isEqualTo(ruleNr); + + return null; + } + }; + } + + @Test(timeout = 40000L) + public void testMultipleParallelKieSessionsWithUpdates() throws InterruptedException, ExecutionException, TimeoutException { + final int NUMBER_OF_PARALLEL_SESSIONS = 5; + + /* Create KIE base */ + StringBuilder sb = new StringBuilder( 400 ); + sb.append( "global java.util.List list;\n" ); + for (int i = 0; i < 10; i++) { + sb.append( getRule( i, "" ) ); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kBase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + + /* Create parallel tasks */ + List> tasks = new ArrayList<>(); + for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { + tasks.add(getMultipleParallelKieSessionsWithUpdatesCallable(kBase)); + } + + /* Run tasks in parallel */ + runTasksInParallel(tasks); + } + + private Callable getMultipleParallelKieSessionsWithUpdatesCallable(KieBase kBase) { + return new Callable() { + @Override public Void call() { + KieSession ksession = kBase.newKieSession(); + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).as("Parallel agenda has to be enabled").isTrue(); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + FactHandle[] fhs = new FactHandle[10]; + fhs = insertFacts(ksession, 10); + + ksession.fireAllRules(); + assertThat(list.size()).isEqualTo(10); + + list.clear(); + + for (int i = 0; i < 10; i++) { + ksession.update( fhs[i], i ); + } + + ksession.fireAllRules(); + assertThat(list.size()).isEqualTo(10); + + return null; + } + }; + } + + @Test(timeout = 40000L) + public void testMultipleParallelKieSessionsWithDeletes() throws InterruptedException, ExecutionException, TimeoutException { + final int NUMBER_OF_PARALLEL_SESSIONS = 5; + + /* Create KIE base */ + StringBuilder sb = new StringBuilder(400); + sb.append("global java.util.List list;\n"); + for (int i = 1; i < 11; i++) { + sb.append(getRule(i, "delete( $i );\n")); + } + for (int i = 1; i < 11; i++) { + sb.append(getNotRule(i)); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + + List> tasks = new ArrayList<>(); + for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { + tasks.add(getMultipleParallelKieSessionsWithDeletesCallable(kbase)); + } + + /* Run tasks in parallel */ + runTasksInParallel(tasks); + } + + private Callable getMultipleParallelKieSessionsWithDeletesCallable(KieBase kbase) { + return new Callable() { + @Override public Void call() { + KieSession ksession = kbase.newKieSession(); + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + List list = new DebugList(); + ksession.setGlobal( "list", list ); + + insertFacts(ksession, 11); + ksession.fireAllRules(); + + assertThat(ksession.getObjects()).isEmpty(); + assertThat(list.size()).isEqualTo(20); + + return null; + } + }; + } + + @Test(timeout = 40000L) + public void testMultipleParallelKieSessionsFireUntilHalt() throws InterruptedException, ExecutionException, TimeoutException { + final int NUMBER_OF_PARALLEL_SESSIONS = 5; + + /* Create KIE base */ + StringBuilder sb = new StringBuilder(400); + sb.append("global java.util.List list;\n"); + for (int i = 0; i < 10; i++) { + sb.append(getRule(i, "")); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + + List> tasks = new ArrayList<>(); + for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { + tasks.add(getMultipleParallelKieSessionsFireUntilHaltCallable(kbase, false)); + } + + /* Run tasks in parallel */ + runTasksInParallel(tasks); + } + + private Callable getMultipleParallelKieSessionsFireUntilHaltCallable(KieBase kBase, boolean asyncInsert) { + return () -> { + KieSession ksession = kBase.newKieSession(); + assertThat(((InternalWorkingMemory) ksession).getAgenda().isParallelAgenda()).isTrue(); + + CountDownLatch done = new CountDownLatch(1); + + DebugList list = new DebugList(); + list.onItemAdded = (l -> { + if (l.size() == 10) { + ksession.halt(); + done.countDown(); + } + }); + ksession.setGlobal("list", list); + + new Thread(ksession::fireUntilHalt).start(); + if (asyncInsert) { + StatefulKnowledgeSessionImpl session = (StatefulKnowledgeSessionImpl) ksession; + for (int i = 0; i < 10; i++) { + session.insertAsync(i); + session.insertAsync("" + String.valueOf(i)); + } + } else { + insertFacts(ksession, 10); + } + + try { + done.await(); + } catch (InterruptedException e) { + throw new RuntimeException(e); + } + + assertThat(list.size()).isEqualTo(10); + + return null; + }; + } + + @Test(timeout = 40000L) + public void testMultipleParallelKieSessionsFireUntilHaltWithAsyncInsert() throws InterruptedException, ExecutionException, TimeoutException { + final int NUMBER_OF_PARALLEL_SESSIONS = 5; + + /* Create KIE base */ + StringBuilder sb = new StringBuilder(400); + sb.append("global java.util.List list;\n"); + for (int i = 0; i < 10; i++) { + sb.append(getRule(i, "")); + } + + final KieModule kieModule = KieUtil.getKieModuleFromDrls("test", kieBaseTestConfiguration, sb.toString()); + final KieBase kbase = KieBaseUtil.newKieBaseFromKieModuleWithAdditionalOptions(kieModule, kieBaseTestConfiguration, ParallelExecutionOption.FULLY_PARALLEL ); + + /* Create parallel tasks */ + List> tasks = new ArrayList<>(); + for (int i = 0; i < NUMBER_OF_PARALLEL_SESSIONS; i++) { + tasks.add(getMultipleParallelKieSessionsFireUntilHaltCallable(kbase, true)); + } + + /* Run tasks in parallel */ + runTasksInParallel(tasks); + } + + private FactHandle[] insertFacts(KieSession ksession, int n) { + FactHandle[] fhs = new FactHandle[n]; + for (int i = 0; i < n; i++) { + fhs[i] = ksession.insert(i); + ksession.insert(String.valueOf(i)); + } + + return fhs; + } + + private void runTasksInParallel(List> tasks) throws InterruptedException { + ExecutorService executorService = Executors.newFixedThreadPool(tasks.size()); + try { + List> futures = executorService.invokeAll(tasks); + assertThat(futures.size()).isEqualTo(tasks.size()); + } finally { + executorService.shutdownNow(); + } + } +} diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParserTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParserTest.java index b246781b8d7..3290126bc07 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParserTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.InputStreamReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PassiveQueryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PassiveQueryTest.java index e3c27eb1187..69619b86107 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PassiveQueryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PassiveQueryTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; @@ -21,7 +24,7 @@ import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Memory; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.LeftTupleSink; import org.drools.core.reteoo.ObjectTypeNode; @@ -312,7 +315,7 @@ public void testPassiveQueryUsingSegmentPropagator() throws Exception { FactHandle fh = ksession.insert(1); ksession.insert("1"); - Rete rete = ((RuleBase)kbase).getRete(); + Rete rete = ((InternalRuleBase)kbase).getRete(); LeftInputAdapterNode lia = null; for (ObjectTypeNode otn : rete.getObjectTypeNodes()) { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PathEndNodeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PathEndNodeTest.java index 83e2e4683b0..a42bdef04fe 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PathEndNodeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PathEndNodeTest.java @@ -1,24 +1,26 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.EntryPointNode; @@ -26,7 +28,7 @@ import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.RightInputAdapterNode; import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.TestParametersUtil; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PhreakConcurrencyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PhreakConcurrencyTest.java index 71483988f18..30d07193f71 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PhreakConcurrencyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PhreakConcurrencyTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PolymorphismTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PolymorphismTest.java index 57645ad220f..41dbe7c3bbc 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PolymorphismTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PolymorphismTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertyReactivityBlockerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertyReactivityBlockerTest.java index ad5f31580fb..1bb13d108f1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertyReactivityBlockerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertyReactivityBlockerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertyReactivityTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertyReactivityTest.java index f555761815c..68eafe9efa2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertyReactivityTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertyReactivityTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertySpecificTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertySpecificTest.java index fe21aae8d0c..b2f09b3de22 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertySpecificTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PropertySpecificTest.java @@ -1,43 +1,45 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; -import java.util.Collections; import java.util.EnumMap; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.BetaNode; import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.reteoo.PropertySpecificUtil; +import org.drools.base.reteoo.PropertySpecificUtil; import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.base.ObjectType; -import org.drools.core.util.bitmask.AllSetBitMask; -import org.drools.core.util.bitmask.EmptyBitMask; +import org.drools.base.base.ObjectType; +import org.drools.util.bitmask.AllSetBitMask; +import org.drools.util.bitmask.EmptyBitMask; import org.drools.mvel.compiler.Cheese; import org.drools.mvel.compiler.Person; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; @@ -56,8 +58,8 @@ import org.kie.api.runtime.KieSession; import static org.assertj.core.api.Assertions.*; -import static org.drools.core.reteoo.PropertySpecificUtil.calculateNegativeMask; -import static org.drools.core.reteoo.PropertySpecificUtil.calculatePositiveMask; +import static org.drools.base.reteoo.PropertySpecificUtil.calculateNegativeMask; +import static org.drools.base.reteoo.PropertySpecificUtil.calculatePositiveMask; @RunWith(Parameterized.class) public class PropertySpecificTest { @@ -77,7 +79,7 @@ public static List getSettableProperties(InternalWorkingMemory workingMe return getSettableProperties(workingMemory.getKnowledgeBase(), objectTypeNode); } - public static List getSettableProperties( RuleBase kBase, ObjectTypeNode objectTypeNode ) { + public static List getSettableProperties(InternalRuleBase kBase, ObjectTypeNode objectTypeNode) { return PropertySpecificUtil.getAccessibleProperties( kBase, getNodeClass( objectTypeNode ) ); } @@ -1879,7 +1881,7 @@ List list(T... items) { } public ObjectTypeNode getObjectTypeNode(KieBase kbase, String nodeName) { - List nodes = ((RuleBase)kbase).getRete().getObjectTypeNodes(); + List nodes = ((InternalRuleBase)kbase).getRete().getObjectTypeNodes(); for ( ObjectTypeNode n : nodes ) { if (((ClassObjectType) n.getObjectType()).getClassType().getSimpleName().equals( nodeName ) ) { return n; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PseudoClockEventsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PseudoClockEventsTest.java index fc9364ab06b..abefd503958 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PseudoClockEventsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/PseudoClockEventsTest.java @@ -1,19 +1,20 @@ -/* - * Copyright 2007 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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 * - * Created on Dec 14, 2007 + * 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. */ package org.drools.mvel.integrationtests; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Query2Test.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Query2Test.java index d1bf2a4e92f..4939d04b708 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Query2Test.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Query2Test.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Query3Test.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Query3Test.java index 2d5e4f3e010..c2065204a59 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Query3Test.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/Query3Test.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryCepFireUntilHaltTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryCepFireUntilHaltTest.java index 82bf3433f68..1c9f56d1121 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryCepFireUntilHaltTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryCepFireUntilHaltTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryCepTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryCepTest.java index 3e4c56defa7..f670eef942f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryCepTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryCepTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryInRHSCepTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryInRHSCepTest.java index 4eb143fe5b6..912064a98cf 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryInRHSCepTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryInRHSCepTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java index 89b51fcb2b4..fa47533cfef 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/QueryTest.java @@ -1,46 +1,32 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ + * 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. + */ package org.drools.mvel.integrationtests; -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.StringWriter; -import java.nio.charset.Charset; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.TreeSet; -import java.util.stream.Collectors; -import java.util.stream.StreamSupport; -import javax.xml.bind.JAXBContext; - +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.ObjectType; +import org.drools.commands.runtime.FlatQueryResults; import org.drools.core.QueryResultsImpl; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.DroolsQuery; import org.drools.core.common.InternalFactHandle; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.reteoo.ObjectTypeNode.ObjectTypeNodeMemory; import org.drools.core.reteoo.ReteDumper; -import org.drools.commands.runtime.FlatQueryResults; -import org.drools.core.base.ObjectType; import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; import org.drools.mvel.compiler.Address; import org.drools.mvel.compiler.Cheese; @@ -72,6 +58,23 @@ import org.kie.api.runtime.rule.Variable; import org.kie.api.runtime.rule.ViewChangedEventListener; +import javax.xml.bind.JAXBContext; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.StringWriter; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.TreeSet; +import java.util.stream.Collectors; +import java.util.stream.StreamSupport; + import static org.assertj.core.api.Assertions.assertThat; @RunWith(Parameterized.class) @@ -437,7 +440,7 @@ public void testDroolsQueryCleanup() throws Exception { ObjectType key = new ClassObjectType( DroolsQuery.class ); ObjectTypeNode droolsQueryNode = obnodes.get( key ); - Iterator it = sessionImpl.getNodeMemory( droolsQueryNode ).iterator(); + Iterator it = droolsQueryNode.getFactHandlesIterator(sessionImpl); assertThat(it.hasNext()).isFalse(); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleEventListenerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleEventListenerTest.java index 805e49525c1..d49db912dcf 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleEventListenerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleEventListenerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleExecutionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleExecutionTest.java index bece3c9a68f..48322a8003d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleExecutionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleExecutionTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleExtensionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleExtensionTest.java index 1942e5fa82f..a0f1e0504d2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleExtensionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleExtensionTest.java @@ -1,25 +1,23 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.KieUtil; @@ -32,6 +30,10 @@ import org.kie.api.builder.Message; import org.kie.api.runtime.KieSession; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + import static org.assertj.core.api.Assertions.assertThat; @RunWith(Parameterized.class) @@ -419,4 +421,33 @@ public void testRuleCircularExtension() { assertThat(errors.iterator().next().toString().contains("Circular")).isTrue(); } + + @Test + public void testManyExtensions() { + // DROOLS-7542 + String base = + "package org.drools.test;\n" + + "\n" + + "rule R0 when\n" + + " $s : String()\n" + + "then\n" + + "end\n"; + + StringBuilder drl = new StringBuilder(base); + for (int i = 1; i < 100; i++) { + drl.append(getExtendedRule(i)); + } + + KieBuilder kieBuilder = KieUtil.getKieBuilderFromDrls(kieBaseTestConfiguration, true, drl.toString()); + List errors = kieBuilder.getResults().getMessages(Message.Level.ERROR); + assertThat(errors.isEmpty()).isTrue(); + } + + private String getExtendedRule(int i) { + return "rule R" + i +" extends R0 when\n" + + " $i : Integer( this == " + i + " )\n" + + "then\n" + + "end\n"; + + } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleMetadataTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleMetadataTest.java index 87221d6fa66..c20fee3b272 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleMetadataTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/RuleMetadataTest.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; -import org.drools.core.rule.ConsequenceMetaData; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; +import org.drools.base.rule.ConsequenceMetaData; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; import org.drools.testcoverage.common.util.TestParametersUtil; @@ -243,7 +246,7 @@ private KieBase getKnowledgeBase(String... consequences) { } private RuleImpl getRule(KieBase kbase, String ruleName) { - return ((RuleBase)kbase).getPackage("org.drools").getRule(ruleName); + return ((InternalRuleBase)kbase).getPackage("org.drools").getRule(ruleName); } public static class B { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SegmentCreationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SegmentCreationTest.java index cd6b0e82ba3..e24e7706cd2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SegmentCreationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SegmentCreationTest.java @@ -1,31 +1,34 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; import java.util.Collection; import java.util.List; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.PhreakBuilder; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.ConditionalBranchNode; -import org.drools.core.reteoo.InitialFactImpl; +import org.drools.base.reteoo.InitialFactImpl; import org.drools.core.reteoo.JoinNode; import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.LeftInputAdapterNode.LiaNodeMemory; @@ -548,7 +551,7 @@ private KieBase buildKnowledgeBase(String... rules) { } public ObjectTypeNode getObjectTypeNode(KieBase kbase, Class nodeClass) { - List nodes = ((RuleBase)kbase).getRete().getObjectTypeNodes(); + List nodes = ((InternalRuleBase)kbase).getRete().getObjectTypeNodes(); for ( ObjectTypeNode n : nodes ) { if ( ((ClassObjectType)n.getObjectType()).getClassType() == nodeClass ) { return n; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SegmentMemorySegmentPrototypeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SegmentMemorySegmentPrototypeTest.java index 428421d1aed..338c1a200b2 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SegmentMemorySegmentPrototypeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SegmentMemorySegmentPrototypeTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java index 4ca8c2af912..15d7e6e0edd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializationHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTest.java index 5ac7bb7403a..9a12a704b4f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.ByteArrayInputStream; @@ -28,8 +31,8 @@ import java.util.List; import java.util.Locale; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.mvel.compiler.Message; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTwoSteps1Test.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTwoSteps1Test.java index f03bca2e425..7b3d088036d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTwoSteps1Test.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTwoSteps1Test.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.io.File; import java.io.FileOutputStream; import java.util.Collection; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.junit.Ignore; import org.junit.Test; import org.kie.api.definition.KiePackage; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTwoSteps2Test.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTwoSteps2Test.java index 9891d8a16ef..e08c64281bb 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTwoSteps2Test.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SerializedPackageMergeTwoSteps2Test.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.ByteArrayInputStream; @@ -27,8 +30,8 @@ import java.util.Collection; import java.util.List; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.junit.Ignore; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SeveralKieSessionsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SeveralKieSessionsTest.java index fb8d9834124..09a5b90b5b5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SeveralKieSessionsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SeveralKieSessionsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ShadowProxyTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ShadowProxyTest.java index 3cb83a141df..39750d9b886 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ShadowProxyTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/ShadowProxyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StatelessStressTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StatelessStressTest.java index 29a5c99bc01..48f7f5c6369 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StatelessStressTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StatelessStressTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrEvaluatorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrEvaluatorTest.java index 581ce97d560..c2ef7adea4e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrEvaluatorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrEvaluatorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrictAnnotationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrictAnnotationTest.java index 5388c45f1a1..cc3a605be16 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrictAnnotationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/StrictAnnotationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.lang.annotation.ElementType; @@ -27,7 +30,7 @@ import java.util.Map; import java.util.Properties; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.drools.core.impl.RuleBaseFactory; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; @@ -254,7 +257,7 @@ public void testJavaSqlTimestamp() { msg.setStartTime( new Timestamp( 10000 ) ); msg.setDuration( 1000l ); - EventFactHandle efh = (EventFactHandle) ksession.insert( msg ); + DefaultEventHandle efh = (DefaultEventHandle) ksession.insert(msg); assertThat(efh.getStartTimestamp()).isEqualTo(10000); assertThat(efh.getDuration()).isEqualTo(1000); } finally { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SwitchOverStringTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SwitchOverStringTest.java index 159d02b39c9..c7d3a22c768 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SwitchOverStringTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/SwitchOverStringTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TemporalOperatorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TemporalOperatorTest.java index 14c154fd28c..0d1f5c2221e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TemporalOperatorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TemporalOperatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.text.ParseException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TestFact.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TestFact.java index 837c6c5b411..5eed7169c73 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TestFact.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TestFact.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; public class TestFact { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TestObject.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TestObject.java index dcb336ef650..849abf5ab1a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TestObject.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TestObject.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Arrays; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TreeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TreeTest.java index 659d61a530e..b64851037a7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TreeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TypeDeclarationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TypeDeclarationTest.java index 7a2f4b5c043..f2e8c46e006 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TypeDeclarationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/TypeDeclarationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/UnlinkingTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/UnlinkingTest.java index 638a39832f0..9bdb03f6129 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/UnlinkingTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/UnlinkingTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/VarargsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/VarargsTest.java index 81cb68f30fb..bb502f0c94f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/VarargsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/VarargsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.util.Arrays; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/WindowTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/WindowTest.java index 41dbec48af1..e792d8c9cf9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/WindowTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/WindowTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/WorkingMemoryActionsSerializationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/WorkingMemoryActionsSerializationTest.java index a042b2b2b30..5996d2da270 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/WorkingMemoryActionsSerializationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/WorkingMemoryActionsSerializationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/XSDResourceTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/XSDResourceTest.java index 9e16b6ce155..f2ae29adab7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/XSDResourceTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/XSDResourceTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.mvel.integrationtests; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/AbstractConcurrentInsertionsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/AbstractConcurrentInsertionsTest.java index 12d04bd4e9d..0be132c4a3e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/AbstractConcurrentInsertionsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/AbstractConcurrentInsertionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.util.concurrent.Callable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/AbstractConcurrentTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/AbstractConcurrentTest.java index 59da6498a7c..c92061492b3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/AbstractConcurrentTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/AbstractConcurrentTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.io.ByteArrayInputStream; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/BasicConcurrentInsertionsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/BasicConcurrentInsertionsTest.java index 0b03a4f759d..e2321972f34 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/BasicConcurrentInsertionsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/BasicConcurrentInsertionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/ConcurrentBasesParallelTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/ConcurrentBasesParallelTest.java index 1c9de34b635..c0208f8a904 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/ConcurrentBasesParallelTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/ConcurrentBasesParallelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/ConcurrentInsertionsToSubnetworksTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/ConcurrentInsertionsToSubnetworksTest.java index f7b63963019..41ece663f31 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/ConcurrentInsertionsToSubnetworksTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/ConcurrentInsertionsToSubnetworksTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/DataTypeEvaluationConcurrentSessionsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/DataTypeEvaluationConcurrentSessionsTest.java index 30a02462212..5e840e1f2f8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/DataTypeEvaluationConcurrentSessionsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/DataTypeEvaluationConcurrentSessionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/EnumEvaluationConcurrentSessionsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/EnumEvaluationConcurrentSessionsTest.java index 33a540fc0e2..c0b1469f58c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/EnumEvaluationConcurrentSessionsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/EnumEvaluationConcurrentSessionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/JoinsConcurrentSessionsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/JoinsConcurrentSessionsTest.java index c56c9490e5f..e9dad3fb574 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/JoinsConcurrentSessionsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/JoinsConcurrentSessionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/MultithreadTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/MultithreadTest.java index a3381007157..163114dc6f4 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/MultithreadTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/MultithreadTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/SharedSessionParallelTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/SharedSessionParallelTest.java index bc2bef77028..6e2a258f7c7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/SharedSessionParallelTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/SharedSessionParallelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/SubnetworkConcurrentSessionsTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/SubnetworkConcurrentSessionsTest.java index 2fffe2091fd..559dd6405e5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/SubnetworkConcurrentSessionsTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/concurrency/SubnetworkConcurrentSessionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.concurrency; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/AbstractEventListener.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/AbstractEventListener.java index 41cd23457e4..3bb780eebf0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/AbstractEventListener.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/AbstractEventListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator; import org.kie.api.runtime.KieSession; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/Event.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/Event.java index ad5685c1477..26f6517bc4f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/Event.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/Event.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator; import java.util.HashMap; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/PseudoSessionClock.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/PseudoSessionClock.java index e03894df2c3..23837c2f349 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/PseudoSessionClock.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/PseudoSessionClock.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventGenerator.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventGenerator.java index 3224f9d9564..633d55784b9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventGenerator.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventGenerator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventGeneratorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventGeneratorTest.java index 8c906cf3fe3..f8516c55e47 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventGeneratorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventGeneratorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventListener.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventListener.java index 5817aadd690..4fd49007592 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventListener.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/SimpleEventListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator; import org.kie.api.runtime.KieSession; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/ExampleScenario.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/ExampleScenario.java index 4fc19ef4f01..43cda41a642 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/ExampleScenario.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/ExampleScenario.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator.example; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/FailureEvent.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/FailureEvent.java index a763dfee261..9ae382d193f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/FailureEvent.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/FailureEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator.example; import org.drools.mvel.integrationtests.eventgenerator.Event; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/HeartbeatEvent.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/HeartbeatEvent.java index ff0415203da..af2491fec75 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/HeartbeatEvent.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/HeartbeatEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator.example; import org.drools.mvel.integrationtests.eventgenerator.Event; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/ProductionEvent.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/ProductionEvent.java index 796f0cdf398..30c914814b3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/ProductionEvent.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/ProductionEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator.example; import org.drools.mvel.integrationtests.eventgenerator.Event; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Resource.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Resource.java index 5c5d12e5082..c242721935e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Resource.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Resource.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator.example; import java.util.Calendar; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/SlidingWindow.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/SlidingWindow.java index eee97030e55..82b6224e714 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/SlidingWindow.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/SlidingWindow.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator.example; public class SlidingWindow { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Status.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Status.java index 17205ec32f7..74b6be4f48f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Status.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Status.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator.example; import java.util.ArrayList; import java.util.Arrays; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/StatusChangedEvent.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/StatusChangedEvent.java index 4f5807d7df0..7f218efb95e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/StatusChangedEvent.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/StatusChangedEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator.example; import java.util.HashMap; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Tools.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Tools.java index 265e2f07668..5ba51bc6903 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Tools.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/eventgenerator/example/Tools.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.eventgenerator.example; import java.util.Calendar; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/AFact.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/AFact.java index ccc5ceef3b1..1c1f3b494e3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/AFact.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/AFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class AFact { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/AnEnum.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/AnEnum.java index b9e2b633a73..32ef6a40d6f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/AnEnum.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/AnEnum.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public enum AnEnum { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BasicEvent.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BasicEvent.java index d59d2794ae4..4e35744bafe 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BasicEvent.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BasicEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; import java.io.Serializable; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BeanA.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BeanA.java index 04c2d547e41..9010c0bbbd0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BeanA.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BeanA.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class BeanA { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BeanB.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BeanB.java index 8679aeacc98..d94644b3973 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BeanB.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/BeanB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class BeanB { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/CategoryTypeEnum.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/CategoryTypeEnum.java index 8968b181d3b..36b04468fc8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/CategoryTypeEnum.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/CategoryTypeEnum.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public enum CategoryTypeEnum { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact1.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact1.java index 189eee80f73..93b52c9603f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact1.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact1.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class ChildFact1 { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact2.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact2.java index 7cddf47f762..35ab21ab0f5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact2.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class ChildFact2 { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact3WithEnum.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact3WithEnum.java index 158289f0274..9752044ddec 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact3WithEnum.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact3WithEnum.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class ChildFact3WithEnum { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact4WithFirings.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact4WithFirings.java index 7e8e8bb2b7b..edb99f35571 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact4WithFirings.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ChildFact4WithFirings.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ClassA.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ClassA.java index fe4a46d70f7..60f4e8908ee 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ClassA.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ClassA.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class ClassA implements InterfaceA { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ClassB.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ClassB.java index f680f85a6b4..cfa53cb8c56 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ClassB.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/ClassB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class ClassB implements InterfaceB { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithBigDecimal.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithBigDecimal.java index fa924b78b36..013978be006 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithBigDecimal.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithBigDecimal.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; import java.math.BigDecimal; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithBoolean.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithBoolean.java index f91ed382337..e7ffdfce70d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithBoolean.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithBoolean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithBoolean { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithByte.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithByte.java index 1af96b88e4b..963dda9d38c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithByte.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithByte.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithByte { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithCharacter.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithCharacter.java index e8fb30042fc..1c59732a46c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithCharacter.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithCharacter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithCharacter { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithDouble.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithDouble.java index f00733859f9..a36567722d3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithDouble.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithDouble.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithDouble { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithEnum.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithEnum.java index fd9eab0a026..dac9d3fe378 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithEnum.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithEnum.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithEnum { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithFloat.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithFloat.java index 920d7c75f27..b71d5386d14 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithFloat.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithFloat.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithFloat { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithInteger.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithInteger.java index f185b3631f1..b188192e8e8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithInteger.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithInteger.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithInteger { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithList.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithList.java index f06a3d22309..a4ab4c647a9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithList.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithLong.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithLong.java index 6e054f358a7..fe78ef5da7a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithLong.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithLong.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithLong { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithShort.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithShort.java index 98edb5939dc..b7e7559a673 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithShort.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithShort.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithShort { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithString.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithString.java index 0f80b7cf4b7..be9e1e1a72d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithString.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/FactWithString.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class FactWithString { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/InterfaceA.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/InterfaceA.java index ee512f861c0..117d8643a94 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/InterfaceA.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/InterfaceA.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public interface InterfaceA { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/InterfaceB.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/InterfaceB.java index d2d96ad59a3..17f0c2a3f46 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/InterfaceB.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/InterfaceB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public interface InterfaceB { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/Product.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/Product.java index 8ab85bdff8c..0f30dee646b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/Product.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/Product.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/RootFact.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/RootFact.java index 4fd55d271c5..22153113114 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/RootFact.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/RootFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; public class RootFact { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/TestEvent.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/TestEvent.java index 2c6c8c5316f..bd243655dca 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/TestEvent.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/TestEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.mvel.integrationtests.facts; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/VarargsFact.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/VarargsFact.java index 9eb632ad9d3..e06af2e1ea7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/VarargsFact.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/VarargsFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.facts; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/DieselCar.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/DieselCar.java index 4e713cd5610..a6f4f4806af 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/DieselCar.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/DieselCar.java @@ -1,17 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.mvel.integrationtests.facts.vehicles; public class DieselCar extends Vehicle { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/DieselEngine.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/DieselEngine.java index 841ea78b81a..9989a5f059d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/DieselEngine.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/DieselEngine.java @@ -1,17 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.mvel.integrationtests.facts.vehicles; public class DieselEngine extends Engine { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/ElectricCar.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/ElectricCar.java index 8e0273d6f48..25079bd2fbd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/ElectricCar.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/ElectricCar.java @@ -1,17 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.mvel.integrationtests.facts.vehicles; public class ElectricCar extends Vehicle { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/ElectricEngine.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/ElectricEngine.java index 105e0e3ec7d..02130e0482f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/ElectricEngine.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/ElectricEngine.java @@ -1,17 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.mvel.integrationtests.facts.vehicles; public class ElectricEngine extends Engine { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/Engine.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/Engine.java index 0acafc91efd..5b44f0acf67 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/Engine.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/Engine.java @@ -1,17 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.mvel.integrationtests.facts.vehicles; public abstract class Engine { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/Vehicle.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/Vehicle.java index fee70f969c0..067918e131b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/Vehicle.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/facts/vehicles/Vehicle.java @@ -1,17 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.mvel.integrationtests.facts.vehicles; import java.util.Objects; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/marshalling/InputStreamMarkResetTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/marshalling/InputStreamMarkResetTest.java index 0c18b7b594a..03e385f362a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/marshalling/InputStreamMarkResetTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/marshalling/InputStreamMarkResetTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.marshalling; import java.io.BufferedInputStream; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/A.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/A.java index 24ec6b3e3ff..3d93df01656 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/A.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/A.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/AddRuleTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/AddRuleTest.java index ea080024836..2d437af83ef 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/AddRuleTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/AddRuleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import java.util.ArrayList; @@ -23,12 +26,12 @@ import java.util.HashSet; import java.util.List; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.BaseNode; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Memory; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.phreak.BuildtimeSegmentUtilities; import org.drools.core.phreak.EagerPhreakBuilder; import org.drools.core.phreak.EagerPhreakBuilder.Add; @@ -42,7 +45,7 @@ import org.drools.core.reteoo.LeftInputAdapterNode; import org.drools.core.reteoo.LeftInputAdapterNode.LiaNodeMemory; import org.drools.core.reteoo.LeftTupleNode; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.PathEndNode; import org.drools.core.reteoo.PathMemory; @@ -53,7 +56,7 @@ import org.drools.core.reteoo.TerminalNode; import org.drools.core.reteoo.Tuple; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.GroupElement; +import org.drools.base.rule.GroupElement; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; import org.drools.testcoverage.common.util.KieBaseUtil; @@ -848,7 +851,7 @@ public void testPopulatedSharedToRtn() throws Exception { @Test public void testPopulatedMultipleShares() throws Exception { - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) X() E()\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) X() E()\n"); InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession()); List list = new ArrayList<>(); wm.setGlobal("list", list); @@ -881,7 +884,7 @@ public void testPopulatedMultipleShares() throws Exception { @Test public void testSplitTwoBeforeCreatedSegment() throws Exception { - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n"); kbase1.addPackages( buildKnowledgePackage("r2", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n") ); kbase1.addPackages( buildKnowledgePackage("r3", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;)\n") ); kbase1.addPackages( buildKnowledgePackage("r4", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) \n") ); @@ -940,7 +943,7 @@ public void testSplitTwoBeforeCreatedSegment() throws Exception { @Test public void testSplitOneBeforeCreatedSegment() throws Exception { - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n"); kbase1.addPackages( buildKnowledgePackage("r2", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n") ); kbase1.addPackages( buildKnowledgePackage("r3", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;)\n") ); kbase1.addPackages( buildKnowledgePackage("r4", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) \n") ); @@ -1019,7 +1022,7 @@ public void testSplitOneBeforeCreatedSegment() throws Exception { @Test public void testSplitOnCreatedSegment() throws Exception { // this test splits D1 and D2 on the later add rule - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n"); kbase1.addPackages( buildKnowledgePackage("r2", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n") ); kbase1.addPackages( buildKnowledgePackage("r3", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;)\n") ); kbase1.addPackages( buildKnowledgePackage("r4", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) \n") ); @@ -1082,7 +1085,7 @@ public void testSplitOnCreatedSegment() throws Exception { private RuleTerminalNode getRtn(String ruleName, KieBase kbase) { - return ( RuleTerminalNode ) ((RuleBase) kbase).getReteooBuilder().getTerminalNodes(ruleName)[0]; + return ( RuleTerminalNode ) ((InternalRuleBase) kbase).getReteooBuilder().getTerminalNodes(ruleName)[0]; } private InternalKnowledgeBase buildKnowledgeBase(String ruleName, String... rule) { @@ -1117,7 +1120,7 @@ private Collection buildKnowledgePackage(String ruleName, String rul } public ObjectTypeNode getObjectTypeNode(KieBase kbase, Class nodeClass) { - return getObjectTypeNode(((RuleBase) kbase).getRete(), nodeClass); + return getObjectTypeNode(((InternalRuleBase) kbase).getRete(), nodeClass); } public ObjectTypeNode getObjectTypeNode(Rete rete, Class nodeClass) { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/B.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/B.java index a7a32549a8d..e110ffeee58 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/B.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/B.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/BaseLeftTuplesBuilder.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/BaseLeftTuplesBuilder.java index b4d1144a36e..5f43b80d098 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/BaseLeftTuplesBuilder.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/BaseLeftTuplesBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.drools.core.common.InternalFactHandle; @@ -62,16 +65,16 @@ public T insert(Object... objects) { if ( !(objects[i] instanceof Pair) ) { Object o1 = objects[i]; InternalFactHandle fh1 = wm.getFactHandle(o1); - LeftTuple leftTuple = new JoinNodeLeftTuple( fh1, sink, true ); + LeftTuple leftTuple = new JoinNodeLeftTuple(fh1, sink, true ); leftTuples.addInsert( leftTuple ); } else { Pair p = (Pair )objects[i]; InternalFactHandle fh1 = wm.getFactHandle(p.getO1()); - LeftTuple leftTuple1 = new JoinNodeLeftTuple( fh1, sink, true ); + LeftTuple leftTuple1 = new JoinNodeLeftTuple(fh1, sink, true ); InternalFactHandle fh2 = wm.getFactHandle(p.getO2()); - LeftTuple leftTuple2 = sink.createLeftTuple( leftTuple1, new RightTupleImpl( fh2 ), sink ); + LeftTuple leftTuple2 = sink.createLeftTuple(leftTuple1, new RightTupleImpl(fh2 ), sink ); leftTuples.addInsert( leftTuple2 ); } @@ -90,16 +93,16 @@ public T delete(Object... objects) { if ( !(objects[i] instanceof Pair) ) { Object o1 = objects[i]; InternalFactHandle fh1 = wm.getFactHandle(o1); - LeftTuple leftTuple = new JoinNodeLeftTuple( fh1, sink, true ); + LeftTuple leftTuple = new JoinNodeLeftTuple(fh1, sink, true ); leftTuples.addDelete( leftTuple ); } else { Pair p = (Pair )objects[i]; InternalFactHandle fh1 = wm.getFactHandle(p.getO1()); - LeftTuple leftTuple1 = new JoinNodeLeftTuple( fh1, sink, true ); + LeftTuple leftTuple1 = new JoinNodeLeftTuple(fh1, sink, true ); InternalFactHandle fh2 = wm.getFactHandle(p.getO2()); - LeftTuple leftTuple2 = sink.createLeftTuple( leftTuple1, new RightTupleImpl( fh2 ), sink ); + LeftTuple leftTuple2 = sink.createLeftTuple(leftTuple1, new RightTupleImpl(fh2 ), sink ); leftTuples.addDelete( leftTuple2 ); } @@ -118,16 +121,16 @@ public T update(Object... objects) { if ( !(objects[i] instanceof Pair) ) { Object o1 = objects[i]; InternalFactHandle fh1 = wm.getFactHandle(o1); - LeftTuple leftTuple = new JoinNodeLeftTuple( fh1, sink, true ); + LeftTuple leftTuple = new JoinNodeLeftTuple(fh1, sink, true ); leftTuples.addUpdate( leftTuple ); } else { Pair p = (Pair )objects[i]; InternalFactHandle fh1 = wm.getFactHandle(p.getO1()); - LeftTuple leftTuple1 = new JoinNodeLeftTuple( fh1, sink, true ); + LeftTuple leftTuple1 = new JoinNodeLeftTuple(fh1, sink, true ); InternalFactHandle fh2 = wm.getFactHandle(p.getO2()); - LeftTuple leftTuple2 = sink.createLeftTuple( leftTuple1, new RightTupleImpl( fh2 ), sink ); + LeftTuple leftTuple2 = sink.createLeftTuple(leftTuple1, new RightTupleImpl(fh2 ), sink ); leftTuples.addUpdate( leftTuple2 ); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/BetaNodeBuilder.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/BetaNodeBuilder.java index e4ed1026b4d..bb5a51a6658 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/BetaNodeBuilder.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/BetaNodeBuilder.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.drools.core.reteoo.LeftTupleSource; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.BetaConstraints; import org.drools.core.common.EmptyBetaConstraints; import org.drools.core.common.SingleBetaConstraints; @@ -26,15 +29,15 @@ import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ExistsNode; import org.drools.core.reteoo.JoinNode; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.builder.BuildContext; import org.drools.core.reteoo.builder.NodeFactory; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.ReadAccessor; public class BetaNodeBuilder { BuildContext buildContext; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/C.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/C.java index 82475059b14..aa5fb26edc0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/C.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/C.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/E.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/E.java index 79b4b360478..55e403e3c7b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/E.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/E.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/F.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/F.java index cecbce30890..b720dc77976 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/F.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/F.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/FakeBetaNodeFieldConstraint.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/FakeBetaNodeFieldConstraint.java index 7ecd1c8080e..9918a20452d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/FakeBetaNodeFieldConstraint.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/FakeBetaNodeFieldConstraint.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.integrationtests.phreak; @@ -21,14 +24,15 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; +import org.drools.base.reteoo.BaseTuple; import org.drools.drl.parser.impl.Operator; -import org.drools.core.common.InternalFactHandle; -import org.drools.core.rule.ContextEntry; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; -import org.drools.core.rule.constraint.Constraint; +import org.drools.base.rule.ContextEntry; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.rule.constraint.Constraint; import org.drools.core.reteoo.Tuple; import org.drools.util.ClassUtils; +import org.kie.api.runtime.rule.FactHandle; public class FakeBetaNodeFieldConstraint implements BetaNodeFieldConstraint { @@ -84,23 +88,23 @@ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundExcept } @Override - public boolean isAllowedCachedLeft(ContextEntry context, InternalFactHandle handle) { + public boolean isAllowedCachedLeft(ContextEntry context, FactHandle handle) { Object fact = handle.getObject(); - Tuple tuple = ((FakeContextEntry) context).getTuple(); + BaseTuple tuple = ((FakeContextEntry) context).getTuple(); return evaluate(fact, tuple, context); } @Override - public boolean isAllowedCachedRight(Tuple tuple, ContextEntry context) { + public boolean isAllowedCachedRight(BaseTuple tuple, ContextEntry context) { Object fact = ((FakeContextEntry) context).getHandle().getObject(); - return evaluate(fact, tuple, context); + return evaluate(fact, (Tuple) tuple, context); } - private boolean evaluate(Object fact, Tuple tuple, ContextEntry context) { + private boolean evaluate(Object fact, BaseTuple tuple, ContextEntry context) { try { Object value = accessor.invoke(fact); Object declObj = tuple.getObject(declaration); - Object declValue = declaration.getValue(((FakeContextEntry) context).getReteEvaluator(), declObj); + Object declValue = declaration.getValue(((FakeContextEntry) context).getValueResolver(), declObj); if (operator == Operator.BuiltInOperator.EQUAL.getOperator()) { return value.equals(declValue); } else if (operator == Operator.BuiltInOperator.NOT_EQUAL.getOperator()) { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/FakeContextEntry.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/FakeContextEntry.java index 3d74faa2aee..aa000ff1432 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/FakeContextEntry.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/FakeContextEntry.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.mvel.integrationtests.phreak; @@ -19,25 +22,26 @@ import java.io.ObjectInput; import java.io.ObjectOutput; +import org.drools.base.base.ValueResolver; import org.drools.core.common.InternalFactHandle; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.ContextEntry; -import org.drools.core.reteoo.Tuple; +import org.drools.base.reteoo.BaseTuple; +import org.drools.base.rule.ContextEntry; +import org.kie.api.runtime.rule.FactHandle; public class FakeContextEntry implements ContextEntry { - private Tuple tuple; - private InternalFactHandle handle; + private BaseTuple tuple; + private FactHandle handle; - private transient ReteEvaluator reteEvaluator; + private transient ValueResolver valueResolver; - public void updateFromTuple(ReteEvaluator reteEvaluator, Tuple tuple) { + public void updateFromTuple(ValueResolver valueResolver, BaseTuple tuple) { this.tuple = tuple; - this.reteEvaluator = reteEvaluator; + this.valueResolver = valueResolver; } - public void updateFromFactHandle(ReteEvaluator reteEvaluator, InternalFactHandle handle) { - this.reteEvaluator = reteEvaluator; + public void updateFromFactHandle(ValueResolver valueResolver, FactHandle handle) { + this.valueResolver = valueResolver; this.handle = handle; } @@ -46,7 +50,7 @@ public void resetTuple() { } public void resetFactHandle() { - reteEvaluator = null; + valueResolver = null; handle = null; } @@ -56,15 +60,15 @@ public void writeExternal(ObjectOutput out) throws IOException { } public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { - tuple = (Tuple) in.readObject(); + tuple = (BaseTuple) in.readObject(); handle = (InternalFactHandle) in.readObject(); } - public Tuple getTuple() { + public BaseTuple getTuple() { return tuple; } - public InternalFactHandle getHandle() { + public FactHandle getHandle() { return handle; } @@ -76,7 +80,7 @@ public void setNext(final ContextEntry entry) { throw new UnsupportedOperationException(); } - public ReteEvaluator getReteEvaluator() { - return reteEvaluator; + public ValueResolver getValueResolver() { + return this.valueResolver; } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/LeftBuilder.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/LeftBuilder.java index b6af7a81708..2a7d2186797 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/LeftBuilder.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/LeftBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.drools.core.common.InternalFactHandle; @@ -41,7 +44,7 @@ public LeftBuilder(Scenario scenario) { public LeftBuilder insert(Object... objects) { for ( Object object : objects ) { InternalFactHandle fh = (InternalFactHandle) wm.insert( object ); - LeftTuple leftTuple = sink.createLeftTuple( fh, true ); + LeftTuple leftTuple = sink.createLeftTuple(fh, true ); leftTuple.setPropagationContext( new PhreakPropagationContext() ); leftTuples.addInsert( leftTuple ); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/LeftMemory.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/LeftMemory.java index 9f0cc6f5fb4..7a8f3e852f1 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/LeftMemory.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/LeftMemory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.drools.core.common.InternalFactHandle; @@ -49,7 +52,7 @@ public List getLeftTuples(Object... objects) { List list = new ArrayList(); for ( Object object : objects ) { InternalFactHandle fh = (InternalFactHandle) wm.insert( object ); - LeftTuple expectedLeftTuple = node.createLeftTuple( fh, true ); + LeftTuple expectedLeftTuple = node.createLeftTuple(fh, true ); expectedLeftTuple.setPropagationContext( new PhreakPropagationContext() ); list.add( expectedLeftTuple ); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/MVELConstraintTestUtil.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/MVELConstraintTestUtil.java index 5f93cd10cd5..b893989fb01 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/MVELConstraintTestUtil.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/MVELConstraintTestUtil.java @@ -1,27 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests.phreak; import java.util.ArrayList; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ValueResolver; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.test.model.Cheese; -import org.drools.core.util.index.IndexUtil; +import org.drools.base.util.index.ConstraintTypeOperator; import org.drools.mvel.MVELConstraint; import org.mvel2.MVEL; import org.mvel2.ParserConfiguration; @@ -44,39 +48,39 @@ public MVELConstraintTestUtil(String expression, Declaration declaration, ReadAc } public MVELConstraintTestUtil(String expression, String operator, Declaration declaration, ReadAccessor extractor) { - this(expression, IndexUtil.ConstraintType.decode(operator), declaration, extractor); + this(expression, ConstraintTypeOperator.decode(operator), declaration, extractor); } - public MVELConstraintTestUtil(String expression, IndexUtil.ConstraintType constraintType, Declaration declaration, ReadAccessor extractor) { + public MVELConstraintTestUtil(String expression, ConstraintTypeOperator constraintType, Declaration declaration, ReadAccessor extractor) { super(new ArrayList(), expression, new Declaration[] { declaration }, null, null, constraintType, declaration, extractor, expression.contains(":=")); } @Override - protected ParserConfiguration getParserConfiguration(ReteEvaluator reteEvaluator) { + protected ParserConfiguration getParserConfiguration(ValueResolver valueResolver) { ParserConfiguration parserConfiguration = new ParserConfiguration(); parserConfiguration.addImport(Cheese.class); return parserConfiguration; } - private static IndexUtil.ConstraintType findConstraintTypeForExpression(String expression) { + private static ConstraintTypeOperator findConstraintTypeForExpression(String expression) { if (expression.contains("==")) { - return IndexUtil.ConstraintType.EQUAL; + return ConstraintTypeOperator.EQUAL; } if (expression.contains("!=")) { - return IndexUtil.ConstraintType.NOT_EQUAL; + return ConstraintTypeOperator.NOT_EQUAL; } if (expression.contains(">")) { - return IndexUtil.ConstraintType.GREATER_THAN; + return ConstraintTypeOperator.GREATER_THAN; } if (expression.contains(">=")) { - return IndexUtil.ConstraintType.GREATER_OR_EQUAL; + return ConstraintTypeOperator.GREATER_OR_EQUAL; } if (expression.contains("<")) { - return IndexUtil.ConstraintType.LESS_THAN; + return ConstraintTypeOperator.LESS_THAN; } if (expression.contains("<=")) { - return IndexUtil.ConstraintType.LESS_OR_EQUAL; + return ConstraintTypeOperator.LESS_OR_EQUAL; } - return IndexUtil.ConstraintType.UNKNOWN; + return ConstraintTypeOperator.UNKNOWN; } } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Pair.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Pair.java index 23c5b222d49..803a69cbfa0 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Pair.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Pair.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; public class Pair { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakJoinNodeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakJoinNodeTest.java index 259654fdfc8..02b29b7a554 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakJoinNodeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakJoinNodeTest.java @@ -1,27 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import java.util.Collections; -import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.impl.KnowledgeBaseImpl; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.phreak.PhreakJoinNode; @@ -30,7 +32,7 @@ import org.drools.core.reteoo.JoinNode; import org.drools.core.reteoo.LeftTupleNode; import org.drools.core.reteoo.LeftTupleSink; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.SegmentMemory; import org.drools.core.reteoo.SegmentMemory.BetaMemoryPrototype; import org.drools.core.reteoo.SegmentMemory.MemoryPrototype; @@ -234,8 +236,8 @@ public static BuildContext createContext() { CompositeBaseConfiguration conf = (CompositeBaseConfiguration) RuleBaseFactory.newKnowledgeBaseConfiguration(); - KnowledgeBaseImpl rbase = new KnowledgeBaseImpl( "ID", - conf ); + KnowledgeBaseImpl rbase = new KnowledgeBaseImpl("ID", + conf ); BuildContext buildContext = new BuildContext( rbase, Collections.emptyList() ); RuleImpl rule = new RuleImpl( "rule1").setPackage( "org.pkg1" ); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakLiaNodeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakLiaNodeTest.java index 89e69447870..cce59619322 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakLiaNodeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakLiaNodeTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakNotNodeTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakNotNodeTest.java index 8704e6284f3..f70b926267c 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakNotNodeTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/PhreakNotNodeTest.java @@ -1,26 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import java.util.Collections; -import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.impl.KnowledgeBaseImpl; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.phreak.PhreakNotNode; @@ -29,7 +31,7 @@ import org.drools.core.reteoo.JoinNode; import org.drools.core.reteoo.LeftTupleNode; import org.drools.core.reteoo.LeftTupleSink; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.NotNode; import org.drools.core.reteoo.SegmentMemory; import org.drools.core.reteoo.SegmentMemory.BetaMemoryPrototype; @@ -158,8 +160,8 @@ public BuildContext createContext() { CompositeBaseConfiguration conf = (CompositeBaseConfiguration) RuleBaseFactory.newKnowledgeBaseConfiguration(); - KnowledgeBaseImpl rbase = new KnowledgeBaseImpl( "ID", - conf ); + KnowledgeBaseImpl rbase = new KnowledgeBaseImpl("ID", + conf ); BuildContext buildContext = new BuildContext( rbase, Collections.emptyList() ); RuleImpl rule = new RuleImpl( "rule1").setPackage( "org.pkg1" ); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RemoveRuleTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RemoveRuleTest.java index 9d557b37d81..5bdd9a4022e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RemoveRuleTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RemoveRuleTest.java @@ -1,29 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.NodeMemories; -import org.drools.core.impl.RuleBase; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.BetaMemory; import org.drools.core.reteoo.EvalConditionNode; import org.drools.core.reteoo.JoinNode; @@ -45,6 +44,10 @@ import org.kie.api.definition.KiePackage; import org.kie.api.runtime.rule.Match; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + import static org.assertj.core.api.Assertions.assertThat; import static org.drools.core.phreak.PhreakBuilder.isEagerSegmentCreation; @@ -99,7 +102,7 @@ public void testPopulatedSingleRuleNoSharing() throws Exception { assertThat(eMem.getRightTupleMemory().size()).isEqualTo(1); NodeMemories nms = wm.getNodeMemories(); - assertThat(countNodeMemories(nms)).isEqualTo(12); + assertThat(countNodeMemories(nms)).isEqualTo(6); assertThat(sm.getStagedLeftTuples().getInsertFirst()).isNull(); assertThat(list.size()).isEqualTo(1); @@ -108,7 +111,7 @@ public void testPopulatedSingleRuleNoSharing() throws Exception { kbase.removeRule("org.kie", "r1"); - assertThat(countNodeMemories(nms)).isEqualTo(6); // still has OTN + assertThat(countNodeMemories(nms)).isEqualTo(0); } @Test @@ -169,7 +172,7 @@ public void testPopulatedRuleMidwayShare() throws Exception { wm.insert(new E(1)); wm.fireAllRules(); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(7); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(6); kbase1.addPackages( buildKnowledgePackage("r2", " a : A() B() C(2;) X() E()\n") ); wm.fireAllRules(); @@ -198,7 +201,7 @@ public void testPopulatedRuleMidwayShare() throws Exception { kbase1.removeRule("org.kie", "r2"); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(10); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(6); assertThat(sm.getFirst()).isNull(); @@ -229,7 +232,7 @@ public void testPopulatedRuleWithEvals() throws Exception { wm.insert(new E(1)); wm.fireAllRules(); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(7); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(6); kbase1.addPackages( buildKnowledgePackage("r2", " a:A() B() eval(1==1) eval(1==1) C(2;) \n") ); wm.fireAllRules(); @@ -261,7 +264,7 @@ public void testPopulatedRuleWithEvals() throws Exception { kbase1.removeRule("org.kie", "r2"); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(8); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(6); assertThat(sm.getFirst()).isNull(); @@ -292,11 +295,11 @@ public void testPopulatedSharedLiaNode() throws Exception { wm.fireAllRules(); assertThat(list.size()).isEqualTo(3); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(7); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(6); kbase1.addPackages( buildKnowledgePackage("r2", " a : A() B(2;) C() X() E()\n") ); wm.fireAllRules(); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(17); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(11); ObjectTypeNode aotn = getObjectTypeNode(kbase1, A.class ); LeftInputAdapterNode liaNode = (LeftInputAdapterNode) aotn.getObjectSinkPropagator().getSinks()[0]; @@ -325,10 +328,10 @@ public void testPopulatedSharedLiaNode() throws Exception { wm.fireAllRules(); assertThat(list.size()).isEqualTo(6); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(17); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(11); kbase1.removeRule("org.kie", "r2"); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(12); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(6); assertThat(b1Mem.getSegmentMemory()).isSameAs(sm); assertThat(c1Mem.getSegmentMemory()).isSameAs(sm); @@ -412,11 +415,11 @@ public void testPopulatedSharedToRtn() throws Exception { wm.fireAllRules(); assertThat(list.size()).isEqualTo(2); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(7); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(6); kbase1.addPackages( buildKnowledgePackage("r2", " A() B() C() X() E()\n") ); wm.fireAllRules(); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(8); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(7); assertThat(list.size()).isEqualTo(4); RuleTerminalNode rtn1 = getRtn("org.kie.r1", kbase1); @@ -442,7 +445,7 @@ public void testPopulatedSharedToRtn() throws Exception { pmem1 = wm.getNodeMemory(rtn1); kbase1.removeRule("org.kie", "r2"); System.out.println( "---" ); - assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(7); + assertThat(countNodeMemories(wm.getNodeMemories())).isEqualTo(6); assertThat(sm.getFirst()).isNull(); pmem1 = wm.getNodeMemory(rtn1); @@ -460,7 +463,7 @@ public void testPopulatedSharedToRtn() throws Exception { @Test public void testPopulatedMultipleSharesRemoveFirst() throws Exception { - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) X() E()\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) X() E()\n"); InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession()); List list = new ArrayList(); wm.setGlobal("list", list); @@ -497,7 +500,7 @@ public void testPopulatedMultipleSharesRemoveFirst() throws Exception { @Test public void testPopulatedMultipleSharesRemoveMid() throws Exception { - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) X() E()\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) X() E()\n"); InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession()); List list = new ArrayList(); wm.setGlobal("list", list); @@ -534,7 +537,7 @@ public void testPopulatedMultipleSharesRemoveMid() throws Exception { @Test public void testPopulatedMultipleSharesRemoveLast() throws Exception { - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) X() E()\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) X() E()\n"); InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession()); List list = new ArrayList(); wm.setGlobal("list", list); @@ -641,7 +644,7 @@ private static void update10Facts(InternalWorkingMemory wm, InternalFactHandle f @Test public void testPathMemorySizeAfterSegmentMerge() throws Exception { // The two A(1;) are not actually shared, as r2 creates an AlphaTerminalNode - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) B(1;)\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) B(1;)\n"); kbase1.addPackages( buildKnowledgePackage("r2", " A(1;)\n") ); InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession()); List list = new ArrayList(); @@ -664,7 +667,7 @@ public void testPathMemorySizeAfterSegmentMerge() throws Exception { @Test public void testPathMemorySizeAfterSegmentMergeNonInitialized() throws Exception { - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) B(1;)\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) B(1;)\n"); kbase1.addPackages( buildKnowledgePackage("r2", " A(1;)\n") ); InternalWorkingMemory wm = ((InternalWorkingMemory)kbase1.newKieSession()); @@ -681,7 +684,7 @@ public void testPathMemorySizeAfterSegmentMergeNonInitialized() throws Exception @Test public void testSplitTwoBeforeCreatedSegment() throws Exception { - InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n" ); + InternalKnowledgeBase kbase1 = buildKnowledgeBase("r1", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n"); kbase1.addPackages( buildKnowledgePackage("r2", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;) E(1;) E(2;)\n") ); kbase1.addPackages( buildKnowledgePackage("r3", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) X(1;) X(2;)\n") ); kbase1.addPackages( buildKnowledgePackage("r4", " A(1;) A(2;) B(1;) B(2;) C(1;) C(2;) \n") ); @@ -775,7 +778,7 @@ private Collection buildKnowledgePackage(String ruleName, String rul } public ObjectTypeNode getObjectTypeNode(KieBase kbase, Class nodeClass) { - List nodes = ((RuleBase)kbase).getRete().getObjectTypeNodes(); + List nodes = ((InternalRuleBase)kbase).getRete().getObjectTypeNodes(); for ( ObjectTypeNode n : nodes ) { if ( ((ClassObjectType)n.getObjectType()).getClassType() == nodeClass ) { return n; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/ReteTesterHelper.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/ReteTesterHelper.java index 49a34900364..5d11efe57b5 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/ReteTesterHelper.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/ReteTesterHelper.java @@ -1,25 +1,27 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.phreak; import org.drools.core.base.ClassFieldAccessorCache; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.constraint.BetaNodeFieldConstraint; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.constraint.BetaNodeFieldConstraint; import org.drools.mvel.MVELKnowledgePackageImpl; public class ReteTesterHelper { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RightBuilder.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RightBuilder.java index 3d7404dbade..bb538c63783 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RightBuilder.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RightBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.drools.core.common.InternalFactHandle; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RightMemory.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RightMemory.java index c11704f33c4..aee0241f898 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RightMemory.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/RightMemory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.drools.core.common.InternalFactHandle; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Scenario.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Scenario.java index 6288606ca1b..bf727564f44 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Scenario.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Scenario.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.drools.core.common.InternalWorkingMemory; @@ -329,7 +332,7 @@ public void equalsLeftMemory(List leftTuples) { for ( LeftTuple expectedLeftTuple : leftTuples ) { FastIterator it = betaNode.getLeftIterator( ltm ); Tuple actualLeftTuple = null; - for ( actualLeftTuple = BetaNode.getFirstTuple( ltm, it ); actualLeftTuple != null; actualLeftTuple = (LeftTuple) it.next( actualLeftTuple ) ) { + for ( actualLeftTuple = BetaNode.getFirstTuple( ltm, it ); actualLeftTuple != null; actualLeftTuple = (LeftTuple) it.next(actualLeftTuple ) ) { if ( expectedLeftTuple.equals( actualLeftTuple ) ) { length++; break; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/ScenarioTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/ScenarioTest.java index 978c0327f89..5bdc25cf8ef 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/ScenarioTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/ScenarioTest.java @@ -1,26 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import java.util.Collections; -import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.impl.KnowledgeBaseImpl; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.phreak.PhreakJoinNode; @@ -29,7 +31,7 @@ import org.drools.core.reteoo.JoinNode; import org.drools.core.reteoo.LeftTupleNode; import org.drools.core.reteoo.LeftTupleSink; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.SegmentMemory; import org.drools.core.reteoo.SegmentMemory.BetaMemoryPrototype; import org.drools.core.reteoo.SegmentMemory.MemoryPrototype; @@ -753,8 +755,8 @@ public BuildContext createContext() { CompositeBaseConfiguration conf = (CompositeBaseConfiguration) RuleBaseFactory.newKnowledgeBaseConfiguration(); - KnowledgeBaseImpl rbase = new KnowledgeBaseImpl( "ID", - conf ); + KnowledgeBaseImpl rbase = new KnowledgeBaseImpl("ID", + conf ); BuildContext buildContext = new BuildContext( rbase, Collections.emptyList() ); RuleImpl rule = new RuleImpl( "rule1").setPackage( "org.pkg1" ); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/SegmentPropagationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/SegmentPropagationTest.java index a12c916ef5b..3f32380a537 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/SegmentPropagationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/SegmentPropagationTest.java @@ -1,26 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import java.util.Collections; -import org.drools.core.RuleBaseConfiguration; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.impl.KnowledgeBaseImpl; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.phreak.PhreakJoinNode; @@ -29,7 +31,7 @@ import org.drools.core.reteoo.JoinNode; import org.drools.core.reteoo.LeftTupleNode; import org.drools.core.reteoo.LeftTupleSink; -import org.drools.core.reteoo.NodeTypeEnums; +import org.drools.base.reteoo.NodeTypeEnums; import org.drools.core.reteoo.SegmentMemory; import org.drools.core.reteoo.SegmentMemory.BetaMemoryPrototype; import org.drools.core.reteoo.SegmentMemory.MemoryPrototype; @@ -223,8 +225,8 @@ public BuildContext createContext() { CompositeBaseConfiguration conf = (CompositeBaseConfiguration) RuleBaseFactory.newKnowledgeBaseConfiguration(); - KnowledgeBaseImpl rbase = new KnowledgeBaseImpl( "ID", - conf ); + KnowledgeBaseImpl rbase = new KnowledgeBaseImpl("ID", + conf ); BuildContext buildContext = new BuildContext( rbase, Collections.emptyList() ); RuleImpl rule = new RuleImpl( "rule1").setPackage( "org.pkg1" ); diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/StagedBuilder.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/StagedBuilder.java index 9ff98233460..0945ddddd4a 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/StagedBuilder.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/StagedBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.drools.core.common.TupleSetsImpl; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/X.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/X.java index a9a92649412..3bd0e0a0b00 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/X.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/X.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Y.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Y.java index fcf263b9e97..87db12544ef 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Y.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/phreak/Y.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.phreak; import org.kie.api.definition.type.Position; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/sequential/SequentialTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/sequential/SequentialTest.java index 1bb2bcd2247..29ed3bab67f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/sequential/SequentialTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/sequential/SequentialTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.sequential; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/AgendaFilterTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/AgendaFilterTest.java index efc90d5e8af..1fc176224d6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/AgendaFilterTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/AgendaFilterTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/BasicUpdateTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/BasicUpdateTest.java index b8f29ab2fdd..91cdaf5a054 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/BasicUpdateTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/BasicUpdateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/CrossProductTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/CrossProductTest.java index 4cc15e3a0e2..15e88abe037 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/CrossProductTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/CrossProductTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/DeleteTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/DeleteTest.java index 2f27800a859..234bdce1109 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/DeleteTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/DeleteTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/EntryPointTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/EntryPointTest.java index f67d5d4bc49..af86ab9b30b 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/EntryPointTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/EntryPointTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/FieldAccessTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/FieldAccessTest.java index 9822412896e..94c80c51fbf 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/FieldAccessTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/FieldAccessTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/InsertTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/InsertTest.java index 43a0c2b84bf..e0a1c28829f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/InsertTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/InsertTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/LocaleTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/LocaleTest.java index 5e069b700ac..f61405c2ccd 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/LocaleTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/LocaleTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/RuleRuntimeEventTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/RuleRuntimeEventTest.java index 8d6631281e0..d5afec8fdc4 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/RuleRuntimeEventTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/RuleRuntimeEventTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/SessionsPoolTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/SessionsPoolTest.java index a43424b0343..5bc42bd12bc 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/SessionsPoolTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/SessionsPoolTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/StatefulSessionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/StatefulSessionTest.java index 68f85d16547..2d1ecf5b3c8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/StatefulSessionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/StatefulSessionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/StatelessSessionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/StatelessSessionTest.java index d4e956ff036..c8c942fd178 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/StatelessSessionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/StatelessSessionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/TypeCoercionTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/TypeCoercionTest.java index 98fdde02c00..8d6ea9b9ca6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/TypeCoercionTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/TypeCoercionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.util.ArrayList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/UpdateTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/UpdateTest.java index 81ddbea44b0..dbe65bd7041 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/UpdateTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/session/UpdateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.session; import java.io.IOException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Edge.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Edge.java index dcec41ac74d..6afc5d08e06 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Edge.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Edge.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.waltz; public class Edge { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Junction.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Junction.java index 99752522c5f..11aaf90a2fe 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Junction.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Junction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.waltz; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Line.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Line.java index 20f058153f1..0cb730bfed9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Line.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Line.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.waltz; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/ReteOOWaltzTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/ReteOOWaltzTest.java index 689047d9ebd..6d3ce10de58 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/ReteOOWaltzTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/ReteOOWaltzTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.waltz; import java.util.Collection; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Stage.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Stage.java index cb4e8ef5f53..eee4dfb1620 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Stage.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Stage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.waltz; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Waltz.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Waltz.java index 80ab82e2b0d..4cbf79fe5c7 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Waltz.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/Waltz.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.integrationtests.waltz; import java.io.BufferedReader; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/WaltzMain.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/WaltzMain.java index 745196f2dfa..5807cd66bca 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/WaltzMain.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/WaltzMain.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.mvel.integrationtests.waltz; import org.drools.testcoverage.common.util.KieBaseTestConfiguration; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/WaltzUtil.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/WaltzUtil.java index 7e886686f96..a220cd2f788 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/WaltzUtil.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/integrationtests/waltz/WaltzUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.integrationtests.waltz; public class WaltzUtil { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/Cheese.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/Cheese.java index 1ee469fc37d..5fce9b58055 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/Cheese.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/Cheese.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.model; import java.beans.IntrospectionException; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/CheeseInterface.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/CheeseInterface.java index d033f3067c4..154178829f8 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/CheeseInterface.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/CheeseInterface.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.model; public interface CheeseInterface { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/MockObjectSource.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/MockObjectSource.java index 9ccc5e8aa2f..0c8b3b11ee9 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/MockObjectSource.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/model/MockObjectSource.java @@ -1,34 +1,36 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.mvel.model; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - +import org.drools.base.base.ObjectType; +import org.drools.base.common.RuleBasePartitionId; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; -import org.drools.core.common.RuleBasePartitionId; +import org.drools.core.common.PropagationContext; import org.drools.core.reteoo.ObjectSink; import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.base.ObjectType; -import org.drools.core.common.PropagationContext; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; public class MockObjectSource extends ObjectSource { private static final long serialVersionUID = 510l; @@ -43,7 +45,7 @@ public MockObjectSource() { } public MockObjectSource( final int id) { - super( id, RuleBasePartitionId.MAIN_PARTITION, false); + super( id, RuleBasePartitionId.MAIN_PARTITION ); this.facts = new ArrayList(); } diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/DeclarationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/DeclarationTest.java index 0d7eed78e03..219ff1354ca 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/DeclarationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/DeclarationTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.rule; import java.beans.IntrospectionException; @@ -20,10 +24,10 @@ import org.drools.core.base.ClassFieldAccessorCache; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.test.model.Cheese; import org.junit.Before; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/EnumSerialiationTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/EnumSerialiationTest.java index bbb09b23e61..d602cacaba6 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/EnumSerialiationTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/EnumSerialiationTest.java @@ -1,20 +1,24 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.rule; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; import org.junit.Test; import org.drools.core.integrationtests.SerializationHelper; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/GroupElementTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/GroupElementTest.java index 8d07b08ea15..e610f4a3310 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/GroupElementTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/GroupElementTest.java @@ -1,24 +1,28 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.rule; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.GroupElement; -import org.drools.core.rule.GroupElementFactory; -import org.drools.core.rule.Pattern; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.GroupElement; +import org.drools.base.rule.GroupElementFactory; +import org.drools.base.rule.Pattern; import org.drools.core.test.model.Person; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/PackageCompilationDataTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/PackageCompilationDataTest.java index 97e0f29fd47..694cc4dd997 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/PackageCompilationDataTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/PackageCompilationDataTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.rule; import java.io.ByteArrayOutputStream; @@ -21,16 +25,16 @@ import java.io.ObjectOutput; import java.security.CodeSource; -import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.base.ValueResolver; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.core.impl.KnowledgeBaseImpl; import org.drools.core.impl.RuleBaseFactory; +import org.drools.base.reteoo.BaseTuple; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.EvalCondition; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.EvalCondition; import org.drools.core.rule.JavaDialectRuntimeData; -import org.drools.core.rule.accessor.EvalExpression; -import org.drools.core.reteoo.Tuple; +import org.drools.base.rule.accessor.EvalExpression; import org.junit.Test; import org.kie.internal.conf.CompositeBaseConfiguration; @@ -39,7 +43,7 @@ public class PackageCompilationDataTest { public static class TestEvalExpression implements EvalExpression { public Object createContext() { return null; } - public boolean evaluate(Tuple t, Declaration[] d, ReteEvaluator reteEvaluator, Object context ) { + public boolean evaluate(BaseTuple t, Declaration[] d, ValueResolver valueResolver, Object context) { return false; } public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/PatternTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/PatternTest.java index 942b753ffcb..1a4538d18e8 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/PatternTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/PatternTest.java @@ -1,32 +1,36 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.rule; -import org.drools.core.base.ClassObjectType; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.facttemplates.Fact; -import org.drools.core.facttemplates.FactTemplate; -import org.drools.core.facttemplates.FactTemplateImpl; -import org.drools.core.facttemplates.FactTemplateObjectType; -import org.drools.core.facttemplates.FieldTemplate; -import org.drools.core.facttemplates.FieldTemplateImpl; +import org.drools.base.base.ClassObjectType; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.facttemplates.Fact; +import org.drools.base.facttemplates.FactTemplate; +import org.drools.base.facttemplates.FactTemplateImpl; +import org.drools.base.facttemplates.FactTemplateObjectType; +import org.drools.base.facttemplates.FieldTemplate; +import org.drools.base.facttemplates.FieldTemplateImpl; import org.drools.core.reteoo.CoreComponentFactory; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.base.ObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.base.ObjectType; import org.drools.core.test.model.Cheese; import org.junit.Test; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/RuleTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/RuleTest.java index 08b6328a201..85ae6bb564d 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/RuleTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/rule/RuleTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.rule; import java.util.Calendar; @@ -20,12 +24,12 @@ import org.drools.core.ClockType; import org.drools.core.SessionConfiguration; import org.drools.core.WorkingMemory; -import org.drools.core.base.EnabledBoolean; -import org.drools.core.base.SalienceInteger; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.base.EnabledBoolean; +import org.drools.base.base.SalienceInteger; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.impl.RuleBaseFactory; import org.drools.core.reteoo.RuleTerminalNode; -import org.drools.core.rule.accessor.Salience; +import org.drools.base.rule.accessor.Salience; import org.drools.core.time.impl.PseudoClockScheduler; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.mvel.expr.MVELSalienceExpression; @@ -42,14 +46,14 @@ public void testDateEffective() { final RuleImpl rule = new RuleImpl( "myrule" ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isTrue(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isTrue(); final Calendar earlier = Calendar.getInstance(); earlier.setTimeInMillis( 10 ); rule.setDateEffective( earlier ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isTrue(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isTrue(); final Calendar later = Calendar.getInstance(); later.setTimeInMillis( later.getTimeInMillis() + 100000000 ); @@ -57,7 +61,7 @@ public void testDateEffective() { assertThat(later.after(Calendar.getInstance())).isTrue(); rule.setDateEffective( later ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isFalse(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isFalse(); } @@ -67,20 +71,20 @@ public void testDateExpires() throws Exception { final RuleImpl rule = new RuleImpl( "myrule" ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isTrue(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isTrue(); final Calendar earlier = Calendar.getInstance(); earlier.setTimeInMillis( 10 ); rule.setDateExpires( earlier ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isFalse(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isFalse(); final Calendar later = Calendar.getInstance(); later.setTimeInMillis( later.getTimeInMillis() + 100000000 ); rule.setDateExpires( later ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isTrue(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isTrue(); } @@ -99,16 +103,16 @@ public void testDateEffectiveExpires() { rule.setDateEffective( past ); rule.setDateExpires( future ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isTrue(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isTrue(); rule.setDateExpires( past ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isFalse(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isFalse(); rule.setDateExpires( future ); rule.setDateEffective( future ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isFalse(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isFalse(); } @@ -118,16 +122,16 @@ public void testRuleEnabled() { final RuleImpl rule = new RuleImpl( "myrule" ); rule.setEnabled( EnabledBoolean.ENABLED_FALSE ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isFalse(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isFalse(); final Calendar past = Calendar.getInstance(); past.setTimeInMillis( 10 ); rule.setDateEffective( past ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isFalse(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isFalse(); rule.setEnabled( EnabledBoolean.ENABLED_TRUE ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isTrue(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isTrue(); } @Test @@ -141,16 +145,16 @@ public void testTimeMachine() { final RuleImpl rule = new RuleImpl( "myrule" ); rule.setEnabled( EnabledBoolean.ENABLED_TRUE ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isTrue(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isTrue(); future.setTimeInMillis( future.getTimeInMillis() + 100000000 ); rule.setDateEffective(future); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isFalse(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isFalse(); ((PseudoClockScheduler)wm.getSessionClock()).advanceTime( 1000000000000L, TimeUnit.MILLISECONDS ); - assertThat(rule.isEffective(null, new RuleTerminalNode(), wm)).isTrue(); + assertThat(rule.isEffective(null, new RuleTerminalNode().getRequiredDeclarations(), wm)).isTrue(); } @Test diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/util/RightTupleIndexHashTableTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/util/RightTupleIndexHashTableTest.java index db38e747f9d..24c3bb866a3 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/util/RightTupleIndexHashTableTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/util/RightTupleIndexHashTableTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.mvel.util; import java.lang.reflect.Field; @@ -20,19 +24,19 @@ import org.drools.core.base.ClassFieldAccessorCache; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.reteoo.JoinNodeLeftTuple; import org.drools.core.reteoo.RightTuple; import org.drools.core.reteoo.RightTupleImpl; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.core.reteoo.Tuple; import org.drools.core.test.model.Cheese; import org.drools.core.util.AbstractHashTable; -import org.drools.core.util.AbstractHashTable.FieldIndex; +import org.drools.base.util.FieldIndex; import org.drools.core.util.Entry; import org.drools.core.util.index.TupleIndexHashTable; import org.drools.core.util.index.TupleList; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/workitem/CustomWorkItemHandler.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/workitem/CustomWorkItemHandler.java index 6e88998adde..95e7b84006f 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/workitem/CustomWorkItemHandler.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/workitem/CustomWorkItemHandler.java @@ -1,15 +1,20 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ package org.drools.mvel.workitem; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/workitem/CustomWorkItemHandlerTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/workitem/CustomWorkItemHandlerTest.java index 5ce8a062784..f67b9176a17 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/workitem/CustomWorkItemHandlerTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/mvel/workitem/CustomWorkItemHandlerTest.java @@ -1,30 +1,31 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ package org.drools.mvel.workitem; import java.util.Map; import java.util.Properties; -import org.drools.core.CompositeSessionConfiguration; import org.drools.core.FlowSessionConfiguration; -import org.drools.core.SessionConfiguration; import org.drools.core.impl.EnvironmentFactory; -import org.drools.core.impl.KnowledgeBaseImpl; import org.drools.core.impl.RuleBaseFactory; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; -import org.drools.kiesession.rulebase.SessionsAwareKnowledgeBase; import org.junit.Test; import org.kie.api.KieBase; import org.kie.api.runtime.KieSession; diff --git a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/reteevaluator/ReteEvaluatorTest.java b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/reteevaluator/ReteEvaluatorTest.java index 5dc5b79bfbe..e70b6937c34 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/reteevaluator/ReteEvaluatorTest.java +++ b/drools-test-coverage/test-compiler-integration/src/test/java/org/drools/reteevaluator/ReteEvaluatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.reteevaluator; import java.util.List; @@ -74,7 +76,7 @@ private InternalKnowledgeBase getKBase(String... stringRules) { fail( messages.toString() ); } - return (InternalKnowledgeBase) ks.newKieContainer( releaseId ).getKieBase(); + return (InternalKnowledgeBase) ks.newKieContainer(releaseId).getKieBase(); } private static String getPom(ReleaseId releaseId) { diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/META-INF/kmodule.xml b/drools-test-coverage/test-compiler-integration/src/test/resources/META-INF/kmodule.xml index ef384a6d20f..ba432d56502 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/META-INF/kmodule.xml +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/META-INF/kmodule.xml @@ -1,17 +1,24 @@ + + 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. + +--> diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/logback-test.xml b/drools-test-coverage/test-compiler-integration/src/test/resources/logback-test.xml index 45a73c301ad..ce4cf145c90 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/logback-test.xml +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/logback-test.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.xml b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.xml index 0f89bdc31cd..3598ab25b0e 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.xml +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/compiler/xml/changeset/changeset1Test.xml @@ -1,3 +1,23 @@ + diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/cheese.dsl.properties b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/cheese.dsl.properties index c9515c3dd0a..0e2e3d80f30 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/cheese.dsl.properties +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/cheese.dsl.properties @@ -1,3 +1,22 @@ +# +# 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. +# + #this is an little dsl Bob\ is\ in\ {0}=Bob(location={0}) diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/dsl/template/test.dsl.properties b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/dsl/template/test.dsl.properties index b4512e711f0..891078e5408 100644 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/dsl/template/test.dsl.properties +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/dsl/template/test.dsl.properties @@ -1,3 +1,22 @@ +# +# 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. +# + This is something=Another thing [when]This is something for a condition=yeah diff --git a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/proto/StringAdaptor.java b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/groupBy.drl old mode 100644 new mode 100755 similarity index 53% rename from drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/proto/StringAdaptor.java rename to drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/groupBy.drl index 50ab65f48fd..59806a1103f --- a/drools-reliability/drools-reliability-infinispan/src/test/java/org/drools/reliability/infinispan/proto/StringAdaptor.java +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/lang/groupBy.drl @@ -3,7 +3,7 @@ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. - * + * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software @@ -11,25 +11,14 @@ * 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. - */ - -package org.drools.reliability.infinispan.proto; - -import org.infinispan.protostream.annotations.ProtoAdapter; -import org.infinispan.protostream.annotations.ProtoFactory; -import org.infinispan.protostream.annotations.ProtoField; -import org.test.domain.Person; - -@ProtoAdapter(String.class) -public class StringAdaptor { - - @ProtoFactory - String create(String value) { - return new String(value); - } +*/ - @ProtoField(1) - String getvalue(String value) { - return value; - } -} +rule "GroupByParserTest" +when + groupby( $p: Person ( $age : age < 30 ); // SOURCE_PATTERN + $initial : $p.getName().substring(0, 1); // GROUPING_FUNCTION + $sumOfAges : sum($age), // 2 ACC_FUNCTIONS, one summing the ages of the persons in the group + $countOfPersons : count(); // and the other simply counting them + $sumOfAges > 10 ) // CONSTRAINT filtering away groups +then +end \ No newline at end of file diff --git a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/util/debug/customreports.mvel b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/util/debug/customreports.mvel index e6b3a61afba..49e44621b19 100755 --- a/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/util/debug/customreports.mvel +++ b/drools-test-coverage/test-compiler-integration/src/test/resources/org/drools/mvel/compiler/util/debug/customreports.mvel @@ -43,7 +43,6 @@ for( int j = 0; j < 10 && it.hasNext() ; j++ ) { ============== Nodes Info ================== @foreach{node : session.nodeInfos}Node: @{node.node} - @if{node.memoryEnabled == "true"}Memory: @if{node.factMemorySize!="-1"}facts: @{node.factMemorySize} @end{}@if{node.tupleMemorySize!="-1"}tuples: @{node.tupleMemorySize} @end{}@if{node.createdFactHandles!="-1"}created handles: @{node.createdFactHandles}@end{}@if{node.actionQueueSize!="-1"}action queue: @{node.actionQueueSize}@end{}@else{}Node memory disabled@end{} @if{node.sinkList.empty == "false"} Connects to nodes: @foreach{child : node.sinkList}@{child} @end{} diff --git a/drools-test-coverage/test-integration-nomvel/pom.xml b/drools-test-coverage/test-integration-nomvel/pom.xml index 7d9f51e8a07..5ff7b47f21a 100644 --- a/drools-test-coverage/test-integration-nomvel/pom.xml +++ b/drools-test-coverage/test-integration-nomvel/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> drools-test-coverage-parent org.drools.testcoverage - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/TestUtil.java b/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/TestUtil.java index 2e8633e0daf..5121be49911 100644 --- a/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/TestUtil.java +++ b/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/TestUtil.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.integrationtests.nomvel; import java.util.List; diff --git a/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/TimerTest.java b/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/TimerTest.java index 3904bbe0de7..f31c25f1bd7 100644 --- a/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/TimerTest.java +++ b/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/TimerTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.integrationtests.nomvel; import java.util.ArrayList; diff --git a/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/VerifyTest.java b/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/VerifyTest.java index b0b3768b479..e41ad34bec3 100644 --- a/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/VerifyTest.java +++ b/drools-test-coverage/test-integration-nomvel/src/test/java/org/drools/compiler/integrationtests/nomvel/VerifyTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2022. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.integrationtests.nomvel; import org.drools.testcoverage.common.model.Person; diff --git a/drools-test-coverage/test-integration-nomvel/src/test/resources/logback-test.xml b/drools-test-coverage/test-integration-nomvel/src/test/resources/logback-test.xml index 1dd7df5ae4f..0d738d46d3e 100644 --- a/drools-test-coverage/test-integration-nomvel/src/test/resources/logback-test.xml +++ b/drools-test-coverage/test-integration-nomvel/src/test/resources/logback-test.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/drools-test-coverage/test-integration-notms/pom.xml b/drools-test-coverage/test-integration-notms/pom.xml index a14aebcea2c..20bbff6bd2f 100644 --- a/drools-test-coverage/test-integration-notms/pom.xml +++ b/drools-test-coverage/test-integration-notms/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> drools-test-coverage-parent org.drools.testcoverage - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-test-coverage/test-integration-notms/src/test/java/org/drools/compiler/integrationtests/notms/NoTmsTest.java b/drools-test-coverage/test-integration-notms/src/test/java/org/drools/compiler/integrationtests/notms/NoTmsTest.java index 3df0c37bfcf..097a5779c4d 100644 --- a/drools-test-coverage/test-integration-notms/src/test/java/org/drools/compiler/integrationtests/notms/NoTmsTest.java +++ b/drools-test-coverage/test-integration-notms/src/test/java/org/drools/compiler/integrationtests/notms/NoTmsTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.compiler.integrationtests.notms; import java.util.Collection; diff --git a/drools-test-coverage/test-integration-notms/src/test/resources/logback-test.xml b/drools-test-coverage/test-integration-notms/src/test/resources/logback-test.xml index 45a73c301ad..ce4cf145c90 100644 --- a/drools-test-coverage/test-integration-notms/src/test/resources/logback-test.xml +++ b/drools-test-coverage/test-integration-notms/src/test/resources/logback-test.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/drools-test-coverage/test-integration-noxml/pom.xml b/drools-test-coverage/test-integration-noxml/pom.xml index 90f39690531..217e09e7cca 100644 --- a/drools-test-coverage/test-integration-noxml/pom.xml +++ b/drools-test-coverage/test-integration-noxml/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> drools-test-coverage-parent org.drools.testcoverage - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-test-coverage/test-integration-noxml/src/test/java/org/drools/compiler/integrationtests/noxml/CommandTest.java b/drools-test-coverage/test-integration-noxml/src/test/java/org/drools/compiler/integrationtests/noxml/CommandTest.java index fc91c18fabc..07e8a754d38 100644 --- a/drools-test-coverage/test-integration-noxml/src/test/java/org/drools/compiler/integrationtests/noxml/CommandTest.java +++ b/drools-test-coverage/test-integration-noxml/src/test/java/org/drools/compiler/integrationtests/noxml/CommandTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.compiler.integrationtests.noxml; import java.util.ArrayList; diff --git a/drools-test-coverage/test-integration-noxml/src/test/java/org/drools/compiler/integrationtests/noxml/NoXmlTest.java b/drools-test-coverage/test-integration-noxml/src/test/java/org/drools/compiler/integrationtests/noxml/NoXmlTest.java index fd1e1004624..3a7a8145c6d 100644 --- a/drools-test-coverage/test-integration-noxml/src/test/java/org/drools/compiler/integrationtests/noxml/NoXmlTest.java +++ b/drools-test-coverage/test-integration-noxml/src/test/java/org/drools/compiler/integrationtests/noxml/NoXmlTest.java @@ -1,17 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ package org.drools.compiler.integrationtests.noxml; import org.drools.model.codegen.ExecutableModelProject; diff --git a/drools-test-coverage/test-integration-noxml/src/test/resources/logback-test.xml b/drools-test-coverage/test-integration-noxml/src/test/resources/logback-test.xml index 45a73c301ad..ce4cf145c90 100644 --- a/drools-test-coverage/test-integration-noxml/src/test/resources/logback-test.xml +++ b/drools-test-coverage/test-integration-noxml/src/test/resources/logback-test.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/drools-test-coverage/test-integration-ruleunits/pom.xml b/drools-test-coverage/test-integration-ruleunits/pom.xml index efd9f38cb5d..8df277e6a92 100644 --- a/drools-test-coverage/test-integration-ruleunits/pom.xml +++ b/drools-test-coverage/test-integration-ruleunits/pom.xml @@ -1,12 +1,24 @@ - + drools-test-coverage-parent org.drools.testcoverage - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/pom.xml b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/pom.xml index 3aaf2726efb..3bd52db4494 100644 --- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/pom.xml +++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/pom.xml @@ -1,12 +1,24 @@ - + test-integration-ruleunits org.drools.testcoverage - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 test-integration-ruleunits-jar Drools :: Test Coverage :: Jar for Integration tests with Rule Units + + org.drools.testcoverage.integrationtests.ruleunits.testjar + + org.drools diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/src/main/java/org/drools/compiler/integrationtests/ruleunits/HelloJarUnit.java b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/src/main/java/org/drools/compiler/integrationtests/ruleunits/HelloJarUnit.java index 4cf9fc25149..4889f2a7b5e 100644 --- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/src/main/java/org/drools/compiler/integrationtests/ruleunits/HelloJarUnit.java +++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-jar/src/main/java/org/drools/compiler/integrationtests/ruleunits/HelloJarUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.compiler.integrationtests.ruleunits; diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/pom.xml b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/pom.xml index 752e10a35f3..8696d9c7b87 100644 --- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/pom.xml +++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/pom.xml @@ -1,12 +1,24 @@ - + test-integration-ruleunits org.drools.testcoverage - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -22,7 +34,7 @@ Drools :: Test Coverage :: Integration tests with Rule Units - org.drools.compiler.integrationtests + org.drools.testcoverage.integrationtests.ruleunit.tests 1 diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/RuleUnitInJarTest.java b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/RuleUnitInJarTest.java index 5a7f5b016b5..37c0af75bb8 100644 --- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/RuleUnitInJarTest.java +++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/RuleUnitInJarTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.compiler.integrationtests.ruleunits; diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/Applicant.java b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/Applicant.java index b190abf9cd5..acafc45775d 100644 --- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/Applicant.java +++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/Applicant.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.compiler.integrationtests.ruleunits.decisiontables; diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/DecisionTablesTest.java b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/DecisionTablesTest.java index 4ab98385c34..421a40ae2c5 100644 --- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/DecisionTablesTest.java +++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/DecisionTablesTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.compiler.integrationtests.ruleunits.decisiontables; diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/LoanApplication.java b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/LoanApplication.java index 04071dac812..805b1c7f301 100644 --- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/LoanApplication.java +++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/LoanApplication.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.compiler.integrationtests.ruleunits.decisiontables; diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/LoanUnit.java b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/LoanUnit.java index e76ab924947..b8b6ecb96d3 100644 --- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/LoanUnit.java +++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/java/org/drools/compiler/integrationtests/ruleunits/decisiontables/LoanUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.compiler.integrationtests.ruleunits.decisiontables; diff --git a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/resources/logback-test.xml b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/resources/logback-test.xml index 45a73c301ad..ce4cf145c90 100644 --- a/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/resources/logback-test.xml +++ b/drools-test-coverage/test-integration-ruleunits/test-integration-ruleunits-tests/src/test/resources/logback-test.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/drools-test-coverage/test-suite/pom.xml b/drools-test-coverage/test-suite/pom.xml index b51683e7b2f..e7f61605266 100644 --- a/drools-test-coverage/test-suite/pom.xml +++ b/drools-test-coverage/test-suite/pom.xml @@ -1,4 +1,24 @@ + @@ -8,7 +28,7 @@ org.drools.testcoverage drools-test-coverage-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-test-suite @@ -22,6 +42,18 @@ + + org.drools + drools-base + test + + + org.drools + drools-base + test-jar + test + + org.drools drools-core diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/model/functions/NativeImageTestUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/model/functions/NativeImageTestUtil.java index f462115e5d1..0a559c3a30f 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/model/functions/NativeImageTestUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/model/functions/NativeImageTestUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.model.functions; public class NativeImageTestUtil { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/KieSessionTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/KieSessionTest.java index 383961d36ee..403ba5ae61a 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/KieSessionTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/KieSessionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common; import org.drools.testcoverage.common.listener.TrackingAgendaEventListener; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/listener/OrderListener.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/listener/OrderListener.java index 9e5281982d0..cf932d6213a 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/listener/OrderListener.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/listener/OrderListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.listener; import org.kie.api.event.rule.AfterMatchFiredEvent; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/listener/TrackingAgendaEventListener.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/listener/TrackingAgendaEventListener.java index 1d99388b143..3b1e0226b2a 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/listener/TrackingAgendaEventListener.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/listener/TrackingAgendaEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.listener; import org.kie.api.event.rule.AfterMatchFiredEvent; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/A.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/A.java index b06ce8b7af6..a0e30de5dfe 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/A.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/A.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class A extends AbstractBean { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AFact.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AFact.java index a74e7fcd938..b22ba33e638 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AFact.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class AFact { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AbstractBean.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AbstractBean.java index 0bfb577b5aa..04b629bb11d 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AbstractBean.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AbstractBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.util.concurrent.atomic.AtomicLong; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Address.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Address.java index 1551d9b01ba..f2a901b7dfb 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Address.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Address.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AggregableFact.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AggregableFact.java index 3ef2cb459f8..94ffd0b07f1 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AggregableFact.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/AggregableFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Alarm.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Alarm.java index 62c66e88f8a..f0550cbc6f7 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Alarm.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Alarm.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Attribute.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Attribute.java index 9b89642ca98..f8d8272f56f 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Attribute.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Attribute.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/B.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/B.java index 8e9051b0b53..cfde845e36b 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/B.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/B.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class B extends AbstractBean { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/C.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/C.java index 73cb7873099..f9034d38fea 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/C.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/C.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class C extends AbstractBean { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cell.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cell.java index 4e98d5f9592..256655ce46c 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cell.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cell.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cheese.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cheese.java index 157b747df90..5ebe9ac952d 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cheese.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cheese.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cheesery.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cheesery.java index 8400e760f2a..531e7ab2e5f 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cheesery.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Cheesery.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Externalizable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ChildEventA.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ChildEventA.java index 0e72686b9dd..f7b484579b7 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ChildEventA.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ChildEventA.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.testcoverage.common.model; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ChildEventB.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ChildEventB.java index fbfec8d07dd..7b0a23bc2dd 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ChildEventB.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ChildEventB.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.testcoverage.common.model; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ClassA.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ClassA.java index 4625b0cae7d..5d7610a060d 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ClassA.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ClassA.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class ClassA implements InterfaceA { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ClassB.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ClassB.java index 9f650099003..9f369b42f57 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ClassB.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ClassB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class ClassB implements InterfaceB { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Customer.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Customer.java index 801f9a5b841..95aedd61559 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Customer.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Customer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/D.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/D.java index ad7b2be5934..33e280067e7 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/D.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/D.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class D extends AbstractBean { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/DomainObject.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/DomainObject.java index bfa6deb4b98..fc526f709f0 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/DomainObject.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/DomainObject.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class DomainObject { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/DomainObjectHolder.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/DomainObjectHolder.java index 38e4009ffd7..f47dd8d68ab 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/DomainObjectHolder.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/DomainObjectHolder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class DomainObjectHolder { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/E.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/E.java index 494d1728951..99294a6e08c 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/E.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/E.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class E extends AbstractBean { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Employee.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Employee.java index f9f4e04aa8d..33141d7d573 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Employee.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Employee.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Event.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Event.java index 65d35810396..9661be69e74 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Event.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Event.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public interface Event { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/EventA.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/EventA.java index 3d55686b33c..3ff83b290a4 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/EventA.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/EventA.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class EventA implements Event, Comparable { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/EventB.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/EventB.java index b5134109adb..118a7614f6d 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/EventB.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/EventB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class EventB extends EventA { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactA.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactA.java index f1fbacbbc37..4b099828604 100755 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactA.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactA.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactB.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactB.java index 7a0c3eb1352..9b2e2444e1a 100755 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactB.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactC.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactC.java index 1bb5a4fe295..9d0966dd02d 100755 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactC.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactC.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactWithList.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactWithList.java index 709c6ca121d..a47a621969c 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactWithList.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FactWithList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FirstClass.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FirstClass.java index d5f58e0d421..6acd2e06a85 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FirstClass.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/FirstClass.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class FirstClass { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InterfaceA.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InterfaceA.java index b9a26af4518..23a404a6503 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InterfaceA.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InterfaceA.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public interface InterfaceA { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InterfaceB.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InterfaceB.java index 03ced46e011..f8324c9fd44 100755 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InterfaceB.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InterfaceB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public interface InterfaceB { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InternationalAddress.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InternationalAddress.java index f532fcb3757..6b9af936782 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InternationalAddress.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/InternationalAddress.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Interval.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Interval.java index ae19ef5d15c..5b40a5cce7e 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Interval.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Interval.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class Interval { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ListHolder.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ListHolder.java index 8ccd859f70b..2248e159f6f 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ListHolder.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ListHolder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/LongAddress.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/LongAddress.java index 877c379bc18..c9f207d0156 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/LongAddress.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/LongAddress.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class LongAddress extends Address { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Message.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Message.java index fe543d58f94..61e1bd74740 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Message.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Message.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MessageEvent.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MessageEvent.java index e31a1229610..95426c0e61b 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MessageEvent.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MessageEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyComparable.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyComparable.java index 4149e355671..8377bf668c4 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyComparable.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyComparable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class MyComparable implements Comparable { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyComparableHolder.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyComparableHolder.java index 80a6cc0c7c4..618e701b82b 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyComparableHolder.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyComparableHolder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class MyComparableHolder { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyFact.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyFact.java index cf0e2d00113..3a0a5451bc8 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyFact.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/MyFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class MyFact { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Order.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Order.java index 6c40d08ff06..40d27076703 100755 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Order.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Order.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OrderEvent.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OrderEvent.java index 8fbed02358a..102c5f91311 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OrderEvent.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OrderEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.testcoverage.common.model; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OrderItem.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OrderItem.java index a920a999fb5..31e18005c14 100755 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OrderItem.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OrderItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Externalizable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OuterClass.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OuterClass.java index ea06e168b15..97ab2a8cbc8 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OuterClass.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/OuterClass.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class OuterClass { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Overloaded.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Overloaded.java index 71ffde8ad04..fe7d37a68d1 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Overloaded.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Overloaded.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ParentEvent.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ParentEvent.java index 111026e7611..a5764b772ff 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ParentEvent.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/ParentEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.testcoverage.common.model; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Person.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Person.java index 61baedcf1b0..6f9d58887b1 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Person.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; @@ -79,6 +81,13 @@ public Person(final String name, final int age, final BigDecimal salary) { this.salary = salary; } + public Person(final String name, final int age, final BigDecimal salary, String likes) { + this.name = name; + this.age = age; + this.salary = salary; + this.likes = likes; + } + public int getId() { return id; } diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/PersonWithSpecificEquals.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/PersonWithSpecificEquals.java index 811614789c5..662bfd220e2 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/PersonWithSpecificEquals.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/PersonWithSpecificEquals.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class PersonWithSpecificEquals { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Pet.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Pet.java index 8d6a15418d5..377dbd96e91 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Pet.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Pet.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Primitives.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Primitives.java index 5921b65de2f..244f614212b 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Primitives.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Primitives.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.testcoverage.common.model; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Promotion.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Promotion.java index 8bea5228100..e80d6c8f829 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Promotion.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Promotion.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Record.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Record.java index 1d3da9abd66..606ab4216a3 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Record.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Record.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.common.model; import java.util.Objects; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Result.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Result.java index 114608b8998..adc46940eb8 100755 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Result.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Result.java @@ -1,18 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sale.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sale.java index edb8fb35b44..1f08d34566b 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sale.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sale.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sample.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sample.java index a4e05c8335c..b5a27d0c242 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sample.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/SecondClass.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/SecondClass.java index 034cbe41ca6..3fccd257c7c 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/SecondClass.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/SecondClass.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public class SecondClass { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sensor.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sensor.java index e8e2525e961..d89c4265335 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sensor.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Sensor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/SimplePerson.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/SimplePerson.java index fec50e2f3d2..81d7bccb59c 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/SimplePerson.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/SimplePerson.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/State.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/State.java index 6242c636e68..0c36adcfa29 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/State.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/State.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.beans.PropertyChangeListener; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/StockTick.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/StockTick.java index a5dd8a53125..800c0d243cc 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/StockTick.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/StockTick.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/StockTickEvent.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/StockTickEvent.java index 683a7754472..3fc3d340a45 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/StockTickEvent.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/StockTickEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import org.kie.api.definition.type.Role; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Subject.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Subject.java index a37b68b4dd8..5bde374dfc1 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Subject.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/Subject.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestEnum.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestEnum.java index 104845aa924..6b79c18e335 100755 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestEnum.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestEnum.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; public enum TestEnum { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestEvent.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestEvent.java index 91dbf94c63b..6cda2916f96 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestEvent.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestParam.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestParam.java index 1b287f98539..885865f5321 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestParam.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/model/TestParam.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.model; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/DebugList.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/DebugList.java index 64ebb2fe872..9bd477b9cac 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/DebugList.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/DebugList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/EngineTestConfiguration.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/EngineTestConfiguration.java index a708bd33024..3794d679e16 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/EngineTestConfiguration.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/EngineTestConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.util; public enum EngineTestConfiguration { diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/FileUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/FileUtil.java index 923684ac032..bb4b4a265b4 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/FileUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/FileUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseModelProvider.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseModelProvider.java index 739a4fc7983..77c11e67880 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseModelProvider.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseModelProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.util.Optional; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseTestConfiguration.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseTestConfiguration.java index c84cc2711e5..cc6aef555e5 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseTestConfiguration.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseTestConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.util.Arrays; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseUtil.java index 0c671765e99..f19a54de969 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieBaseUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.util.Arrays; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionModelProvider.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionModelProvider.java index a4b56c747cd..76e586c05dc 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionModelProvider.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionModelProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import org.kie.api.builder.model.KieBaseModel; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionTestConfiguration.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionTestConfiguration.java index c7b1d730dde..4f0aeed630c 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionTestConfiguration.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionTestConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import org.drools.core.ClockType; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionUtil.java index e7d4d4aaf11..22257b637c4 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieSessionUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.util.Properties; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieUtil.java index 2a2247744f3..4cf82ef2b13 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/KieUtil.java @@ -1,31 +1,38 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.io.StringReader; import java.util.ArrayList; +import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import org.drools.compiler.kie.builder.impl.DrlProject; -import org.drools.core.base.ClassObjectType; -import org.drools.core.impl.RuleBase; +import org.drools.base.base.ClassObjectType; +import org.drools.core.common.BaseNode; +import org.drools.base.common.NetworkNode; +import org.drools.core.reteoo.EntryPointNode; +import org.drools.core.reteoo.JoinNode; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.ObjectTypeNode; import org.kie.api.KieBase; import org.kie.api.KieServices; @@ -328,10 +335,10 @@ public static Resource getResource(final String content, final String path) { } public static ObjectTypeNode getObjectTypeNode(final KieBase kbase, final Class nodeClass) { - return getObjectTypeNode((RuleBase) kbase, nodeClass); + return getObjectTypeNode((InternalRuleBase) kbase, nodeClass); } - public static ObjectTypeNode getObjectTypeNode(final RuleBase kbase, final Class nodeClass) { + public static ObjectTypeNode getObjectTypeNode(final InternalRuleBase kbase, final Class nodeClass) { final List nodes = kbase.getRete().getObjectTypeNodes(); for (final ObjectTypeNode n : nodes) { if (((ClassObjectType) n.getObjectType()).getClassType() == nodeClass) { @@ -341,6 +348,32 @@ public static ObjectTypeNode getObjectTypeNode(final RuleBase kbase, final Class return null; } + // This method returns the first JoinNode found which meets the factClass + public static JoinNode getJoinNode(final KieBase kbase, final Class factClass) { + Collection entryPointNodes = ((InternalRuleBase) kbase).getRete().getEntryPointNodes().values(); + for (EntryPointNode entryPointNode : entryPointNodes) { + JoinNode joinNode = findNode(entryPointNode, JoinNode.class); + if (((ClassObjectType)joinNode.getObjectTypeNode().getObjectType()).getClassType().equals(factClass)) { + return joinNode; + } + } + return null; + } + + private static T findNode(BaseNode node, Class nodeClass) { + if (node.getClass().equals(nodeClass)) { + return (T)node; + } else { + NetworkNode[] sinks = node.getSinks(); + for (NetworkNode sink : sinks) { + if (sink instanceof BaseNode) { + return findNode((BaseNode)sink, nodeClass); + } + } + return null; + } + } + private KieUtil() { // Creating instances of util classes should not be possible. } diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/MavenUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/MavenUtil.java index e267200e708..aef98d175be 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/MavenUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/MavenUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/PropertiesUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/PropertiesUtil.java index 20854c69400..3ad6c6e6c64 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/PropertiesUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/PropertiesUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/ResourceUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/ResourceUtil.java index 35441f3131d..9b922b9b1ba 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/ResourceUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/ResourceUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import org.drools.compiler.builder.conf.DecisionTableConfigurationImpl; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/SerializationHelper.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/SerializationHelper.java index 9c7e555f54c..ea67baba75a 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/SerializationHelper.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/SerializationHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.io.ByteArrayInputStream; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/Session.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/Session.java index ab833baeb87..b5684efc975 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/Session.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/Session.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestConstants.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestConstants.java index 669203da340..e88a25ec3cc 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestConstants.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestConstants.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; /** diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestParametersUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestParametersUtil.java index fb0826a5f7b..4056211ffcf 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestParametersUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestParametersUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestParametersUtilTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestParametersUtilTest.java index 2b281e42507..0f467c2fdf0 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestParametersUtilTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TestParametersUtilTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.common.util; import org.junit.Test; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TimeUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TimeUtil.java index 9e6d2de3ea4..4ce673fea67 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TimeUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/common/util/TimeUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.common.util; import java.util.concurrent.TimeUnit; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DecisionTableTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DecisionTableTest.java index 4aad34a0035..369338df410 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DecisionTableTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DecisionTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DeclarativeAgendaTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DeclarativeAgendaTest.java index a76a4fd2cfe..a49b4e7f995 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DeclarativeAgendaTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DeclarativeAgendaTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DuplicityTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DuplicityTest.java index 4450392a1a1..9807d06c6ea 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DuplicityTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/DuplicityTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/FactHandleTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/FactHandleTest.java index 6369ca080d5..34248d39c77 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/FactHandleTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/FactHandleTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.testcoverage.functional; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/InternalMatchGroupTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/InternalMatchGroupTest.java index 7b4e9ada979..eb8752ac038 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/InternalMatchGroupTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/InternalMatchGroupTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieContainerDefaultsTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieContainerDefaultsTest.java index 3f2e52cdbda..ac8069390d9 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieContainerDefaultsTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieContainerDefaultsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.io.IOException; @@ -189,9 +191,9 @@ public void testTwoKieSessionsOneStatelessDefault() { final StatelessKieSession firstKSession = kieContainer.newStatelessKieSession("firstKSession"); final KieSession secondKSession = kieContainer.newKieSession("secondKSession"); - try { + try { assertThat(firstKSession).isEqualTo(((InternalKieContainer) kieContainer).getStatelessKieSession()); - assertThat(secondKSession).isNotEqualTo(((InternalKieContainer) kieContainer).getStatelessKieSession()); + assertThat(secondKSession).isNotInstanceOf(StatelessKieSession.class); } finally { secondKSession.dispose(); } diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieContainerTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieContainerTest.java index 1e46462553e..04ba333d58a 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieContainerTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieContainerTest.java @@ -1,20 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - - package org.drools.testcoverage.functional; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieRepositoryTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieRepositoryTest.java index 0f8a583bab4..970bfaf245e 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieRepositoryTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/KieRepositoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.io.IOException; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/LiveQueriesBadResultTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/LiveQueriesBadResultTest.java index 89ae44908bd..8a1636bd831 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/LiveQueriesBadResultTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/LiveQueriesBadResultTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/LogicalInsertFromCollectionTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/LogicalInsertFromCollectionTest.java index c5bb23b3673..eeb15d1c0ed 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/LogicalInsertFromCollectionTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/LogicalInsertFromCollectionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/QueryBadResultTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/QueryBadResultTest.java index 3e45ff281e4..55958bf9bc1 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/QueryBadResultTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/QueryBadResultTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/ResourcesTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/ResourcesTest.java index ef3b3e4a1a0..cf8603c11e4 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/ResourcesTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/ResourcesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.io.StringReader; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/RuleTemplateTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/RuleTemplateTest.java index d5ebf1bf1ff..79235ccaaa9 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/RuleTemplateTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/RuleTemplateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.io.IOException; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/TemplatesTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/TemplatesTest.java index e7665a892be..b94e49e572b 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/TemplatesTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/TemplatesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.io.IOException; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/UnicodeTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/UnicodeTest.java index d2c1ef58bc8..6fb00f80f52 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/UnicodeTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/UnicodeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional; import java.io.FileNotFoundException; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/decisiontable/DecisionTableKieContainerTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/decisiontable/DecisionTableKieContainerTest.java index a0bd37e5129..e74058b61c0 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/decisiontable/DecisionTableKieContainerTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/decisiontable/DecisionTableKieContainerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.testcoverage.functional.decisiontable; import org.drools.testcoverage.common.model.Record; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/model/BuildtimeUtil.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/model/BuildtimeUtil.java index 5d4dba11eab..e084a3dff31 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/model/BuildtimeUtil.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/model/BuildtimeUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.functional.model; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/model/RulesWithInTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/model/RulesWithInTest.java index dbdf43e1d31..d1bfdee0246 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/model/RulesWithInTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/model/RulesWithInTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.functional.model; import java.io.IOException; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathCepTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathCepTest.java index e4e1099822a..ee09fdaaacf 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathCepTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathCepTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional.oopath; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathDslTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathDslTest.java index 9d2e60b299d..244f25c17da 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathDslTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathDslTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.testcoverage.functional.oopath; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathDtablesTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathDtablesTest.java index 01c2af34511..a84ecd548a3 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathDtablesTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathDtablesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional.oopath; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathLogicalBranchesTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathLogicalBranchesTest.java index 2295b31df60..dc76b246e0a 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathLogicalBranchesTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathLogicalBranchesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional.oopath; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathSmokeTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathSmokeTest.java index ea1d6b252a0..c19bb1b8ddc 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathSmokeTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/oopath/OOPathSmokeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional.oopath; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/DrlParserTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/DrlParserTest.java index 3b31f27cd87..dadbe10e7b1 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/DrlParserTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/DrlParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.functional.parser; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/DslParserTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/DslParserTest.java index 05bcbd9dd4a..7c0001b40aa 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/DslParserTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/DslParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.functional.parser; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/ParserTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/ParserTest.java index 97ca8a98260..73433ea58f3 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/ParserTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/ParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.functional.parser; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/SmokeParserTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/SmokeParserTest.java index 8cbb074adfa..a323631bb89 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/SmokeParserTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/functional/parser/SmokeParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.functional.parser; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/memory/KieScannerMemoryTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/memory/KieScannerMemoryTest.java index 7d5ae035cd9..6ab640b74a5 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/memory/KieScannerMemoryTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/memory/KieScannerMemoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.memory; import java.io.IOException; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AbstractCompositeRestrictionTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AbstractCompositeRestrictionTest.java index 5c89d998474..7b00490e119 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AbstractCompositeRestrictionTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AbstractCompositeRestrictionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AccumulateRecalculationTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AccumulateRecalculationTest.java index 84581d16ced..37aa30b0be2 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AccumulateRecalculationTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AccumulateRecalculationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import org.drools.testcoverage.common.model.MyFact; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AmbiguousExceptionTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AmbiguousExceptionTest.java index 62c93eaa72c..41239cfd089 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AmbiguousExceptionTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/AmbiguousExceptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.io.StringReader; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/BetaMemoryLeakOnDeleteTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/BetaMemoryLeakOnDeleteTest.java index ffb5a235428..e348f4edf3c 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/BetaMemoryLeakOnDeleteTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/BetaMemoryLeakOnDeleteTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import org.drools.core.common.InternalWorkingMemory; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DateExtendingFactTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DateExtendingFactTest.java index 06dcda07fd6..54a594eb4aa 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DateExtendingFactTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DateExtendingFactTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DeclarationWithOrTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DeclarationWithOrTest.java index d455c1c8052..bb3cd845864 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DeclarationWithOrTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DeclarationWithOrTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DeserializationWithCompositeTriggerTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DeserializationWithCompositeTriggerTest.java index 4da63c6d7ad..6257071f715 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DeserializationWithCompositeTriggerTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DeserializationWithCompositeTriggerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DroolsGcCausesNPETest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DroolsGcCausesNPETest.java index 877260e39b0..cf918036098 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DroolsGcCausesNPETest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/DroolsGcCausesNPETest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.List; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EqualityKeyOverrideTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EqualityKeyOverrideTest.java index 24e9e31280e..e9249f8b4f5 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EqualityKeyOverrideTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EqualityKeyOverrideTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EscapesInMetadataTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EscapesInMetadataTest.java index 54daba2336e..b1ab477b5ff 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EscapesInMetadataTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EscapesInMetadataTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EventDeserializationInPastTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EventDeserializationInPastTest.java index d8442e736b4..6772d48e886 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EventDeserializationInPastTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EventDeserializationInPastTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.io.ByteArrayInputStream; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EventFactHandleDeserializationTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EventFactHandleDeserializationTest.java index 7c89818df1d..269b4b20e99 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EventFactHandleDeserializationTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/EventFactHandleDeserializationTest.java @@ -1,24 +1,26 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import org.assertj.core.api.SoftAssertions; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.common.EventFactHandle; +import org.drools.core.common.DefaultEventHandle; import org.junit.Test; import org.kie.api.io.ResourceType; import org.kie.api.runtime.KieSession; @@ -49,11 +51,11 @@ public void testDisconnectedEventFactHandle() { final SoftAssertions softly = new SoftAssertions(); FactHandle key = DefaultFactHandle.createFromExternalFormat(helloHandle.toExternalForm()); - softly.assertThat(key).isInstanceOf(EventFactHandle.class); + softly.assertThat(key).isInstanceOf(DefaultEventHandle.class); softly.assertThat(ksession.getObject(key)).isEqualTo("hello"); key = DefaultFactHandle.createFromExternalFormat(goodbyeHandle.toExternalForm()); - softly.assertThat(key).isInstanceOf(EventFactHandle.class); + softly.assertThat(key).isInstanceOf(DefaultEventHandle.class); softly.assertThat(ksession.getObject(key)).isEqualTo("goodbye"); softly.assertAll(); diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FixedPatternTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FixedPatternTest.java index 39d92976c21..326dc004c05 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FixedPatternTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FixedPatternTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FromGenericCollectionTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FromGenericCollectionTest.java index 734076d21ce..5aa7260137e 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FromGenericCollectionTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FromGenericCollectionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Arrays; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FusionAfterBeforeTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FusionAfterBeforeTest.java index 5c243d8d640..65fed9548a2 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FusionAfterBeforeTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/FusionAfterBeforeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/GenericsWithModifyTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/GenericsWithModifyTest.java index 7f1d6172504..8a49cee936a 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/GenericsWithModifyTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/GenericsWithModifyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/GlobalOnLHSTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/GlobalOnLHSTest.java index abc5607167d..d2c514d50ec 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/GlobalOnLHSTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/GlobalOnLHSTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/ImportReplaceTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/ImportReplaceTest.java index ac7de593eac..70264fa75ab 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/ImportReplaceTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/ImportReplaceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.io.StringReader; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/InaccurateComparisonTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/InaccurateComparisonTest.java index f489d229b74..d03f8026d66 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/InaccurateComparisonTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/InaccurateComparisonTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/InternalMatchTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/InternalMatchTest.java index 6ad7eff4526..cbd4ce061e7 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/InternalMatchTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/InternalMatchTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import org.drools.testcoverage.common.KieSessionTest; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/LogicalInsertionsSerializationTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/LogicalInsertionsSerializationTest.java index ff2218779e3..82aa28cd3f7 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/LogicalInsertionsSerializationTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/LogicalInsertionsSerializationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.io.File; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultiRestrictionPatternTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultiRestrictionPatternTest.java index f24e438798f..b4c96864cb4 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultiRestrictionPatternTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultiRestrictionPatternTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleKieBaseListenersTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleKieBaseListenersTest.java index afb6529a357..f2161255955 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleKieBaseListenersTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleKieBaseListenersTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleSalienceUpdateFactTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleSalienceUpdateFactTest.java index ad2b9857c04..dc8d078fdda 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleSalienceUpdateFactTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleSalienceUpdateFactTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleSheetsLoadingTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleSheetsLoadingTest.java index fe3ac648854..8efc92fc519 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleSheetsLoadingTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MultipleSheetsLoadingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MvelOverloadedMethodsUsageTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MvelOverloadedMethodsUsageTest.java index 30482f43209..862c4d080fe 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MvelOverloadedMethodsUsageTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/MvelOverloadedMethodsUsageTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NonStringCompareTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NonStringCompareTest.java index d491bf0d000..34851e4380f 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NonStringCompareTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NonStringCompareTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NotInFusionTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NotInFusionTest.java index d1fad2a3118..31d946e21d3 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NotInFusionTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NotInFusionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NullInListInFromTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NullInListInFromTest.java index fb025ab8dd6..4924f758fb9 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NullInListInFromTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NullInListInFromTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NumberRestriction.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NumberRestriction.java index 9c8d3539951..7646723b63d 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NumberRestriction.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/NumberRestriction.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.testcoverage.regression; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/POJOAnnotationMergeTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/POJOAnnotationMergeTest.java index 76281ee1a0b..c6055f0a674 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/POJOAnnotationMergeTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/POJOAnnotationMergeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/PropertyListenerTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/PropertyListenerTest.java index ed645745a9e..9bf56450f60 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/PropertyListenerTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/PropertyListenerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.beans.PropertyChangeListener; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializableGeneratedTypesTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializableGeneratedTypesTest.java index 0dbdee9a30d..c592c6a3182 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializableGeneratedTypesTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializableGeneratedTypesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializableInstantiationTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializableInstantiationTest.java index 7c8b006a6db..b5a8c9c2f64 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializableInstantiationTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializableInstantiationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import org.drools.testcoverage.common.KieSessionTest; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializationWithCollectTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializationWithCollectTest.java index 5a37ade8b06..440e889df2f 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializationWithCollectTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SerializationWithCollectTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.io.ByteArrayInputStream; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SessionInsertMultiThreadingTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SessionInsertMultiThreadingTest.java index 3ee7480d53c..4e52b9447e6 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SessionInsertMultiThreadingTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/SessionInsertMultiThreadingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/StarImportTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/StarImportTest.java index b06c6036918..0944a3b3c31 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/StarImportTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/StarImportTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/TruthMaintenanceSystemConcurrencyTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/TruthMaintenanceSystemConcurrencyTest.java new file mode 100644 index 00000000000..83ee2daddb2 --- /dev/null +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/TruthMaintenanceSystemConcurrencyTest.java @@ -0,0 +1,85 @@ +/** + * 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. + */ +package org.drools.testcoverage.regression; + +import java.util.Collection; +import java.util.Collections; +import java.util.LinkedList; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; + +import org.drools.kiesession.rulebase.InternalKnowledgeBase; +import org.drools.kiesession.rulebase.KnowledgeBaseFactory; +import org.drools.kiesession.session.StatefulKnowledgeSessionImpl; +import org.drools.mvel.compiler.Cheese; +import org.junit.Test; +import org.kie.api.definition.KiePackage; +import org.kie.api.io.ResourceType; +import org.kie.api.runtime.ClassObjectFilter; +import org.kie.internal.builder.KnowledgeBuilder; +import org.kie.internal.builder.KnowledgeBuilderFactory; +import org.kie.internal.io.ResourceFactory; + +import static org.assertj.core.api.Assertions.assertThat; + + +public class TruthMaintenanceSystemConcurrencyTest { + + @Test + public void testUsingMultipleSessionsConcurrently() throws InterruptedException { + final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); + kbuilder.add( + ResourceFactory.newClassPathResource( + "test_concurrency.drl", + getClass() + ), + ResourceType.DRL + ); + Collection kpkgs = kbuilder.getKnowledgePackages(); + + InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); + kbase.addPackages(kpkgs); + + final ExecutorService executorService = Executors.newFixedThreadPool(20); + + final Collection errors = + Collections.synchronizedCollection(new LinkedList<>()); + for (int i = 0; i < 2000; i++) { + executorService.submit(() -> { + try { + StatefulKnowledgeSessionImpl ksession = (StatefulKnowledgeSessionImpl) kbase.newKieSession(); + + ksession.fireAllRules(); + assertThat(ksession.getObjects(new ClassObjectFilter(Cheese.class))) + .hasSize(2); + } catch (Throwable e) { + errors.add(e); + } + }); + } + executorService.shutdown(); + assertThat(executorService.awaitTermination(2, TimeUnit.SECONDS)) + .isTrue(); + + assertThat(errors) + .isEmpty(); + } + +} \ No newline at end of file diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/UnwantedStringConversionTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/UnwantedStringConversionTest.java index 932dc401588..8e6e206ee91 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/UnwantedStringConversionTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/UnwantedStringConversionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression; import java.util.Collection; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/XSDResourceTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/XSDResourceTest.java index f9a8830e9f4..3818ecd5e8c 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/XSDResourceTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/XSDResourceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression; import org.junit.Test; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/mvel/MvelLinkageErrorTest.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/mvel/MvelLinkageErrorTest.java index 4d1db18ad20..1bf15cce662 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/mvel/MvelLinkageErrorTest.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/mvel/MvelLinkageErrorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.testcoverage.regression.mvel; import java.util.ArrayList; diff --git a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/mvel/NotLoadableClass.java b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/mvel/NotLoadableClass.java index 1718fd8c8c6..459b9c13d71 100644 --- a/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/mvel/NotLoadableClass.java +++ b/drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/mvel/NotLoadableClass.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.testcoverage.regression.mvel; import java.io.Serializable; diff --git a/drools-test-coverage/test-suite/src/test/resources/META-INF/kmodule.xml b/drools-test-coverage/test-suite/src/test/resources/META-INF/kmodule.xml index 4b7d15f7656..61ff2803cde 100644 --- a/drools-test-coverage/test-suite/src/test/resources/META-INF/kmodule.xml +++ b/drools-test-coverage/test-suite/src/test/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-test-coverage/test-suite/src/test/resources/logback-test.xml b/drools-test-coverage/test-suite/src/test/resources/logback-test.xml index d6ea0815361..32e2d1d6aed 100644 --- a/drools-test-coverage/test-suite/src/test/resources/logback-test.xml +++ b/drools-test-coverage/test-suite/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-core/src/main/java/org/drools/core/beliefsystem/Mode.java b/drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/regression/test_concurrency.drl similarity index 61% rename from drools-core/src/main/java/org/drools/core/beliefsystem/Mode.java rename to drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/regression/test_concurrency.drl index 85fe0ee164c..22d2c6183de 100644 --- a/drools-core/src/main/java/org/drools/core/beliefsystem/Mode.java +++ b/drools-test-coverage/test-suite/src/test/resources/org/drools/testcoverage/regression/test_concurrency.drl @@ -13,7 +13,21 @@ * limitations under the License. */ -package org.drools.core.beliefsystem; +package org.drools.testcoverage.regression; -public interface Mode { -} +import org.drools.mvel.compiler.Cheese; + +rule "default" + then + insert("cheeseType"); + insert(new Cheese("cheeseType")); +end + + +rule "insert new Cheese" + when + $type : String(this == "cheeseType") + Cheese( type == $type ) + then + insertLogical( new Cheese("success") ); +end diff --git a/drools-tms/pom.xml b/drools-tms/pom.xml index ceda768f5e2..52ccebf93fa 100644 --- a/drools-tms/pom.xml +++ b/drools-tms/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-tms/src/main/java/org/drools/tms/AbductiveQuery.java b/drools-tms/src/main/java/org/drools/tms/AbductiveQuery.java index 5193bbd98f1..1a39753395c 100644 --- a/drools-tms/src/main/java/org/drools/tms/AbductiveQuery.java +++ b/drools-tms/src/main/java/org/drools/tms/AbductiveQuery.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms; import java.io.Externalizable; @@ -27,20 +30,21 @@ import java.util.List; import java.util.function.Function; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.DroolsQuery; +import org.drools.base.base.DroolsQuery; +import org.drools.base.base.ValueResolver; +import org.drools.base.base.ClassObjectType; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ObjectStore; -import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.rule.Declaration; -import org.drools.core.definitions.rule.impl.QueryImpl; -import org.drools.core.base.AcceptsClassObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.definitions.rule.impl.QueryImpl; +import org.drools.base.base.AcceptsClassObjectType; import org.drools.core.rule.consequence.InternalMatch; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.tms.beliefsystem.BeliefSet; import org.drools.tms.beliefsystem.abductive.Abductive; +import org.kie.api.runtime.rule.Match; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -173,9 +177,9 @@ public boolean isReturnBound() { } @Override - public boolean processAbduction(InternalMatch resultLeftTuple, DroolsQuery dquery, Object[] objects, ReteEvaluator reteEvaluator) { + public boolean processAbduction(Match resultLeftTuple, DroolsQuery dquery, Object[] objects, ValueResolver valueResolver) { boolean pass = true; - InternalWorkingMemory workingMemory = (InternalWorkingMemory) reteEvaluator; + InternalWorkingMemory workingMemory = (InternalWorkingMemory) valueResolver; int numArgs = abducibleArgs.length; Object[] constructorArgs = new Object[ abducibleArgs.length ]; for ( int j = 0; j < numArgs; j++ ) { @@ -195,7 +199,7 @@ public boolean processAbduction(InternalMatch resultLeftTuple, DroolsQuery dquer abduced = handle.getObject(); firstAssertion = false; } else { - handle = TruthMaintenanceSystemFactory.get().getOrCreateTruthMaintenanceSystem(workingMemory).insertPositive( abduced, resultLeftTuple); + handle = TruthMaintenanceSystemFactory.get().getOrCreateTruthMaintenanceSystem(workingMemory).insertPositive( abduced, (InternalMatch) resultLeftTuple); } BeliefSet bs = handle.getEqualityKey() != null ? ((TruthMaintenanceSystemEqualityKey)handle.getEqualityKey()).getBeliefSet() : null; if ( bs == null ) { @@ -205,7 +209,7 @@ public boolean processAbduction(InternalMatch resultLeftTuple, DroolsQuery dquer pass = false; } else { if ( !firstAssertion ) { - TruthMaintenanceSystemFactory.get().getOrCreateTruthMaintenanceSystem(workingMemory).insertPositive( abduced, resultLeftTuple); + TruthMaintenanceSystemFactory.get().getOrCreateTruthMaintenanceSystem(workingMemory).insertPositive( abduced, (InternalMatch) resultLeftTuple); } } } diff --git a/drools-tms/src/main/java/org/drools/tms/BeliefSystemFactory.java b/drools-tms/src/main/java/org/drools/tms/BeliefSystemFactory.java index 979ccd5532f..f3fccc5225b 100644 --- a/drools-tms/src/main/java/org/drools/tms/BeliefSystemFactory.java +++ b/drools-tms/src/main/java/org/drools/tms/BeliefSystemFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms; import org.drools.core.BeliefSystemType; diff --git a/drools-tms/src/main/java/org/drools/tms/LogicalDependency.java b/drools-tms/src/main/java/org/drools/tms/LogicalDependency.java index d0fec027250..a050cb60ffb 100644 --- a/drools-tms/src/main/java/org/drools/tms/LogicalDependency.java +++ b/drools-tms/src/main/java/org/drools/tms/LogicalDependency.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms; import org.drools.core.util.LinkedListNode; diff --git a/drools-tms/src/main/java/org/drools/tms/SimpleMode.java b/drools-tms/src/main/java/org/drools/tms/SimpleMode.java index ae811d5e6e8..b0a2d736a13 100644 --- a/drools-tms/src/main/java/org/drools/tms/SimpleMode.java +++ b/drools-tms/src/main/java/org/drools/tms/SimpleMode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms; import java.io.IOException; @@ -20,7 +23,7 @@ import java.io.ObjectOutput; import org.drools.tms.beliefsystem.BeliefSystem; -import org.drools.core.beliefsystem.Mode; +import org.drools.base.beliefsystem.Mode; import org.drools.core.util.LinkedListEntry; import org.drools.tms.beliefsystem.ModedAssertion; diff --git a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemAgendaComponentFactory.java b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemAgendaComponentFactory.java index a1c43ab3c98..a75a280ba1d 100644 --- a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemAgendaComponentFactory.java +++ b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemAgendaComponentFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms; import org.drools.core.common.InternalAgendaGroup; @@ -26,7 +28,6 @@ import org.drools.core.reteoo.Sink; import org.drools.core.reteoo.TerminalNode; import org.drools.core.common.PropagationContext; -import org.drools.core.reteoo.Tuple; import org.drools.tms.agenda.TruthMaintenanceSystemRuleTerminalNodeLeftTuple; public class TruthMaintenanceSystemAgendaComponentFactory implements AgendaComponentFactory { diff --git a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemEqualityKey.java b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemEqualityKey.java index baf72b49b79..199e25d87a9 100644 --- a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemEqualityKey.java +++ b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemEqualityKey.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.tms; import org.drools.core.common.DefaultFactHandle; diff --git a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemFactoryImpl.java b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemFactoryImpl.java index 4c029af1587..d4a7754c404 100644 --- a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemFactoryImpl.java +++ b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemFactoryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms; import java.lang.annotation.Annotation; @@ -26,7 +28,7 @@ import org.drools.core.common.ReteEvaluator; import org.drools.core.common.TruthMaintenanceSystem; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.definitions.rule.impl.QueryImpl; +import org.drools.base.definitions.rule.impl.QueryImpl; import org.drools.tms.beliefsystem.abductive.Abductive; public class TruthMaintenanceSystemFactoryImpl implements TruthMaintenanceSystemFactory { diff --git a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemImpl.java b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemImpl.java index 31c94907bac..9b110399984 100644 --- a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemImpl.java +++ b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms; import java.util.Collection; @@ -22,7 +24,7 @@ import java.util.function.BiFunction; import org.drools.core.RuleBaseConfiguration.AssertBehaviour; -import org.drools.core.beliefsystem.Mode; +import org.drools.base.beliefsystem.Mode; import org.drools.core.common.ClassAwareObjectStore; import org.drools.core.common.EqualityKey; import org.drools.core.common.InternalFactHandle; @@ -68,17 +70,14 @@ public TruthMaintenanceSystemImpl(InternalWorkingMemoryEntryPoint ep) { } private static class EqualityKeyPlaceholder { - private static final EqualityKeyPlaceholder INSTANCE = new EqualityKeyPlaceholder(); - - private Object object; + private final Object object; - public EqualityKeyPlaceholder withObject(Object object) { + private EqualityKeyPlaceholder(final Object object) { this.object = object; - return this; } private static Object transformEqualityKey(Object o) { - return o instanceof EqualityKey ? o : EqualityKeyPlaceholder.INSTANCE.withObject(o); + return o instanceof EqualityKey ? o : new EqualityKeyPlaceholder(o); } @Override diff --git a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemKnowledgeHelper.java b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemKnowledgeHelper.java index 60d73df3baf..0127ee866f9 100644 --- a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemKnowledgeHelper.java +++ b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemKnowledgeHelper.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.tms; import org.drools.core.common.EqualityKey; @@ -23,7 +27,7 @@ import org.drools.core.phreak.RuleAgendaItem; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.RuntimeComponentFactory; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.util.LinkedList; import org.drools.core.util.LinkedListEntry; diff --git a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemKnowledgeHelperFactoryImpl.java b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemKnowledgeHelperFactoryImpl.java index 0dd11f2a779..2d586433eb7 100644 --- a/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemKnowledgeHelperFactoryImpl.java +++ b/drools-tms/src/main/java/org/drools/tms/TruthMaintenanceSystemKnowledgeHelperFactoryImpl.java @@ -1,27 +1,32 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.tms; import org.drools.core.common.ReteEvaluator; import org.drools.core.rule.consequence.KnowledgeHelper; +import org.drools.kiesession.consequence.DefaultKnowledgeHelper; import org.drools.kiesession.factory.KnowledgeHelperFactory; public class TruthMaintenanceSystemKnowledgeHelperFactoryImpl implements KnowledgeHelperFactory { @Override public KnowledgeHelper createKnowledgeHelper(ReteEvaluator reteEvaluator) { - return new TruthMaintenanceSystemKnowledgeHelper( reteEvaluator ); + return reteEvaluator.isTMSEnabled() ? new TruthMaintenanceSystemKnowledgeHelper( reteEvaluator ) : new DefaultKnowledgeHelper( reteEvaluator ); } } diff --git a/drools-tms/src/main/java/org/drools/tms/agenda/TruthMaintenanceSystemInternalMatch.java b/drools-tms/src/main/java/org/drools/tms/agenda/TruthMaintenanceSystemInternalMatch.java index 9abb0fda4fe..c848102bcdf 100644 --- a/drools-tms/src/main/java/org/drools/tms/agenda/TruthMaintenanceSystemInternalMatch.java +++ b/drools-tms/src/main/java/org/drools/tms/agenda/TruthMaintenanceSystemInternalMatch.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms.agenda; import org.drools.core.common.ActivationsManager; diff --git a/drools-tms/src/main/java/org/drools/tms/agenda/TruthMaintenanceSystemRuleTerminalNodeLeftTuple.java b/drools-tms/src/main/java/org/drools/tms/agenda/TruthMaintenanceSystemRuleTerminalNodeLeftTuple.java index 7dda3486c2a..3aa078224b8 100644 --- a/drools-tms/src/main/java/org/drools/tms/agenda/TruthMaintenanceSystemRuleTerminalNodeLeftTuple.java +++ b/drools-tms/src/main/java/org/drools/tms/agenda/TruthMaintenanceSystemRuleTerminalNodeLeftTuple.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms.agenda; import org.drools.core.common.ActivationsManager; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSet.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSet.java index 58ca7b58909..c0ef45d7c3c 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSet.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem; import org.drools.core.common.InternalFactHandle; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSystem.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSystem.java index dd02bd6064d..79b14c59826 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSystem.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSystem.java @@ -1,23 +1,26 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.TruthMaintenanceSystem; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.common.PropagationContext; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSystemMode.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSystemMode.java index 534d4089cb1..51ec40e3e53 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSystemMode.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/BeliefSystemMode.java @@ -1,22 +1,24 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms.beliefsystem; -import org.drools.core.beliefsystem.Mode; +import org.drools.base.beliefsystem.Mode; public interface BeliefSystemMode extends Mode { BeliefSystem getBeliefSystem(); diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/ModedAssertion.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/ModedAssertion.java index ceb4a9dc879..a0abca49b16 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/ModedAssertion.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/ModedAssertion.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem; import org.drools.core.util.LinkedListNode; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/abductive/Abducible.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/abductive/Abducible.java index 8f07e5c2841..6e2e6d0cc3b 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/abductive/Abducible.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/abductive/Abducible.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.abductive; public @interface Abducible { diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/abductive/Abductive.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/abductive/Abductive.java index 58e2ffb7475..335795108cc 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/abductive/Abductive.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/abductive/Abductive.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.abductive; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibilityStatus.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibilityStatus.java index db4a14118e3..f867f3e74db 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibilityStatus.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibilityStatus.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.defeasible; public enum DefeasibilityStatus { diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeasible.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeasible.java index a0983fb7b0b..9f26424c90d 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeasible.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeasible.java @@ -1,20 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - - package org.drools.tms.beliefsystem.defeasible; public @interface Defeasible { diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleBeliefSet.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleBeliefSet.java index d833cae4d10..cc2eeaadd90 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleBeliefSet.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleBeliefSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.defeasible; import java.util.Arrays; @@ -22,9 +25,8 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.common.QueryElementFactHandle; import org.drools.core.common.WorkingMemoryAction; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.common.PropagationContext; -import org.drools.core.util.Entry; import org.drools.core.util.FastIterator; import org.drools.core.util.LinkedListNode; import org.drools.tms.LogicalDependency; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleBeliefSystem.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleBeliefSystem.java index 0bc3ca3ce02..c75fc89c1fa 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleBeliefSystem.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleBeliefSystem.java @@ -1,24 +1,27 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.defeasible; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemoryEntryPoint; import org.drools.core.common.TruthMaintenanceSystem; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.common.PropagationContext; import org.drools.tms.LogicalDependency; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleLogicalDependency.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleLogicalDependency.java index 2859c0a67e6..ba26cd3251f 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleLogicalDependency.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleLogicalDependency.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.defeasible; import org.drools.tms.agenda.TruthMaintenanceSystemInternalMatch; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleMode.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleMode.java index 07e5068b66a..5abef1bf54a 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleMode.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleMode.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.defeasible; import java.util.Arrays; import org.drools.tms.beliefsystem.BeliefSystem; import org.drools.tms.beliefsystem.jtms.JTMSMode; -import org.drools.core.beliefsystem.Mode; +import org.drools.base.beliefsystem.Mode; public class DefeasibleMode> extends JTMSMode { //extends LinkedListEntry implements Mode { private static final String[] EMPTY_DEFEATS = new String[0]; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleRuleNature.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleRuleNature.java index 158dd206604..6c0badf6e87 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleRuleNature.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/DefeasibleRuleNature.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.defeasible; public enum DefeasibleRuleNature { diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeater.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeater.java index 22a484f5208..da20b7b083f 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeater.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeater.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms.beliefsystem.defeasible; public @interface Defeater { diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeats.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeats.java index 6a3636d27da..dcf9a6a939b 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeats.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Defeats.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms.beliefsystem.defeasible; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Join.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Join.java index 3dda19a81ec..44e0520377e 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Join.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Join.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.defeasible; public class Join { diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Strict.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Strict.java index d13d2056a1c..58415edf184 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Strict.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/defeasible/Strict.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms.beliefsystem.defeasible; public @interface Strict { diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSet.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSet.java index f16c5766f7e..954019ae4b4 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSet.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.jtms; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSetImpl.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSetImpl.java index cf89b8dfd59..f92016ea0fb 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSetImpl.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSetImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.jtms; import org.drools.tms.beliefsystem.BeliefSystem; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSystem.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSystem.java index 741f0c53fd3..397bfe1eca6 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSystem.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSBeliefSystem.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.jtms; import org.drools.core.WorkingMemoryEntryPoint; @@ -24,7 +27,7 @@ import org.drools.core.common.InternalWorkingMemoryEntryPoint; import org.drools.core.common.ObjectTypeConfigurationRegistry; import org.drools.core.common.TruthMaintenanceSystem; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.common.PropagationContext; import org.drools.tms.LogicalDependency; @@ -35,7 +38,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import static org.drools.core.reteoo.PropertySpecificUtil.allSetButTraitBitMask; +import static org.drools.base.reteoo.PropertySpecificUtil.allSetButTraitBitMask; public class JTMSBeliefSystem> implements @@ -141,7 +144,7 @@ public void delete(M mode, RuleImpl rule, InternalMatch internalMatch, Object pa if ( beliefSet.isEmpty() && fh.getEqualityKey().getStatus() == EqualityKey.JUSTIFIED ) { // the set is empty, so delete form the EP, so things are cleaned up. ep.delete(fh, fh.getObject(), getObjectTypeConf(beliefSet), context.getRuleOrigin(), - null, internalMatch != null ? internalMatch.getTuple().getTupleSink() : null); + internalMatch != null ? internalMatch.getTuple().getTupleSink() : null); } else if ( !(processBeliefSet(rule, internalMatch, payload, context, jtmsBeliefSet, wasDecided, wasNegated, fh) && beliefSet.isEmpty()) ) { // The state of the BS did not change, but maybe the prime did if ( fh.getObject() == payload ) { @@ -207,7 +210,7 @@ private boolean processBeliefSet(RuleImpl rule, InternalMatch internalMatch, Obj // was decided, now is not, so must be removed from the network. Leave in EP though, we only delete from that when the set is empty ep.delete(fh, fh.getObject(), getObjectTypeConf(jtmsBeliefSet), pctx.getRuleOrigin(), - null, internalMatch != null ? internalMatch.getTuple().getTupleSink() : null); + internalMatch != null ? internalMatch.getTuple().getTupleSink() : null); return true; } else if (wasNegated != jtmsBeliefSet.isNegated()) { // was decided, still is decided by the negation changed. This must be propagated through the engine diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSMode.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSMode.java index bb74121ff22..710b6761a93 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSMode.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/jtms/JTMSMode.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.jtms; import org.drools.tms.beliefsystem.BeliefSystem; import org.drools.tms.beliefsystem.ModedAssertion; import org.drools.tms.LogicalDependency; import org.drools.core.util.AbstractBaseLinkedListNode; -import org.drools.core.beliefsystem.Mode; +import org.drools.base.beliefsystem.Mode; public class JTMSMode> extends AbstractBaseLinkedListNode implements ModedAssertion { private BeliefSystem bs; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/BeliefSystemLogicalCallback.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/BeliefSystemLogicalCallback.java index d16077c012b..7183dc58cc6 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/BeliefSystemLogicalCallback.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/BeliefSystemLogicalCallback.java @@ -1,35 +1,38 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.simple; -import java.io.IOException; - -import org.drools.core.rule.consequence.InternalMatch; -import org.drools.tms.TruthMaintenanceSystemEqualityKey; -import org.drools.tms.beliefsystem.BeliefSet; import org.drools.core.common.InternalFactHandle; -import org.drools.kiesession.entrypoints.NamedEntryPoint; +import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; import org.drools.core.common.WorkingMemoryAction; import org.drools.core.marshalling.MarshallerReaderContext; import org.drools.core.phreak.PropagationEntry; import org.drools.core.reteoo.ObjectTypeConf; -import org.drools.core.common.PropagationContext; +import org.drools.core.rule.consequence.InternalMatch; +import org.drools.kiesession.entrypoints.NamedEntryPoint; +import org.drools.tms.TruthMaintenanceSystemEqualityKey; +import org.drools.tms.beliefsystem.BeliefSet; + +import java.io.IOException; -import static org.drools.core.reteoo.PropertySpecificUtil.allSetButTraitBitMask; +import static org.drools.base.reteoo.PropertySpecificUtil.allSetButTraitBitMask; public class BeliefSystemLogicalCallback extends PropagationEntry.AbstractPropagationEntry implements WorkingMemoryAction { @@ -94,7 +97,7 @@ public void internalExecute(ReteEvaluator reteEvaluator) { nep.delete( this.handle, context.getRuleOrigin(), this.internalMatch.getTuple().getTupleSink()); } else { ObjectTypeConf typeConf = nep.getObjectTypeConfigurationRegistry().getOrCreateObjectTypeConf( nep.getEntryPoint(), handle.getObject() ); - nep.getEntryPointNode().retractObject( handle, context, typeConf, reteEvaluator ); + nep.getEntryPointNode().immediateDeleteObject( handle, context, typeConf, reteEvaluator ); } } } diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleBeliefSet.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleBeliefSet.java index 90fce25fe63..5a7c59c5698 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleBeliefSet.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleBeliefSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.simple; import org.drools.tms.beliefsystem.BeliefSet; diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleBeliefSystem.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleBeliefSystem.java index 9192f28e5f7..0a34900deef 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleBeliefSystem.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleBeliefSystem.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.tms.beliefsystem.simple; import org.drools.core.WorkingMemoryEntryPoint; @@ -24,7 +27,7 @@ import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.drools.core.common.ObjectTypeConfigurationRegistry; import org.drools.core.common.TruthMaintenanceSystem; -import org.drools.core.definitions.rule.impl.RuleImpl; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.rule.consequence.InternalMatch; import org.drools.core.common.PropagationContext; @@ -33,7 +36,7 @@ import org.drools.tms.agenda.TruthMaintenanceSystemInternalMatch; import org.drools.tms.beliefsystem.BeliefSystem; -import static org.drools.core.reteoo.PropertySpecificUtil.allSetButTraitBitMask; +import static org.drools.base.reteoo.PropertySpecificUtil.allSetButTraitBitMask; /** * Default implementation emulates classical Drools TMS behaviour. @@ -124,8 +127,8 @@ public void delete(SimpleMode mode, RuleImpl rule, InternalMatch internalMatch, InternalFactHandle bfh = beliefSet.getFactHandle(); if ( beliefSet.isEmpty() && bfh.getEqualityKey() != null && bfh.getEqualityKey().getStatus() == EqualityKey.JUSTIFIED ) { - ep.delete(bfh, bfh.getObject(), getObjectTypeConf(beliefSet), context.getRuleOrigin(), - null, internalMatch != null ? internalMatch.getTuple().getTupleSink() : null); + ep.immediateDelete(bfh, bfh.getObject(), getObjectTypeConf(beliefSet), context.getRuleOrigin(), + internalMatch != null ? internalMatch.getTuple().getTupleSink() : null); } else if ( !beliefSet.isEmpty() && bfh.getObject() == payload && payload != bfh.getObject() ) { // prime has changed, to update new object // Equality might have changed on the object, so remove (which uses the handle id) and add back in @@ -151,7 +154,7 @@ public void stage(PropagationContext context, BeliefSet beliefSet) { InternalFactHandle bfh = beliefSet.getFactHandle(); // Remove the FH from the network - ep.delete(bfh, bfh.getObject(), getObjectTypeConf(beliefSet), context.getRuleOrigin(), null); + ep.immediateDelete(bfh, bfh.getObject(), getObjectTypeConf(beliefSet), context.getRuleOrigin(), null); bfh.getEqualityKey().setStatus( EqualityKey.STATED ); // revert to stated } diff --git a/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleLogicalDependency.java b/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleLogicalDependency.java index 5a102c0e479..c63dc8a6643 100644 --- a/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleLogicalDependency.java +++ b/drools-tms/src/main/java/org/drools/tms/beliefsystem/simple/SimpleLogicalDependency.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.tms.beliefsystem.simple; import org.drools.tms.beliefsystem.ModedAssertion; diff --git a/drools-tms/src/main/java/org/drools/tms/util/CustomKeyTransformerHashMap.java b/drools-tms/src/main/java/org/drools/tms/util/CustomKeyTransformerHashMap.java index 24221a647d3..641a4a793fa 100644 --- a/drools-tms/src/main/java/org/drools/tms/util/CustomKeyTransformerHashMap.java +++ b/drools-tms/src/main/java/org/drools/tms/util/CustomKeyTransformerHashMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms.util; import java.util.HashMap; diff --git a/drools-tms/src/test/java/org/drools/tms/EqualityKeyTest.java b/drools-tms/src/test/java/org/drools/tms/EqualityKeyTest.java index 612d430301e..c584a4a2bae 100644 --- a/drools-tms/src/test/java/org/drools/tms/EqualityKeyTest.java +++ b/drools-tms/src/test/java/org/drools/tms/EqualityKeyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms; import org.drools.core.common.EqualityKey; diff --git a/drools-tms/src/test/java/org/drools/tms/LazyTMSEnablingTest.java b/drools-tms/src/test/java/org/drools/tms/LazyTMSEnablingTest.java index 1749740ef7e..089d154546e 100644 --- a/drools-tms/src/test/java/org/drools/tms/LazyTMSEnablingTest.java +++ b/drools-tms/src/test/java/org/drools/tms/LazyTMSEnablingTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.tms; diff --git a/drools-tms/src/test/java/org/drools/tms/TMSMockInternalMatch.java b/drools-tms/src/test/java/org/drools/tms/TMSMockInternalMatch.java index 2d897a321f1..65df15722ca 100644 --- a/drools-tms/src/test/java/org/drools/tms/TMSMockInternalMatch.java +++ b/drools-tms/src/test/java/org/drools/tms/TMSMockInternalMatch.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.tms; import org.drools.core.common.ActivationsManager; diff --git a/drools-traits/README.md b/drools-traits/README.md index e0822d1299c..a0f137d3097 100644 --- a/drools-traits/README.md +++ b/drools-traits/README.md @@ -15,7 +15,7 @@ We have now `org.drools.traits.core.*` and `org.drools.traits.compiler.*` depend You'll find many classes with only the package changed, such as -`org.drools.core.factmodel.traits.LogicalTypeInconsistencyException.java` +`org.drools.base.factmodel.traits.LogicalTypeInconsistencyException.java` became @@ -26,12 +26,12 @@ Notice the double `.traits`, I'm open for suggestions here Interfaces =========== -Inside the `org.drools.core.factmodel.traits` package, in the `drools-core` module, there are now only interfaces. +Inside the `org.drools.base.factmodel.traits` package, in the `drools-core` module, there are now only interfaces. I tried to keep them to the bare minimum but I couldn't remove most of them as the traits-related method (such as `don`, `shed`) are in `DefaultKnowledgeHelper` and they cannot be removed without breaking the API. When I moved the classes between modules I tried to keep the source code identical except for changing the package (as described in the Packages section) and to rename the class with the `-Impl` suffix, keeping the interface in the original module, i.e. -`org.drools.core.factmodel.traits.TraitFactory` was transformed into an interface with just one method, and it was created a +`org.drools.base.factmodel.traits.TraitFactory` was transformed into an interface with just one method, and it was created a `org.drools.traits.core.factmodel.TraitFactoryImpl` inside the `drools-traits` module. https://github.com/kiegroup/drools/pull/2887/files#diff-08cd5643f232535394581edeab619a00 diff --git a/drools-traits/pom.xml b/drools-traits/pom.xml index baa0ea53dbd..4f4a128fc4c 100644 --- a/drools-traits/pom.xml +++ b/drools-traits/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-traits/src/main/java/org/drools/traits/compiler/builder/impl/TraitTypeDeclarationBuilderFactory.java b/drools-traits/src/main/java/org/drools/traits/compiler/builder/impl/TraitTypeDeclarationBuilderFactory.java index aeeb4d1bc11..0068d54b34a 100644 --- a/drools-traits/src/main/java/org/drools/traits/compiler/builder/impl/TraitTypeDeclarationBuilderFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/compiler/builder/impl/TraitTypeDeclarationBuilderFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.builder.impl; import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; diff --git a/drools-traits/src/main/java/org/drools/traits/compiler/builder/impl/TraitsTypeDeclarationBuilderImpl.java b/drools-traits/src/main/java/org/drools/traits/compiler/builder/impl/TraitsTypeDeclarationBuilderImpl.java index 94635fe2511..50aad978ee3 100644 --- a/drools-traits/src/main/java/org/drools/traits/compiler/builder/impl/TraitsTypeDeclarationBuilderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/compiler/builder/impl/TraitsTypeDeclarationBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.builder.impl; import org.drools.compiler.builder.impl.ClassDefinitionFactory; @@ -23,12 +25,12 @@ import org.drools.compiler.compiler.TypeDeclarationError; import org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr; import org.drools.drl.ast.descr.TypeDeclarationDescr; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.rule.TypeDeclaration; import org.drools.traits.core.definitions.impl.TraitKnowledgePackageImpl; import org.drools.traits.core.factmodel.TraitClassBuilderImpl; import org.drools.traits.core.factmodel.TraitFactoryImpl; diff --git a/drools-traits/src/main/java/org/drools/traits/core/base/TraitHelperImpl.java b/drools-traits/src/main/java/org/drools/traits/core/base/TraitHelperImpl.java index a3fe41187c2..3518a658bf3 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/base/TraitHelperImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/base/TraitHelperImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.base; import java.io.Externalizable; @@ -37,29 +40,29 @@ import org.drools.core.common.ObjectStore; import org.drools.core.common.ObjectTypeConfigurationRegistry; import org.drools.core.common.TruthMaintenanceSystemFactory; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.traits.CoreWrapper; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.traits.CoreWrapper; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.traits.core.factmodel.LogicalTypeInconsistencyException; -import org.drools.core.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Thing; import org.drools.traits.core.factmodel.TraitFactoryImpl; -import org.drools.core.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.TraitFieldTMS; import org.drools.traits.core.factmodel.TraitProxyImpl; import org.drools.traits.core.factmodel.TraitRegistryImpl; -import org.drools.core.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitType; import org.drools.traits.core.factmodel.TraitTypeMapImpl; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.traits.core.metadata.Metadatable; import org.drools.traits.core.metadata.Modify; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; import org.drools.core.common.PropagationContext; import org.drools.traits.core.factmodel.HierarchyEncoder; -import org.drools.core.util.bitmask.BitMask; -import org.drools.core.beliefsystem.Mode; +import org.drools.util.bitmask.BitMask; +import org.drools.base.beliefsystem.Mode; import org.drools.traits.core.reteoo.TraitRuntimeComponentFactory; import org.kie.api.runtime.rule.EntryPoint; import org.kie.api.runtime.rule.FactHandle; @@ -67,7 +70,7 @@ import org.slf4j.LoggerFactory; import static org.drools.traits.core.base.TraitUtils.supersetOrEqualset; -import static org.drools.core.reteoo.PropertySpecificUtil.onlyTraitBitSetMask; +import static org.drools.base.reteoo.PropertySpecificUtil.onlyTraitBitSetMask; public class TraitHelperImpl implements Externalizable, TraitHelper { diff --git a/drools-traits/src/main/java/org/drools/traits/core/base/TraitUtils.java b/drools-traits/src/main/java/org/drools/traits/core/base/TraitUtils.java index e91d6cbd83d..732bde1e57e 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/base/TraitUtils.java +++ b/drools-traits/src/main/java/org/drools/traits/core/base/TraitUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.base; import java.util.BitSet; diff --git a/drools-traits/src/main/java/org/drools/traits/core/base/evaluators/IsAEvaluatorDefinition.java b/drools-traits/src/main/java/org/drools/traits/core/base/evaluators/IsAEvaluatorDefinition.java index 550b5db9871..18d20c9bc8e 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/base/evaluators/IsAEvaluatorDefinition.java +++ b/drools-traits/src/main/java/org/drools/traits/core/base/evaluators/IsAEvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.core.base.evaluators; import java.io.IOException; @@ -23,26 +25,27 @@ import java.util.Collection; import java.util.Iterator; +import org.drools.base.base.ValueResolver; import org.drools.mvel.evaluators.BaseEvaluator; -import org.drools.core.base.ValueType; +import org.drools.base.base.ValueType; import org.drools.compiler.rule.builder.EvaluatorDefinition; import org.drools.drl.parser.impl.Operator; -import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Thing; import org.drools.traits.core.factmodel.TraitProxy; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.mvel.evaluators.VariableRestriction; import org.drools.mvel.evaluators.VariableRestriction.VariableContextEntry; -import org.drools.core.rule.accessor.Evaluator; -import org.drools.core.rule.accessor.FieldValue; -import org.drools.core.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.Evaluator; +import org.drools.base.rule.accessor.FieldValue; +import org.drools.base.rule.accessor.ReadAccessor; import org.drools.traits.core.factmodel.CodedHierarchy; import org.drools.traits.core.reteoo.TraitRuntimeComponentFactory; import org.kie.api.runtime.ObjectFilter; +import org.kie.api.runtime.rule.FactHandle; import static org.drools.traits.core.base.TraitUtils.supersetOrEqualset; @@ -174,13 +177,13 @@ public IsAEvaluator(final ValueType type, final boolean isNegated) { /** * @inheridDoc */ - public boolean evaluate( ReteEvaluator reteEvaluator, - ReadAccessor extractor, InternalFactHandle handle, FieldValue value ) { - final Object objectValue = extractor.getValue( reteEvaluator, handle.getObject() ); + public boolean evaluate(ValueResolver valueResolver, + ReadAccessor extractor, FactHandle handle, FieldValue value) { + final Object objectValue = extractor.getValue( valueResolver, handle.getObject() ); final Object literal = value.getValue(); if ( cachedValue != literal) { cachedValue = literal; - cacheLiteral( literal, reteEvaluator ); + cacheLiteral( literal, valueResolver ); } TraitableBean core; @@ -205,7 +208,7 @@ public boolean evaluate( ReteEvaluator reteEvaluator, return this.getOperator().isNegated() ^ hasTrait( core, literal ); } } else { - core = lookForWrapper( objectValue, reteEvaluator ); + core = lookForWrapper( objectValue, valueResolver ); if ( core == null ) { if ( literal instanceof Class ) { return this.getOperator().isNegated() ^ ( (Class) literal ).isInstance( objectValue ); @@ -238,8 +241,8 @@ private boolean hasTrait( TraitableBean core, Object value ) { throw new UnsupportedOperationException( " IsA Operator : Unsupported literal " + value ); } - private void cacheLiteral( Object value, ReteEvaluator reteEvaluator ) { - CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(reteEvaluator.getKnowledgeBase()).getHierarchy(); + private void cacheLiteral( Object value, ValueResolver valueResolver ) { + CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(valueResolver.getRuleBase()).getHierarchy(); cachedLiteral = getCode( value, x ); } @@ -264,8 +267,8 @@ private BitSet getCode( Object value, CodedHierarchy x ) { } - protected TraitableBean lookForWrapper( final Object objectValue, ReteEvaluator reteEvaluator) { - Iterator iter = reteEvaluator.getDefaultEntryPoint().getObjectStore().iterateObjects( new ObjectFilter() { + protected TraitableBean lookForWrapper( final Object objectValue, ValueResolver valueResolver) { + Iterator iter = ((ReteEvaluator)valueResolver).getDefaultEntryPoint().getObjectStore().iterateObjects( new ObjectFilter() { public boolean accept(Object object) { if ( object instanceof TraitProxy ) { Object core = ((TraitProxy) object).getObject(); @@ -286,79 +289,79 @@ public boolean accept(Object object) { } } - public boolean evaluate(ReteEvaluator reteEvaluator, - ReadAccessor leftExtractor, InternalFactHandle left, - ReadAccessor rightExtractor, InternalFactHandle right) { - Object source = leftExtractor.getValue( reteEvaluator, left != null ? left.getObject() : null ); - Object target = rightExtractor.getValue( reteEvaluator, right != null ? right.getObject() : null ); + public boolean evaluate(ValueResolver valueResolver, + ReadAccessor leftExtractor, FactHandle left, + ReadAccessor rightExtractor, FactHandle right) { + Object source = leftExtractor.getValue( valueResolver, left != null ? left.getObject() : null ); + Object target = rightExtractor.getValue( valueResolver, right != null ? right.getObject() : null ); - return compare( source, target, reteEvaluator ); + return compare( source, target, valueResolver ); } - public boolean evaluateCachedLeft( ReteEvaluator reteEvaluator, - VariableContextEntry context, InternalFactHandle right ) { + public boolean evaluateCachedLeft( ValueResolver valueResolver, + VariableContextEntry context, FactHandle right ) { Object target = ((VariableRestriction.ObjectVariableContextEntry) context).left; - Object source = context.getFieldExtractor().getValue( reteEvaluator, right.getObject() ); + Object source = context.getFieldExtractor().getValue( valueResolver, right.getObject() ); - return compare( source, target, reteEvaluator ); + return compare( source, target, valueResolver ); } - public boolean evaluateCachedRight( ReteEvaluator reteEvaluator, - VariableContextEntry context, InternalFactHandle left ) { + public boolean evaluateCachedRight( ValueResolver valueResolver, + VariableContextEntry context, FactHandle left ) { - Object target = context.getFieldExtractor().getValue( reteEvaluator, left.getObject() ); + Object target = context.getFieldExtractor().getValue( valueResolver, left.getObject() ); Object source = ((VariableRestriction.ObjectVariableContextEntry) context).right; - return compare( source, target, reteEvaluator ); + return compare( source, target, valueResolver ); } - private boolean compare( Object source, Object target, ReteEvaluator reteEvaluator ) { + private boolean compare( Object source, Object target, ValueResolver valueResolver ) { BitSet sourceTraits = null; BitSet targetTraits = null; if ( source instanceof Class ) { - CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(reteEvaluator.getKnowledgeBase()).getHierarchy(); + CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(valueResolver.getRuleBase()).getHierarchy(); sourceTraits = x.getCode( ((Class) source).getName() ); } else if ( source instanceof Thing ) { sourceTraits = ((TraitableBean) ((Thing) source).getCore()).getCurrentTypeCode(); if ( sourceTraits == null && source instanceof TraitType ) { - CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(reteEvaluator.getKnowledgeBase()).getHierarchy(); + CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(valueResolver.getRuleBase()).getHierarchy(); sourceTraits = x.getCode( ((TraitType)source)._getTraitName() ); } } else if ( source instanceof TraitableBean ) { sourceTraits = ((TraitableBean) source).getCurrentTypeCode(); } else if ( source instanceof String ) { - CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(reteEvaluator.getKnowledgeBase()).getHierarchy(); + CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(valueResolver.getRuleBase()).getHierarchy(); sourceTraits = x.getCode( source ); } else { - TraitableBean tbean = lookForWrapper( source, reteEvaluator); + TraitableBean tbean = lookForWrapper( source, valueResolver); if ( tbean != null ) { sourceTraits = tbean.getCurrentTypeCode(); } } if ( target instanceof Class ) { - CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(reteEvaluator.getKnowledgeBase()).getHierarchy(); + CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(valueResolver.getRuleBase()).getHierarchy(); targetTraits = x.getCode( ((Class) target).getName() ); } else if ( target instanceof String ) { - CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(reteEvaluator.getKnowledgeBase()).getHierarchy(); + CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(valueResolver.getRuleBase()).getHierarchy(); targetTraits = x.getCode( target ); } else if ( target instanceof Thing ) { targetTraits = ((TraitableBean) ((Thing) target).getCore()).getCurrentTypeCode(); if ( targetTraits == null && target instanceof TraitType ) { - CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(reteEvaluator.getKnowledgeBase()).getHierarchy(); + CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(valueResolver.getRuleBase()).getHierarchy(); targetTraits = x.getCode( ((TraitType)target)._getTraitName() ); } } else if ( target instanceof TraitableBean ) { targetTraits = ((TraitableBean) target).getCurrentTypeCode(); } else if ( target instanceof Collection ) { - CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(reteEvaluator.getKnowledgeBase()).getHierarchy(); + CodedHierarchy x = ((TraitRuntimeComponentFactory) RuntimeComponentFactory.get()).getTraitRegistry(valueResolver.getRuleBase()).getHierarchy(); targetTraits = getCode( target, x ); } else { - TraitableBean tbean = lookForWrapper( target, reteEvaluator ); + TraitableBean tbean = lookForWrapper( target, valueResolver ); if ( tbean != null ) { targetTraits = tbean.getCurrentTypeCode(); } diff --git a/drools-traits/src/main/java/org/drools/traits/core/common/TraitDefaultFactHandle.java b/drools-traits/src/main/java/org/drools/traits/core/common/TraitDefaultFactHandle.java index 22ebd2a45ee..56f87e89bb0 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/common/TraitDefaultFactHandle.java +++ b/drools-traits/src/main/java/org/drools/traits/core/common/TraitDefaultFactHandle.java @@ -1,28 +1,30 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.common; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.TraitTypeEnum; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.TraitTypeEnum; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.TypeDeclaration; import org.drools.traits.core.base.TraitHelperImpl; import org.drools.traits.core.factmodel.TraitProxyImpl; @@ -58,12 +60,12 @@ public TraitDefaultFactHandle(final long id, } @Override - public K as(Class klass) throws ClassCastException { + public Object as(Class klass) throws ClassCastException { if (klass.isAssignableFrom(object.getClass())) { - return (K) object; + return object; } else if (this.isTraitOrTraitable()) { TraitHelperImpl traitHelper = new TraitHelperImpl(); - K k = traitHelper.extractTrait(this, klass); + Object k = traitHelper.extractTrait(this, klass); if (k != null) { return k; } else { diff --git a/drools-traits/src/main/java/org/drools/traits/core/common/TraitEntryPointFactory.java b/drools-traits/src/main/java/org/drools/traits/core/common/TraitEntryPointFactory.java index a475f7a8295..c602a41dfbe 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/common/TraitEntryPointFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/core/common/TraitEntryPointFactory.java @@ -1,26 +1,28 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.common; import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.drools.core.common.EntryPointFactory; import org.drools.core.common.ReteEvaluator; import org.drools.core.reteoo.EntryPointNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.kiesession.entrypoints.NamedEntryPointFactory; public class TraitEntryPointFactory extends NamedEntryPointFactory implements EntryPointFactory { diff --git a/drools-traits/src/main/java/org/drools/traits/core/common/TraitNamedEntryPoint.java b/drools-traits/src/main/java/org/drools/traits/core/common/TraitNamedEntryPoint.java index eab8134eca8..12824c4f4b4 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/common/TraitNamedEntryPoint.java +++ b/drools-traits/src/main/java/org/drools/traits/core/common/TraitNamedEntryPoint.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.common; import org.drools.core.base.TraitHelper; @@ -21,11 +23,11 @@ import org.drools.core.common.InternalWorkingMemoryActions; import org.drools.core.common.PropagationContext; import org.drools.core.common.ReteEvaluator; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.definitions.rule.impl.RuleImpl; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.TerminalNode; -import org.drools.core.rule.EntryPointId; +import org.drools.base.rule.EntryPointId; import org.drools.core.rule.consequence.InternalMatch; import org.drools.kiesession.entrypoints.NamedEntryPoint; import org.drools.traits.core.base.TraitHelperImpl; diff --git a/drools-traits/src/main/java/org/drools/traits/core/definitions/impl/TraitKnowledgePackageImpl.java b/drools-traits/src/main/java/org/drools/traits/core/definitions/impl/TraitKnowledgePackageImpl.java index 9d526cc0617..c7c6c392a7e 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/definitions/impl/TraitKnowledgePackageImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/definitions/impl/TraitKnowledgePackageImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.definitions.impl; import java.io.ByteArrayInputStream; @@ -25,20 +27,20 @@ import java.util.Map; import java.util.Set; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; -import org.drools.core.definitions.ResourceTypePackageRegistry; -import org.drools.core.definitions.rule.impl.RuleImpl; -import org.drools.core.impl.RuleBase; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; +import org.drools.base.definitions.ResourceTypePackageRegistry; +import org.drools.base.definitions.rule.impl.RuleImpl; import org.drools.core.reteoo.RuntimeComponentFactory; -import org.drools.core.rule.DialectRuntimeRegistry; -import org.drools.core.rule.Function; -import org.drools.core.rule.ImportDeclaration; -import org.drools.core.rule.WindowDeclaration; +import org.drools.base.rule.DialectRuntimeRegistry; +import org.drools.base.rule.Function; +import org.drools.base.rule.ImportDeclaration; +import org.drools.base.rule.WindowDeclaration; import org.drools.mvel.MVELKnowledgePackageImpl; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.drools.traits.core.factmodel.TraitRegistryImpl; import org.drools.traits.core.reteoo.TraitRuntimeComponentFactory; +import org.drools.base.RuleBase; import org.kie.api.runtime.rule.AccumulateFunction; public class TraitKnowledgePackageImpl extends MVELKnowledgePackageImpl { @@ -48,9 +50,9 @@ public class TraitKnowledgePackageImpl extends MVELKnowledgePackageImpl { private static final String[] implicitImports = new String[]{ "org.kie.api.definition.rule.*", "org.kie.api.definition.type.*", - "org.drools.core.factmodel.traits.Alias", - "org.drools.core.factmodel.traits.Trait", - "org.drools.core.factmodel.traits.Traitable", + "org.drools.base.factmodel.traits.Alias", + "org.drools.base.factmodel.traits.Trait", + "org.drools.base.factmodel.traits.Traitable", "org.drools.tms.beliefsystem.abductive.Abductive", "org.drools.tms.beliefsystem.abductive.Abducible"}; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractPropertyWrapperClassBuilderImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractPropertyWrapperClassBuilderImpl.java index c0660422e92..04cd7bf3037 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractPropertyWrapperClassBuilderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractPropertyWrapperClassBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Serializable; @@ -22,10 +24,10 @@ import java.util.Set; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.TraitFieldTMS; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.mvel.asm.AsmUtil; import org.mvel2.asm.Label; import org.mvel2.asm.MethodVisitor; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractProxyClassBuilderImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractProxyClassBuilderImpl.java index 988374ba85d..5b8a502c5c4 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractProxyClassBuilderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractProxyClassBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.IOException; @@ -26,14 +28,14 @@ import java.util.Map; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.TraitFieldTMS; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.mvel.asm.AsmUtil; import org.mvel2.MVEL; import org.mvel2.asm.ClassVisitor; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractTraitFactory.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractTraitFactory.java index e136c06d52f..3b2f586e727 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractTraitFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractTraitFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; @@ -29,18 +31,18 @@ import java.util.HashMap; import java.util.Map; +import org.drools.core.impl.InternalRuleBase; import org.drools.mvel.accessors.ClassFieldAccessor; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.impl.RuleBase; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.mvel.asm.AsmUtil; import org.drools.mvel.asm.ClassFieldInspectorImpl; @@ -58,7 +60,7 @@ public abstract class AbstractTraitFactory, K extends Traitab public static final String SUFFIX = "_Trait__Extension"; - protected static final String PACKAGE = "org.drools.core.factmodel.traits."; + protected static final String PACKAGE = "org.drools.base.factmodel.traits."; protected Map factoryCache = new HashMap<>(); @@ -69,7 +71,7 @@ public abstract class AbstractTraitFactory, K extends Traitab public AbstractTraitFactory() { } - protected static void setMode(VirtualPropertyMode newMode, RuleBase kBase, RuntimeComponentFactory rcf) { + protected static void setMode(VirtualPropertyMode newMode, InternalRuleBase kBase, RuntimeComponentFactory rcf) { TraitFactoryImpl traitFactory = (TraitFactoryImpl) rcf.getTraitFactory(kBase); traitFactory.mode = newMode; switch (newMode) { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractTriple.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractTriple.java index d9da98635e9..a90029123a7 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractTriple.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/AbstractTriple.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import org.kie.api.runtime.rule.Variable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/BitMaskKey.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/BitMaskKey.java index 8d90805ab4e..32efd60d8ba 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/BitMaskKey.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/BitMaskKey.java @@ -1,24 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.util.BitSet; -import org.drools.core.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitType; public class BitMaskKey extends Key implements LatticeElement { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/CodedHierarchy.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/CodedHierarchy.java index fe8aaab0f8c..c02fba4c4bf 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/CodedHierarchy.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/CodedHierarchy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Entity.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Entity.java index d930e0ef715..9a27be09e37 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Entity.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Entity.java @@ -1,25 +1,27 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitFieldTMS; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; import org.kie.api.definition.type.PropertyReactive; import java.io.Serializable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/ExternalizableLinkedHashMap.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/ExternalizableLinkedHashMap.java index dd73cc2eeff..90d11097c68 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/ExternalizableLinkedHashMap.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/ExternalizableLinkedHashMap.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.factmodel; import java.io.Externalizable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Fact.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Fact.java index 425a25716ca..d0d53b2f01e 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Fact.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Fact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.core.factmodel; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Field.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Field.java index 00f53f6d445..ca2c79345c4 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Field.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Field.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.core.factmodel; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/HierarchyEncoder.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/HierarchyEncoder.java index cc0c273a606..eb14e4c937f 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/HierarchyEncoder.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/HierarchyEncoder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.util.BitSet; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/IndexedTypeHierarchy.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/IndexedTypeHierarchy.java index c962c146bcf..6bb48660cfc 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/IndexedTypeHierarchy.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/IndexedTypeHierarchy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.core.factmodel; import org.drools.traits.core.util.AbstractCodedHierarchyImpl; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Jenerator.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Jenerator.java index f0dd4607115..9763d6c64a5 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Jenerator.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Jenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.core.factmodel; @@ -27,8 +29,8 @@ import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; import org.drools.util.IoUtils; import static org.kie.utll.xml.XStreamUtils.createNonTrustingXStream; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Key.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Key.java index 364a82de7d2..55fc3d9e9d2 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Key.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Key.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Serializable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/LatticeElement.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/LatticeElement.java index b07a9eba134..976276b7398 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/LatticeElement.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/LatticeElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.util.BitSet; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/LogicalMapCore.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/LogicalMapCore.java index e26f36ef179..e3ccc31272c 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/LogicalMapCore.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/LogicalMapCore.java @@ -1,24 +1,25 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; -import org.drools.core.factmodel.traits.TraitFieldTMS; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.traits.core.factmodel.MapCore; +import org.drools.base.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.Traitable; import java.util.Map; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/LogicalTypeInconsistencyException.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/LogicalTypeInconsistencyException.java index db36f539863..91bdd700da3 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/LogicalTypeInconsistencyException.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/LogicalTypeInconsistencyException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/MapCore.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/MapCore.java index 442ec8c7f76..2f585675d45 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/MapCore.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/MapCore.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.util.Collection; @@ -21,14 +23,14 @@ import java.util.Set; import java.util.UUID; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitFieldTMS; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.rule.TypeDeclaration; -import static org.drools.core.factmodel.traits.TraitConstants.FIELDTMS_FIELD_NAME; -import static org.drools.core.factmodel.traits.TraitConstants.TRAITSET_FIELD_NAME; +import static org.drools.base.factmodel.traits.TraitConstants.FIELDTMS_FIELD_NAME; +import static org.drools.base.factmodel.traits.TraitConstants.TRAITSET_FIELD_NAME; @Traitable public class MapCore implements TraitableMap { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/MapWrapper.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/MapWrapper.java index 2e18bb79e70..14de8c9cc5e 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/MapWrapper.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/MapWrapper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.util.Map; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/NullTraitType.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/NullTraitType.java index d9b4fcf23fa..63dad599abc 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/NullTraitType.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/NullTraitType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; @@ -24,8 +26,8 @@ import java.util.Collections; import java.util.Map; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitType; public class NullTraitType implements TraitType, Thing, Externalizable { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/ThingProxyImplPlaceHolder.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/ThingProxyImplPlaceHolder.java index 7fd68187bc1..a414e44f860 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/ThingProxyImplPlaceHolder.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/ThingProxyImplPlaceHolder.java @@ -1,27 +1,29 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Serializable; import java.util.BitSet; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitableBean; public class ThingProxyImplPlaceHolder extends TraitProxyImpl implements Thing, TraitType, Serializable { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitBuilderUtil.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitBuilderUtil.java index 717a1c389df..00236a31a37 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitBuilderUtil.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitBuilderUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.lang.annotation.Annotation; @@ -28,9 +30,9 @@ import java.util.Set; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; import org.drools.mvel.asm.AsmUtil; import org.drools.mvel.asm.ClassFieldInspectorImpl; import org.mvel2.asm.ClassWriter; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitClassBuilderFactory.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitClassBuilderFactory.java index 87dc87724d4..a2c11f9120f 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitClassBuilderFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitClassBuilderFactory.java @@ -1,23 +1,25 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.rule.TypeDeclaration; import org.drools.mvel.asm.DefaultClassBuilderFactory; public class TraitClassBuilderFactory extends DefaultClassBuilderFactory { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitClassBuilderImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitClassBuilderImpl.java index 3c7dfecfd07..6e93cfae9bb 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitClassBuilderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitClassBuilderImpl.java @@ -1,30 +1,32 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Serializable; -import org.drools.core.factmodel.AnnotationDefinition; +import org.drools.base.factmodel.AnnotationDefinition; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.GeneratedFact; -import org.drools.core.factmodel.traits.Trait; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.GeneratedFact; +import org.drools.base.factmodel.traits.Trait; import org.mvel2.asm.AnnotationVisitor; import org.mvel2.asm.ClassWriter; import org.mvel2.asm.MethodVisitor; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitCoreWrapperClassBuilder.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitCoreWrapperClassBuilder.java index b80ba236aec..1e2de3d30e9 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitCoreWrapperClassBuilder.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitCoreWrapperClassBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitCoreWrapperClassBuilderImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitCoreWrapperClassBuilderImpl.java index 5ebf6f41e8e..d383f7f58f1 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitCoreWrapperClassBuilderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitCoreWrapperClassBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; @@ -33,13 +35,13 @@ import java.util.Set; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitConstants; -import org.drools.core.factmodel.traits.TraitFieldTMS; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitConstants; +import org.drools.base.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.Traitable; import org.drools.mvel.asm.AsmUtil; import org.kie.api.definition.type.FactField; import org.mvel2.asm.AnnotationVisitor; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFactoryImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFactoryImpl.java index cd51ff7e8ef..7f748e5f8d3 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFactoryImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFactoryImpl.java @@ -1,35 +1,37 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; import java.util.HashSet; import java.util.Set; +import org.drools.core.impl.InternalRuleBase; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitFactory; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.impl.RuleBase; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitFactory; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.RuleBase; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.util.ClassUtils; -import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.mvel.MVELKnowledgePackageImpl; import org.kie.api.KieBase; import org.mvel2.asm.Opcodes; @@ -44,11 +46,12 @@ public class TraitFactoryImpl, K extends TraitableBean> exten private TripleStore tripleStore; + public static void setMode( VirtualPropertyMode newMode, KieBase kBase ) { - setMode( newMode, (InternalKnowledgeBase) kBase ); + setMode( newMode, (InternalRuleBase) kBase); } - public static void setMode( VirtualPropertyMode newMode, InternalKnowledgeBase kBase ) { + public static void setMode( VirtualPropertyMode newMode, InternalRuleBase kBase) { setMode( newMode, kBase, RuntimeComponentFactory.get() ); } @@ -65,7 +68,7 @@ public TraitFactoryImpl(RuleBase ruleBase) { protected Class registerAndLoadTypeDefinition( String proxyName, byte[] proxy ) throws ClassNotFoundException { registerRuntimeClass( proxyName ); - return ruleBase.registerAndLoadTypeDefinition( proxyName, proxy ); + return ((InternalRuleBase)ruleBase).registerAndLoadTypeDefinition(proxyName, proxy); } private void registerRuntimeClass( String proxyName ) { @@ -103,11 +106,11 @@ protected TripleFactory getTripleFactory() { } protected ClassFieldAccessorStore getClassFieldAccessorStore() { - InternalKnowledgePackage traitPackage = ruleBase.getPackagesMap().get(PACKAGE); + InternalKnowledgePackage traitPackage = ((InternalRuleBase)ruleBase).getPackagesMap().get(PACKAGE); if ( traitPackage == null ) { traitPackage = CoreComponentFactory.get().createKnowledgePackage(PACKAGE); - traitPackage.setClassFieldAccessorCache( ruleBase.getClassFieldAccessorCache() ); - ruleBase.getPackagesMap().put(PACKAGE, traitPackage ); + traitPackage.setClassFieldAccessorCache( ((InternalRuleBase)ruleBase).getClassFieldAccessorCache()); + ((InternalRuleBase)ruleBase).getPackagesMap().put(PACKAGE, traitPackage); } return ((MVELKnowledgePackageImpl)traitPackage).getClassFieldAccessorStore(); } diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldDefaultValue.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldDefaultValue.java index 27480eed68c..7974c5fa34c 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldDefaultValue.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldDefaultValue.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Serializable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldImpl.java index 6665757370f..4304c9be5d2 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldImpl.java @@ -1,30 +1,32 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import org.drools.core.WorkingMemory; import org.drools.kiesession.agenda.DefaultAgenda; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.TraitField; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.TraitField; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.TypeDeclaration; import org.drools.core.rule.consequence.KnowledgeHelper; import java.io.Externalizable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldTMSImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldTMSImpl.java index 952c7497ad3..8f3b6d1483d 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldTMSImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitFieldTMSImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; @@ -28,14 +30,14 @@ import java.util.Map; import org.drools.core.WorkingMemory; -import org.drools.core.factmodel.traits.TraitFieldTMS; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.util.PropertyReactivityUtil; -import org.drools.core.util.bitmask.BitMask; +import org.drools.base.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.util.PropertyReactivityUtil; +import org.drools.util.bitmask.BitMask; import org.drools.mvel.MVELSafeHelper; -import static org.drools.core.reteoo.PropertySpecificUtil.onlyTraitBitSetMask; -import static org.drools.core.reteoo.PropertySpecificUtil.setPropertyOnMask; +import static org.drools.base.reteoo.PropertySpecificUtil.onlyTraitBitSetMask; +import static org.drools.base.reteoo.PropertySpecificUtil.setPropertyOnMask; public class TraitFieldTMSImpl implements TraitFieldTMS, Externalizable { @@ -46,10 +48,10 @@ public class TraitFieldTMSImpl implements TraitFieldTMS, Externalizable { private BitMask modificationMask = onlyTraitBitSetMask(); - public void init( WorkingMemory wm ) { - this.workingMemory = wm; + public void init( Object wm ) { + this.workingMemory = (WorkingMemory) wm; if ( getTypeCache().needsInit() ) { - getTypeCache().init( wm ); + getTypeCache().init( workingMemory ); } } diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitMapPropertyWrapperClassBuilderImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitMapPropertyWrapperClassBuilderImpl.java index d041ddd4278..81551f7e2b8 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitMapPropertyWrapperClassBuilderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitMapPropertyWrapperClassBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.IOException; @@ -28,8 +30,8 @@ import java.util.Set; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; import org.drools.mvel.asm.AsmUtil; import org.mvel2.asm.ClassVisitor; import org.mvel2.asm.ClassWriter; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitMapProxyClassBuilderImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitMapProxyClassBuilderImpl.java index 57114a198da..c5eacd271e4 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitMapProxyClassBuilderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitMapProxyClassBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.IOException; @@ -28,11 +30,11 @@ import java.util.Set; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.mvel.asm.AsmUtil; import org.drools.traits.core.factmodel.TraitBuilderUtil.MixinInfo; import org.kie.api.definition.type.FactField; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitPropertyWrapperClassBuilder.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitPropertyWrapperClassBuilder.java index f94b4ae2573..5c67a28f6e0 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitPropertyWrapperClassBuilder.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitPropertyWrapperClassBuilder.java @@ -1,23 +1,25 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.factmodel.ClassDefinition; import org.mvel2.asm.Opcodes; public interface TraitPropertyWrapperClassBuilder extends ClassBuilder, Opcodes { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxy.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxy.java index 58d0ade4d52..97e93715f83 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxy.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxy.java @@ -1,24 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.util.BitSet; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.TraitableBean; public interface TraitProxy { TraitableBean getObject(); diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxyClassBuilder.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxyClassBuilder.java index 1ebe14df4e6..3b7450b3b02 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxyClassBuilder.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxyClassBuilder.java @@ -1,23 +1,25 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; -import org.drools.core.factmodel.ClassDefinition; +import org.drools.base.factmodel.ClassDefinition; import org.mvel2.asm.Opcodes; public interface TraitProxyClassBuilder extends ClassBuilder, Opcodes { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxyImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxyImpl.java index c4d3baac9e5..b4e4df0c17f 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxyImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitProxyImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; @@ -26,8 +28,8 @@ import java.util.Map; import java.util.Set; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitableBean; import org.kie.api.runtime.rule.Variable; import static org.drools.traits.core.base.TraitUtils.supersetOrEqualset; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitRegistry.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitRegistry.java index c2d06dd2d63..d9e0088f754 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitRegistry.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitRegistry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; public interface TraitRegistry { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitRegistryImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitRegistryImpl.java index 0a47fbea1b1..db7ff0e703f 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitRegistryImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitRegistryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; @@ -30,13 +32,13 @@ import java.util.Map; import java.util.Set; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.rule.TypeDeclaration; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.TypeDeclaration; import org.drools.util.ClassUtils; import org.drools.traits.core.util.HierNode; import org.drools.traits.core.util.HierarchyEncoderImpl; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTriplePropertyWrapperClassBuilderImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTriplePropertyWrapperClassBuilderImpl.java index 2b633fcd76f..31f9512e9d7 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTriplePropertyWrapperClassBuilderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTriplePropertyWrapperClassBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.IOException; @@ -27,8 +29,8 @@ import java.util.Set; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; import org.drools.mvel.asm.AsmUtil; import org.mvel2.asm.ClassVisitor; import org.mvel2.asm.ClassWriter; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTripleProxyClassBuilderImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTripleProxyClassBuilderImpl.java index ca598a4d04d..e77e876693c 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTripleProxyClassBuilderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTripleProxyClassBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; @@ -28,11 +30,11 @@ import java.util.Set; import org.drools.compiler.builder.impl.classbuilder.BuildUtils; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.mvel.asm.AsmUtil; import org.drools.traits.core.factmodel.TraitBuilderUtil.MixinInfo; import org.kie.api.definition.type.FactField; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTypeMapImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTypeMapImpl.java index 0a77d8ff6f3..abf75ee5328 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTypeMapImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitTypeMapImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; @@ -22,9 +24,9 @@ import java.io.ObjectOutput; import java.util.*; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.TraitTypeMap; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitTypeMap; public class TraitTypeMapImpl, C> extends TypeHierarchy> diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitableMap.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitableMap.java index 9daeda6f165..b99a3bf784a 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitableMap.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TraitableMap.java @@ -1,32 +1,34 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Serializable; import java.util.Map; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitFieldTMS; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; -import static org.drools.core.factmodel.traits.TraitConstants.FIELDTMS_FIELD_NAME; -import static org.drools.core.factmodel.traits.TraitConstants.TRAITSET_FIELD_NAME; +import static org.drools.base.factmodel.traits.TraitConstants.FIELDTMS_FIELD_NAME; +import static org.drools.base.factmodel.traits.TraitConstants.TRAITSET_FIELD_NAME; @Traitable public interface TraitableMap extends TraitableBean>, Serializable, Map, CoreWrapper { diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Triple.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Triple.java index a6154678a19..406b345e12d 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/Triple.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/Triple.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.factmodel; import java.io.Serializable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedBean.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedBean.java index 641cf498a56..0bbbd378d2b 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedBean.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.IOException; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedStruct.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedStruct.java index 93c06c62270..d90d14275cc 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedStruct.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedStruct.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedTypes.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedTypes.java index 151bc4a51f6..05664724bc6 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedTypes.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleBasedTypes.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.IOException; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleFactory.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleFactory.java index 3aa96fca6b8..3e6c6e3a370 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.factmodel; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleFactoryImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleFactoryImpl.java index 2e06f7a0cfe..a18f0222ff6 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleFactoryImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleFactoryImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.factmodel; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleImpl.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleImpl.java index 1320f51447b..37d3a5bdf49 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.factmodel; import org.drools.core.util.Entry; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleStore.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleStore.java index a28c7a5ab04..3b6fad25738 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleStore.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TripleStore.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeCache.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeCache.java index cc4c4b77fe3..bb87841d16c 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeCache.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeCache.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import org.drools.core.WorkingMemory; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeHierarchy.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeHierarchy.java index af853629479..c0f152b5c53 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeHierarchy.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeHierarchy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.core.factmodel; import org.drools.traits.core.util.AbstractBitwiseHierarchyImpl; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeLattice.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeLattice.java index fe855f41a9f..816fbb54780 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeLattice.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeLattice.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeWrapper.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeWrapper.java index 7ecc8b82067..f7553bb02fb 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeWrapper.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/TypeWrapper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.Externalizable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/factmodel/VirtualPropertyMode.java b/drools-traits/src/main/java/org/drools/traits/core/factmodel/VirtualPropertyMode.java index ea3643fdb71..25eb01175bf 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/factmodel/VirtualPropertyMode.java +++ b/drools-traits/src/main/java/org/drools/traits/core/factmodel/VirtualPropertyMode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/AbstractWMTask.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/AbstractWMTask.java index 73bf0e00eb6..7185847fb92 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/AbstractWMTask.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/AbstractWMTask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; public abstract class AbstractWMTask implements WorkingMemoryTask { diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ClassLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ClassLiteral.java index ed65e9daf86..2b3cc4efd30 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ClassLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ClassLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/Don.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/Don.java index d9aaa06e827..cc0c04c6e1c 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/Don.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/Don.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import org.drools.traits.core.factmodel.AbstractTraitFactory; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/DonLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/DonLiteral.java index 37d2ad57d7f..ab77fedcc05 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/DonLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/DonLiteral.java @@ -1,26 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; import org.drools.traits.core.factmodel.AbstractTraitFactory; import org.drools.traits.core.factmodel.LogicalTypeInconsistencyException; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.traits.core.util.StandaloneTraitFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/Identifiable.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/Identifiable.java index 9f554801ae3..8384476bf83 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/Identifiable.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/Identifiable.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/InverseManyValuedMetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/InverseManyValuedMetaProperty.java index 0c7d604d23a..bd9463d85c5 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/InverseManyValuedMetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/InverseManyValuedMetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/InverseOneValuedMetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/InverseOneValuedMetaProperty.java index c8ade40b1cc..ce4c10d0c98 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/InverseOneValuedMetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/InverseOneValuedMetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/InvertibleMetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/InvertibleMetaProperty.java index 37fae978fc8..93dd3063a31 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/InvertibleMetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/InvertibleMetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; //TODO FIXME make this extend MetaProperty diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/InvertiblePropertyLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/InvertiblePropertyLiteral.java index 015bdcb6e14..3b7ae93e222 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/InvertiblePropertyLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/InvertiblePropertyLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/Lit.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/Lit.java index 7dbeb1814d8..6f0990ada6a 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/Lit.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/Lit.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToManyPropertyLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToManyPropertyLiteral.java index d6e3342447e..819542398f3 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToManyPropertyLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToManyPropertyLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToManyValuedMetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToManyValuedMetaProperty.java index c64c666ddd2..f08e11f219f 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToManyValuedMetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToManyValuedMetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToOnePropertyLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToOnePropertyLiteral.java index b7c0775f695..f8756c7e533 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToOnePropertyLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToOnePropertyLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToOneValuedMetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToOneValuedMetaProperty.java index 3dcd22bc18a..c8aab779ee9 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToOneValuedMetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyToOneValuedMetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyValuedMetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyValuedMetaProperty.java index e91c3bd66ce..332aa38e853 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyValuedMetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ManyValuedMetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.util.Collection; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaCallableTask.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaCallableTask.java index a97fecfff43..672afd7aa4f 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaCallableTask.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaCallableTask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaClass.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaClass.java index 1c8c4c10de7..1be0b8f4fdb 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaClass.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaClass.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; public interface MetaClass extends Identifiable { diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaProperty.java index 16d7a287ed6..7394ff95c23 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetadataContainer.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetadataContainer.java index e305a3501d0..ab804250fd1 100755 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetadataContainer.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetadataContainer.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.io.Serializable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetadataHolder.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetadataHolder.java index 8e512ee787d..3d4496d8ce3 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/MetadataHolder.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/MetadataHolder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; public interface MetadataHolder extends Metadatable { diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/Metadatable.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/Metadatable.java index a95cc8aa015..077854e0742 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/Metadatable.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/Metadatable.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; public interface Metadatable { diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/Modify.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/Modify.java index 8ef576578da..76c4d0af158 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/Modify.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/Modify.java @@ -1,22 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import org.drools.kiesession.rulebase.InternalKnowledgeBase; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; public interface Modify extends WorkingMemoryTask { @@ -24,7 +27,7 @@ public interface Modify extends WorkingMemoryTask { public T call( T o ); - public T call( InternalKnowledgeBase knowledgeBase ); + public T call( InternalKnowledgeBase knowledgeBase); public BitMask getModificationMask(); diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ModifyLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ModifyLiteral.java index 832b10762b5..8cfe2e5f5ce 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ModifyLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ModifyLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.io.Serializable; @@ -21,13 +24,13 @@ import java.util.Collections; import java.util.List; -import org.drools.core.reteoo.PropertySpecificUtil; -import org.drools.core.util.PropertyReactivityUtil; -import org.drools.core.util.bitmask.BitMask; +import org.drools.base.reteoo.PropertySpecificUtil; +import org.drools.base.util.PropertyReactivityUtil; +import org.drools.util.bitmask.BitMask; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.traits.core.factmodel.TraitProxyImpl; -import static org.drools.core.reteoo.PropertySpecificUtil.setPropertyOnMask; +import static org.drools.base.reteoo.PropertySpecificUtil.setPropertyOnMask; public abstract class ModifyLiteral extends AbstractWMTask implements Modify, Serializable { private T target; @@ -114,14 +117,14 @@ public T call() { return target; } - public T call( InternalKnowledgeBase knowledgeBase ) { + public T call( InternalKnowledgeBase knowledgeBase) { computeModificationMasks( knowledgeBase ); task.call( target ); return target; } - protected void computeModificationMasks( InternalKnowledgeBase knowledgeBase ) { + protected void computeModificationMasks( InternalKnowledgeBase knowledgeBase) { List settableProperties = getAccessibleProperties( target, knowledgeBase ); modificationMask = PropertySpecificUtil.getEmptyPropertyReactiveMask( settableProperties.size() ); @@ -140,7 +143,7 @@ protected void computeModificationMasks( InternalKnowledgeBase knowledgeBase ) { } - protected List getAccessibleProperties( Object o, InternalKnowledgeBase knowledgeBase ) { + protected List getAccessibleProperties( Object o, InternalKnowledgeBase knowledgeBase) { if ( knowledgeBase != null ) { return PropertySpecificUtil.getAccessibleProperties( knowledgeBase, o.getClass() ); } else { diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ModifyTask.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ModifyTask.java index ad4ae59eb7a..844807f7a4f 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ModifyTask.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ModifyTask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; public interface ModifyTask { diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/NewInstance.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/NewInstance.java index 73341dbd99c..8246fd5a2ea 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/NewInstance.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/NewInstance.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; public interface NewInstance extends WorkingMemoryTask { diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/NewInstanceLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/NewInstanceLiteral.java index 54b18dd4b5e..b98b8a7efd2 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/NewInstanceLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/NewInstanceLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToManyPropertyLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToManyPropertyLiteral.java index 1d3cf9d2ecc..5a9472ebe0e 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToManyPropertyLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToManyPropertyLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToManyValuedMetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToManyValuedMetaProperty.java index 7e49db49e61..67c800be401 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToManyValuedMetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToManyValuedMetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToOnePropertyLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToOnePropertyLiteral.java index 87e33251100..f4281410eea 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToOnePropertyLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToOnePropertyLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToOneValuedMetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToOneValuedMetaProperty.java index 51ff14f1381..86618370b74 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToOneValuedMetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneToOneValuedMetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneValuedMetaProperty.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneValuedMetaProperty.java index 83502433c57..b4ee4fc84f9 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/OneValuedMetaProperty.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/OneValuedMetaProperty.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/PropertyLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/PropertyLiteral.java index 5888f180a2d..77aff7a7f5d 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/PropertyLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/PropertyLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.io.Serializable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/Shed.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/Shed.java index 75b7a6602ef..170be2dc762 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/Shed.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/Shed.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import org.drools.traits.core.factmodel.AbstractTraitFactory; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ToManyPropertyLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ToManyPropertyLiteral.java index 172ab215b1b..ca4103164d4 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ToManyPropertyLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ToManyPropertyLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/ToOnePropertyLiteral.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/ToOnePropertyLiteral.java index f69d4b7940d..d41038aa2b8 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/ToOnePropertyLiteral.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/ToOnePropertyLiteral.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.net.URI; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/With.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/With.java index a80d57962d3..7c519243b72 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/With.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/With.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.util.Collection; diff --git a/drools-traits/src/main/java/org/drools/traits/core/metadata/WorkingMemoryTask.java b/drools-traits/src/main/java/org/drools/traits/core/metadata/WorkingMemoryTask.java index 50d33e6745c..5db21ae9a6b 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/metadata/WorkingMemoryTask.java +++ b/drools-traits/src/main/java/org/drools/traits/core/metadata/WorkingMemoryTask.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.metadata; import java.io.Serializable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitAlphaNode.java b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitAlphaNode.java index 974d9280941..068e690da07 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitAlphaNode.java +++ b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitAlphaNode.java @@ -1,32 +1,34 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.reteoo; import java.util.List; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.traits.core.base.evaluators.IsAEvaluatorDefinition; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.ObjectSource; -import org.drools.core.reteoo.PropertySpecificUtil; +import org.drools.base.reteoo.PropertySpecificUtil; import org.drools.core.reteoo.builder.BuildContext; import org.drools.mvel.EvaluatorConstraint; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.util.bitmask.BitMask; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.util.bitmask.BitMask; import org.kie.api.runtime.rule.Operator; public class TraitAlphaNode extends AlphaNode { diff --git a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitCoreComponentFactory.java b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitCoreComponentFactory.java index 37abe89c093..25c657777d7 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitCoreComponentFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitCoreComponentFactory.java @@ -1,21 +1,24 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.traits.core.reteoo; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.drools.core.reteoo.CoreComponentFactory; import org.drools.core.reteoo.builder.NodeFactory; import org.drools.traits.core.definitions.impl.TraitKnowledgePackageImpl; diff --git a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitFactHandleFactory.java b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitFactHandleFactory.java index c1bc2d9a7de..28a45d3b959 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitFactHandleFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitFactHandleFactory.java @@ -1,24 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.reteoo; import org.drools.core.WorkingMemoryEntryPoint; import org.drools.core.common.DefaultFactHandle; -import org.drools.core.reteoo.InitialFactImpl; +import org.drools.base.reteoo.InitialFactImpl; import org.drools.core.reteoo.ReteooFactHandleFactory; import org.drools.core.rule.accessor.FactHandleFactory; import org.drools.traits.core.common.TraitDefaultFactHandle; diff --git a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitObjectTypeNode.java b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitObjectTypeNode.java index dcfc95fb655..8b3901cbb30 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitObjectTypeNode.java +++ b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitObjectTypeNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.reteoo; import java.util.BitSet; @@ -21,17 +23,17 @@ import org.drools.core.common.InternalFactHandle; import org.drools.core.common.ReteEvaluator; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitType; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ModifyPreviousTuples; import org.drools.core.reteoo.ObjectTypeNode; -import org.drools.core.reteoo.PropertySpecificUtil; +import org.drools.base.reteoo.PropertySpecificUtil; import org.drools.core.reteoo.RuntimeComponentFactory; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.core.common.PropagationContext; -import org.drools.core.util.bitmask.BitMask; +import org.drools.util.bitmask.BitMask; import org.drools.traits.core.factmodel.TraitProxyImpl; import org.drools.traits.core.factmodel.TraitTypeMapImpl; diff --git a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitPhreakNodeFactory.java b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitPhreakNodeFactory.java index a4c1b11e4e6..b6147f4d389 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitPhreakNodeFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitPhreakNodeFactory.java @@ -1,23 +1,25 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.reteoo; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.ValueType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.base.ValueType; import org.drools.traits.core.factmodel.TraitProxy; import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.EntryPointNode; @@ -26,8 +28,8 @@ import org.drools.core.reteoo.builder.BuildContext; import org.drools.core.reteoo.builder.NodeFactory; import org.drools.core.reteoo.builder.PhreakNodeFactory; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.base.ObjectType; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.base.ObjectType; public class TraitPhreakNodeFactory extends PhreakNodeFactory { diff --git a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitProxyObjectTypeNode.java b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitProxyObjectTypeNode.java index 99b893e0065..516114c6084 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitProxyObjectTypeNode.java +++ b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitProxyObjectTypeNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.reteoo; import org.drools.core.common.InternalFactHandle; @@ -22,7 +24,7 @@ import org.drools.core.reteoo.ModifyPreviousTuples; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.drools.core.common.PropagationContext; public class TraitProxyObjectTypeNode extends ObjectTypeNode { diff --git a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitRuntimeComponentFactory.java b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitRuntimeComponentFactory.java index 914fafe9db1..f0fd137c04f 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitRuntimeComponentFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitRuntimeComponentFactory.java @@ -1,24 +1,26 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.reteoo; import org.drools.traits.core.factmodel.TraitRegistry; -import org.drools.core.impl.RuleBase; import org.drools.core.reteoo.RuntimeComponentFactory; +import org.drools.base.RuleBase; public interface TraitRuntimeComponentFactory extends RuntimeComponentFactory { TraitRegistry getTraitRegistry(RuleBase knowledgeBase); diff --git a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitRuntimeComponentFactoryImpl.java b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitRuntimeComponentFactoryImpl.java index d72c322ba5d..b0e139ad08f 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitRuntimeComponentFactoryImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/reteoo/TraitRuntimeComponentFactoryImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.reteoo; import java.util.IdentityHashMap; @@ -21,10 +23,10 @@ import java.util.WeakHashMap; import org.drools.core.common.EntryPointFactory; -import org.drools.core.impl.RuleBase; +import org.drools.kiesession.rulebase.SessionsAwareKnowledgeBase; +import org.drools.base.RuleBase; import org.drools.core.rule.accessor.FactHandleFactory; import org.drools.kiesession.factory.RuntimeComponentFactoryImpl; -import org.drools.kiesession.rulebase.SessionsAwareKnowledgeBase; import org.drools.traits.core.common.TraitEntryPointFactory; import org.drools.traits.core.factmodel.TraitFactoryImpl; import org.drools.traits.core.factmodel.TraitRegistry; diff --git a/drools-traits/src/main/java/org/drools/traits/core/util/AbstractBitwiseHierarchyImpl.java b/drools-traits/src/main/java/org/drools/traits/core/util/AbstractBitwiseHierarchyImpl.java index 72001b6d0fd..cf147d1d0f4 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/util/AbstractBitwiseHierarchyImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/util/AbstractBitwiseHierarchyImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.util; import org.drools.traits.core.factmodel.CodedHierarchy; diff --git a/drools-traits/src/main/java/org/drools/traits/core/util/AbstractCodedHierarchyImpl.java b/drools-traits/src/main/java/org/drools/traits/core/util/AbstractCodedHierarchyImpl.java index 198c8f316fb..1312e30a87a 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/util/AbstractCodedHierarchyImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/util/AbstractCodedHierarchyImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.util; import java.io.Externalizable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/util/CodedHierarchyImpl.java b/drools-traits/src/main/java/org/drools/traits/core/util/CodedHierarchyImpl.java index 08802d64233..a20b99a6e8b 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/util/CodedHierarchyImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/util/CodedHierarchyImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.util; import java.io.Externalizable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/util/HierNode.java b/drools-traits/src/main/java/org/drools/traits/core/util/HierNode.java index 9f49b88d6e0..337d2843e55 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/util/HierNode.java +++ b/drools-traits/src/main/java/org/drools/traits/core/util/HierNode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.util; import java.io.Externalizable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/util/HierarchyEncoderImpl.java b/drools-traits/src/main/java/org/drools/traits/core/util/HierarchyEncoderImpl.java index 89f9dc47cab..690aea529ec 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/util/HierarchyEncoderImpl.java +++ b/drools-traits/src/main/java/org/drools/traits/core/util/HierarchyEncoderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.core.util; import java.io.Externalizable; diff --git a/drools-traits/src/main/java/org/drools/traits/core/util/StandaloneTraitFactory.java b/drools-traits/src/main/java/org/drools/traits/core/util/StandaloneTraitFactory.java index 1fe71310767..20e28456e91 100644 --- a/drools-traits/src/main/java/org/drools/traits/core/util/StandaloneTraitFactory.java +++ b/drools-traits/src/main/java/org/drools/traits/core/util/StandaloneTraitFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.util; import java.io.IOException; @@ -22,12 +25,12 @@ import org.drools.core.base.ClassFieldAccessorCache; import org.drools.mvel.accessors.ClassFieldAccessorStore; -import org.drools.core.factmodel.AnnotationDefinition; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.AnnotationDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.TraitableBean; import org.drools.traits.core.factmodel.HierarchyEncoder; import org.drools.wiring.api.classloader.ProjectClassLoader; import org.drools.traits.core.factmodel.AbstractTraitFactory; diff --git a/drools-traits/src/test/filtered-resources/META-INF/persistence.xml b/drools-traits/src/test/filtered-resources/META-INF/persistence.xml index 6c29cb4771f..36800ba01f5 100644 --- a/drools-traits/src/test/filtered-resources/META-INF/persistence.xml +++ b/drools-traits/src/test/filtered-resources/META-INF/persistence.xml @@ -1,4 +1,24 @@ + { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/Person.java b/drools-traits/src/test/java/org/drools/traits/compiler/Person.java index 043defe5431..e95ad9611f3 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/Person.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/Person.java @@ -1,22 +1,24 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; import java.io.Serializable; import java.math.BigDecimal; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/PersonInterface.java b/drools-traits/src/test/java/org/drools/traits/compiler/PersonInterface.java index 1250de16cbb..30b3447fda0 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/PersonInterface.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/PersonInterface.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler; import java.math.BigDecimal; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/Pet.java b/drools-traits/src/test/java/org/drools/traits/compiler/Pet.java index c7c9afce28b..a18a167406d 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/Pet.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/Pet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.compiler; import java.util.HashMap; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/ReviseTraitTestWithPRAlwaysCategory.java b/drools-traits/src/test/java/org/drools/traits/compiler/ReviseTraitTestWithPRAlwaysCategory.java index 26a84d1780f..7c7a31a81fe 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/ReviseTraitTestWithPRAlwaysCategory.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/ReviseTraitTestWithPRAlwaysCategory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.compiler; /** diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/DoSomethingProxyImpl.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/DoSomethingProxyImpl.java index 80ee6395cd1..de1df6c5df1 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/DoSomethingProxyImpl.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/DoSomethingProxyImpl.java @@ -1,23 +1,25 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; import org.drools.traits.core.factmodel.TraitProxyImpl; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.TraitableBean; import java.util.BitSet; import java.util.Map; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IDoSomething.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IDoSomething.java index a6cba7d262d..6357ea4b931 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IDoSomething.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IDoSomething.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; public interface IDoSomething { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IPerson.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IPerson.java index dd2f4aa82c4..8a2d45a4ae0 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IPerson.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IPerson.java @@ -1,24 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.TraitableBean; @Trait public interface IPerson extends Thing { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IRole.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IRole.java index faa67e9d908..bc4504cfd07 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IRole.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IRole.java @@ -1,22 +1,24 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; -import org.drools.core.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.Trait; @Trait public interface IRole { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/ISomethingWithBehaviour.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/ISomethingWithBehaviour.java index 55481e4b49a..3ab303e5839 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/ISomethingWithBehaviour.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/ISomethingWithBehaviour.java @@ -1,21 +1,23 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; -import org.drools.core.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.Trait; @Trait( impl = SomethingImpl.class ) public interface ISomethingWithBehaviour extends IDoSomething { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IStudent.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IStudent.java index 7c1761160ea..33297ddea4b 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IStudent.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/IStudent.java @@ -1,25 +1,27 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.TraitType; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.TraitType; +import org.drools.base.factmodel.traits.TraitableBean; @Trait public interface IStudent extends IPerson,Thing, TraitType { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Imp.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Imp.java index d30b558db67..c663e626169 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Imp.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Imp.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; public class Imp { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Imp2.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Imp2.java index 5b51c43af11..80f7e6216eb 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Imp2.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Imp2.java @@ -1,25 +1,27 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitFieldTMS; import org.drools.traits.core.factmodel.TraitFieldTMSImpl; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.TraitableBean; import java.util.BitSet; import java.util.Collection; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/ImpCoreWrapper.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/ImpCoreWrapper.java index 3a596712fdb..103d6f45df3 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/ImpCoreWrapper.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/ImpCoreWrapper.java @@ -1,26 +1,28 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitFieldTMS; import org.drools.traits.core.factmodel.TraitTypeMapImpl; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.TraitableBean; import java.util.BitSet; import java.util.HashMap; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/LegacyTraitTest.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/LegacyTraitTest.java index 8216cf3374e..50e8a6b9218 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/LegacyTraitTest.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/LegacyTraitTest.java @@ -1,28 +1,29 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - - - + * 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. + */ package org.drools.traits.compiler.factmodel.traits; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.Traitable; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.traits.compiler.CommonTraitTest; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/LogicalTraitTest.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/LogicalTraitTest.java index a89452cbc42..8c7cee12196 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/LogicalTraitTest.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/LogicalTraitTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; import java.util.ArrayList; @@ -23,10 +25,11 @@ import java.util.Set; import org.drools.core.common.InternalFactHandle; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.TraitField; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.TraitField; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.core.impl.InternalRuleBase; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.serialization.protobuf.SerializationHelper; @@ -84,7 +87,7 @@ public void testShadowAlias() { InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addPackages( kbuilderImpl.getKnowledgePackages() ); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); KieSession ks = kbase.newKieSession(); @@ -119,8 +122,8 @@ public void testShadowAlias() { public void testShadowAliasTraitOnClass() { String drl = "package org.drools.test; \n" + - "import org.drools.core.factmodel.traits.*; \n" + - "import org.drools.core.factmodel.traits.Trait; \n" + + "import org.drools.base.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.Trait; \n" + "" + "global java.util.List list; \n" + "" + @@ -158,7 +161,7 @@ public void testShadowAliasTraitOnClass() { InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addPackages( kbuilderImpl.getKnowledgePackages() ); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); KieSession ks = kbase.newKieSession(); ArrayList list = new ArrayList(); @@ -184,8 +187,8 @@ public void testShadowAliasTraitOnClass() { public void testShadowAliasClassOnTrait() { String drl = "package org.drools.test; \n" + - "import org.drools.core.factmodel.traits.*; \n" + - "import org.drools.core.factmodel.traits.Trait; \n" + + "import org.drools.base.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.Trait; \n" + "" + "global java.util.List list; \n" + "" + @@ -237,7 +240,7 @@ public void testShadowAliasClassOnTrait() { InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addPackages( kbuilderImpl.getKnowledgePackages() ); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); KieSession ks = kbase.newKieSession(); ArrayList list = new ArrayList(); @@ -265,8 +268,8 @@ public void testShadowAliasClassOnTrait() { public void testShadowAliasTraitOnTrait() { String drl = "package org.drools.test; \n" + - "import org.drools.core.factmodel.traits.*; \n" + - "import org.drools.core.factmodel.traits.Trait; \n" + + "import org.drools.base.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.Trait; \n" + "" + "global java.util.List list; \n" + "" + @@ -311,7 +314,7 @@ public void testShadowAliasTraitOnTrait() { InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addPackages( kbuilderImpl.getKnowledgePackages() ); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); KieSession ks = kbase.newKieSession(); ArrayList list = new ArrayList(); @@ -744,8 +747,8 @@ public void testDataStructs() { public void shadowAliasSelf() { String drl = "package org.drools.test; \n" + - "import org.drools.core.factmodel.traits.*; \n" + - "import org.drools.core.factmodel.traits.Trait; \n" + + "import org.drools.base.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.Trait; \n" + "" + "global java.util.List list; \n" + "" + @@ -785,7 +788,7 @@ public void shadowAliasSelf() { InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addPackages( kbuilderImpl.getKnowledgePackages() ); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); KieSession ks = kbase.newKieSession(); ArrayList list = new ArrayList(); @@ -808,8 +811,8 @@ public void shadowAliasSelf() { public void traitOnSet() { String drl = "package org.drools.test; \n" + - "import org.drools.core.factmodel.traits.*; \n" + - "import org.drools.core.factmodel.traits.Trait; \n" + + "import org.drools.base.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.Trait; \n" + "" + "global java.util.List list; \n" + "" + @@ -878,7 +881,7 @@ public void traitOnSet() { InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addPackages( kbuilderImpl.getKnowledgePackages() ); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); KieSession ks = kbase.newKieSession(); @@ -915,8 +918,8 @@ public void traitOnSet() { public void testShadowAliasTraitOnClassLogicalRetract() { String drl = "package org.drools.test; \n" + - "import org.drools.core.factmodel.traits.*; \n" + - "import org.drools.core.factmodel.traits.Trait; \n" + + "import org.drools.base.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.Trait; \n" + "" + "global java.util.List list; \n" + "" + @@ -996,7 +999,7 @@ public void testShadowAliasTraitOnClassLogicalRetract() { InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addPackages( kbuilderImpl.getKnowledgePackages() ); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); KieSession ks = kbase.newKieSession(); ArrayList list = new ArrayList(); @@ -1053,8 +1056,8 @@ public void testShadowAliasTraitOnClassLogicalRetract() { public void testShadowAliasClassOnTraitLogicalRetract() { String drl = "package org.drools.test; \n" + - "import org.drools.core.factmodel.traits.*; \n" + - "import org.drools.core.factmodel.traits.Trait; \n" + + "import org.drools.base.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.Trait; \n" + "" + "global java.util.List list; \n" + "" + @@ -1132,7 +1135,7 @@ public void testShadowAliasClassOnTraitLogicalRetract() { InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addPackages( kbuilderImpl.getKnowledgePackages() ); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); KieSession ks = kbase.newKieSession(); ArrayList list = new ArrayList(); @@ -1170,8 +1173,8 @@ public void testShadowAliasClassOnTraitLogicalRetract() { public void testSerial() { String drl = "package org.drools.test; \n" + - "import org.drools.core.factmodel.traits.*; \n" + - "import org.drools.core.factmodel.traits.Trait; \n" + + "import org.drools.base.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.Trait; \n" + "" + "global java.util.List list; \n" + "" + @@ -1201,7 +1204,7 @@ public void testSerial() { InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addPackages( kbuilderImpl.getKnowledgePackages() ); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); KieSession ks = kbase.newKieSession(); ArrayList list = new ArrayList(); @@ -1231,12 +1234,12 @@ public void testSerial() { public void testTraitMismatchTypes() { String drl = "" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Thing;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Thing;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -1283,12 +1286,12 @@ public void testTraitMismatchTypes() public void testTraitMismatchTypes2() { String drl = "" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Thing;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Thing;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -1337,11 +1340,11 @@ public void testTraitMismatchTypes2() public void testTraitMismatchTypes3() { String drl = "" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -1387,6 +1390,6 @@ public void testTraitMismatchTypes3() System.out.println( "list" + list ); assertThat(list.size()).isEqualTo(1); - assertThat(list.get(0).getClass().getName()).isEqualTo("org.drools.core.factmodel.traits.test.Bar"); + assertThat(list.get(0).getClass().getName()).isEqualTo("org.drools.base.factmodel.traits.test.Bar"); } } diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Message.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Message.java index 8a1870ca7bb..1156abb072a 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Message.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/Message.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.compiler.factmodel.traits; import java.io.Serializable; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/PojoFact.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/PojoFact.java index 006308c830c..ce8514f63d4 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/PojoFact.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/PojoFact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; public class PojoFact { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomeClass.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomeClass.java index 951ce2771e6..0f2c650a3b2 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomeClass.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomeClass.java @@ -1,23 +1,25 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; import org.drools.traits.core.factmodel.Entity; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; @Traitable public class SomeClass extends Entity { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomeInterface.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomeInterface.java index 249aac0214d..028c24f2020 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomeInterface.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomeInterface.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; public interface SomeInterface { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomethingImpl.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomethingImpl.java index c329d37d2d4..0ecae441112 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomethingImpl.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/SomethingImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; public class SomethingImpl implements IDoSomething { diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StandaloneTest.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StandaloneTest.java index 5ee9d14171d..2b820bfacbb 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StandaloneTest.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StandaloneTest.java @@ -1,25 +1,28 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.compiler.factmodel.traits; -import org.drools.core.factmodel.traits.CoreWrapper; -import org.drools.core.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.CoreWrapper; +import org.drools.base.factmodel.traits.Trait; import org.drools.traits.core.factmodel.Entity; import org.drools.traits.core.factmodel.LogicalTypeInconsistencyException; -import org.drools.core.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Thing; import org.drools.traits.core.util.StandaloneTraitFactory; import org.drools.wiring.api.classloader.ProjectClassLoader; import org.junit.Before; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentImpl.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentImpl.java index e140fa0a649..d3cbdca3afe 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentImpl.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentImpl.java @@ -1,26 +1,28 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.TraitFieldTMS; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.TraitFieldTMS; import org.drools.traits.core.factmodel.TraitTypeMapImpl; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; import java.util.BitSet; import java.util.HashMap; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyImpl2.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyImpl2.java index fcfbcb56233..235dd978609 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyImpl2.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyImpl2.java @@ -1,27 +1,29 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; import java.util.HashMap; import java.util.Map; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.WriteAccessor; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.WriteAccessor; import org.drools.traits.core.factmodel.ExternalizableLinkedHashMap; import org.drools.traits.core.factmodel.TraitProxyImpl; import org.drools.traits.core.factmodel.TraitTypeMapImpl; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyImpl3.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyImpl3.java index d247cf60c78..fa93b2b0e2a 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyImpl3.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyImpl3.java @@ -1,26 +1,28 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; import java.util.Map; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.WriteAccessor; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.WriteAccessor; import org.drools.traits.core.factmodel.TraitProxyImpl; import org.drools.traits.core.factmodel.TraitTypeMapImpl; import org.drools.traits.core.factmodel.Triple; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyWrapper2.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyWrapper2.java index 718474efc98..a33761dbab7 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyWrapper2.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyWrapper2.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; import java.util.ArrayList; @@ -22,8 +24,8 @@ import java.util.Map; import java.util.Set; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.WriteAccessor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.WriteAccessor; import org.drools.traits.core.factmodel.MapWrapper; import org.drools.traits.core.factmodel.TraitProxyImpl; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyWrapper3.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyWrapper3.java index 1f668cc6921..312a491aec4 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyWrapper3.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/StudentProxyWrapper3.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; import java.util.ArrayList; @@ -22,8 +24,8 @@ import java.util.Map; import java.util.Set; -import org.drools.core.rule.accessor.ReadAccessor; -import org.drools.core.rule.accessor.WriteAccessor; +import org.drools.base.rule.accessor.ReadAccessor; +import org.drools.base.rule.accessor.WriteAccessor; import org.drools.traits.core.factmodel.TraitProxyImpl; import org.drools.traits.core.factmodel.TripleBasedStruct; import org.drools.traits.core.factmodel.TripleStore; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitFieldsAndLegacyClassesTest.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitFieldsAndLegacyClassesTest.java index 884ea4eac19..dbee7e2a6cc 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitFieldsAndLegacyClassesTest.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitFieldsAndLegacyClassesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.compiler.factmodel.traits; import java.util.ArrayList; @@ -22,7 +25,6 @@ import org.drools.traits.compiler.CommonTraitTest; import org.drools.traits.compiler.ReviseTraitTestWithPRAlwaysCategory; -import org.drools.core.factmodel.FieldDefinition; import org.drools.traits.core.factmodel.TraitFactoryImpl; import org.drools.traits.core.factmodel.VirtualPropertyMode; import org.junit.Ignore; @@ -64,8 +66,8 @@ public void testTraitFieldUpdate0() { String drl = "" + "package org.drools.factmodel.traits0;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ - "import org.drools.core.factmodel.traits.Thing;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Thing;\n"+ "import java.util.*\n"+ "import " + Parent.class.getCanonicalName() + ";\n" + "import " + Child.class.getCanonicalName() + ";\n" + @@ -129,8 +131,8 @@ public void testTraitFieldUpdate1() { String drl = "" + "package org.drools.factmodel.traits;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ - "import org.drools.core.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Trait;\n" + "" + "global java.util.List list;\n"+ "\n"+ @@ -216,7 +218,7 @@ public void testTraitFieldUpdate2() { String drl = "" + "package org.drools.factmodel.traits2;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ "global java.util.List list;\n"+ "\n"+ "declare trait ParentTrait\n" + @@ -314,7 +316,7 @@ public void testTraitFieldUpdate3() { String drl = "" + "package org.drools.factmodel.traits3;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ "global java.util.List list;\n"+ "\n"+ "declare trait ParentTrait\n" + @@ -410,7 +412,7 @@ public void testTraitFieldUpdate4() { String drl = "" + "package org.drools.factmodel.traits4;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ "global java.util.List list;\n"+ "\n"+ "declare trait ParentTrait\n" + @@ -488,8 +490,8 @@ public void testTraitFieldUpdate5() { String drl = "" + "package org.drools.factmodel.traits5;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ - "import org.drools.core.factmodel.traits.Trait;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Trait;\n"+ "global java.util.List list;\n"+ "\n" + @@ -572,9 +574,9 @@ public void testTraitFieldUpdate6() { String drl = "" + "package org.drools.factmodel.traits6;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ - "import org.drools.core.factmodel.traits.Trait;\n"+ - "import org.drools.core.factmodel.traits.Thing;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Trait;\n"+ + "import org.drools.base.factmodel.traits.Thing;\n"+ "import " + Child.class.getCanonicalName() + ";\n" + //<<<<<< "global java.util.List list;\n"+ "\n"+ @@ -665,9 +667,9 @@ public void testTraitFieldUpdate7() { String drl = "" + "package org.drools.factmodel.traits;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ - "import org.drools.core.factmodel.traits.Trait;\n"+ - "import org.drools.core.factmodel.traits.Thing;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Trait;\n"+ + "import org.drools.base.factmodel.traits.Thing;\n"+ "import " + Child.class.getCanonicalName() + ";\n" + "import " + Parent.class.getCanonicalName() + ";\n" + //<<<<< "global java.util.List list;\n"+ @@ -749,8 +751,8 @@ public void testTraitFieldUpdate8() { String drl = "" + "package org.drools.factmodel.traits8;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ - "import org.drools.core.factmodel.traits.Thing;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Thing;\n"+ "import " + Child.class.getCanonicalName() + ";\n" + "import " + Parent.class.getCanonicalName() + ";\n" + //<<<<< "global java.util.List list;\n"+ @@ -831,8 +833,8 @@ public void testTraitFieldUpdate9() { String drl = "" + "package org.drools.factmodel.traits9;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ - "import org.drools.core.factmodel.traits.Thing;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Thing;\n"+ "import " + Child.class.getCanonicalName() + ";\n" + "import " + Parent.class.getCanonicalName() + ";\n" + //<<<<< "global java.util.List list;\n"+ @@ -922,8 +924,8 @@ public void testTraitFieldUpdate10() { String drl = "" + "package org.drools.factmodel.traits;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ - "import org.drools.core.factmodel.traits.Thing;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Thing;\n"+ "import " + Child.class.getCanonicalName() + ";\n" + "import " + Parent.class.getCanonicalName() + ";\n" + //<<<<< "global java.util.List list;\n"+ @@ -1014,8 +1016,8 @@ public void testTraitTwoParentOneChild() { String drl = "" + "package org.drools.factmodel.traits;\n" + "\n"+ - "import org.drools.core.factmodel.traits.Traitable;\n"+ - "import org.drools.core.factmodel.traits.Thing;\n"+ + "import org.drools.base.factmodel.traits.Traitable;\n"+ + "import org.drools.base.factmodel.traits.Thing;\n"+ "global java.util.List list;\n"+ "\n"+ "declare trait ParentTrait\n" + @@ -1125,7 +1127,7 @@ public void testTraitWithPositionArgs(){ String drl = "" + "package org.drools.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "\n" + "global java.util.List list;\n" + @@ -1264,7 +1266,7 @@ public void singlePositionTraitTest(){ String drl = "" + "package org.drools.traits.test;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -1305,7 +1307,7 @@ public void singlePositionTraitTest(){ drl = "" + "package org.drools.traits.test;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -1345,7 +1347,7 @@ public void singlePositionTraitTest(){ drl = "" + "package org.drools.traits.test;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -1385,7 +1387,7 @@ public void singlePositionTraitTest(){ drl = "" + "package org.drools.traits.test;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "global java.util.List list;\n" + "\n" + diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitMapCoreTest.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitMapCoreTest.java index c3092a180e5..6d5699e2b74 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitMapCoreTest.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitMapCoreTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.compiler.factmodel.traits; import java.util.ArrayList; @@ -24,7 +27,7 @@ import org.drools.core.ClassObjectFilter; import org.drools.traits.core.factmodel.TraitableMap; import org.drools.traits.core.factmodel.TraitFactoryImpl; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; import org.drools.traits.core.factmodel.VirtualPropertyMode; import org.junit.Test; import org.kie.api.runtime.KieSession; @@ -38,7 +41,7 @@ public void testMapCoreManyTraits( ) { String source = "package org.drools.test;\n" + "\n" + "import java.util.*;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "" + "global List list;\n " + "\n" + @@ -96,7 +99,7 @@ public void testMapCoreManyTraits( ) { public void donMapTest() { String source = "package org.drools.traits.test; \n" + "import java.util.*\n;" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "" + "global List list; \n" + "" + @@ -148,10 +151,10 @@ public void donMapTest() { @Test(timeout=10000) public void testMapCore2( ) { - String source = "package org.drools.core.factmodel.traits.test;\n" + + String source = "package org.drools.base.factmodel.traits.test;\n" + "\n" + "import java.util.*;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "" + "global List list;\n " + "" + @@ -275,10 +278,10 @@ public void testMapCore2( ) { @Test(timeout=10000) public void testMapCoreAliasing( ) { - String source = "package org.drools.core.factmodel.traits.test;\n" + + String source = "package org.drools.base.factmodel.traits.test;\n" + "\n" + "import java.util.*;\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "" + "global List list;\n " + "" + @@ -341,10 +344,10 @@ public void testMapCoreAliasing( ) { @Test(timeout=10000) public void testMapCoreAliasingLogicalTrueWithTypeClash( ) { - String source = "package org.drools.core.factmodel.traits.test;\n" + + String source = "package org.drools.base.factmodel.traits.test;\n" + "\n" + "import java.util.*;\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "" + "global List list;\n " + "" + @@ -396,10 +399,10 @@ public void testDrools216(){ String drl = "" + "\n" + "\n" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + "import java.util.*;\n" + - "import org.drools.core.factmodel.traits.Alias\n" + + "import org.drools.base.factmodel.traits.Alias\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -485,10 +488,10 @@ public void testDrools217(){ String drl = "" + "\n" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + "import java.util.*;\n" + - "import org.drools.core.factmodel.traits.Alias\n" + + "import org.drools.base.factmodel.traits.Alias\n" + "\n" + "global java.util.List list;\n" + "" + @@ -573,10 +576,10 @@ public void testDrools218(){ String drl = "" + "\n" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + "import java.util.*;\n" + - "import org.drools.core.factmodel.traits.Alias\n" + + "import org.drools.base.factmodel.traits.Alias\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -695,10 +698,10 @@ public void testDrools219(){ String drl = "" + "\n" + "\n" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + "import java.util.*;\n" + - "import org.drools.core.factmodel.traits.Alias\n" + + "import org.drools.base.factmodel.traits.Alias\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -797,11 +800,11 @@ public void testDrools219(){ public void testMapTraitsMismatchTypes() { String drl = "" + - "package org.drools.core.factmodel.traits;\n" + + "package org.drools.base.factmodel.traits;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "import java.util.*;\n" + "\n" + "global java.util.List list;\n" + @@ -860,11 +863,11 @@ public void testMapTraitsMismatchTypes() public void testMapTraitNoType() { String drl = "" + - "package openehr.test;//org.drools.core.factmodel.traits;\n" + + "package openehr.test;//org.drools.base.factmodel.traits;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "import java.util.*;\n" + "\n" + "global java.util.List list;\n" + @@ -915,11 +918,11 @@ public void testMapTraitNoType() public void testMapTraitMismatchTypes() { String drl = "" + - "package openehr.test;//org.drools.core.factmodel.traits;\n" + + "package openehr.test;//org.drools.base.factmodel.traits;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "import java.util.*;\n" + "\n" + "global java.util.List list;\n" + @@ -964,11 +967,11 @@ public void testMapTraitMismatchTypes() public void testMapTraitPossibilities1() { String drl = "" + - "package openehr.test;//org.drools.core.factmodel.traits;\n" + + "package openehr.test;//org.drools.base.factmodel.traits;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "import java.util.*;\n" + "\n" + "global java.util.List list;\n" + @@ -1030,11 +1033,11 @@ public void testMapTraitPossibilities1() public void testMapTraitPossibilities2() { String drl = "" + - "package openehr.test;//org.drools.core.factmodel.traits;\n" + + "package openehr.test;//org.drools.base.factmodel.traits;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "import java.util.*;\n" + "\n" + "global java.util.List list;\n" + @@ -1102,11 +1105,11 @@ public void testMapTraitPossibilities2() public void testMapTraitPossibilities3() { String drl = "" + - "package openehr.test;//org.drools.core.factmodel.traits;\n" + + "package openehr.test;//org.drools.base.factmodel.traits;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "import java.util.*;\n" + "\n" + "global java.util.List list;\n" + @@ -1174,11 +1177,11 @@ public void testMapTraitPossibilities3() public void testMapTraitPossibilities4() { String drl = "" + - "package openehr.test;//org.drools.core.factmodel.traits;\n" + + "package openehr.test;//org.drools.base.factmodel.traits;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "import java.util.*;\n" + "\n" + "global java.util.List list;\n" + diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitTest.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitTest.java index 344c824e713..63b1a6cb1e3 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitTest.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitTest.java @@ -1,51 +1,38 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.BitSet; -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.TimeUnit; - -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.rule.EntryPointId; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.ObjectTypeConfigurationRegistry; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; +import org.drools.core.impl.InternalRuleBase; import org.drools.core.reteoo.LeftTuple; import org.drools.core.reteoo.ObjectTypeConf; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.RuleTerminalNodeLeftTuple; import org.drools.core.reteoo.RuntimeComponentFactory; -import org.drools.core.rule.EntryPointId; import org.drools.io.ByteArrayResource; import org.drools.io.ClassPathResource; import org.drools.kiesession.entrypoints.NamedEntryPoint; @@ -98,6 +85,22 @@ import org.kie.internal.utils.KieHelper; import org.mockito.ArgumentCaptor; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.BitSet; +import java.util.Collection; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.TimeUnit; + import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; import static org.mockito.Mockito.mock; @@ -145,7 +148,7 @@ private KieBase getKieBaseFromString( String drl, KieBaseOption... options ) { @Test public void testRetract( ) { String drl = "package org.drools.compiler.trait.test; \n" + - "import org.drools.core.factmodel.traits.Traitable; \n" + + "import org.drools.base.factmodel.traits.Traitable; \n" + "" + "declare Foo @Traitable end\n" + "declare trait Bar end \n" + @@ -186,7 +189,7 @@ public void testTraitWrapGetAndSet() { if (kbuilder.hasErrors()) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kb = KnowledgeBaseFactory.newKnowledgeBase(); TraitFactoryImpl.setMode(mode, kb ); kb.addPackages( kbuilder.getKnowledgePackages() ); @@ -376,7 +379,7 @@ public void testTraitProxy() { if (kbuilder.hasErrors()) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kb = KnowledgeBaseFactory.newKnowledgeBase(); kb.addPackages( kbuilder.getKnowledgePackages() ); TraitFactoryImpl.setMode(mode, kb ); TraitFactoryImpl tFactory = (TraitFactoryImpl) RuntimeComponentFactory.get().getTraitFactory(kb); @@ -450,7 +453,7 @@ public void testWrapperSize() { if (kbuilder.hasErrors()) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kb = KnowledgeBaseFactory.newKnowledgeBase(); kb.addPackages( kbuilder.getKnowledgePackages() ); TraitFactoryImpl.setMode(mode, kb ); @@ -560,7 +563,7 @@ public void testWrapperEmpty() { if (kbuilder.hasErrors()) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kb = KnowledgeBaseFactory.newKnowledgeBase(); kb.addPackages( kbuilder.getKnowledgePackages() ); TraitFactoryImpl.setMode(mode, kb ); @@ -641,7 +644,7 @@ public void testWrapperContainsKey() { if (kbuilder.hasErrors()) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kb = KnowledgeBaseFactory.newKnowledgeBase(); kb.addPackages( kbuilder.getKnowledgePackages() ); @@ -764,7 +767,7 @@ public void testInternalComponents1( ) { if (kbuilder.hasErrors()) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kb = KnowledgeBaseFactory.newKnowledgeBase(); kb.addPackages( kbuilder.getKnowledgePackages() ); TraitFactoryImpl.setMode(mode, kb ); @@ -827,7 +830,7 @@ public void testWrapperKeySetAndValues() { if (kbuilder.hasErrors()) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kb = KnowledgeBaseFactory.newKnowledgeBase(); kb.addPackages( kbuilder.getKnowledgePackages() ); TraitFactoryImpl.setMode(mode, kb ); @@ -922,7 +925,7 @@ public void testWrapperClearAndRemove() { if (kbuilder.hasErrors()) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kb = KnowledgeBaseFactory.newKnowledgeBase(); kb.addPackages( kbuilder.getKnowledgePackages() ); TraitFactoryImpl.setMode(mode, kb ); TraitFactoryImpl tFactory = (TraitFactoryImpl) RuntimeComponentFactory.get().getTraitFactory(kb); @@ -1021,9 +1024,9 @@ public void testWrapperClearAndRemove() { public void testIsAEvaluator( ) { String source = "package org.drools.compiler.trait.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "import org.drools.traits.core.factmodel.Entity;\n" + - "import org.drools.core.factmodel.traits.Thing;\n" + + "import org.drools.base.factmodel.traits.Thing;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -1141,7 +1144,7 @@ public void testOverrideType() { @Test public void testOverrideType2( ) { String drl = "package org.drools.compiler.trait.test; \n" + - "import org.drools.core.factmodel.traits.Traitable; \n" + + "import org.drools.base.factmodel.traits.Traitable; \n" + "" + "declare Foo @Traitable end\n" + "declare trait Bar end \n" + @@ -1170,7 +1173,7 @@ public void testOverrideType2( ) { @Test public void testOverrideType3( ) { String drl = "package org.drools.compiler.trait.test; \n" + - "import org.drools.core.factmodel.traits.Traitable; \n" + + "import org.drools.base.factmodel.traits.Traitable; \n" + "" + "declare trait Foo end\n" + "declare trait Bar end \n" + @@ -1483,7 +1486,7 @@ public void traitManyTimes() { public void traitsInBatchExecution() { String str = "package org.jboss.qa.brms.traits\n" + "import org.drools.traits.compiler.Person;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "" + "global java.util.List list;" + "" + @@ -1618,8 +1621,8 @@ public void testManyTraitsStateless() { @Test public void testAliasing() { String drl = "package org.drools.traits\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "" + "global java.util.List list;" + "" + @@ -1693,7 +1696,7 @@ public void testAliasing() { public void testTraitLogicalRemoval() { String drl = "package org.drools.trait.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -1769,7 +1772,7 @@ public void testTMSConsistencyWithNonTraitableBeans() { String s1 = "package org.drools.test;\n" + "import org.drools.traits.compiler.Person; \n" + - "import org.drools.core.factmodel.traits.Traitable; \n" + + "import org.drools.base.factmodel.traits.Traitable; \n" + "" + "declare Person @Traitable end \n" + "" + @@ -1832,7 +1835,7 @@ public static class TBean { public void testTraitsLegacyWrapperCoherence() { String str = "package org.drools.trait.test; \n" + "global java.util.List list; \n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "import org.drools.traits.compiler.factmodel.traits.TraitTest.TBean;\n" + "" + "" + "declare TBean \n" + @@ -1917,7 +1920,7 @@ public void testHasTypes() { if ( kbuilder.hasErrors() ) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kb = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kb = KnowledgeBaseFactory.newKnowledgeBase(); kb.addPackages(kbuilder.getKnowledgePackages()); TraitFactoryImpl traitBuilder = (TraitFactoryImpl) RuntimeComponentFactory.get().getTraitFactory(kb); TraitFactoryImpl.setMode(mode, kb ); @@ -2029,7 +2032,7 @@ public void traitSimpleTypes() { String s1 = "package org.drools.factmodel.traits;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "" + "declare trait PassMark\n" + "end\n" + @@ -2056,7 +2059,7 @@ public void traitSimpleTypes() { fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -2082,7 +2085,7 @@ public void traitSimpleTypes() { @Test public void testTraitEncoding() { - String s1 = "package org.drools.core.factmodel.traits;\n" + + String s1 = "package org.drools.base.factmodel.traits;\n" + "import " + Entity.class.getCanonicalName() + ";\n" + "declare trait A end\n" + "declare trait B extends A end\n" + @@ -2133,7 +2136,7 @@ public void testTraitEncoding() { fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -2176,7 +2179,7 @@ void testTraitActualTypeCodeWithEntities( String trig, VirtualPropertyMode mode fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (KieBase) kbase); kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -2219,7 +2222,7 @@ void testTraitActualTypeCodeWithEntities( String trig, VirtualPropertyMode mode @Test public void testTraitModifyCore() { String s1 = "package test; " + - "import org.drools.core.factmodel.traits.*; " + + "import org.drools.base.factmodel.traits.*; " + "" + "global java.util.List list; " + "" + @@ -2298,7 +2301,7 @@ public void testTraitModifyCore() { fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) kbase); kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -2320,7 +2323,7 @@ public void testTraitModifyCore() { @Test public void testTraitModifyCore2() { String s1 = "package test; " + - "import org.drools.core.factmodel.traits.*; " + + "import org.drools.base.factmodel.traits.*; " + "" + "declare trait Student @propertyReactive name : String end " + "declare trait Worker @propertyReactive name : String end " + @@ -2397,7 +2400,7 @@ public void testTraitModifyCore2() { fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); // not relevant + TraitFactoryImpl.setMode(mode, (KieBase) kbase); // not relevant kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -2416,7 +2419,7 @@ public void testTraitModifyCore2() { @Test public void testTraitModifyCore2a() { String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "import org.drools.traits.core.factmodel.*;\n" + "global java.util.List list; \n" + "" + @@ -2463,7 +2466,8 @@ public void testTraitModifyCore2a() { fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); // not relevant + TraitFactoryImpl.setMode(mode, (KieBase) kbase); // not relevant + kbase.addPackages( kbuilder.getKnowledgePackages() ); KieSession ksession = kbase.newKieSession(); @@ -2482,7 +2486,7 @@ public void testTraitModifyCore2a() { @Test public void testTraitModifyCore3() { String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "import org.drools.traits.core.factmodel.*;\n" + "global java.util.List list; \n" + "" + @@ -2564,7 +2568,7 @@ public void testTraitModifyCore3() { fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); // not relevant + TraitFactoryImpl.setMode(mode, (KieBase) kbase); // not relevant kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -2594,7 +2598,7 @@ public void testTraitModifyCore3() { @Test public void testTraitModifyCoreWithPropertyReactivity() { String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "import org.drools.traits.core.factmodel.*;\n" + "global java.util.List list;\n" + "" + @@ -2683,7 +2687,7 @@ public void testTraitModifyCoreWithPropertyReactivity() { fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); // not relevant + TraitFactoryImpl.setMode(mode, (KieBase) kbase); // not relevant kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -2729,7 +2733,7 @@ public void testTraitEncodeExtendingNonTrait() { if ( kbuilder.hasErrors() ) { fail( kbuilder.getErrors().toString() ); } - InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); + InternalRuleBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); TraitFactoryImpl.setMode(mode, kbase ); kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -2773,7 +2777,7 @@ public void testIsAEvaluatorOnClassification( ) { String source = "package t.x \n" + "\n" + "global java.util.List list; \n" + - "import org.drools.core.factmodel.traits.Thing\n" + + "import org.drools.base.factmodel.traits.Thing\n" + "import org.drools.traits.core.factmodel.Entity\n" + "\n" + "declare trait t.x.D\n" + @@ -2800,7 +2804,7 @@ public void testIsAEvaluatorOnClassification( ) { "" + "rule \"Rule 0 >> http://t/x#D\"\n" + "when\n" + - " $t : org.drools.core.factmodel.traits.Thing( $c : core, this not isA t.x.E.class, this isA t.x.D.class ) " + + " $t : org.drools.base.factmodel.traits.Thing( $c : core, this not isA t.x.E.class, this isA t.x.D.class ) " + "then\n" + " list.add( \"E\" ); \n" + " don( $t, E.class ); \n" + @@ -2832,7 +2836,7 @@ public void testShedWithTMS( ) { String source = "package t.x \n" + "\n" + "global java.util.List list; \n" + - "import org.drools.core.factmodel.traits.Thing\n" + + "import org.drools.base.factmodel.traits.Thing\n" + "import org.drools.traits.core.factmodel.Entity\n" + "\n" + "declare trait t.x.D\n" + @@ -2860,7 +2864,7 @@ public void testShedWithTMS( ) { "" + "rule \"Rule 0 >> http://t/x#D\"\n" + "when\n" + - " $t : org.drools.core.factmodel.traits.Thing( $c : core, _isTop(), this not isA t.x.E.class, this isA t.x.D.class ) " + + " $t : org.drools.base.factmodel.traits.Thing( $c : core, _isTop(), this not isA t.x.E.class, this isA t.x.D.class ) " + "then\n" + " list.add( \"E\" ); \n" + " System.out.println( \"E due to \" + $t); \n" + @@ -2911,8 +2915,8 @@ public void testShedWithTMS( ) { public void testTraitInitialization() { String source = "package t.x \n" + "import java.util.*; \n" + - "import org.drools.core.factmodel.traits.Thing \n" + - "import org.drools.core.factmodel.traits.Traitable \n" + + "import org.drools.base.factmodel.traits.Thing \n" + + "import org.drools.base.factmodel.traits.Traitable \n" + "\n" + "global java.util.List list; \n" + "\n" + @@ -2987,8 +2991,8 @@ public void testTraitInitialization() { public void testUnTraitedBean() { String source = "package t.x \n" + "import java.util.*; \n" + - "import org.drools.core.factmodel.traits.Thing \n" + - "import org.drools.core.factmodel.traits.Traitable \n" + + "import org.drools.base.factmodel.traits.Thing \n" + + "import org.drools.base.factmodel.traits.Traitable \n" + "\n" + "global java.util.List list; \n" + "\n" + @@ -3037,8 +3041,8 @@ public void testUnTraitedBean() { public void testIsAOptimization( ) { String source = "package t.x \n" + "import java.util.*; \n" + - "import org.drools.core.factmodel.traits.Thing \n" + - "import org.drools.core.factmodel.traits.Traitable \n" + + "import org.drools.base.factmodel.traits.Thing \n" + + "import org.drools.base.factmodel.traits.Traitable \n" + "\n" + "global java.util.List list; \n" + "\n" + @@ -3097,8 +3101,8 @@ public void testIsAOptimization( ) { public void testTypeRefractionOnInsert( ) { String source = "package t.x \n" + "import java.util.*; \n" + - "import org.drools.core.factmodel.traits.Thing \n" + - "import org.drools.core.factmodel.traits.Traitable \n" + + "import org.drools.base.factmodel.traits.Thing \n" + + "import org.drools.base.factmodel.traits.Traitable \n" + "\n" + "global java.util.List list; \n" + "\n" + @@ -3204,8 +3208,8 @@ public void testTypeRefractionOnQuery( ) { public void testTypeRefractionOnQuery2( ) { String source = "package t.x \n" + "import java.util.*; \n" + - "import org.drools.core.factmodel.traits.Thing \n" + - "import org.drools.core.factmodel.traits.Traitable \n" + + "import org.drools.base.factmodel.traits.Thing \n" + + "import org.drools.base.factmodel.traits.Traitable \n" + "\n" + "global java.util.List list; \n" + "\n" + @@ -3265,8 +3269,8 @@ public void testTypeRefractionOnQuery2( ) { public void testNodePartitioningByProxies( ) { String source = "package t.x " + "import java.util.*; " + - "import org.drools.core.factmodel.traits.Thing " + - "import org.drools.core.factmodel.traits.Traitable " + + "import org.drools.base.factmodel.traits.Thing " + + "import org.drools.base.factmodel.traits.Traitable " + " " + "global java.util.List list; " + " " + @@ -3333,8 +3337,8 @@ public void testNodePartitioningByProxies( ) { public void testNodePartitioningByProxiesAfterShed( ) { String source = "package t.x " + "import java.util.*; " + - "import org.drools.core.factmodel.traits.Thing " + - "import org.drools.core.factmodel.traits.Traitable " + + "import org.drools.base.factmodel.traits.Thing " + + "import org.drools.base.factmodel.traits.Traitable " + " " + "global java.util.List list; " + " " + @@ -3402,8 +3406,8 @@ public void testNodePartitioningByProxiesAfterShed( ) { public void testTypeRefractionOnQueryWithIsA( ) { String source = "package t.x \n" + "import java.util.*; \n" + - "import org.drools.core.factmodel.traits.Thing \n" + - "import org.drools.core.factmodel.traits.Traitable \n" + + "import org.drools.base.factmodel.traits.Thing \n" + + "import org.drools.base.factmodel.traits.Traitable \n" + "\n" + "global java.util.List list; \n" + "\n" + @@ -3460,8 +3464,8 @@ public void testTypeRefractionOnQueryWithIsA( ) { public void testCoreUpdate4( ) { String source = "package t.x \n" + "import java.util.*; \n" + - "import org.drools.core.factmodel.traits.Thing \n" + - "import org.drools.core.factmodel.traits.Traitable \n" + + "import org.drools.base.factmodel.traits.Thing \n" + + "import org.drools.base.factmodel.traits.Traitable \n" + "\n" + "global java.util.List list; \n" + "\n" + @@ -3520,7 +3524,7 @@ public void testCoreUpdate4( ) { public void traitLogicalSupportAnddelete() { String drl = "package org.drools.trait.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -3557,7 +3561,7 @@ public void traitLogicalSupportAnddelete() { " $s : String( this == \"trigger3\" )\n" + " $p : Person() \n" + "then\n" + - " shed( $p, org.drools.core.factmodel.traits.Thing.class ); " + + " shed( $p, org.drools.base.factmodel.traits.Thing.class ); " + " delete( $s ); \n" + "end\n" + " " + @@ -3653,7 +3657,7 @@ public void traitLogicalSupportAnddelete() { @Test public void testShedThing() { String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "import org.drools.traits.core.factmodel.*;\n" + "global java.util.List list; \n" + "" + @@ -3700,7 +3704,7 @@ public void testShedThing() { fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); // not relevant + TraitFactoryImpl.setMode(mode, (KieBase) kbase); // not relevant kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -3724,7 +3728,7 @@ public void testShedThing() { @Test public void testdeleteThings() { String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "import org.drools.traits.core.factmodel.*;\n" + "global java.util.List list; \n" + "" + @@ -3771,7 +3775,7 @@ public void testdeleteThings() { fail( kbuilder.getErrors().toString() ); } InternalKnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, kbase ); + TraitFactoryImpl.setMode(mode, (KieBase) kbase); // not relevant kbase.addPackages( kbuilder.getKnowledgePackages() ); @@ -3795,7 +3799,7 @@ public void testdeleteThings() { public void traitLogicalRemovalSimple( ) { String drl = "package org.drools.compiler.trait.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "global java.util.List list;\n" + "\n" + @@ -3884,7 +3888,7 @@ public void testTraitDonLegacyClassWithoutEmptyConstructor( ) { String drl = "package org.drools.compiler.trait.test;\n" + "\n" + "import " + TraitableFoo.class.getCanonicalName() + ";" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "" + "declare trait Bar\n" + @@ -3919,8 +3923,8 @@ public void testTraitDonLegacyClassWithoutEmptyConstructor( ) { public void testdeleteCoreObjectChained( ) { String source = "package org.drools.test;\n" + "import java.util.List; \n" + - "import org.drools.core.factmodel.traits.Thing \n" + - "import org.drools.core.factmodel.traits.Traitable \n" + + "import org.drools.base.factmodel.traits.Thing \n" + + "import org.drools.base.factmodel.traits.Traitable \n" + "\n" + "global java.util.List list; \n" + "\n" + @@ -3990,7 +3994,7 @@ public void testUpdateLegacyClass( ) { "global java.util.List list;\n" + "\n" + "import org.drools.traits.compiler.Person;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "\n" + "declare Person @Traitable end \n" + "" + @@ -4050,8 +4054,8 @@ public void testSoftPropertyClash() { "\n" + "global java.util.List list;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "\n" + "declare Person @Traitable @propertyReactive \n" + "end \n" + @@ -4134,7 +4138,7 @@ public void testSoftPropertyClash() { public void testMultipleModifications() { String drl = "package org.drools.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + "" + "global java.util.List list;" + "\n" + @@ -4247,7 +4251,7 @@ public void testMultipleModifications() { @Test public void testPropagation() { String drl = "package org.drools.test;\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "\n" + "global java.util.List list; \n" + "" + @@ -4339,7 +4343,7 @@ public void testPropagation() { @Test public void testParentBlockers() { String drl = "package org.drools.test;\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "\n" + "global java.util.List list; \n" + "" + @@ -4381,7 +4385,7 @@ public void testParentBlockers() { @Test public void testTraitLogicalTMS() { String drl = "package org.drools.test;\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "\n" + "global java.util.List list; \n" + "" + @@ -4431,12 +4435,12 @@ public void testTraitLogicalTMS() { @Test public void testTraitNoType() { String drl = "" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.Thing;\n" + - "import org.drools.core.factmodel.traits.Traitable;\n" + - "import org.drools.core.factmodel.traits.Trait;\n" + - "import org.drools.core.factmodel.traits.Alias;\n" + + "import org.drools.base.factmodel.traits.Thing;\n" + + "import org.drools.base.factmodel.traits.Traitable;\n" + + "import org.drools.base.factmodel.traits.Trait;\n" + + "import org.drools.base.factmodel.traits.Alias;\n" + "import java.util.*;\n" + "\n" + "global java.util.List list;\n" + @@ -4489,9 +4493,9 @@ public void testTraitNoType() { @Test public void testTraitdeleteOrder() { String drl = "" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "import org.drools.traits.core.factmodel.*;\n" + "import java.util.*;\n" + "\n" + @@ -4540,9 +4544,9 @@ public void objectDeleted( org.kie.api.event.rule.ObjectDeletedEvent objectRetra @Test public void testTraitWithManySoftFields() { String drl = "" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "import org.drools.traits.core.factmodel.*;\n" + "import java.util.*;\n" + "\n" + @@ -4625,9 +4629,9 @@ public void reset() { @Test public void testDonManyTraitsAtOnce() { String drl = "" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "import org.drools.traits.core.factmodel.*;\n" + "import java.util.*;\n" + "\n" + @@ -4750,9 +4754,9 @@ public void testDonManyTraitsAtOnce() { @Test public void testDonManyTraitsAtOnce2() { String drl = "" + - "package org.drools.core.factmodel.traits.test;\n" + + "package org.drools.base.factmodel.traits.test;\n" + "\n" + - "import org.drools.core.factmodel.traits.*;\n" + + "import org.drools.base.factmodel.traits.*;\n" + "import org.drools.traits.core.factmodel.*;\n" + "import java.util.*;\n" + "\n" + @@ -4839,7 +4843,7 @@ public void run() { @Ignore("Triple Store is not thread safe and needs to be rewritten") public void testMultithreadingTraits() throws InterruptedException { final String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.TraitTest.Item;\n" + + "import org.drools.base.factmodel.traits.TraitTest.Item;\n" + "declare Item end\n" + "declare trait ItemStyle\n" + " id: String\n" + @@ -4892,7 +4896,7 @@ public void testMultithreadingTraits() throws InterruptedException { @Test public void testShedOneLastTrait() throws InterruptedException { final String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "global java.util.List list;\n" + "" + "declare Core @Traitable end\n" + @@ -4940,7 +4944,7 @@ public void testShedOneLastTrait() throws InterruptedException { knowledgeSession.fireAllRules(); assertThat(list.size()).isEqualTo(2); - assertThat(list).isEqualTo(Arrays.asList("test.Mask.test.Core_Proxy", "org.drools.core.factmodel.traits.Thing.test.Core_Proxy")); + assertThat(list).isEqualTo(Arrays.asList("test.Mask.test.Core_Proxy", "org.drools.base.factmodel.traits.Thing.test.Core_Proxy")); } @@ -4948,7 +4952,7 @@ public void testShedOneLastTrait() throws InterruptedException { @Test public void testShedThingCompletelyThenDonAgain() throws InterruptedException { final String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "global java.util.List list;\n" + "" + "declare Core @Traitable end\n" + @@ -5031,7 +5035,7 @@ public void testShedThingCompletelyThenDonAgain() throws InterruptedException { knowledgeSession.fireAllRules(); assertThat(list.size()).isEqualTo(3); - assertThat(list).isEqualTo(Arrays.asList("test.Mask.test.Core_Proxy", "test.Mask2.test.Core_Proxy", "org.drools.core.factmodel.traits.Thing.test.Core_Proxy")); + assertThat(list).isEqualTo(Arrays.asList("test.Mask.test.Core_Proxy", "test.Mask2.test.Core_Proxy", "org.drools.base.factmodel.traits.Thing.test.Core_Proxy")); } @@ -5039,7 +5043,7 @@ public void testShedThingCompletelyThenDonAgain() throws InterruptedException { @Test public void testTraitImplicitInsertionExceptionOnNonTraitable() throws InterruptedException { final String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "global java.util.List list;\n" + "" + "declare Core id : String end\n" + // should be @Traitable @@ -5082,7 +5086,7 @@ public void testTraitLegacyTraitableWithLegacyTrait() { final String s1 = "package org.drools.compiler.factmodel.traits;\n" + "import " + TraitTest.class.getName() + ".SomeTrait; \n" + "import " + StudentImpl.class.getCanonicalName() + ";\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "import org.drools.traits.core.factmodel.*; \n" + "global java.util.List list;\n" + "" + @@ -5110,7 +5114,7 @@ public void testIsALegacyTrait() { "import " + TraitTest.class.getName() + ".SomeTrait; \n" + "import " + StudentImpl.class.getCanonicalName() + ";\n" + "import " + Entity.class.getCanonicalName() + ";\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "global java.util.List list;\n" + "" + "declare trait IStudent end \n" + @@ -5147,7 +5151,7 @@ public void testIsALegacyTrait() { public void testClassLiteralsWithOr() { String drl = "package org.drools.test; " + - "import org.drools.core.factmodel.traits.*; " + + "import org.drools.base.factmodel.traits.*; " + "global java.util.List list; " + "declare Foo " + @@ -5210,7 +5214,7 @@ public void testIsASwappedArg() { "import " + TraitTest.class.getName() + ".SomeTrait; \n" + "import " + StudentImpl.class.getCanonicalName() + ";\n" + "import " + Entity.class.getCanonicalName() + ";\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "global java.util.List list; " + "declare Foo " + @@ -5273,7 +5277,7 @@ public void testHierarchyEncodeOnPackageMerge() { "declare trait X end "; String drl1 = "package org.drools.test; " + - "import org.drools.core.factmodel.traits.*; " + + "import org.drools.base.factmodel.traits.*; " + "global java.util.List list; " + "declare trait A end " + @@ -5283,7 +5287,7 @@ public void testHierarchyEncodeOnPackageMerge() { ""; InternalKnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(); - TraitFactoryImpl.setMode(mode, knowledgeBase ); + TraitFactoryImpl.setMode(mode, (InternalRuleBase) knowledgeBase); KnowledgeBuilder kb = KnowledgeBuilderFactory.newKnowledgeBuilder(); kb.add( new ByteArrayResource( drl0.getBytes() ), ResourceType.DRL ); @@ -5313,7 +5317,7 @@ public void testHierarchyEncodeOnPackageMerge() { @Test @Ignore public void testDonThenReinsert() throws InterruptedException { final String s1 = "package test;\n" + - "import org.drools.core.factmodel.traits.*; \n" + + "import org.drools.base.factmodel.traits.*; \n" + "import org.drools.traits.compiler.factmodel.traits.TraitTest.TBean;\n" + "global java.util.List list;\n" + "" + @@ -5375,7 +5379,7 @@ public void testDonThenReinsert() throws InterruptedException { public void testCastOnTheFly() throws InterruptedException { final String s1 = "package test; " + - "import org.drools.core.factmodel.traits.*; " + + "import org.drools.base.factmodel.traits.*; " + "global java.util.List list; " + diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitTestUtils.java b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitTestUtils.java index 72118b458a6..54fe8011ff7 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitTestUtils.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/factmodel/traits/TraitTestUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.factmodel.traits; import org.drools.wiring.api.classloader.ProjectClassLoader; diff --git a/drools-traits/src/test/java/org/drools/traits/compiler/integrationtests/TraitTypeGenerationTest.java b/drools-traits/src/test/java/org/drools/traits/compiler/integrationtests/TraitTypeGenerationTest.java index 7ad008d3359..086d3b86fb5 100644 --- a/drools-traits/src/test/java/org/drools/traits/compiler/integrationtests/TraitTypeGenerationTest.java +++ b/drools-traits/src/test/java/org/drools/traits/compiler/integrationtests/TraitTypeGenerationTest.java @@ -1,29 +1,30 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.compiler.integrationtests; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.drools.tms.beliefsystem.abductive.Abducible; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Traitable; import org.drools.kiesession.rulebase.InternalKnowledgeBase; +import org.drools.tms.beliefsystem.abductive.Abducible; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Traitable; import org.drools.io.ByteArrayResource; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.traits.compiler.CommonTraitTest; diff --git a/drools-traits/src/test/java/org/drools/traits/core/factmodel/ClassBuilderTest.java b/drools-traits/src/test/java/org/drools/traits/core/factmodel/ClassBuilderTest.java index c65a75e9479..1440cdd373b 100755 --- a/drools-traits/src/test/java/org/drools/traits/core/factmodel/ClassBuilderTest.java +++ b/drools-traits/src/test/java/org/drools/traits/core/factmodel/ClassBuilderTest.java @@ -1,22 +1,23 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; -import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; @@ -29,8 +30,8 @@ import org.drools.core.base.ClassFieldAccessorCache; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; import org.drools.core.rule.JavaDialectRuntimeData; import org.drools.wiring.dynamic.PackageClassLoader; import org.drools.wiring.api.classloader.ProjectClassLoader; diff --git a/drools-traits/src/test/java/org/drools/traits/core/factmodel/InstancesHashcodedTest.java b/drools-traits/src/test/java/org/drools/traits/core/factmodel/InstancesHashcodedTest.java index 04a3254c0fc..f8ec51d3295 100755 --- a/drools-traits/src/test/java/org/drools/traits/core/factmodel/InstancesHashcodedTest.java +++ b/drools-traits/src/test/java/org/drools/traits/core/factmodel/InstancesHashcodedTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.util.Calendar; @@ -22,8 +24,8 @@ import org.drools.core.base.ClassFieldAccessorCache; import org.drools.mvel.accessors.ClassFieldAccessorStore; import org.drools.compiler.builder.impl.classbuilder.ClassBuilder; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; import org.drools.core.rule.JavaDialectRuntimeData; import org.drools.wiring.dynamic.PackageClassLoader; import org.drools.wiring.api.classloader.ProjectClassLoader; diff --git a/drools-traits/src/test/java/org/drools/traits/core/factmodel/JeneratorTest.java b/drools-traits/src/test/java/org/drools/traits/core/factmodel/JeneratorTest.java index 678744deb2b..ce55ff44ffb 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/factmodel/JeneratorTest.java +++ b/drools-traits/src/test/java/org/drools/traits/core/factmodel/JeneratorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.io.ByteArrayInputStream; diff --git a/drools-traits/src/test/java/org/drools/traits/core/factmodel/TripleStoreTest.java b/drools-traits/src/test/java/org/drools/traits/core/factmodel/TripleStoreTest.java index 2c30f00816c..6626e0771f6 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/factmodel/TripleStoreTest.java +++ b/drools-traits/src/test/java/org/drools/traits/core/factmodel/TripleStoreTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.factmodel; import java.util.ArrayList; diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/MetadataTest.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/MetadataTest.java index 8b5e73beceb..c613b3083a9 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/MetadataTest.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/MetadataTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.meta.org; import java.net.URI; diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlass.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlass.java index 37a068eed92..dcc0a7514b9 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlass.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlass.java @@ -1,25 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Eclipse Public License version 1.0, available at - * http://www.eclipse.org/legal/epl-v10.html + * 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. */ - package org.drools.traits.core.meta.org.test; import org.drools.traits.core.metadata.Metadatable; diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlassImpl.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlassImpl.java index c68ec9aa1d7..055f2e4387c 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlassImpl.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlassImpl.java @@ -1,25 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Eclipse Public License version 1.0, available at - * http://www.eclipse.org/legal/epl-v10.html + * 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. */ - // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See http://java.sun.com/xml/jaxb diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlass_.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlass_.java index 0686c5f916a..b53882e7eed 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlass_.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/AnotherKlass_.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.meta.org.test; import java.io.Serializable; @@ -20,7 +23,7 @@ import java.util.Collections; import java.util.List; -import org.drools.core.util.PropertyReactivityUtil; +import org.drools.base.util.PropertyReactivityUtil; import org.drools.traits.core.factmodel.AbstractTraitFactory; import org.drools.traits.core.metadata.ClassLiteral; import org.drools.traits.core.metadata.DonLiteral; diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/Klass.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/Klass.java index 9f3d216f89a..ae14cce008c 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/Klass.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/Klass.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.meta.org.test; import org.drools.traits.core.metadata.Metadatable; diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/KlassImpl.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/KlassImpl.java index fc889a0db22..4170f0d9b7c 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/KlassImpl.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/KlassImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See http://java.sun.com/xml/jaxb diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/Klass_.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/Klass_.java index 4e24a07ec14..595debc8c9f 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/Klass_.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/Klass_.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.meta.org.test; import java.io.Serializable; @@ -20,7 +23,7 @@ import java.util.Collections; import java.util.List; -import org.drools.core.util.PropertyReactivityUtil; +import org.drools.base.util.PropertyReactivityUtil; import org.drools.traits.core.factmodel.AbstractTraitFactory; import org.drools.traits.core.metadata.ClassLiteral; import org.drools.traits.core.metadata.DonLiteral; diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlass.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlass.java index 426a65f52b4..3d7e3915b8f 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlass.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlass.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.meta.org.test; import java.util.List; diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlassImpl.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlassImpl.java index 0df705a7d33..8f855c34f6a 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlassImpl.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlassImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.meta.org.test; import org.drools.traits.core.metadata.MetadataHolder; diff --git a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlass_.java b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlass_.java index 9ad9b9d349d..ca756f4d475 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlass_.java +++ b/drools-traits/src/test/java/org/drools/traits/core/meta/org/test/SubKlass_.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.traits.core.meta.org.test; import java.io.Serializable; @@ -20,7 +23,7 @@ import java.util.Collections; import java.util.List; -import org.drools.core.util.PropertyReactivityUtil; +import org.drools.base.util.PropertyReactivityUtil; import org.drools.traits.core.factmodel.AbstractTraitFactory; import org.drools.traits.core.metadata.Lit; import org.drools.traits.core.metadata.ManyValuedMetaProperty; diff --git a/drools-traits/src/test/java/org/drools/traits/core/util/HierarchyTest.java b/drools-traits/src/test/java/org/drools/traits/core/util/HierarchyTest.java index 0d2fc317ce2..83faf912b0d 100644 --- a/drools-traits/src/test/java/org/drools/traits/core/util/HierarchyTest.java +++ b/drools-traits/src/test/java/org/drools/traits/core/util/HierarchyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.core.util; import org.drools.traits.core.factmodel.CodedHierarchy; diff --git a/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java b/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java index aaf01f00a25..2adf906eee4 100644 --- a/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java +++ b/drools-traits/src/test/java/org/drools/traits/persistence/DroolsPersistenceUtil.java @@ -1,18 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.traits.persistence; import java.util.Map; diff --git a/drools-traits/src/test/java/org/drools/traits/persistence/PersistenceTest.java b/drools-traits/src/test/java/org/drools/traits/persistence/PersistenceTest.java index fcd3a76dd20..ddc456bf19c 100644 --- a/drools-traits/src/test/java/org/drools/traits/persistence/PersistenceTest.java +++ b/drools-traits/src/test/java/org/drools/traits/persistence/PersistenceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.traits.persistence; import java.io.Serializable; @@ -21,7 +23,7 @@ import java.util.Collection; import java.util.Map; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; diff --git a/drools-traits/src/test/resources/META-INF/beans.xml b/drools-traits/src/test/resources/META-INF/beans.xml index f8d93899b7d..0c62f03637a 100644 --- a/drools-traits/src/test/resources/META-INF/beans.xml +++ b/drools-traits/src/test/resources/META-INF/beans.xml @@ -1,3 +1,23 @@ + \ No newline at end of file diff --git a/drools-traits/src/test/resources/META-INF/kmodule.xml b/drools-traits/src/test/resources/META-INF/kmodule.xml index 958e554b4c5..254dac17369 100644 --- a/drools-traits/src/test/resources/META-INF/kmodule.xml +++ b/drools-traits/src/test/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/drools-traits/src/test/resources/jndi.properties b/drools-traits/src/test/resources/jndi.properties index 6594b914b11..71b1c389405 100644 --- a/drools-traits/src/test/resources/jndi.properties +++ b/drools-traits/src/test/resources/jndi.properties @@ -1,3 +1,22 @@ +# +# 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. +# + java.naming.factory.initial=org.kie.test.util.db.CloseSafeMemoryContextFactory org.osjava.sj.root=target/test-classes/config org.osjava.jndi.delimiter=/ diff --git a/drools-traits/src/test/resources/logback-test.xml b/drools-traits/src/test/resources/logback-test.xml index 4019ca2fb75..7b96df4c187 100644 --- a/drools-traits/src/test/resources/logback-test.xml +++ b/drools-traits/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testComplexDonShed.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testComplexDonShed.drl index 7a2024846ad..33eba943154 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testComplexDonShed.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testComplexDonShed.drl @@ -14,7 +14,7 @@ */ package test; -import org.drools.core.factmodel.traits.*; +import org.drools.base.factmodel.traits.*; import org.drools.traits.core.factmodel.*; declare trait A id : int end diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testDeclaredFactTrait.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testDeclaredFactTrait.drl index d5f67927f3f..f97c34c7955 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testDeclaredFactTrait.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testDeclaredFactTrait.drl @@ -16,7 +16,7 @@ package org.drools.compiler.test; import java.util.List; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; global List trueTraits; global List untrueTraits; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testPojoFactTrait.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testPojoFactTrait.drl index 8b26d9a0a12..07089372f5a 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testPojoFactTrait.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testPojoFactTrait.drl @@ -17,8 +17,8 @@ package org.drools.compiler.test; import java.util.List; import org.drools.traits.compiler.factmodel.traits.PojoFact; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Traitable; global List trueTraits; global List untrueTraits; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitCollections.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitCollections.drl index 8f0d29be2fb..7224a641193 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitCollections.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitCollections.drl @@ -16,7 +16,7 @@ package org.drools.compiler.trait.test; -import org.drools.core.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Thing; import org.drools.traits.core.factmodel.Entity; import java.util.*; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitDon.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitDon.drl index b0d6a9b4955..7cf0762a04f 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitDon.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitDon.drl @@ -15,7 +15,7 @@ package org.drools.compiler.trait.test; -import org.drools.core.factmodel.traits.*; +import org.drools.base.factmodel.traits.*; import org.drools.traits.core.factmodel.*; global java.util.List list; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitIsA.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitIsA.drl index af3b2018ea7..b9a99205942 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitIsA.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitIsA.drl @@ -15,8 +15,8 @@ package org.test; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Thing; import org.drools.traits.core.factmodel.Entity; global java.util.List list; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitIsAWithBC.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitIsAWithBC.drl index a404077bfb0..40270035415 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitIsAWithBC.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitIsAWithBC.drl @@ -15,8 +15,8 @@ package org.test; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Thing; import org.drools.traits.core.factmodel.Entity; global java.util.List list; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitLegacyCore.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitLegacyCore.drl index f5d3a42baef..ca0e579c69f 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitLegacyCore.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitLegacyCore.drl @@ -17,7 +17,7 @@ package org.drools.compiler.trait.test; // Individual is an empty traitable, based solely on a property map. -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; import org.drools.traits.compiler.factmodel.traits.IRole import org.drools.traits.compiler.factmodel.traits.Imp diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitMixin.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitMixin.drl index 5dc4b509d01..c76ffa3d824 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitMixin.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitMixin.drl @@ -15,7 +15,7 @@ package org.drools.compiler.test; -import org.drools.core.factmodel.traits.*; +import org.drools.base.factmodel.traits.*; import org.drools.traits.core.factmodel.*; import org.drools.traits.compiler.factmodel.traits.ISomethingWithBehaviour; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitOverride.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitOverride.drl index 71994abc8e5..b0ee202c275 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitOverride.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitOverride.drl @@ -15,7 +15,7 @@ package org.drools.compiler.trait.test; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; import org.drools.traits.core.factmodel.Entity; global java.util.List list; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitShed.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitShed.drl index f9fadcf2064..b1fe811b1cf 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitShed.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitShed.drl @@ -16,8 +16,8 @@ package org.drools.compiler.test; import org.drools.traits.core.factmodel.Entity; -import org.drools.core.factmodel.traits.Thing; -import org.drools.core.factmodel.traits.*; +import org.drools.base.factmodel.traits.Thing; +import org.drools.base.factmodel.traits.*; import org.drools.traits.core.factmodel.*; global java.util.List list; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitWithEquality.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitWithEquality.drl index 27dc2b121c1..0bbef37b629 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitWithEquality.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitWithEquality.drl @@ -16,7 +16,7 @@ package org.drools.compiler.test; import org.drools.traits.core.factmodel.Entity; -import org.drools.core.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.Traitable; global java.util.List list; diff --git a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitedAliasing.drl b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitedAliasing.drl index 8bb6e38ddb6..3894e100faa 100644 --- a/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitedAliasing.drl +++ b/drools-traits/src/test/resources/org/drools/compiler/factmodel/traits/testTraitedAliasing.drl @@ -15,10 +15,10 @@ package org.drools.factmodel.traits; -import org.drools.core.factmodel.traits.Trait; -import org.drools.core.factmodel.traits.Traitable; -import org.drools.core.factmodel.traits.TraitableBean; -import org.drools.core.factmodel.traits.Alias +import org.drools.base.factmodel.traits.Trait; +import org.drools.base.factmodel.traits.Traitable; +import org.drools.base.factmodel.traits.TraitableBean; +import org.drools.base.factmodel.traits.Alias global java.util.List list; diff --git a/drools-util/pom.xml b/drools-util/pom.xml index 331f893c305..415a3ac2581 100644 --- a/drools-util/pom.xml +++ b/drools-util/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-util/src/main/java/org/drools/util/BitMaskUtil.java b/drools-util/src/main/java/org/drools/util/BitMaskUtil.java deleted file mode 100644 index 2da08a9b642..00000000000 --- a/drools-util/src/main/java/org/drools/util/BitMaskUtil.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. -*/ - -package org.drools.util; - -public class BitMaskUtil { - - public static boolean intersect(long mask1, long mask2) { - return (mask1 & mask2) != 0; - } - - public static long set(long mask, int pos) { - if (pos < 0) throw new IllegalArgumentException("negative position"); - return mask | (1L << pos); - } - - public static long reset(long mask, int pos) { - if (pos < 0) throw new IllegalArgumentException("negative position"); - return mask & (Long.MAX_VALUE - (1L << pos)); - } - - public static boolean isSet(long mask, long bit) { - return (mask & bit) == bit; - } - - public static boolean isPositionSet(long mask, int pos) { - return isSet(mask, 1L << pos); - } -} diff --git a/drools-util/src/main/java/org/drools/util/ClassTypeResolver.java b/drools-util/src/main/java/org/drools/util/ClassTypeResolver.java index 01dc0132384..2837dd21999 100644 --- a/drools-util/src/main/java/org/drools/util/ClassTypeResolver.java +++ b/drools-util/src/main/java/org/drools/util/ClassTypeResolver.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.util; diff --git a/drools-util/src/main/java/org/drools/util/ClassUtils.java b/drools-util/src/main/java/org/drools/util/ClassUtils.java index 30bd1edc754..0208c6653b4 100644 --- a/drools-util/src/main/java/org/drools/util/ClassUtils.java +++ b/drools-util/src/main/java/org/drools/util/ClassUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.util; import java.io.File; diff --git a/drools-core/src/main/java/org/drools/core/base/CoercionUtil.java b/drools-util/src/main/java/org/drools/util/CoercionUtil.java similarity index 88% rename from drools-core/src/main/java/org/drools/core/base/CoercionUtil.java rename to drools-util/src/main/java/org/drools/util/CoercionUtil.java index 4c5e46f9516..f91b2bd2358 100644 --- a/drools-core/src/main/java/org/drools/core/base/CoercionUtil.java +++ b/drools-util/src/main/java/org/drools/util/CoercionUtil.java @@ -1,18 +1,23 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ -package org.drools.core.base; +package org.drools.util; import java.math.BigDecimal; import java.math.BigInteger; diff --git a/drools-util/src/main/java/org/drools/util/Config.java b/drools-util/src/main/java/org/drools/util/Config.java index 69a2852aa80..2959fe5b030 100644 --- a/drools-util/src/main/java/org/drools/util/Config.java +++ b/drools-util/src/main/java/org/drools/util/Config.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.util; import java.util.Optional; diff --git a/drools-util/src/main/java/org/drools/util/DateUtils.java b/drools-util/src/main/java/org/drools/util/DateUtils.java index 8957c0cf714..efca7ae55c2 100644 --- a/drools-util/src/main/java/org/drools/util/DateUtils.java +++ b/drools-util/src/main/java/org/drools/util/DateUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.util; import java.text.DateFormatSymbols; diff --git a/drools-util/src/main/java/org/drools/util/FileUtils.java b/drools-util/src/main/java/org/drools/util/FileUtils.java index dcbc6c43a53..d62a9ef730b 100644 --- a/drools-util/src/main/java/org/drools/util/FileUtils.java +++ b/drools-util/src/main/java/org/drools/util/FileUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.util; diff --git a/drools-util/src/main/java/org/drools/util/IncompatibleGetterOverloadException.java b/drools-util/src/main/java/org/drools/util/IncompatibleGetterOverloadException.java index 85c0eea6760..51cdc58c0ce 100644 --- a/drools-util/src/main/java/org/drools/util/IncompatibleGetterOverloadException.java +++ b/drools-util/src/main/java/org/drools/util/IncompatibleGetterOverloadException.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.util; public class IncompatibleGetterOverloadException extends RuntimeException { diff --git a/drools-util/src/main/java/org/drools/util/IoUtils.java b/drools-util/src/main/java/org/drools/util/IoUtils.java index 8d56f602801..3a8d40ab6a0 100644 --- a/drools-util/src/main/java/org/drools/util/IoUtils.java +++ b/drools-util/src/main/java/org/drools/util/IoUtils.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.util; import java.io.BufferedInputStream; diff --git a/drools-util/src/main/java/org/drools/util/JarUtils.java b/drools-util/src/main/java/org/drools/util/JarUtils.java index 0d36cb6cd9b..c944826d661 100644 --- a/drools-util/src/main/java/org/drools/util/JarUtils.java +++ b/drools-util/src/main/java/org/drools/util/JarUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.util; diff --git a/drools-util/src/main/java/org/drools/util/MathUtils.java b/drools-util/src/main/java/org/drools/util/MathUtils.java index fce95f439cf..6007c44c60d 100644 --- a/drools-util/src/main/java/org/drools/util/MathUtils.java +++ b/drools-util/src/main/java/org/drools/util/MathUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.util; import java.math.BigDecimal; diff --git a/drools-util/src/main/java/org/drools/util/MethodUtils.java b/drools-util/src/main/java/org/drools/util/MethodUtils.java index 7704262c102..a574851fddd 100644 --- a/drools-util/src/main/java/org/drools/util/MethodUtils.java +++ b/drools-util/src/main/java/org/drools/util/MethodUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.util; import java.lang.reflect.Method; diff --git a/drools-util/src/main/java/org/drools/util/ObjectPool.java b/drools-util/src/main/java/org/drools/util/ObjectPool.java new file mode 100644 index 00000000000..6d0d86fd047 --- /dev/null +++ b/drools-util/src/main/java/org/drools/util/ObjectPool.java @@ -0,0 +1,72 @@ +/** + * 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. + */ +package org.drools.util; + +import java.util.Queue; +import java.util.concurrent.LinkedTransferQueue; +import java.util.function.Consumer; +import java.util.function.Supplier; + +public interface ObjectPool extends AutoCloseable { + + T borrow(); + void offer(T t); + + static ObjectPool newLockFreePool(Supplier factory) { + return new LockFreeObjectPool<>(factory); + } + + static ObjectPool newLockFreePool(Supplier factory, Consumer destroyer) { + return new LockFreeObjectPool<>(factory, destroyer); + } + + class LockFreeObjectPool implements ObjectPool { + private final Supplier factory; + private final Consumer destroyer; + + private final Queue pool = new LinkedTransferQueue<>(); + + public LockFreeObjectPool(Supplier factory) { + this(factory, null); + } + + public LockFreeObjectPool(Supplier factory, Consumer destroyer) { + this.factory = factory; + this.destroyer = destroyer; + } + + @Override + public T borrow() { + T t = pool.poll(); + return t != null ? t : factory.get(); + } + + @Override + public void offer(T t) { + pool.offer(t); + } + + @Override + public void close() throws Exception { + if (destroyer != null) { + pool.forEach(destroyer); + } + } + } +} diff --git a/drools-util/src/main/java/org/drools/util/PortablePath.java b/drools-util/src/main/java/org/drools/util/PortablePath.java index 5144dd94d92..2ebcba3c139 100644 --- a/drools-util/src/main/java/org/drools/util/PortablePath.java +++ b/drools-util/src/main/java/org/drools/util/PortablePath.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.util; import java.io.File; diff --git a/drools-util/src/main/java/org/drools/util/ResourceHelper.java b/drools-util/src/main/java/org/drools/util/ResourceHelper.java index 87ea9c9af1d..69fe8ac8717 100644 --- a/drools-util/src/main/java/org/drools/util/ResourceHelper.java +++ b/drools-util/src/main/java/org/drools/util/ResourceHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.util; import java.io.File; diff --git a/drools-util/src/main/java/org/drools/util/StreamUtils.java b/drools-util/src/main/java/org/drools/util/StreamUtils.java index e6fd3382194..5006a8bc18c 100644 --- a/drools-util/src/main/java/org/drools/util/StreamUtils.java +++ b/drools-util/src/main/java/org/drools/util/StreamUtils.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.util; import java.util.List; diff --git a/drools-util/src/main/java/org/drools/util/StringUtils.java b/drools-util/src/main/java/org/drools/util/StringUtils.java index 58d7520521a..f94ce49b83a 100644 --- a/drools-util/src/main/java/org/drools/util/StringUtils.java +++ b/drools-util/src/main/java/org/drools/util/StringUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.util; import java.io.BufferedReader; @@ -33,6 +35,7 @@ import java.util.Iterator; import java.util.List; import java.util.UUID; +import java.util.stream.Collectors; import static java.lang.Character.isWhitespace; @@ -997,6 +1000,14 @@ public static List splitModifyBlock(CharSequence string) { return codeAwareSplitOnChar(string, true, true, ';', ',', '\n'); } + public static List splitStatementsAcrossBlocks(CharSequence string) { + List statements = codeAwareSplitOnChar(string, false, true, ';', '\n', '{', '}'); + return statements.stream() + .filter(stmt -> !(stmt.isEmpty())) + .filter(stmt -> !(stmt.startsWith("//"))) + .collect(Collectors.toList()); + } + public static List splitArgumentsList(CharSequence string) { return splitArgumentsList(string, true); } diff --git a/drools-util/src/main/java/org/drools/util/TypeResolver.java b/drools-util/src/main/java/org/drools/util/TypeResolver.java index 12bae9cc271..a0164f77799 100644 --- a/drools-util/src/main/java/org/drools/util/TypeResolver.java +++ b/drools-util/src/main/java/org/drools/util/TypeResolver.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.util; import java.lang.annotation.Annotation; diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/AllSetBitMask.java b/drools-util/src/main/java/org/drools/util/bitmask/AllSetBitMask.java similarity index 66% rename from drools-core/src/main/java/org/drools/core/util/bitmask/AllSetBitMask.java rename to drools-util/src/main/java/org/drools/util/bitmask/AllSetBitMask.java index ccd9dd6394b..062f274ae24 100644 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/AllSetBitMask.java +++ b/drools-util/src/main/java/org/drools/util/bitmask/AllSetBitMask.java @@ -1,19 +1,23 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.util.bitmask; + * 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. + */ + +package org.drools.util.bitmask; public class AllSetBitMask extends SingleLongBitMask implements BitMask, AllSetMask { diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/AllSetButLastBitMask.java b/drools-util/src/main/java/org/drools/util/bitmask/AllSetButLastBitMask.java similarity index 70% rename from drools-core/src/main/java/org/drools/core/util/bitmask/AllSetButLastBitMask.java rename to drools-util/src/main/java/org/drools/util/bitmask/AllSetButLastBitMask.java index b411a5d5a55..f8398213fc1 100644 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/AllSetButLastBitMask.java +++ b/drools-util/src/main/java/org/drools/util/bitmask/AllSetButLastBitMask.java @@ -1,19 +1,23 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.util.bitmask; + * 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. + */ + +package org.drools.util.bitmask; public class AllSetButLastBitMask extends SingleLongBitMask implements BitMask, AllSetMask { diff --git a/drools-util/src/main/java/org/drools/util/bitmask/AllSetMask.java b/drools-util/src/main/java/org/drools/util/bitmask/AllSetMask.java new file mode 100644 index 00000000000..dd3cd935da3 --- /dev/null +++ b/drools-util/src/main/java/org/drools/util/bitmask/AllSetMask.java @@ -0,0 +1,23 @@ +/** + * 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. + */ + +package org.drools.util.bitmask; + +public interface AllSetMask { +} diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/BitMask.java b/drools-util/src/main/java/org/drools/util/bitmask/BitMask.java similarity index 50% rename from drools-core/src/main/java/org/drools/core/util/bitmask/BitMask.java rename to drools-util/src/main/java/org/drools/util/bitmask/BitMask.java index d8a2dd1c689..797a4e2bd80 100644 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/BitMask.java +++ b/drools-util/src/main/java/org/drools/util/bitmask/BitMask.java @@ -1,19 +1,23 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.util.bitmask; + * 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. + */ + +package org.drools.util.bitmask; import java.io.Serializable; import java.util.Arrays; diff --git a/drools-util/src/main/java/org/drools/util/bitmask/BitMaskUtil.java b/drools-util/src/main/java/org/drools/util/bitmask/BitMaskUtil.java new file mode 100644 index 00000000000..9e55d3d1e9b --- /dev/null +++ b/drools-util/src/main/java/org/drools/util/bitmask/BitMaskUtil.java @@ -0,0 +1,45 @@ +/** + * 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. + */ + +package org.drools.util.bitmask; + +public class BitMaskUtil { + + public static boolean intersect(long mask1, long mask2) { + return (mask1 & mask2) != 0; + } + + public static long set(long mask, int pos) { + if (pos < 0) throw new IllegalArgumentException("negative position"); + return mask | (1L << pos); + } + + public static long reset(long mask, int pos) { + if (pos < 0) throw new IllegalArgumentException("negative position"); + return mask & (Long.MAX_VALUE - (1L << pos)); + } + + public static boolean isSet(long mask, long bit) { + return (mask & bit) == bit; + } + + public static boolean isPositionSet(long mask, int pos) { + return isSet(mask, 1L << pos); + } +} diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/EmptyBitMask.java b/drools-util/src/main/java/org/drools/util/bitmask/EmptyBitMask.java similarity index 60% rename from drools-core/src/main/java/org/drools/core/util/bitmask/EmptyBitMask.java rename to drools-util/src/main/java/org/drools/util/bitmask/EmptyBitMask.java index a531f217931..d20c334ef9d 100644 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/EmptyBitMask.java +++ b/drools-util/src/main/java/org/drools/util/bitmask/EmptyBitMask.java @@ -1,19 +1,23 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.util.bitmask; + * 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. + */ + +package org.drools.util.bitmask; public class EmptyBitMask extends SingleLongBitMask implements BitMask, EmptyMask { diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/EmptyButLastBitMask.java b/drools-util/src/main/java/org/drools/util/bitmask/EmptyButLastBitMask.java similarity index 63% rename from drools-core/src/main/java/org/drools/core/util/bitmask/EmptyButLastBitMask.java rename to drools-util/src/main/java/org/drools/util/bitmask/EmptyButLastBitMask.java index 67d6ca7c8b4..6a7b654aabc 100644 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/EmptyButLastBitMask.java +++ b/drools-util/src/main/java/org/drools/util/bitmask/EmptyButLastBitMask.java @@ -1,19 +1,23 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.util.bitmask; + * 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. + */ + +package org.drools.util.bitmask; public class EmptyButLastBitMask extends SingleLongBitMask implements BitMask, EmptyMask { diff --git a/drools-util/src/main/java/org/drools/util/bitmask/EmptyMask.java b/drools-util/src/main/java/org/drools/util/bitmask/EmptyMask.java new file mode 100644 index 00000000000..840ee159607 --- /dev/null +++ b/drools-util/src/main/java/org/drools/util/bitmask/EmptyMask.java @@ -0,0 +1,23 @@ +/** + * 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. + */ + +package org.drools.util.bitmask; + +public interface EmptyMask { +} diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/LongBitMask.java b/drools-util/src/main/java/org/drools/util/bitmask/LongBitMask.java similarity index 79% rename from drools-core/src/main/java/org/drools/core/util/bitmask/LongBitMask.java rename to drools-util/src/main/java/org/drools/util/bitmask/LongBitMask.java index 26ef4efa4c1..782fa335e9d 100644 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/LongBitMask.java +++ b/drools-util/src/main/java/org/drools/util/bitmask/LongBitMask.java @@ -1,19 +1,23 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - -package org.drools.core.util.bitmask; + * 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. + */ + +package org.drools.util.bitmask; public class LongBitMask extends SingleLongBitMask implements BitMask { diff --git a/drools-core/src/main/java/org/drools/core/util/bitmask/OpenBitSet.java b/drools-util/src/main/java/org/drools/util/bitmask/OpenBitSet.java similarity index 98% rename from drools-core/src/main/java/org/drools/core/util/bitmask/OpenBitSet.java rename to drools-util/src/main/java/org/drools/util/bitmask/OpenBitSet.java index 875e4047864..72707f1bc1e 100644 --- a/drools-core/src/main/java/org/drools/core/util/bitmask/OpenBitSet.java +++ b/drools-util/src/main/java/org/drools/util/bitmask/OpenBitSet.java @@ -1,22 +1,23 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * 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 +/** + * 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 + * 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. + * 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. */ -package org.drools.core.util.bitmask; +package org.drools.util.bitmask; import java.lang.reflect.Field; import java.util.Arrays; diff --git a/drools-util/src/main/java/org/drools/util/bitmask/SingleLongBitMask.java b/drools-util/src/main/java/org/drools/util/bitmask/SingleLongBitMask.java new file mode 100644 index 00000000000..52b648117cd --- /dev/null +++ b/drools-util/src/main/java/org/drools/util/bitmask/SingleLongBitMask.java @@ -0,0 +1,43 @@ +/** + * 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. + */ + +package org.drools.util.bitmask; + +public abstract class SingleLongBitMask implements BitMask { + + public abstract long asLong(); + + public abstract SingleLongBitMask clone(); + + @Override + public final boolean equals(Object o) { + if (this == o) return true; + return o instanceof SingleLongBitMask && asLong() == ((SingleLongBitMask) o).asLong(); + } + + @Override + public final int hashCode() { + return (int) (asLong() ^ (asLong() >>> 32)); + } + + @Override + public final String toString() { + return "" + asLong(); + } +} diff --git a/drools-util/src/test/java/org/drools/util/FileUtilsTest.java b/drools-util/src/test/java/org/drools/util/FileUtilsTest.java index d778d769084..c48d53f9e92 100644 --- a/drools-util/src/test/java/org/drools/util/FileUtilsTest.java +++ b/drools-util/src/test/java/org/drools/util/FileUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.util; import java.io.File; diff --git a/drools-util/src/test/java/org/drools/util/JarUtilsTest.java b/drools-util/src/test/java/org/drools/util/JarUtilsTest.java index e2ce52fbb79..a2c6794fd28 100644 --- a/drools-util/src/test/java/org/drools/util/JarUtilsTest.java +++ b/drools-util/src/test/java/org/drools/util/JarUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.util; import org.junit.Test; diff --git a/drools-util/src/test/java/org/drools/util/KiePathTest.java b/drools-util/src/test/java/org/drools/util/KiePathTest.java index fcdb8a3a79f..417db70b400 100644 --- a/drools-util/src/test/java/org/drools/util/KiePathTest.java +++ b/drools-util/src/test/java/org/drools/util/KiePathTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.util; import org.junit.Test; diff --git a/drools-util/src/test/java/org/drools/util/ResourceHelperTest.java b/drools-util/src/test/java/org/drools/util/ResourceHelperTest.java index 323558278d8..e33653772c4 100644 --- a/drools-util/src/test/java/org/drools/util/ResourceHelperTest.java +++ b/drools-util/src/test/java/org/drools/util/ResourceHelperTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.util; import java.io.File; diff --git a/drools-util/src/test/java/org/drools/util/StringUtilsTest.java b/drools-util/src/test/java/org/drools/util/StringUtilsTest.java index b8946b1953a..2f41589a179 100644 --- a/drools-util/src/test/java/org/drools/util/StringUtilsTest.java +++ b/drools-util/src/test/java/org/drools/util/StringUtilsTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.util; import java.util.List; @@ -24,6 +27,7 @@ import static org.drools.util.StringUtils.indexOfOutOfQuotes; import static org.drools.util.StringUtils.md5Hash; import static org.drools.util.StringUtils.splitStatements; +import static org.drools.util.StringUtils.splitStatementsAcrossBlocks; public class StringUtilsTest { @@ -247,4 +251,88 @@ public void testSplitStatements() { assertThat(statements.get(1)).isEqualTo("$visaApplication.setValidation( Validation.FAILED )"); assertThat(statements.get(2)).isEqualTo("drools.update($visaApplication)"); } + + @Test + public void splitStatementsAcrossBlocksIf() { + String text = "if (true) {\n" + + " $fact.value1 = 2;\n" + + " drools.update($fact);\n" + + "}"; + List statements = splitStatementsAcrossBlocks(text); + assertThat(statements.get(0)).isEqualTo("if (true)"); + assertThat(statements.get(1)).isEqualTo("$fact.value1 = 2"); + assertThat(statements.get(2)).isEqualTo("drools.update($fact)"); + } + + @Test + public void splitStatementsAcrossBlocksDoWhile() { + String text = "do {\n" + + " $fact.value1 = 2;\n" + + " drools.update($fact);\n" + + "} while (false);"; + List statements = splitStatementsAcrossBlocks(text); + assertThat(statements.get(0)).isEqualTo("do"); + assertThat(statements.get(1)).isEqualTo("$fact.value1 = 2"); + assertThat(statements.get(2)).isEqualTo("drools.update($fact)"); + assertThat(statements.get(3)).isEqualTo("while (false)"); + } + + @Test + public void splitStatementsAcrossBlocksFor() { + String text = "for (int i = 0; i < 1; i++) {\n" + + " $fact.value1 = 2;\n" + + " drools.update($fact);\n" + + "}"; + List statements = splitStatementsAcrossBlocks(text); + assertThat(statements.get(0)).isEqualTo("for (int i = 0; i < 1; i++)"); + assertThat(statements.get(1)).isEqualTo("$fact.value1 = 2"); + assertThat(statements.get(2)).isEqualTo("drools.update($fact)"); + } + + @Test + public void splitStatementsAcrossBlocksCommentedIf() { + String text = "// if (true) {\n" + + " $fact.value1 = 2;\n" + + " drools.update($fact);\n" + + "// }"; + List statements = splitStatementsAcrossBlocks(text); + assertThat(statements.get(0)).isEqualTo("$fact.value1 = 2"); + assertThat(statements.get(1)).isEqualTo("drools.update($fact)"); + } + + @Test + public void splitStatementsAcrossBlocksCommentedIfMissingStartingBrace() { + String text = "// if (true)\n" + + " $fact.value1 = 2;\n" + + " drools.update($fact);\n" + + "// }"; + List statements = splitStatementsAcrossBlocks(text); + assertThat(statements.get(0)).isEqualTo("$fact.value1 = 2"); + assertThat(statements.get(1)).isEqualTo("drools.update($fact)"); + } + + @Test + public void splitStatementsAcrossBlocksCommentedIfMissingEndingBrace() { + String text = "// if (true) {\n" + + " $fact.value1 = 2;\n" + + " drools.update($fact);\n" + + "//"; + List statements = splitStatementsAcrossBlocks(text); + assertThat(statements.get(0)).isEqualTo("$fact.value1 = 2"); + assertThat(statements.get(1)).isEqualTo("drools.update($fact)"); + } + + @Test + public void splitStatementsAcrossBlocksIfInsideAndOutsideAssginment() { + String text = "$fact.value1 = 2;\n" + + "if (true) {\n" + + " $fact.value2 = 2;\n" + + " drools.update($fact);\n" + + "}"; + List statements = splitStatementsAcrossBlocks(text); + assertThat(statements.get(0)).isEqualTo("$fact.value1 = 2"); + assertThat(statements.get(1)).isEqualTo("if (true)"); + assertThat(statements.get(2)).isEqualTo("$fact.value2 = 2"); + assertThat(statements.get(3)).isEqualTo("drools.update($fact)"); + } } diff --git a/drools-util/src/test/java/org/drools/util/TypeResolverTest.java b/drools-util/src/test/java/org/drools/util/TypeResolverTest.java index 3417011cec6..fcb359e4556 100644 --- a/drools-util/src/test/java/org/drools/util/TypeResolverTest.java +++ b/drools-util/src/test/java/org/drools/util/TypeResolverTest.java @@ -1,16 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ package org.drools.util; diff --git a/drools-core/src/test/java/org/drools/core/util/bitmask/LongBitMaskTest.java b/drools-util/src/test/java/org/drools/util/bitmask/LongBitMaskTest.java similarity index 74% rename from drools-core/src/test/java/org/drools/core/util/bitmask/LongBitMaskTest.java rename to drools-util/src/test/java/org/drools/util/bitmask/LongBitMaskTest.java index 7da9dcbd43e..3357d9bbbab 100644 --- a/drools-core/src/test/java/org/drools/core/util/bitmask/LongBitMaskTest.java +++ b/drools-util/src/test/java/org/drools/util/bitmask/LongBitMaskTest.java @@ -1,26 +1,28 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ + * 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. + */ -package org.drools.core.util.bitmask; +package org.drools.util.bitmask; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; -import java.lang.Long; - import static org.assertj.core.api.Assertions.assertThat; public class LongBitMaskTest { @@ -96,10 +98,10 @@ public void testClone() { @Test public void testGetInstancingStatement() { - assertThat(new LongBitMask(0L).getInstancingStatement()).isEqualTo("org.drools.core.util.bitmask.EmptyBitMask.get()"); - assertThat(new LongBitMask(1L).getInstancingStatement()).isEqualTo("org.drools.core.util.bitmask.EmptyButLastBitMask.get()"); - assertThat(new LongBitMask(Long.MAX_VALUE).getInstancingStatement()).isEqualTo("org.drools.core.util.bitmask.AllSetButLastBitMask.get()"); - assertThat(new LongBitMask(-1L).getInstancingStatement()).isEqualTo("org.drools.core.util.bitmask.AllSetBitMask.get()"); - assertThat(new LongBitMask(2L).getInstancingStatement()).isEqualTo("new org.drools.core.util.bitmask.LongBitMask(2L)"); + assertThat(new LongBitMask(0L).getInstancingStatement()).isEqualTo("org.drools.util.bitmask.EmptyBitMask.get()"); + assertThat(new LongBitMask(1L).getInstancingStatement()).isEqualTo("org.drools.util.bitmask.EmptyButLastBitMask.get()"); + assertThat(new LongBitMask(Long.MAX_VALUE).getInstancingStatement()).isEqualTo("org.drools.util.bitmask.AllSetButLastBitMask.get()"); + assertThat(new LongBitMask(-1L).getInstancingStatement()).isEqualTo("org.drools.util.bitmask.AllSetBitMask.get()"); + assertThat(new LongBitMask(2L).getInstancingStatement()).isEqualTo("new org.drools.util.bitmask.LongBitMask(2L)"); } } diff --git a/drools-verifier/drools-verifier-api/pom.xml b/drools-verifier/drools-verifier-api/pom.xml index ff6b255d407..a66a20184f8 100644 --- a/drools-verifier/drools-verifier-api/pom.xml +++ b/drools-verifier/drools-verifier-api/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-verifier - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Callback.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Callback.java index c7a078ba925..ff528bfd310 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Callback.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Callback.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.api; /** diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/CancellableRepeatingCommand.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/CancellableRepeatingCommand.java index 1c414e6a934..6fab3f9d45c 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/CancellableRepeatingCommand.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/CancellableRepeatingCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.api; public interface CancellableRepeatingCommand { diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Command.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Command.java index b63c820acc2..6cb8a1dd11c 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Command.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Command.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.api; /** diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Reporter.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Reporter.java index f9c22c18ff8..9939756e832 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Reporter.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Reporter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.api; import java.util.Set; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Status.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Status.java index e1ec2bcddbe..306bc991f52 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Status.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/Status.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.api; public class Status { diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/StatusUpdate.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/StatusUpdate.java index 7af9ea12d62..6e6c6b5839b 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/StatusUpdate.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/StatusUpdate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.api; public interface StatusUpdate { diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/CheckType.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/CheckType.java index 1cf8d3434f2..7eb9144e669 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/CheckType.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/CheckType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.api.reporting; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/IllegalVerifierStateIssue.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/IllegalVerifierStateIssue.java index 3d7ff3ac108..861e44f68ab 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/IllegalVerifierStateIssue.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/IllegalVerifierStateIssue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.api.reporting; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ImpossibleMatchIssue.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ImpossibleMatchIssue.java index 209c6da9efd..54636c50763 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ImpossibleMatchIssue.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ImpossibleMatchIssue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.api.reporting; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Issue.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Issue.java index 43b528123d2..def273ad4d1 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Issue.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Issue.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.api.reporting; import java.util.HashSet; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Issues.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Issues.java index edde33d1dd0..d290ad5d427 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Issues.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Issues.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.api.reporting; import java.util.Set; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/MultipleValuesForOneActionIssue.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/MultipleValuesForOneActionIssue.java index 709f7543409..538b5a1e096 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/MultipleValuesForOneActionIssue.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/MultipleValuesForOneActionIssue.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.api.reporting; import java.util.Set; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/RedundantConditionsIssue.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/RedundantConditionsIssue.java index 7c6a1c131c6..87fba544c58 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/RedundantConditionsIssue.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/RedundantConditionsIssue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.api.reporting; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Severity.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Severity.java index 20870794148..eef19e9011d 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Severity.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/Severity.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.api.reporting; public enum Severity { diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/SingleHitLostIssue.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/SingleHitLostIssue.java index 1424396f65f..34e8a9b5249 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/SingleHitLostIssue.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/SingleHitLostIssue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.api.reporting; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ValueForActionIsSetTwiceIssue.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ValueForActionIsSetTwiceIssue.java index db11eacb4fd..1cf376da60b 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ValueForActionIsSetTwiceIssue.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ValueForActionIsSetTwiceIssue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.api.reporting; diff --git a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ValueForFactFieldIsSetTwiceIssue.java b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ValueForFactFieldIsSetTwiceIssue.java index 55b4abeb2d3..f0e22c8c778 100644 --- a/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ValueForFactFieldIsSetTwiceIssue.java +++ b/drools-verifier/drools-verifier-api/src/main/java/org/drools/verifier/api/reporting/ValueForFactFieldIsSetTwiceIssue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.api.reporting; diff --git a/drools-verifier/drools-verifier-api/src/main/resources/META-INF/ErraiApp.properties b/drools-verifier/drools-verifier-api/src/main/resources/META-INF/ErraiApp.properties index e2ec7505b04..cfb4f0774ba 100644 --- a/drools-verifier/drools-verifier-api/src/main/resources/META-INF/ErraiApp.properties +++ b/drools-verifier/drools-verifier-api/src/main/resources/META-INF/ErraiApp.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # # ErraiApp.properties # diff --git a/drools-verifier/drools-verifier-api/src/main/resources/org/drools/verifier/VerifierAPI.gwt.xml b/drools-verifier/drools-verifier-api/src/main/resources/org/drools/verifier/VerifierAPI.gwt.xml index 805c41e0ddb..be8068608d3 100644 --- a/drools-verifier/drools-verifier-api/src/main/resources/org/drools/verifier/VerifierAPI.gwt.xml +++ b/drools-verifier/drools-verifier-api/src/main/resources/org/drools/verifier/VerifierAPI.gwt.xml @@ -1,20 +1,24 @@ - + + 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. + +--> diff --git a/drools-verifier/drools-verifier-core/pom.xml b/drools-verifier/drools-verifier-core/pom.xml index 723a3855ed2..28ce4467959 100644 --- a/drools-verifier/drools-verifier-core/pom.xml +++ b/drools-verifier/drools-verifier-core/pom.xml @@ -1,11 +1,31 @@ + drools-verifier org.drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/RuleInspectorCache.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/RuleInspectorCache.java index cf6e80b309e..d7fc74a77da 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/RuleInspectorCache.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/RuleInspectorCache.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/FieldActionsInspectorMultiMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/FieldActionsInspectorMultiMap.java index c46dc23845d..70f3babfd26 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/FieldActionsInspectorMultiMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/FieldActionsInspectorMultiMap.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.cache.inspectors; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/FieldInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/FieldInspector.java index 35bc5ac8d2c..b2ffb94129a 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/FieldInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/FieldInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/PatternInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/PatternInspector.java index 2ba21f95cb2..9671c20ab99 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/PatternInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/PatternInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspector.java index ff2c8403e79..8feae9fdea1 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspectorDumper.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspectorDumper.java index b8646c621bb..5d2ed07eb04 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspectorDumper.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspectorDumper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors; import org.drools.verifier.core.cache.inspectors.action.ActionInspector; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspectorUpdater.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspectorUpdater.java index 4a4961c4068..01188045989 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspectorUpdater.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/RuleInspectorUpdater.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors; public interface RuleInspectorUpdater { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionInspector.java index 2d11a8fe6a4..9bb82c15b70 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.action; import java.util.Date; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionInspectorFactory.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionInspectorFactory.java index 58f506c5a64..ac7e0fb9de7 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionInspectorFactory.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionInspectorFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.action; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionsInspectorMultiMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionsInspectorMultiMap.java index e19855186c7..da9028ea770 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionsInspectorMultiMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/ActionsInspectorMultiMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.action; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/BRLActionInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/BRLActionInspector.java index 7d8f96079b9..b23c3350afd 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/BRLActionInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/BRLActionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.action; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/FieldActionInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/FieldActionInspector.java index 1380afa2d07..c053263fbdf 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/FieldActionInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/action/FieldActionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.action; import java.util.Iterator; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/BRLConditionInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/BRLConditionInspector.java index 8f5b0d8afb2..47182453b31 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/BRLConditionInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/BRLConditionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Iterator; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/BooleanConditionInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/BooleanConditionInspector.java index ea106946425..d6465aeb662 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/BooleanConditionInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/BooleanConditionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspector.java index 75ed21ba233..691792eff20 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspector.java index 004ab490595..b5ce0c91c45 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspectorFactory.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspectorFactory.java index 9d04a948c8b..56788d0f063 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspectorFactory.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspectorFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionsInspectorMultiMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionsInspectorMultiMap.java index 8bd7ba1571a..dc60eade1f8 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionsInspectorMultiMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/ConditionsInspectorMultiMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspector.java index 98c2a0f58a2..07dc5d1aca5 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspector.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspector.java index 26fd1d707d8..e862a911d99 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspector.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.HashSet; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/ComparableWrapper.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/ComparableWrapper.java index 41abecd14ca..25d8fa1ca75 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/ComparableWrapper.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/ComparableWrapper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.checks; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectConflictingRowsCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectConflictingRowsCheck.java index a6e8ac7e7bb..8593f64b0ee 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectConflictingRowsCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectConflictingRowsCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectDeficientRowsCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectDeficientRowsCheck.java index cbe6ea77028..6e02c450e90 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectDeficientRowsCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectDeficientRowsCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectEmptyRowCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectEmptyRowCheck.java index d460458c184..2847680d465 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectEmptyRowCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectEmptyRowCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectImpossibleMatchCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectImpossibleMatchCheck.java index 8d846f1ac78..465265d9166 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectImpossibleMatchCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectImpossibleMatchCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Collections; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMissingActionCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMissingActionCheck.java index a0ac988cb3a..54189ce4bdf 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMissingActionCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMissingActionCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMissingConditionCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMissingConditionCheck.java index c28a338d779..a5c95ccebf1 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMissingConditionCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMissingConditionCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMultipleValuesForOneActionCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMultipleValuesForOneActionCheck.java index d34711072cc..298c4d4fa00 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMultipleValuesForOneActionCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectMultipleValuesForOneActionCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionBase.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionBase.java index d6a1950c4ce..8b06b7f8bcc 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionBase.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import org.drools.verifier.api.reporting.CheckType; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionFactFieldCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionFactFieldCheck.java index d83f3c7458c..a0b32be0d52 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionFactFieldCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionFactFieldCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionValueCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionValueCheck.java index 305c8be33a8..0eff14f2935 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionValueCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantActionValueCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantConditionsCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantConditionsCheck.java index 789a3ba0be9..7b1679cd6d6 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantConditionsCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantConditionsCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantRowsCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantRowsCheck.java index c3c6592873e..07a32291990 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantRowsCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/DetectRedundantRowsCheck.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.checks; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/SingleHitCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/SingleHitCheck.java index 769c259e71a..f537895a674 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/SingleHitCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/SingleHitCheck.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.checks; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/SingleRangeCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/SingleRangeCheck.java index 567cb7272f5..429757db5c0 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/SingleRangeCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/SingleRangeCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/Check.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/Check.java index 8dabd8a7564..88398e62e87 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/Check.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/Check.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import org.drools.verifier.api.reporting.Issue; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckBase.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckBase.java index a49116f1c20..b3e962c6cb1 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckBase.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.Optional; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckFactory.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckFactory.java index 5dc9e5477e5..72b84c64818 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckFactory.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.verifier.core.checks.base; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckRunManager.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckRunManager.java index db945c27a17..efd19c897ed 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckRunManager.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckRunManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.HashSet; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckRunner.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckRunner.java index dddd9b05fb1..d7c06e1886d 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckRunner.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.Set; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckStorage.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckStorage.java index b5d03cd247e..b171f716551 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckStorage.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/CheckStorage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/ChecksRepeatingCommand.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/ChecksRepeatingCommand.java index 3d25a8ef73b..24438d0a755 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/ChecksRepeatingCommand.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/ChecksRepeatingCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/JavaCheckRunner.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/JavaCheckRunner.java index 8d38f2a6456..4d4bcec8ab4 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/JavaCheckRunner.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/JavaCheckRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.Set; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/OneToManyCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/OneToManyCheck.java index 7f0a2385da7..9c2fd168119 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/OneToManyCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/OneToManyCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.function.Predicate; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheck.java index f7532ea940c..765df704837 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheck.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.drools.verifier.core.checks.base; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheckBundle.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheckBundle.java index f9dd49fb02b..07c7c1618bf 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheckBundle.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheckBundle.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.List; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheckStorage.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheckStorage.java index f74863a30a5..cdebb3cdcf7 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheckStorage.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PairCheckStorage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PriorityListCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PriorityListCheck.java index 081aad139a1..1a7c9b279ca 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PriorityListCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/PriorityListCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.List; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/SingleCheck.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/SingleCheck.java index d740fcc4f16..c0a8e0f5220 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/SingleCheck.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/checks/base/SingleCheck.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import org.drools.verifier.api.reporting.CheckType; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/AnalyzerConfiguration.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/AnalyzerConfiguration.java index f12453529fe..76b795d8295 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/AnalyzerConfiguration.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/AnalyzerConfiguration.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.configuration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/CheckConfiguration.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/CheckConfiguration.java index 895e7a651ed..98fbe76099b 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/CheckConfiguration.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/CheckConfiguration.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.configuration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/DateTimeFormatProvider.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/DateTimeFormatProvider.java index 87f9b0953ff..ff9a01055dd 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/DateTimeFormatProvider.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/DateTimeFormatProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.configuration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/RunnerType.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/RunnerType.java index de5ce960385..cf7d07bc165 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/RunnerType.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/configuration/RunnerType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.configuration; public enum RunnerType { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/Index.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/Index.java index 734ced41ce4..4d29a01c930 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/Index.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/Index.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.index; import org.drools.verifier.core.index.model.Columns; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/IndexImpl.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/IndexImpl.java index 2004f0482fb..bfb37b52054 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/IndexImpl.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/IndexImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/IndexKey.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/IndexKey.java index b0dad2714f1..7f15ff1f562 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/IndexKey.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/IndexKey.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Key.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Key.java index 786d4754e2e..db37f8ef69c 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Key.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Key.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/KeyType.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/KeyType.java index f9ef14abb72..5c1f007e20a 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/KeyType.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/KeyType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UUIDKey.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UUIDKey.java index 99e00d97f93..ac42943457a 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UUIDKey.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UUIDKey.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UUIDKeyProvider.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UUIDKeyProvider.java index 46ca1c39bb3..51a00821e92 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UUIDKeyProvider.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UUIDKeyProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UpdatableKey.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UpdatableKey.java index 9960999892b..03177a9a508 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UpdatableKey.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/UpdatableKey.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Value.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Value.java index 467bc57b684..fb3557a8759 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Value.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Value.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Values.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Values.java index b7b9512889d..462d0f43aea 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Values.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/keys/Values.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ComparableMatchers.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ComparableMatchers.java index 09debd8e4ff..8e3aa615d9a 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ComparableMatchers.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ComparableMatchers.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.matchers; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ExactMatcher.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ExactMatcher.java index 544c55a326a..e397158776c 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ExactMatcher.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ExactMatcher.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.matchers; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/FieldMatchers.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/FieldMatchers.java index bf4bb87fd48..68ed9bef5a7 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/FieldMatchers.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/FieldMatchers.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.matchers; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/FromMatcher.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/FromMatcher.java index 26429008c5e..46b7a9ebae5 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/FromMatcher.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/FromMatcher.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.matchers; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/KeyMatcher.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/KeyMatcher.java index 8f0fe1d5706..d69f827873a 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/KeyMatcher.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/KeyMatcher.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.matchers; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/Matcher.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/Matcher.java index 3e140b82724..39921eecd03 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/Matcher.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/Matcher.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.matchers; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ToMatcher.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ToMatcher.java index 362b6090739..3d8e1970053 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ToMatcher.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/ToMatcher.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.matchers; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/UUIDMatcher.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/UUIDMatcher.java index 86a2487a56b..dfd3c25bb30 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/UUIDMatcher.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/UUIDMatcher.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.matchers; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/UUIDMatchers.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/UUIDMatchers.java index 90f6c3afcfd..73144a0b433 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/UUIDMatchers.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/matchers/UUIDMatchers.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.matchers; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Action.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Action.java index 2c3c3fcfb5c..772e022b1aa 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Action.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Action.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ActionSuperType.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ActionSuperType.java index 068c8c4f1c3..392d8319b88 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ActionSuperType.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ActionSuperType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Actions.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Actions.java index 46cb94b80a0..e0aeb49924b 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Actions.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Actions.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ActivationTime.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ActivationTime.java index 3036360261a..1cc8fffd909 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ActivationTime.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ActivationTime.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/BRLAction.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/BRLAction.java index d7e8d2c619b..44fa825f3dc 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/BRLAction.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/BRLAction.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/BRLCondition.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/BRLCondition.java index a6c88200445..85abdd8b2f6 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/BRLCondition.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/BRLCondition.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Column.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Column.java index 551118b7e99..37187a279e5 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Column.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Column.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Columns.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Columns.java index f95e103cdd9..5f03f6c3762 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Columns.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Columns.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Condition.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Condition.java index 546647728c1..335ac6368b7 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Condition.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Condition.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ConditionSuperType.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ConditionSuperType.java index 565a2a09497..233b42dcf26 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ConditionSuperType.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ConditionSuperType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Conditions.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Conditions.java index 0a803800c3c..2ae989b5c81 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Conditions.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Conditions.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/DateEffectiveRuleAttribute.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/DateEffectiveRuleAttribute.java index 902ef4e2b3d..4e0c73a2491 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/DateEffectiveRuleAttribute.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/DateEffectiveRuleAttribute.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/DateExpiresRuleAttribute.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/DateExpiresRuleAttribute.java index 47609c507e7..feafdf4c8b3 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/DateExpiresRuleAttribute.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/DateExpiresRuleAttribute.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Field.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Field.java index d4b02dd1ffe..80801822b78 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Field.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Field.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldAction.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldAction.java index f9f5af81284..725d5c7104d 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldAction.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldAction.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldBase.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldBase.java index ace8ba469eb..9ae6117d41c 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldBase.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldBase.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldCondition.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldCondition.java index c1877b04fc1..e17b095d655 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldCondition.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldCondition.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Fields.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Fields.java index 666e4d70877..0d4bc4ab0ae 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Fields.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Fields.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldsBase.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldsBase.java index 879a6f1c337..ce2801d389a 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldsBase.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/FieldsBase.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectField.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectField.java index 6838c79e3e7..2a1c3df5099 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectField.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectField.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.index.model; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectFields.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectFields.java index 8ddd67263cf..4493490dced 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectFields.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectFields.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectType.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectType.java index d052eb03172..d170e149cb9 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectType.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectTypes.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectTypes.java index c66529db408..d7ff3f037a0 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectTypes.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/ObjectTypes.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Pattern.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Pattern.java index 51d5b43a505..a8515ece194 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Pattern.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Pattern.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Patterns.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Patterns.java index d69ec9a3608..c1a1deb995a 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Patterns.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Patterns.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/RetractAction.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/RetractAction.java index 54bd28bcd53..0f82fce3648 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/RetractAction.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/RetractAction.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Rule.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Rule.java index 1c89d8600f5..59f16f86700 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Rule.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Rule.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/RuleAttribute.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/RuleAttribute.java index 9f39e7fe931..653e66326bf 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/RuleAttribute.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/RuleAttribute.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Rules.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Rules.java index 18a6656de49..2127111b87b 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Rules.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/Rules.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/WorkItemAction.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/WorkItemAction.java index 6bfda85a30b..0a650a02615 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/WorkItemAction.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/model/WorkItemAction.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/MapBy.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/MapBy.java index 6815c023f95..bf98d5e4739 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/MapBy.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/MapBy.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.query; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Matchers.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Matchers.java index 4acce7c5eaf..514c0919882 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Matchers.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Matchers.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.query; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Query.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Query.java index f32aec4470f..9720616b48a 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Query.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Query.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.index.query; import org.drools.verifier.core.index.matchers.Matcher; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/QueryableIndex.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/QueryableIndex.java index 90608bec06d..5fcf9ae7232 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/QueryableIndex.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/QueryableIndex.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.index.query; import org.drools.verifier.core.index.matchers.Matcher; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Where.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Where.java index 52439f8c0f1..9866d5fbd61 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Where.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/query/Where.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.query; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/AllListener.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/AllListener.java index afb16e281ff..db786b6b214 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/AllListener.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/AllListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/ChangeHelper.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/ChangeHelper.java index 78c3cbff2a3..57dad460788 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/ChangeHelper.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/ChangeHelper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/ExactMatcherSearch.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/ExactMatcherSearch.java index b5dc5a17cc8..e1faf246782 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/ExactMatcherSearch.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/ExactMatcherSearch.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/FirstListener.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/FirstListener.java index 8ea1e252a71..a3f11cb3a38 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/FirstListener.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/FirstListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/LastListener.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/LastListener.java index e20cec207d5..b11438145b9 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/LastListener.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/LastListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/Listen.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/Listen.java index edb69aec101..59af07aac31 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/Listen.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/Listen.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/QueryCallback.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/QueryCallback.java index 4d0cd3bd010..b489161fcb2 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/QueryCallback.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/QueryCallback.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.index.select; public interface QueryCallback { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/Select.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/Select.java index 3419e75e9ee..89161ed2b7f 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/Select.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/index/select/Select.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/main/Analyzer.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/main/Analyzer.java index f67beeefd63..aabaeb1ce29 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/main/Analyzer.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/main/Analyzer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.main; import java.util.HashSet; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/main/Reporter.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/main/Reporter.java index df2263b8141..3adfac34050 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/main/Reporter.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/main/Reporter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.main; import java.util.Set; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ArrayListSubMapProvider.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ArrayListSubMapProvider.java index e736141691f..df944fdab14 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ArrayListSubMapProvider.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ArrayListSubMapProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ArrayMultiMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ArrayMultiMap.java index c627edf75e6..d14739911cd 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ArrayMultiMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ArrayMultiMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ChangeHandledMultiMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ChangeHandledMultiMap.java index 852c6ba8181..c190fe7b729 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ChangeHandledMultiMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/ChangeHandledMultiMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/IndexedKeyTreeMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/IndexedKeyTreeMap.java index 3529cd534fa..234df66e33d 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/IndexedKeyTreeMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/IndexedKeyTreeMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorFactory.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorFactory.java index 602b96c8c86..eb3f32b712f 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorFactory.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorList.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorList.java index 4417359ef3c..73e8398f0fd 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorList.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorMultiMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorMultiMap.java index 8fc30533b7b..6695b740123 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorMultiMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/InspectorMultiMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyChangeListener.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyChangeListener.java index 02c7ab13a85..4f9bbd9fa72 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyChangeListener.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyChangeListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.drools.verifier.core.index.keys.Key; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyDefinition.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyDefinition.java index 6a5d4f6780b..3b74fd86219 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyDefinition.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.drools.verifier.core.util.PortablePreconditions; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyTreeMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyTreeMap.java index de55ae38df7..810de86e02d 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyTreeMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/KeyTreeMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.List; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/LeafInspectorList.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/LeafInspectorList.java index 1b470dfb02e..10b477dfd10 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/LeafInspectorList.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/LeafInspectorList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.drools.verifier.core.configuration.AnalyzerConfiguration; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMap.java index 668bca5d01f..6958c33306f 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMapChangeHandler.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMapChangeHandler.java index 797ac75993b..e31e810b648 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMapChangeHandler.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMapChangeHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.List; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMapFactory.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMapFactory.java index 05d98026c21..84ae909ee5c 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMapFactory.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiMapFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiSet.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiSet.java index dbcc1759798..87a82a8e109 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiSet.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/MultiSet.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/NewSubMapProvider.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/NewSubMapProvider.java index 496a2c93ab7..aeda795d98a 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/NewSubMapProvider.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/NewSubMapProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.List; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/RawMultiMap.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/RawMultiMap.java index 4d392195c0e..1f87cff959f 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/RawMultiMap.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/RawMultiMap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/RetractHandler.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/RetractHandler.java index 6aebc088db1..3d7c839fa69 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/RetractHandler.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/RetractHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.drools.verifier.core.index.keys.UUIDKey; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/UUIDKeySet.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/UUIDKeySet.java index 63a969df144..9f4c2686163 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/UUIDKeySet.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/UUIDKeySet.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/UpdatableInspectorList.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/UpdatableInspectorList.java index d51f3ea32a1..fc9a485fda7 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/UpdatableInspectorList.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/UpdatableInspectorList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasConflicts.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasConflicts.java index 19c4da95513..0a5dbbfdddd 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasConflicts.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasConflicts.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps.util; import org.drools.verifier.core.relations.Conflict; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasIndex.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasIndex.java index 7a6357336f3..c0dd5625b15 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasIndex.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasIndex.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps.util; public interface HasIndex { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasKeys.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasKeys.java index 765e4b69967..1d44d738be0 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasKeys.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasKeys.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps.util; import org.drools.verifier.core.index.keys.Key; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasRedundancy.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasRedundancy.java index f09563c4155..d101cbb143e 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasRedundancy.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasRedundancy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps.util; public interface HasRedundancy { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasUUID.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasUUID.java index a5c59ad093a..7e8b64eacda 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasUUID.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/HasUUID.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps.util; import org.drools.verifier.core.index.keys.UUIDKey; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/RedundancyResult.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/RedundancyResult.java index ce6d69b298d..9f6990f0525 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/RedundancyResult.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/maps/util/RedundancyResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps.util; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Conflict.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Conflict.java index 42f990fdfeb..36dbe970557 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Conflict.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Conflict.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.drools.verifier.core.index.keys.UUIDKey; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/ConflictResolver.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/ConflictResolver.java index 530a1d4b3cd..0fdb4aaa6a8 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/ConflictResolver.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/ConflictResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.drools.verifier.core.maps.InspectorList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Conflicts.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Conflicts.java index ff5d588b78e..60d0ed061a2 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Conflicts.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Conflicts.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import java.util.HashMap; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/HumanReadable.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/HumanReadable.java index 5e20d8f0249..e3214c6a0d7 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/HumanReadable.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/HumanReadable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; public interface HumanReadable { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsConflicting.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsConflicting.java index cbfc7902c29..2a38313d86d 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsConflicting.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsConflicting.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.drools.verifier.core.maps.util.HasUUID; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsDeficient.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsDeficient.java index 5c5b5a589b8..7790b1c8c18 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsDeficient.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsDeficient.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; public interface IsDeficient { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsOverlapping.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsOverlapping.java index 19a7495b32c..d891203496e 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsOverlapping.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsOverlapping.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; public interface IsOverlapping { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsRedundant.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsRedundant.java index f2a1f56703d..0254fca355c 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsRedundant.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsRedundant.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; public interface IsRedundant { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsSubsuming.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsSubsuming.java index 72b39e92017..46aa33795ee 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsSubsuming.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/IsSubsuming.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; public interface IsSubsuming { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Operator.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Operator.java index 414b93fa8c5..6396cb6a48c 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Operator.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Operator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; public enum Operator { diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Relation.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Relation.java index 6412162c038..0dbd9f620b9 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Relation.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/Relation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.drools.verifier.core.index.keys.UUIDKey; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/RelationResolver.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/RelationResolver.java index d9e83105d7e..785f69857d9 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/RelationResolver.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/RelationResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.drools.verifier.core.maps.InspectorList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionBlocker.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionBlocker.java index fc517f48cea..8bd6130bf47 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionBlocker.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionBlocker.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.drools.verifier.core.index.keys.UUIDKey; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionBlockers.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionBlockers.java index 5f297eda196..8909b57fcb1 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionBlockers.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionBlockers.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import java.util.HashMap; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionResolver.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionResolver.java index a7d3e69a659..f82d5cba887 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionResolver.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/relations/SubsumptionResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.drools.verifier.core.maps.InspectorList; diff --git a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/util/PortablePreconditions.java b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/util/PortablePreconditions.java index 7f90063b785..bf536864b41 100644 --- a/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/util/PortablePreconditions.java +++ b/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/util/PortablePreconditions.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.verifier.core.util; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/main/resources/META-INF/ErraiApp.properties b/drools-verifier/drools-verifier-core/src/main/resources/META-INF/ErraiApp.properties index 140bd5616d1..92b3b405bbf 100644 --- a/drools-verifier/drools-verifier-core/src/main/resources/META-INF/ErraiApp.properties +++ b/drools-verifier/drools-verifier-core/src/main/resources/META-INF/ErraiApp.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # # ErraiApp.properties # diff --git a/drools-verifier/drools-verifier-core/src/main/resources/org/drools/verifier/core/VerifierCore.gwt.xml b/drools-verifier/drools-verifier-core/src/main/resources/org/drools/verifier/core/VerifierCore.gwt.xml index 36957860d80..1cbead7a623 100644 --- a/drools-verifier/drools-verifier-core/src/main/resources/org/drools/verifier/core/VerifierCore.gwt.xml +++ b/drools-verifier/drools-verifier-core/src/main/resources/org/drools/verifier/core/VerifierCore.gwt.xml @@ -1,20 +1,24 @@ - + + 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. + +--> diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/api/reporting/IllegalVerifierStateIssueTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/api/reporting/IllegalVerifierStateIssueTest.java index 6ef2e84dd70..2ecbc7d5f70 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/api/reporting/IllegalVerifierStateIssueTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/api/reporting/IllegalVerifierStateIssueTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.api.reporting; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/AnalyzerConfigurationMock.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/AnalyzerConfigurationMock.java index a54d74aba14..31b10832d2f 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/AnalyzerConfigurationMock.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/AnalyzerConfigurationMock.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/RuleInspectorCacheTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/RuleInspectorCacheTest.java index 1d3aa53e844..a43ff5ef4a1 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/RuleInspectorCacheTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/RuleInspectorCacheTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/ConditionsInspectorTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/ConditionsInspectorTest.java index bce9da94e4f..fe85418c097 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/ConditionsInspectorTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/ConditionsInspectorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors; import org.drools.verifier.core.cache.inspectors.condition.ComparableConditionInspector; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/FieldInspectorRelationsTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/FieldInspectorRelationsTest.java index eb955085c68..b81a1381e61 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/FieldInspectorRelationsTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/FieldInspectorRelationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors; import org.drools.verifier.core.AnalyzerConfigurationMock; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/FieldInspectorUpdateTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/FieldInspectorUpdateTest.java index be47ba7553f..03ccbabab88 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/FieldInspectorUpdateTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/FieldInspectorUpdateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/PatternInspectorTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/PatternInspectorTest.java index b4661575c61..955e4a68345 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/PatternInspectorTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/PatternInspectorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors; import org.drools.verifier.core.AnalyzerConfigurationMock; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/action/ActionInspectorConflictResolverTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/action/ActionInspectorConflictResolverTest.java index 6f9b9b0424c..41aa6defd7b 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/action/ActionInspectorConflictResolverTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/action/ActionInspectorConflictResolverTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.action; import java.util.Date; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/BooleanConditionInspectorTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/BooleanConditionInspectorTest.java index 75d20273cf3..50b69d8d33a 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/BooleanConditionInspectorTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/BooleanConditionInspectorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspectorConflictResolverTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspectorConflictResolverTest.java index 2990b8f8e45..cd4b03f8af0 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspectorConflictResolverTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspectorConflictResolverTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspectorSubsumptionTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspectorSubsumptionTest.java index 654dbdd9eb8..d6f1920c53d 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspectorSubsumptionTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ComparableConditionInspectorSubsumptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspectorUtils.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspectorUtils.java index 67ccc8dc409..170d856f102 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspectorUtils.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/ConditionInspectorUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.verifier.core.cache.inspectors.condition; import static java.lang.String.format; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/DateConditionInspectorSubsumptionTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/DateConditionInspectorSubsumptionTest.java index 4a87fc7c46f..951fcb3fe33 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/DateConditionInspectorSubsumptionTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/DateConditionInspectorSubsumptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Date; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/DoubleComparableConditionInspectorCoverTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/DoubleComparableConditionInspectorCoverTest.java index a10312c22e1..b4b8b8d5903 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/DoubleComparableConditionInspectorCoverTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/DoubleComparableConditionInspectorCoverTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorConflictResolverOverlapTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorConflictResolverOverlapTest.java index cadf3005b7f..d1ecfd9a133 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorConflictResolverOverlapTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorConflictResolverOverlapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorSubsumptionResolverTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorSubsumptionResolverTest.java index 83719516cf0..74bfa63edfa 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorSubsumptionResolverTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorSubsumptionResolverTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorSubsumptionTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorSubsumptionTest.java index 3504f4a504a..4351a2d942c 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorSubsumptionTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/NumericIntegerConditionInspectorSubsumptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorConflictResolverOverlapTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorConflictResolverOverlapTest.java index b77e7bf9e57..27542f65b17 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorConflictResolverOverlapTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorConflictResolverOverlapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorCoverTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorCoverTest.java index 9b385ad2105..39327ae7b22 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorCoverTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorCoverTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorOverlapTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorOverlapTest.java index c5146f9d3b4..bfcef3427f1 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorOverlapTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorOverlapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import org.drools.verifier.core.index.keys.Values; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorSubsumptionResolverTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorSubsumptionResolverTest.java index 4979d91a05b..7a48ef95982 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorSubsumptionResolverTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorSubsumptionResolverTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorSubsumptionTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorSubsumptionTest.java index f4c52085990..eefbf4a9306 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorSubsumptionTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorSubsumptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorToHumanReadableTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorToHumanReadableTest.java index dc284eca342..7aeb34f45a3 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorToHumanReadableTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspectorToHumanReadableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.cache.inspectors.condition; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/CheckRunManagerTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/CheckRunManagerTest.java index 56f8c04b021..80341c42aaf 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/CheckRunManagerTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/CheckRunManagerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.checks; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/ComparableWrapperTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/ComparableWrapperTest.java index a0a96a02bcb..7af21b297ff 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/ComparableWrapperTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/ComparableWrapperTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.checks; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/CheckFactoryTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/CheckFactoryTest.java index 7af07268105..3a8ff0a5a40 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/CheckFactoryTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/CheckFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.checks.base; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/CheckRunManagerRepeatingCommandTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/CheckRunManagerRepeatingCommandTest.java index 6e9d3146bf1..25c0bc4d70c 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/CheckRunManagerRepeatingCommandTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/CheckRunManagerRepeatingCommandTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.checks.base; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/PairCheckStorageListTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/PairCheckStorageListTest.java index 128406d01de..0e717acebae 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/PairCheckStorageListTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/checks/base/PairCheckStorageListTest.java @@ -1,20 +1,21 @@ -/* - - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.core.checks.base; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ActionTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ActionTest.java index 1c9f670bcb9..ebe474c8c45 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ActionTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ActionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.index; import org.drools.verifier.core.AnalyzerConfigurationMock; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ConditionTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ConditionTest.java index 23365f6b31c..9b64b67bc00 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ConditionTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ConditionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.index; import org.drools.verifier.core.AnalyzerConfigurationMock; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ConditionsListenerTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ConditionsListenerTest.java index 609e0483e25..151668f45ed 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ConditionsListenerTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/ConditionsListenerTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/KeyTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/KeyTest.java index 0953178cc4a..3a85043b347 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/KeyTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/KeyTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValueNullTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValueNullTest.java index 8afcfb32e18..8996c070bf9 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValueNullTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValueNullTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValueTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValueTest.java index fc675d825ec..8b10b898cb9 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValueTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValueTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValuesTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValuesTest.java index 79880f5417d..41704e84c55 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValuesTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/keys/ValuesTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.keys; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/model/ActivationTimeTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/model/ActivationTimeTest.java index 0bb0c69f98c..493a337369e 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/model/ActivationTimeTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/model/ActivationTimeTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.model; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/query/QueryableIndexTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/query/QueryableIndexTest.java index ba5bf2ae9e8..8633d16b7d9 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/query/QueryableIndexTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/query/QueryableIndexTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.index.query; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ExactMatcherSearchTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ExactMatcherSearchTest.java index 75d1f168ab0..77175c76464 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ExactMatcherSearchTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ExactMatcherSearchTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/Item.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/Item.java index 8308a230ea6..38969a45946 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/Item.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/Item.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.verifier.core.index.select; class Item { diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAddTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAddTest.java index 36a4fc051fb..a0c5b873f32 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAddTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAddTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAddToEmptyTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAddToEmptyTest.java index 32ebf858113..8a3e36adb00 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAddToEmptyTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAddToEmptyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.index.select; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAllTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAllTest.java index 16cc492de33..593de111edb 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAllTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenAllTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenRemoveTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenRemoveTest.java index 522f0895a9e..749ee8061de 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenRemoveTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/ListenRemoveTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/Person.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/Person.java index 2d805c1e295..7bc0e577771 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/Person.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/Person.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.verifier.core.index.select; class Person { diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectEmptyMapTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectEmptyMapTest.java index 4bdcec3d03b..52be5f1c1df 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectEmptyMapTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectEmptyMapTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectExactMatcherNegateTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectExactMatcherNegateTest.java index cd12ab8eaa3..2d70d3dbc37 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectExactMatcherNegateTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectExactMatcherNegateTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectExactMatcherTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectExactMatcherTest.java index 06d0d87af6b..d4f000fbe1e 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectExactMatcherTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectExactMatcherTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectKeyMatcherTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectKeyMatcherTest.java index 596b54b4c8a..cf4d18e5059 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectKeyMatcherTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectKeyMatcherTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectNoMatchesTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectNoMatchesTest.java index b38b4aa38ac..13a627d7f67 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectNoMatchesTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectNoMatchesTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectNullTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectNullTest.java index 91f79c22658..0fc9466106f 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectNullTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectNullTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectWithNegativeExactMatcherWhenTheValueIsNotInTheMapTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectWithNegativeExactMatcherWhenTheValueIsNotInTheMapTest.java index ed53060eea1..92fc8f051bd 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectWithNegativeExactMatcherWhenTheValueIsNotInTheMapTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/index/select/SelectWithNegativeExactMatcherWhenTheValueIsNotInTheMapTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.verifier.core.index.select; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/ChangeHandledMultiMapPreExistingDataTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/ChangeHandledMultiMapPreExistingDataTest.java index 5937ffb0abb..eb0362739fe 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/ChangeHandledMultiMapPreExistingDataTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/ChangeHandledMultiMapPreExistingDataTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.List; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/ChangeHandledMultiMapTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/ChangeHandledMultiMapTest.java index 613b526504e..1a75259ba5f 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/ChangeHandledMultiMapTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/ChangeHandledMultiMapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.List; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/IndexedKeyTreeMapTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/IndexedKeyTreeMapTest.java index c9ffeee9fe6..49996ff0db4 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/IndexedKeyTreeMapTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/IndexedKeyTreeMapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.drools.verifier.core.AnalyzerConfigurationMock; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyDefinitionBuilderTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyDefinitionBuilderTest.java index 7c937ce89f6..25c9e05c68a 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyDefinitionBuilderTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyDefinitionBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.junit.jupiter.api.Test; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapMergeTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapMergeTest.java index 193a8c055fb..c870afd0a13 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapMergeTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapMergeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapMultiValueKeyTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapMultiValueKeyTest.java index 9db2e60c30c..8dcfc5087e7 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapMultiValueKeyTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapMultiValueKeyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.List; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapTest.java index 6a4b1ea3de6..07289f0e94b 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.List; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapUUIDKeyTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapUUIDKeyTest.java index d098bca14a7..3ff3f1d08f6 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapUUIDKeyTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KeyTreeMapUUIDKeyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.drools.verifier.core.AnalyzerConfigurationMock; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KnownKeysKeyTreeMapTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KnownKeysKeyTreeMapTest.java index 6f1f7cdc0be..636352fcd60 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KnownKeysKeyTreeMapTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/KnownKeysKeyTreeMapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.drools.verifier.core.AnalyzerConfigurationMock; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/MultiMapFactoryTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/MultiMapFactoryTest.java index 9f6b872031e..99643438c40 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/MultiMapFactoryTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/MultiMapFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import org.junit.jupiter.api.Test; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/UpdatableInspectorListTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/UpdatableInspectorListTest.java index 6ef25a890d8..1644be348c5 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/UpdatableInspectorListTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/maps/UpdatableInspectorListTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.maps; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/OperatorTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/OperatorTest.java index f29bac86179..c7d1f39e5c8 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/OperatorTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/OperatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.junit.jupiter.api.Test; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/RelationResolverConflictsTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/RelationResolverConflictsTest.java index 5448991bc5c..c05989210b1 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/RelationResolverConflictsTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/RelationResolverConflictsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.drools.verifier.core.AnalyzerConfigurationMock; diff --git a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/RelationResolverSubsumptionTest.java b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/RelationResolverSubsumptionTest.java index b5ea36d5152..6e8926e9610 100644 --- a/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/RelationResolverSubsumptionTest.java +++ b/drools-verifier/drools-verifier-core/src/test/java/org/drools/verifier/core/relations/RelationResolverSubsumptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.core.relations; import org.drools.verifier.core.AnalyzerConfigurationMock; diff --git a/drools-verifier/drools-verifier-drl/pom.xml b/drools-verifier/drools-verifier-drl/pom.xml index 9490f2cee44..36821ffabdd 100644 --- a/drools-verifier/drools-verifier-drl/pom.xml +++ b/drools-verifier/drools-verifier-drl/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-verifier - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT drools-verifier-drl @@ -21,9 +41,9 @@ - com.lowagie - itext - ${version.com.lowagie.itext} + org.apache.pdfbox + pdfbox + ${version.org.apache.pdfbox} @@ -63,27 +83,22 @@ mvel2 - - com.lowagie - itext + org.apache.pdfbox + pdfbox - - - bouncycastle - bcmail-jdk14 - - - bouncycastle - bcprov-jdk14 - - bouncycastle - bctsp-jdk14 + commons-logging + commons-logging + + org.slf4j + jcl-over-slf4j + + org.drools drools-verifier-api diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/DefaultVerifierConfiguration.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/DefaultVerifierConfiguration.java index e318e4defcc..308a2758294 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/DefaultVerifierConfiguration.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/DefaultVerifierConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import org.kie.internal.io.ResourceFactory; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/EmptyVerifierConfiguration.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/EmptyVerifierConfiguration.java index 39d713d3c60..5ec4cbb5db7 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/EmptyVerifierConfiguration.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/EmptyVerifierConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import org.kie.internal.io.ResourceFactory; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/Verifier.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/Verifier.java index 00a5b0dc272..7701192ce25 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/Verifier.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/Verifier.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.util.List; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfiguration.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfiguration.java index 35618acfff7..2a791cfd01a 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfiguration.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.util.Map; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfigurationImpl.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfigurationImpl.java index 3e0f8dccf59..5cef1b26d7f 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfigurationImpl.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfigurationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.util.HashMap; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfigurationOptions.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfigurationOptions.java index 3ff540ec33f..ff7e92953ff 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfigurationOptions.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierConfigurationOptions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; public enum VerifierConfigurationOptions { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierError.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierError.java index 8ad84cb1fd9..06123de1878 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierError.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; public class VerifierError { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/ScopesAgendaFilter.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/ScopesAgendaFilter.java index 5c36cbc213d..ade763c10a0 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/ScopesAgendaFilter.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/ScopesAgendaFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.builder; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilder.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilder.java index efaa47c1894..6669dd241bb 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilder.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.builder; import java.util.List; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderConfiguration.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderConfiguration.java index b025539044e..1d90be4636d 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderConfiguration.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.builder; public interface VerifierBuilderConfiguration { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderConfigurationImpl.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderConfigurationImpl.java index c0f74117fa3..c08a7c40306 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderConfigurationImpl.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderConfigurationImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.builder; public class VerifierBuilderConfigurationImpl diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderError.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderError.java index 2454c2956fc..31158a4e989 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderError.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.builder; public interface VerifierBuilderError { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderErrors.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderErrors.java index 434350e7a71..3253ad47a7b 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderErrors.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderErrors.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.builder; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderFactory.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderFactory.java index b1865db8c37..278af0d3b70 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderFactory.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.builder; public class VerifierBuilderFactory { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderImpl.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderImpl.java index 14299359dbe..c1b5443b5ca 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderImpl.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierBuilderImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.builder; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierImpl.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierImpl.java index c6287b6deba..32a895a71c4 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierImpl.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.builder; import java.text.ParseException; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierKnowledgeBaseBuilder.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierKnowledgeBaseBuilder.java index 558cd322e0c..10410deba94 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierKnowledgeBaseBuilder.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierKnowledgeBaseBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.builder; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierPackageBuilder.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierPackageBuilder.java index 5a0833d6bb3..d5f51ab748c 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierPackageBuilder.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/builder/VerifierPackageBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.builder; import org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/BooleanRestriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/BooleanRestriction.java index d72a1970d36..ca1a827b89c 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/BooleanRestriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/BooleanRestriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class BooleanRestriction extends LiteralRestriction { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ChildComponent.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ChildComponent.java index 6a55dc207ec..7243f093253 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ChildComponent.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ChildComponent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public interface ChildComponent { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Consequence.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Consequence.java index 32512612e0e..1f55627286e 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Consequence.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Consequence.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.verifier.report.components.Cause; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/DateRestriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/DateRestriction.java index ea52b0084d1..c54ab9dd35c 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/DateRestriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/DateRestriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import java.util.Date; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EntryPoint.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EntryPoint.java index 76daaa3e886..cf50dce2d0c 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EntryPoint.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EntryPoint.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EnumField.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EnumField.java index 45d04bcf54f..9bf7d6df53a 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EnumField.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EnumField.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EnumRestriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EnumRestriction.java index 97dabc84356..f3f369e9a8e 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EnumRestriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/EnumRestriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class EnumRestriction extends Restriction { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Eval.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Eval.java index 381b8973bb7..7ee39d984ca 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Eval.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Eval.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public interface Eval diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Field.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Field.java index 43e997e82f4..67355f95a77 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Field.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Field.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/FieldVariable.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/FieldVariable.java index bed3d5c10b1..ce150907a63 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/FieldVariable.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/FieldVariable.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.components; public class FieldVariable extends PatternComponent implements Variable { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Import.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Import.java index 05a9c85d9a5..3c880d06aea 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Import.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Import.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.ImportDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/InlineEvalDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/InlineEvalDescr.java index 11bfbcfe2f7..33347eb7059 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/InlineEvalDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/InlineEvalDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class InlineEvalDescr extends PatternComponent { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/LiteralRestriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/LiteralRestriction.java index d18b22b9b2e..c2fd8e69cc9 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/LiteralRestriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/LiteralRestriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import java.text.SimpleDateFormat; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/NamedConsequence.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/NamedConsequence.java index 40441a97612..fe2ee5c2207 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/NamedConsequence.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/NamedConsequence.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.components; public class NamedConsequence diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/NumberRestriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/NumberRestriction.java index 596543eb313..2088dcb90ac 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/NumberRestriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/NumberRestriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class NumberRestriction extends LiteralRestriction { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ObjectType.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ObjectType.java index 4823bf9ec4d..6e6885d7297 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ObjectType.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ObjectType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import java.io.Serializable; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/OperatorDescrType.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/OperatorDescrType.java index d8c51a530ad..fc1728d5195 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/OperatorDescrType.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/OperatorDescrType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class OperatorDescrType { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PackageComponent.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PackageComponent.java index d3dd69451ad..8590534988d 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PackageComponent.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PackageComponent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Pattern.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Pattern.java index b7bfab4c5c8..798f251afc4 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Pattern.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Pattern.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.PatternDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternComponent.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternComponent.java index ea6d6188d55..afc8609a0ca 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternComponent.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternComponent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public abstract class PatternComponent extends RuleComponent { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternComponentSource.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternComponentSource.java index e16749a62f5..f28daa55248 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternComponentSource.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternComponentSource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public abstract class PatternComponentSource extends PatternComponent diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternEval.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternEval.java index d59e0f805c7..775bf959f05 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternEval.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternEval.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.verifier.report.components.Cause; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternOperatorDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternOperatorDescr.java index cb73df7f1bf..9346b2922bf 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternOperatorDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternOperatorDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import java.io.Serializable; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternVariable.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternVariable.java index 2307c73c3ec..d80c8eca41c 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternVariable.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/PatternVariable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class PatternVariable extends RuleComponent implements Variable { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Possibility.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Possibility.java index 6544376a407..c5309087201 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Possibility.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Possibility.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import java.util.Set; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/QualifiedIdentifierRestriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/QualifiedIdentifierRestriction.java index b6ceea7b577..0f9ca92c45d 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/QualifiedIdentifierRestriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/QualifiedIdentifierRestriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class QualifiedIdentifierRestriction extends Restriction { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Restriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Restriction.java index d9a36a12848..11acc1d02c9 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Restriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Restriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.parser.impl.Operator; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ReturnValueFieldDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ReturnValueFieldDescr.java index 608b9b91220..5dcf89c1c66 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ReturnValueFieldDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ReturnValueFieldDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class ReturnValueFieldDescr extends PatternComponent { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ReturnValueRestriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ReturnValueRestriction.java index a63f435cd67..b5e0eba9033 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ReturnValueRestriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/ReturnValueRestriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.verifier.report.components.Cause; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleComponent.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleComponent.java index 12feb1e2adf..a852e7fdb68 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleComponent.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleComponent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleEval.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleEval.java index d0399ee6869..f8e149c418c 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleEval.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleEval.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.verifier.report.components.Cause; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleOperatorDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleOperatorDescr.java index 6bedb50940b..fd9aea8ae66 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleOperatorDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RuleOperatorDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import java.io.Serializable; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RulePackage.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RulePackage.java index 1d7864ad844..ba772e16b51 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RulePackage.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/RulePackage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Source.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Source.java index f88b7f8d2ba..2a79194cf3f 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Source.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Source.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public interface Source diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/StringRestriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/StringRestriction.java index ff1c2e9d41a..e4547b7033d 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/StringRestriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/StringRestriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class StringRestriction extends LiteralRestriction { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/SubPattern.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/SubPattern.java index 1de72ed0936..e37d316d6f4 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/SubPattern.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/SubPattern.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.components; import java.util.HashSet; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/SubRule.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/SubRule.java index eca2147953b..0420420bb0d 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/SubRule.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/SubRule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.components; import java.io.Serializable; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/TextConsequence.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/TextConsequence.java index 0983a1f72fa..ad75ae3a11f 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/TextConsequence.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/TextConsequence.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.RuleDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Variable.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Variable.java index 35832d0d3cc..3d1230b4ee7 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Variable.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/Variable.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.components; public interface Variable extends ChildComponent { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VariableRestriction.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VariableRestriction.java index b9197d5a8cb..032c602b44b 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VariableRestriction.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VariableRestriction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.verifier.report.components.Cause; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierAccessorDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierAccessorDescr.java index 0a354208735..d156a50af23 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierAccessorDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierAccessorDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class VerifierAccessorDescr extends RuleComponent { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierAccumulateDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierAccumulateDescr.java index 3570224801c..1fba10e0040 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierAccumulateDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierAccumulateDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class VerifierAccumulateDescr extends PatternComponentSource { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierCollectDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierCollectDescr.java index 0e75358db6a..fc95a821e12 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierCollectDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierCollectDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class VerifierCollectDescr extends PatternComponentSource { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierComponentSource.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierComponentSource.java index 1a85ee4c839..ad3d65f9097 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierComponentSource.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierComponentSource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierComponentType.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierComponentType.java index ec8c90c8a3a..3a74cbbd26a 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierComponentType.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierComponentType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class VerifierComponentType diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFieldAccessDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFieldAccessDescr.java index 15f0694e40e..dc0b2a64d17 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFieldAccessDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFieldAccessDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class VerifierFieldAccessDescr extends RuleComponent { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFromDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFromDescr.java index 5c63a58b7dc..8d86e9492b3 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFromDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFromDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class VerifierFromDescr extends PatternComponentSource { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFunctionCallDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFunctionCallDescr.java index 8d07d0359f7..b9a87baa4f7 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFunctionCallDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierFunctionCallDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class VerifierFunctionCallDescr extends RuleComponent { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierMethodAccessDescr.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierMethodAccessDescr.java index c9533ab3d3f..0d59fcb58fc 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierMethodAccessDescr.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierMethodAccessDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; public class VerifierMethodAccessDescr extends RuleComponent { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierRule.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierRule.java index c81f19d9c92..b80e3a1552f 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierRule.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/VerifierRule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/WorkingMemory.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/WorkingMemory.java index d3cdc2d39c9..9bd9105a52e 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/WorkingMemory.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/components/WorkingMemory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierComponent.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierComponent.java index cff1dd79232..f97e3220cba 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierComponent.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierComponent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.data; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierData.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierData.java index 0139524eef6..9992eb58ccd 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierData.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.data; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierDataKnowledgeSession.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierDataKnowledgeSession.java index 3afb8f90c22..6a2d1238ec8 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierDataKnowledgeSession.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierDataKnowledgeSession.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.data; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierDataMaps.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierDataMaps.java index 6024271cacc..d5378c3262e 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierDataMaps.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierDataMaps.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.data; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReport.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReport.java index 5782d0bbb96..2e58a9142b7 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReport.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.data; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReportFactory.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReportFactory.java index 27bcdd3b146..7b4431426d6 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReportFactory.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReportFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.data; public class VerifierReportFactory { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReportImpl.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReportImpl.java index c753b7d10b0..f51da3fc1a3 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReportImpl.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/data/VerifierReportImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.data; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/doc/DroolsDocsBuilder.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/doc/DroolsDocsBuilder.java index 4c5cbc5a61b..9ae317c8e47 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/doc/DroolsDocsBuilder.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/doc/DroolsDocsBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.doc; import java.io.OutputStream; @@ -22,16 +24,13 @@ import java.text.SimpleDateFormat; import java.util.Date; +import org.apache.pdfbox.pdmodel.PDDocument; +import org.apache.pdfbox.pdmodel.PDDocumentInformation; import org.drools.verifier.misc.DrlPackageParser; import org.drools.verifier.misc.DrlRuleParser; -import com.lowagie.text.Document; -import com.lowagie.text.DocumentException; -import com.lowagie.text.HeaderFooter; -import com.lowagie.text.Phrase; -import com.lowagie.text.pdf.PdfWriter; - import static org.drools.util.Config.getConfig; +import static org.drools.verifier.doc.DroolsDocsComponentFactory.*; public class DroolsDocsBuilder { @@ -63,43 +62,23 @@ public void writePDF(OutputStream out) { // TODO: Use i18n! - Document document = new Document(); - - try { - PdfWriter.getInstance( document, - out ); - - HeaderFooter footer = DroolsDocsComponentFactory.createFooter( packageData.getName() ); - - document.setFooter( footer ); - - document.addTitle( packageData.getName().toUpperCase() ); - document.open(); - - // First page, documentation info. - DroolsDocsComponentFactory.createFirstPage( document, - currentDate, - packageData ); - - document.newPage(); - - // List index of the rules - document.add( new Phrase( "Table of Contents" ) ); - document.add( DroolsDocsComponentFactory.createContents( packageData.getRules() ) ); - - document.newPage(); + try (PDDocument doc = new PDDocument()) { + PDDocumentInformation info = new PDDocumentInformation(); + info.setTitle(packageData.getName().toUpperCase()); + doc.setDocumentInformation(info); + createFirstPage(doc, currentDate, packageData); + int pageNumber = 2; + createToC(doc, pageNumber, packageData); for ( DrlRuleParser ruleData : packageData.getRules() ) { - DroolsDocsComponentFactory.newRulePage( document, - packageData.getName(), - ruleData ); + pageNumber++; + createRulePage(doc, pageNumber, packageData.getName(), ruleData); } - } catch ( DocumentException de ) { - System.err.println( de.getMessage() ); + doc.save(out); + } catch (Exception ex){ + System.err.println( ex.getMessage() ); } - - document.close(); } public static String getDateFormatMask() { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/doc/DroolsDocsComponentFactory.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/doc/DroolsDocsComponentFactory.java index 77a9e624778..fb428252bc5 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/doc/DroolsDocsComponentFactory.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/doc/DroolsDocsComponentFactory.java @@ -1,345 +1,293 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.doc; -import java.awt.Color; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.Map; - +import org.apache.pdfbox.pdmodel.PDDocument; +import org.apache.pdfbox.pdmodel.PDPage; +import org.apache.pdfbox.pdmodel.PDPageContentStream; +import org.apache.pdfbox.pdmodel.common.PDRectangle; +import org.apache.pdfbox.pdmodel.font.PDFont; +import org.apache.pdfbox.pdmodel.font.PDType1Font; +import org.apache.pdfbox.pdmodel.graphics.color.PDColor; +import org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB; import org.drools.verifier.misc.DrlPackageParser; import org.drools.verifier.misc.DrlRuleParser; -import com.lowagie.text.BadElementException; -import com.lowagie.text.Cell; -import com.lowagie.text.Chunk; -import com.lowagie.text.Document; -import com.lowagie.text.DocumentException; -import com.lowagie.text.Element; -import com.lowagie.text.ExceptionConverter; -import com.lowagie.text.Font; -import com.lowagie.text.FontFactory; -import com.lowagie.text.HeaderFooter; -import com.lowagie.text.Image; -import com.lowagie.text.List; -import com.lowagie.text.ListItem; -import com.lowagie.text.Paragraph; -import com.lowagie.text.Phrase; -import com.lowagie.text.Rectangle; -import com.lowagie.text.Table; -import com.lowagie.text.pdf.PdfPCell; -import com.lowagie.text.pdf.PdfPTable; -import com.lowagie.text.pdf.PdfPageEventHelper; -import com.lowagie.text.pdf.PdfWriter; +import java.io.IOException; +import java.util.*; +import java.util.Map.Entry; public class DroolsDocsComponentFactory { - - private static final int INDENTATION_LEFT = 20; - private static final String INDENT = " "; - private static final Font CHAPTER_TITLE = FontFactory.getFont( FontFactory.TIMES, - 20, - Font.BOLD ); - private static final Font PACKAGE_NAME = FontFactory.getFont( FontFactory.TIMES, - 10, - Font.BOLD ); - private static final Font RULE_PACKAGE_TITLE = FontFactory.getFont( FontFactory.TIMES, - 24, - Font.BOLD ); - private static final Font CATEGORIES_TEXT = FontFactory.getFont( FontFactory.TIMES, - 12 ); - private static final Font BODY_TEXT = FontFactory.getFont( FontFactory.TIMES, - 10 ); - static final Font HEADER_FOOTER_TEXT = FontFactory.getFont( FontFactory.TIMES, - 8 ); - - public static Table newDescription(String description) throws DocumentException { - if ( description == null || "".equals( description ) ) { - description = " - "; - } - - Table table = newTable(); + public static void createToC(PDDocument doc, int pageNumber, DrlPackageParser packageData) throws IOException { + final PDPage page = new PDPage(PDRectangle.A4); + float yPosition = page.getMediaBox().getHeight() - 50; // Start position for the table - Cell headerCell = newHeaderCell( "Description", - CATEGORIES_TEXT ); - table.addCell( headerCell ); + doc.addPage(page); + try (PDPageContentStream contentStream = new PDPageContentStream(doc, page)) { - table.addCell( newCell( description ) ); + StringBuilder sb = new StringBuilder("Table of Contents\n"); + int count = 0; + for (DrlRuleParser rule : packageData.getRules()) { + count++; + sb.append(count).append(". ").append(rule.getName().replaceAll("\"","")).append("\n"); + } - return table; + drawText(contentStream, page, yPosition, 15, sb.toString()); + addFooter(contentStream, page, pageNumber, packageData.getName()); + } } - private static Table newTable() throws BadElementException { - Table table = new Table( 1 ); + public static void createRulePage(PDDocument doc, int pageNumber, String packageName, DrlRuleParser drlData) throws IOException { + final PDPage page = new PDPage(PDRectangle.A4); + doc.addPage(page); - table.setBorderWidthTop( 1 ); - table.setBorderWidthLeft( 1 ); - table.setBorderWidthRight( 1 ); - table.setBorderWidthBottom( 0 ); - table.setWidth( 100 ); - table.setPadding( 3 ); - table.setAlignment( Table.ALIGN_LEFT ); + try (PDPageContentStream contentStream = new PDPageContentStream(doc, page)) { + createHeader(contentStream, page, packageName); + float yPosition = createRuleHeader(contentStream, page, drlData.getName().replaceAll("\"","")); - return table; - } + // Extends + int extendIndex = drlData.getName().lastIndexOf( "extends" ); + if ( extendIndex > 0 ) { + yPosition = drawText(contentStream, page, yPosition + 20, 12, "Extends: " + drlData.getName().substring( "extends".length() + extendIndex ).replaceAll("\"", "")); + } - public static void createOtherItems(Document document, - Map> other) throws DocumentException { + if (!drlData.getDescription().trim().isEmpty()) { + yPosition = createTable(contentStream, page, yPosition, Map.of("Description", List.of(drlData.getDescription()))); + } else { + yPosition = yPosition + 40; + } - for ( String key : other.keySet() ) { - document.add( newTable( key, - other.get( key ) ) ); - } - } + final LinkedHashMap> content = new LinkedHashMap<>(); - public static Table newRuleTable(DrlRuleParser drl) throws BadElementException, - DocumentException { - Table table = newTable(); + content.put("Attributes", dashIfEmpty(prefix(INDENT, drlData.getHeader()))); + content.put(INDENT + "WHEN", dashIfEmpty(prefix(INDENT + INDENT, drlData.getLhs()))); + content.put(INDENT + "THEN", dashIfEmpty(prefix(INDENT + INDENT, drlData.getRhs()))); - Cell headerCell = newHeaderCell( "Attributes", - CATEGORIES_TEXT ); - table.addCell( headerCell ); + yPosition = createTable(contentStream, page, yPosition - 40, content); + createTable(contentStream, page, yPosition - 40, Map.of("Metadata", dashIfEmpty(drlData.getMetadata()))); - for ( String s : drl.getHeader() ) { - table.addCell( newCell( INDENT + s.trim() ) ); - } + createOtherItems(contentStream, page, yPosition, drlData.getOtherInformation()); - table.addCell( newHeaderCell( INDENT + "WHEN", - BODY_TEXT ) ); - for ( String s : drl.getLhs() ) { - table.addCell( newCell( INDENT + INDENT + s.trim() ) ); + addFooter(contentStream, page, pageNumber, packageName); } + } - table.addCell( newHeaderCell( INDENT + "THEN", - BODY_TEXT ) ); - for ( String s : drl.getRhs() ) { - table.addCell( newCell( INDENT + INDENT + s.trim() ) ); + private static Collection prefix(String prefix, Collection input){ + final Collection result = new ArrayList<>(input.size()); + for (String s : input) { + result.add(prefix + s.replaceAll("\t", " ")); } - // table.addCell( newEmptyWhenThenCell( "END" ) ); - - return table; + return result; } - public static Table newTable(final String topic, - Collection items) throws BadElementException, - DocumentException { - Table table = newTable(); - - Cell headerCell = newHeaderCell( topic, - CATEGORIES_TEXT ); - table.addCell( headerCell ); - - if ( items.isEmpty() ) { - table.addCell( newCell( " - " ) ); - } else { - for ( String s : items ) { - table.addCell( newCell( s ) ); - } - } + private static Collection dashIfEmpty(Collection input){ + return input.isEmpty() ? List.of("-") : input; + } - return table; + private static float createRuleHeader(PDPageContentStream contentStream, PDPage page, String string) throws IOException { + float yPosition = page.getMediaBox().getHeight() - 50; + return drawText(contentStream, page, yPosition, PDType1Font.TIMES_BOLD, 20, "Rule " + string); } - public static List createContents(java.util.List rules) { - List index = new List( true ); + public static void createFirstPage(PDDocument doc, String date, DrlPackageParser packageData) throws IOException { + final PDPage page = new PDPage(PDRectangle.A4); + doc.addPage(page); + try (PDPageContentStream contentStream = new PDPageContentStream(doc, page)) { + float lastContentY = writeCenteredTitleAndDate(contentStream, page, packageData.getName().toUpperCase(), date); - for ( DrlRuleParser drlRuleData : rules ) { - Chunk chunk = new Chunk( drlRuleData.getName() ); - // chunk.setLocalGoto( item.getName() ); - ListItem listItem = new ListItem( chunk ); - index.add( listItem ); - } + lastContentY = drawText(contentStream, page, lastContentY, 10, "\n\n\n\n\n" + packageData.getDescription()); - return index; - } + lastContentY = createTable(contentStream, page, lastContentY, Map.of("Metadata", packageData.getMetadata().isEmpty() ? List.of("-") : packageData.getMetadata())); + lastContentY = createTable(contentStream, page, lastContentY - 20, Map.of("Globals", packageData.getGlobals())); - private static Cell newHeaderCell(String text, - Font font) throws BadElementException { - Cell c = new Cell( new Phrase( text, - font ) ); - c.setBackgroundColor( Color.decode( "#CCCCFF" ) ); - c.setLeading( 10 ); - c.setBorder( 1 ); + createOtherItems(contentStream, page, lastContentY, packageData.getOtherInformation()); - return c; + addFooter(contentStream, page, 1, packageData.getName()); + } } - private static Cell newCell(String text) throws BadElementException { - Cell c = new Cell( new Phrase( text, - BODY_TEXT ) ); - c.setLeading( 10 ); - c.setBorder( 0 ); - c.setBorderWidthBottom( 1 ); - - return c; + private static float createOtherItems(PDPageContentStream contentStream, PDPage page, float lastContentY, Map> otherInformation) throws IOException { + for (Map.Entry> other : otherInformation.entrySet()) { + lastContentY = createTable(contentStream, page, lastContentY - 20, Map.of(other.getKey(), other.getValue())); + } + return lastContentY; } - public static HeaderFooter createFooter(String packageName) { - HeaderFooter footer = new HeaderFooter( new Phrase( packageName + "-", - HEADER_FOOTER_TEXT ), - true ); - footer.setBorder( 1 ); - footer.setAlignment( Element.ALIGN_RIGHT ); - - return footer; + private static void addFooter(PDPageContentStream contentStream, PDPage page, int pageNumber, String footerText) throws IOException { + contentStream.moveTo(50, 50); // Starting point of line + contentStream.lineTo(page.getMediaBox().getWidth() - 50, 50); // Ending point of line + contentStream.stroke(); + + String text = footerText + " - " + pageNumber; + int fontSize = 8; + float width = PDType1Font.TIMES_ROMAN.getStringWidth(text) / 1000 * fontSize; + float pageWidth = page.getMediaBox().getWidth(); + float xPosition = pageWidth - width - 50; // subtract 50 (or whatever your right margin is) + + contentStream.beginText(); + contentStream.setFont(PDType1Font.TIMES_ROMAN, fontSize); + contentStream.newLineAtOffset(xPosition, 40); // 50 (or whatever your bottom margin is) + contentStream.showText(text); + contentStream.endText(); } - - private static String[] splitFirst(String source, String splitter) { - java.util.List rv = new ArrayList<>(); - int last = 0; - int next; - - next = source.indexOf(splitter, last); - if (next != -1) - { - rv.add(source.substring(last, next)); - last = next + splitter.length(); - } - if (last < source.length()) - { - rv.add(source.substring(last)); + private static float createTable(PDPageContentStream contentStream, PDPage page, float yPosition, Map> icontent) throws IOException { + float margin = 50; + float tableWidth = page.getMediaBox().getWidth() - 2 * margin; + float tableRowHeight = 20f; + float colWidth = tableWidth; + float contentY = 0; + + float tableTopY = yPosition; // Save initial yPosition as the top of the table + float tableBottomY = 0; // Placeholder for bottom of the table + + for (Entry> entry : icontent.entrySet()) { + String header = entry.getKey(); + Collection content = entry.getValue(); + + // Draw header row + float headerY = drawRow(contentStream, page, header, yPosition, tableWidth, tableRowHeight, colWidth, true); + drawLine(contentStream, margin, headerY, margin + tableWidth, headerY); // Header bottom border + contentY = headerY; + + // Add content + for (String rowContent : content) { + contentY = drawRow(contentStream, page, rowContent, contentY, tableWidth, tableRowHeight, colWidth, false); + drawLine(contentStream, margin, contentY, margin + tableWidth, contentY); // Row bottom border + } + yPosition = contentY; } - return rv.toArray(new String[rv.size()]); - } - - public static void newRulePage(Document document, - String packageName, - DrlRuleParser drlData) throws DocumentException { + tableBottomY = yPosition; // Save final yPosition as the bottom of the table - document.add( new Paragraph( packageName, - PACKAGE_NAME ) ); - document.add( new Paragraph( "Rule " + drlData.getName(), - CHAPTER_TITLE ) ); + // Draw table borders + drawLine(contentStream, margin, tableTopY, margin + tableWidth, tableTopY); // Top border + drawLine(contentStream, margin, tableBottomY, margin + tableWidth, tableBottomY); // Bottom border + drawLine(contentStream, margin, tableTopY, margin, tableBottomY); // Left border + drawLine(contentStream, margin + colWidth, tableTopY, margin + colWidth, tableBottomY); // Right border - // Extends - int index = drlData.getName().lastIndexOf( "extends" ); - if ( index > 0 ) { - document.add( new Paragraph( "Extends:", - BODY_TEXT ) ); + return contentY; + } - Paragraph ext = new Paragraph( drlData.getName().substring( "extends".length() + index ), - BODY_TEXT ); - ext.setIndentationLeft(INDENTATION_LEFT); - document.add( ext ); - } + private static void drawLine(PDPageContentStream contentStream, float xStart, float yStart, float xEnd, float yEnd) throws IOException { + contentStream.moveTo(xStart, yStart); + contentStream.lineTo(xEnd, yEnd); + contentStream.stroke(); + } - // if the data came from guvnor, this will be empty - if(drlData.getDescription() != null && drlData.getDescription().trim().equals("")) { - Iterator iter = drlData.getMetadata().iterator(); - while(iter.hasNext()) { - String nextDesc = iter.next(); - if(nextDesc.startsWith("Description")) { - String[] parts = splitFirst(nextDesc, ":"); - // no description - if(parts.length == 1) { - // guvnor did not have it - document.add( newDescription( drlData.getDescription() ) ); - } else { - document.add(newDescription(parts[1])); - } - } - } + private static float drawRow(PDPageContentStream contentStream, PDPage page, String text, float yPosition, float tableWidth, float rowHeight, float colWidth, boolean header) throws IOException { + float margin = 50; + float textx = margin + 5; + String[] lines = text.split("\n"); + float currentY = yPosition; + + // Draw background for header + if (header) { + PDColor headerBgColor = new PDColor(new float[]{0.8f, 0.8f, 1.0f}, PDDeviceRGB.INSTANCE); + contentStream.setNonStrokingColor(headerBgColor); + contentStream.addRect(margin, currentY - rowHeight * lines.length, tableWidth, rowHeight * lines.length); + contentStream.fill(); + contentStream.setNonStrokingColor(new PDColor(new float[]{0, 0, 0}, PDDeviceRGB.INSTANCE)); + contentStream.setFont(PDType1Font.TIMES_ROMAN, 12); } else { - document.add( newDescription( drlData.getDescription() ) ); + contentStream.setFont(PDType1Font.TIMES_ROMAN, 10); } - - // DRL - document.add( newRuleTable( drlData ) ); - // Meta data - document.add( newTable( "Metadata", - drlData.getMetadata() ) ); - - // Other - createOtherItems( document, - drlData.getOtherInformation() ); + // Add row content + for (String line : lines) { + contentStream.beginText(); + contentStream.newLineAtOffset(textx, currentY - 15); + contentStream.showText(line); + contentStream.endText(); + currentY -= rowHeight; + } - document.newPage(); + return currentY; } - public static void createFirstPage(Document document, - String currentDate, - DrlPackageParser packageData) throws DocumentException { - Paragraph title = new Paragraph( "\n\n\n\n\n" + packageData.getName().toUpperCase(), - RULE_PACKAGE_TITLE ); - title.setAlignment( Element.ALIGN_CENTER ); - document.add( title ); - - Paragraph date = new Paragraph( "Documentation created: " + currentDate, - BODY_TEXT ); - date.setAlignment( Element.ALIGN_CENTER ); - document.add( date ); - - document.add( new Paragraph( "\n\n\n\n\n" + packageData.getDescription(), - BODY_TEXT ) ); - document.add( newTable( "Metadata ", - packageData.getMetadata() ) ); - document.add( newTable( "Globals ", - packageData.getGlobals() ) ); - createOtherItems( document, - packageData.getOtherInformation() ); + private static float drawText(PDPageContentStream contentStream, PDPage page, float yPosition, int fontSize, String text) throws IOException { + return drawText(contentStream, page, yPosition, PDType1Font.TIMES_ROMAN, fontSize, text); } -} -class EndPage extends PdfPageEventHelper { - private final String currentDate; + private static float drawText(PDPageContentStream contentStream, PDPage page, float yPosition, PDFont font, int fontSize, String text) throws IOException { + float margin = 50; + float textx = margin + 5; + float currentY = yPosition; + float height = fontSize + 5f; + + contentStream.setFont(font, fontSize); + for (String line : text.split("\n")) { + contentStream.beginText(); + contentStream.newLineAtOffset(textx, currentY - (fontSize + 5f)); + contentStream.showText(line); + contentStream.endText(); + currentY -= height; + } - public EndPage(String currentDate) { - this.currentDate = currentDate; + return currentY - height; } - public void onEndPage(PdfWriter writer, - Document document) { - - try { - Image image = Image.getInstance( DroolsDocsBuilder.class.getResource( "guvnor-webapp.png" ) ); // TODO this image never existed - image.setAlignment( Image.RIGHT ); - image.scaleAbsolute( 100, - 30 ); - Rectangle page = document.getPageSize(); - PdfPTable head = new PdfPTable( 2 ); - - PdfPCell cell1 = new PdfPCell( image ); - cell1.setHorizontalAlignment( Element.ALIGN_LEFT ); - cell1.setBorder( 0 ); - - head.addCell( cell1 ); - - PdfPCell cell2 = new PdfPCell( new Phrase( currentDate, - DroolsDocsComponentFactory.HEADER_FOOTER_TEXT ) ); - cell2.setHorizontalAlignment( Element.ALIGN_RIGHT ); - cell2.setBorder( 0 ); - - head.addCell( cell2 ); - - head.setTotalWidth( page.getWidth() - document.leftMargin() - document.rightMargin() ); - head.writeSelectedRows( 0, - -1, - document.leftMargin(), - page.getHeight() - document.topMargin() + head.getTotalHeight(), - writer.getDirectContent() ); + private static float writeCenteredTitleAndDate(PDPageContentStream contentStream, PDPage page, String title, String currentDate) throws IOException { + float yStart = (page.getMediaBox().getHeight() / 3) * 2; + float xStart = page.getMediaBox().getWidth() / 2; + float titleFontSize = 24; + float dateFontSize = 10; + + // Center title + float titleWidth = PDType1Font.TIMES_BOLD.getStringWidth(title) / 1000 * titleFontSize; + float titleX = xStart - titleWidth / 2; + float titleY = yStart; + + contentStream.setFont(PDType1Font.TIMES_BOLD, titleFontSize); + contentStream.beginText(); + contentStream.newLineAtOffset(titleX, titleY); + contentStream.showText(title); + contentStream.endText(); + + // Center date + String textContent = "Documentation created: " + currentDate; + float dateWidth = PDType1Font.TIMES_ROMAN.getStringWidth(textContent) / 1000 * dateFontSize; + float dateX = xStart - dateWidth / 2; + float dateY = yStart - titleFontSize + 5; + + contentStream.setFont(PDType1Font.TIMES_ROMAN, dateFontSize); + contentStream.beginText(); + contentStream.newLineAtOffset(dateX, dateY); + contentStream.showText(textContent); + contentStream.endText(); + + return dateY; + } - } catch ( Exception e ) { - throw new ExceptionConverter( e ); - } + private static void createHeader(PDPageContentStream contentStream, PDPage page, String header) throws IOException { + float margin = 40; + float headerFontSize = 10; + float xPosition = margin; + float yPosition = page.getMediaBox().getHeight() - margin; + + contentStream.setFont(PDType1Font.TIMES_BOLD, headerFontSize); + contentStream.beginText(); + contentStream.newLineAtOffset(xPosition, yPosition); + contentStream.showText(header); + contentStream.endText(); } } diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/jarloader/PackageHeaderLoader.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/jarloader/PackageHeaderLoader.java index 6d311c9f79d..ccbb16deae7 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/jarloader/PackageHeaderLoader.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/jarloader/PackageHeaderLoader.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.jarloader; import java.io.IOException; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/jarloader/VerifierMapBackedClassLoader.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/jarloader/VerifierMapBackedClassLoader.java index fc8f74acc83..0407ba33bf4 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/jarloader/VerifierMapBackedClassLoader.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/jarloader/VerifierMapBackedClassLoader.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.jarloader; -import org.drools.core.rule.MapBackedClassLoader; +import org.drools.base.rule.MapBackedClassLoader; import java.io.ByteArrayOutputStream; import java.io.IOException; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/DrlPackageParser.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/DrlPackageParser.java index 3a3f2c19793..09bff6d1041 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/DrlPackageParser.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/DrlPackageParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.misc; import java.text.ParseException; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/DrlRuleParser.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/DrlRuleParser.java index 36bace05704..a6827e37a5a 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/DrlRuleParser.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/DrlRuleParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.misc; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/FindMissingNumber.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/FindMissingNumber.java index eeb28e2fa66..4dc9c0ab134 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/FindMissingNumber.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/FindMissingNumber.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.misc; import java.math.BigDecimal; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/Multimap.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/Multimap.java index cafb09061dc..a8973dbe419 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/Multimap.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/misc/Multimap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.misc; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/PlainTextReportWriter.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/PlainTextReportWriter.java index b39b5f4aab5..91eb68f8179 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/PlainTextReportWriter.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/PlainTextReportWriter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report; import java.io.IOException; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerfierReportConfigurationOptions.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerfierReportConfigurationOptions.java index 2b660a9b7c9..17afa34dfd2 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerfierReportConfigurationOptions.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerfierReportConfigurationOptions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report; public enum VerfierReportConfigurationOptions { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportConfiguration.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportConfiguration.java index 664d24eef31..339d7c249ce 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportConfiguration.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report; public interface VerifierReportConfiguration { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportWriter.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportWriter.java index 1d267f90e47..17fcc945f4f 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportWriter.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportWriter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report; import java.io.IOException; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportWriterFactory.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportWriterFactory.java index 03e6821a0fd..8d88ae484f3 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportWriterFactory.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/VerifierReportWriterFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report; import org.drools.verifier.report.html.HTMLReportWriter; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/XMLReportWriter.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/XMLReportWriter.java index dc7610799ac..1d006bd1904 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/XMLReportWriter.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/XMLReportWriter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report; import java.io.IOException; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/AlwaysTrue.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/AlwaysTrue.java index 8731cc3be21..5327effe81f 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/AlwaysTrue.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/AlwaysTrue.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.Arrays; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Cause.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Cause.java index 42b07ac6ec0..9b062e2c48e 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Cause.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Cause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Equivalence.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Equivalence.java index 9ba66471f3b..e837a9beb9e 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Equivalence.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Equivalence.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Gap.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Gap.java index 839a35b0769..2b75af22520 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Gap.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Gap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Incompatibility.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Incompatibility.java index 5d2fec52e59..e47310f3c73 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Incompatibility.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Incompatibility.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MessageType.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MessageType.java index 9be49045457..05c43a4d260 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MessageType.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MessageType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; public class MessageType { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MissingNumberPattern.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MissingNumberPattern.java index 3a70d7a02b4..44d423ffce1 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MissingNumberPattern.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MissingNumberPattern.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; import java.text.ParseException; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MissingRange.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MissingRange.java index 200902a7822..be54a863d6b 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MissingRange.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/MissingRange.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; import org.drools.drl.parser.impl.Operator; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Opposites.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Opposites.java index e13e72bb515..5ae19a6f79c 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Opposites.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Opposites.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; /** diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Overlap.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Overlap.java index 2c08f97962b..4277872f4a5 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Overlap.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Overlap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/PartialRedundancy.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/PartialRedundancy.java index 18fe3aac2e0..7c153be6f24 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/PartialRedundancy.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/PartialRedundancy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; /** diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Reason.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Reason.java index df0445d7078..330c3ffb5fc 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Reason.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Reason.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/ReasonType.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/ReasonType.java index 368f288d9d0..d7771da6377 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/ReasonType.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/ReasonType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; public class ReasonType { diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Redundancy.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Redundancy.java index 85a23bfd14d..d2a79a01ab7 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Redundancy.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Redundancy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Severity.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Severity.java index 421405015f4..895267a1870 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Severity.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Severity.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Subsumption.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Subsumption.java index 07b538753f1..b4b771fa96b 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Subsumption.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/Subsumption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierMessage.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierMessage.java index 6f73df92b41..40ea19e0d39 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierMessage.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierMessage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierMessageBase.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierMessageBase.java index 451b3a3ee48..0c58e721f24 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierMessageBase.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierMessageBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; import java.io.Serializable; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierRangeCheckMessage.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierRangeCheckMessage.java index af8f0178d6f..22224d6a931 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierRangeCheckMessage.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/components/VerifierRangeCheckMessage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ComponentsReportVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ComponentsReportVisitor.java index a6514d95f65..5675298603f 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ComponentsReportVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ComponentsReportVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.html; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/HTMLReportWriter.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/HTMLReportWriter.java index 90a2ca3551e..dd9047056b5 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/HTMLReportWriter.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/HTMLReportWriter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.html; import java.io.IOException; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/MissingRangesReportVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/MissingRangesReportVisitor.java index a8b5573c097..09e7fb8a26d 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/MissingRangesReportVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/MissingRangesReportVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.html; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ReportModeller.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ReportModeller.java index 71366c80003..7c951a6a6fd 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ReportModeller.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ReportModeller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.html; import java.io.ByteArrayInputStream; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ReportVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ReportVisitor.java index d29fb213b48..c3af9d71860 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ReportVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/ReportVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.html; import java.io.BufferedReader; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/UrlFactory.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/UrlFactory.java index 38abe2042b0..8d004778f2d 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/UrlFactory.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/UrlFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.html; import org.drools.verifier.components.VerifierRule; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/VerifierMessagesVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/VerifierMessagesVisitor.java index 0cf9891c41f..73107c64cb4 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/VerifierMessagesVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/report/html/VerifierMessagesVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.html; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/PatternSolver.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/PatternSolver.java index 79a9af2560e..9561c28d09e 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/PatternSolver.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/PatternSolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.solver; import org.drools.verifier.components.OperatorDescrType; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/RuleSolver.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/RuleSolver.java index 0959f5719b5..7f18f70d874 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/RuleSolver.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/RuleSolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.solver; import org.drools.verifier.components.OperatorDescrType; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/Solver.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/Solver.java index e8c9238799b..e2348f61fe7 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/Solver.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/Solver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.solver; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/Solvers.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/Solvers.java index 5fcab036b1f..ff56e14c2cb 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/Solvers.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/solver/Solvers.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.solver; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ConditionalElementDescrVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ConditionalElementDescrVisitor.java index ac779b59038..fd7ee31d7ae 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ConditionalElementDescrVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ConditionalElementDescrVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.visitor; import java.util.List; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ExprConstraintDescrVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ExprConstraintDescrVisitor.java index 9245a303b03..ba67c653c3e 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ExprConstraintDescrVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ExprConstraintDescrVisitor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.visitor; import java.util.List; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/FieldConstraintDescrVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/FieldConstraintDescrVisitor.java index b665c0b1af9..f1858fd98ff 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/FieldConstraintDescrVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/FieldConstraintDescrVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.visitor; import org.drools.drl.parser.impl.Operator; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ObjectTypeFactory.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ObjectTypeFactory.java index bd0e04cea18..9a1292559f0 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ObjectTypeFactory.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/ObjectTypeFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.visitor; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/PackageDescrVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/PackageDescrVisitor.java index 9552cd0ab5c..798f1a4aa79 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/PackageDescrVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/PackageDescrVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.visitor; import org.drools.drl.ast.descr.ImportDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/PatternDescrVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/PatternDescrVisitor.java index 22db146e8de..b94ae9d44a1 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/PatternDescrVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/PatternDescrVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.visitor; import org.drools.drl.ast.descr.AccumulateDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/RuleDescrVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/RuleDescrVisitor.java index 8a1a527f054..9a614cda74c 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/RuleDescrVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/RuleDescrVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.visitor; import org.drools.drl.ast.descr.AndDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/TypeDeclarationDescrVisitor.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/TypeDeclarationDescrVisitor.java index 90fb04d8c31..77ac2e11f7b 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/TypeDeclarationDescrVisitor.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/TypeDeclarationDescrVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.visitor; import org.drools.drl.ast.descr.AnnotationDescr; diff --git a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/UnknownDescriptionException.java b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/UnknownDescriptionException.java index 3ceb0252cb2..5ad19cdac4a 100644 --- a/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/UnknownDescriptionException.java +++ b/drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/visitor/UnknownDescriptionException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.visitor; import org.drools.drl.ast.descr.BaseDescr; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/ConditionalBranchDescrTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/ConditionalBranchDescrTest.java index 9efdb5c8453..fbc49dfb877 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/ConditionalBranchDescrTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/ConditionalBranchDescrTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import org.drools.io.ClassPathResource; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/PatternSolverDRLTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/PatternSolverDRLTest.java index 2998644ebe3..8bd6ccc3424 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/PatternSolverDRLTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/PatternSolverDRLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.io.ByteArrayInputStream; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckCleanTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckCleanTest.java index c3a76ae09ce..e01d32096b6 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckCleanTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckCleanTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import org.junit.jupiter.api.Test; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckDatesTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckDatesTest.java index 708bdc38acf..6367de42aa0 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckDatesTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckDatesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckDoublesTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckDoublesTest.java index 07bf43ecc04..08ec3b68420 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckDoublesTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckDoublesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckIntegersTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckIntegersTest.java index efd91280586..bb7501524e1 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckIntegersTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckIntegersTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckTest.java index 279b2c9499e..7076cdabdc6 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/RangeCheckTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import org.drools.io.ClassPathResource; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/SolversTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/SolversTest.java index 8b0b7e0a3be..faee342118b 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/SolversTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/SolversTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/TestBase.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/TestBase.java index 1e889a0a54a..9ca174bb22e 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/TestBase.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/TestBase.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier; import java.io.InputStream; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/TestBaseOld.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/TestBaseOld.java index 741ec6eaf9a..8b8ad297aa0 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/TestBaseOld.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/TestBaseOld.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.io.InputStream; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierComponentMockFactory.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierComponentMockFactory.java index aa5580d622f..c8bb4fc39fe 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierComponentMockFactory.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierComponentMockFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import org.drools.drl.ast.descr.PackageDescr; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierTest.java index 160424b7f20..8afcb4a71e1 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.io.IOException; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierTestStandalone.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierTestStandalone.java index 52ed5726261..81e094d8ab4 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierTestStandalone.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifierTestStandalone.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier; import java.io.FileOutputStream; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifyingScopeTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifyingScopeTest.java index 95fc24b41b2..2c2cf2ebddd 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifyingScopeTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/VerifyingScopeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier; import java.util.Collections; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysFalse/AlwaysFalseTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysFalse/AlwaysFalseTest.java index c0804b510ae..8d701ef645a 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysFalse/AlwaysFalseTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysFalse/AlwaysFalseTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.alwaysFalse; import org.drools.core.base.RuleNameMatchesAgendaFilter; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysTrue/AlwaysTruePatternTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysTrue/AlwaysTruePatternTest.java index 4993fe41fd6..00e907f6e62 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysTrue/AlwaysTruePatternTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysTrue/AlwaysTruePatternTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.alwaysTrue; import org.drools.core.base.RuleNameMatchesAgendaFilter; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysTrue/AlwaysTrueRuleTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysTrue/AlwaysTrueRuleTest.java index 81f8479d1e7..de54f312c44 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysTrue/AlwaysTrueRuleTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/alwaysTrue/AlwaysTrueRuleTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.alwaysTrue; import org.drools.core.base.RuleNameMatchesAgendaFilter; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/components/LiteralRestrictionTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/components/LiteralRestrictionTest.java index 8cb1764cbf5..3978380f10a 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/components/LiteralRestrictionTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/components/LiteralRestrictionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.components; import org.drools.verifier.VerifierComponentMockFactory; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/consequence/ConsequenceTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/consequence/ConsequenceTest.java index 4db302e43a9..0c6bf8bfde9 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/consequence/ConsequenceTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/consequence/ConsequenceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.consequence; import java.io.InputStream; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/consequence/NamedConsequencesTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/consequence/NamedConsequencesTest.java index e75ed752091..dd2b41524c6 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/consequence/NamedConsequencesTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/consequence/NamedConsequencesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.consequence; import org.drools.core.base.RuleNameMatchesAgendaFilter; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/data/VerifierDataMapsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/data/VerifierDataMapsTest.java index c677ce8ff2e..9997427aa59 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/data/VerifierDataMapsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/data/VerifierDataMapsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.data; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/doc/StandaloneDocBuilder.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/doc/StandaloneDocBuilder.java index b7d25baaf0c..80c9210057b 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/doc/StandaloneDocBuilder.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/doc/StandaloneDocBuilder.java @@ -1,28 +1,29 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.drools.verifier.doc; -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.OutputStream; -import java.text.ParseException; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.Test; -import org.drools.verifier.doc.DroolsDocsBuilder; +import java.io.*; +import java.nio.file.Files; +import java.text.ParseException; /** * Stand alone to test writing to a file. @@ -31,7 +32,12 @@ public class StandaloneDocBuilder { public static void main(String[] args) throws FileNotFoundException, ParseException { + StandaloneDocBuilder docBuilder = new StandaloneDocBuilder(); + docBuilder.buildDoc(); + } + @Test + public void buildDoc() throws FileNotFoundException, ParseException { String drl = ""; drl += "# important information\n"; drl += "# about this package\n"; @@ -42,7 +48,7 @@ public static void main(String[] args) throws FileNotFoundException, drl += "# Another line because one was not enough \n"; drl += "# \n"; drl += "# @author: trikkola \n"; - drl += "rule \"First\" \n"; + drl += "rule \"First\" extends \"OtherRule\" \n"; drl += " dialect \"mvel\" \n"; drl += " when \n "; drl += " Person() \n "; @@ -83,9 +89,15 @@ public static void main(String[] args) throws FileNotFoundException, DroolsDocsBuilder ddBuilder = DroolsDocsBuilder.getInstance( drl ); - File file = new File( "/Users/rikkola/Desktop/DroolsDoc.pdf" ); + File file = new File( "DroolsDoc.pdf" ); OutputStream out = new FileOutputStream( file ); ddBuilder.writePDF( out ); } + + @AfterAll + static void cleanup() throws IOException { + Files.delete(new File( "DroolsDoc.pdf" ).toPath()); + } + } diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/equivalence/EquivalentRulesTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/equivalence/EquivalentRulesTest.java index e326ce05602..d69e70d208e 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/equivalence/EquivalentRulesTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/equivalence/EquivalentRulesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.equivalence; import org.drools.verifier.Verifier; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incoherence/IncoherentPatternsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incoherence/IncoherentPatternsTest.java index d3269e513e4..3ddd503f3d1 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incoherence/IncoherentPatternsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incoherence/IncoherentPatternsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.incoherence; import org.drools.core.base.RuleNameMatchesAgendaFilter; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incoherence/IncoherentRestrictionsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incoherence/IncoherentRestrictionsTest.java index 8ecb0887b24..b4328872419 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incoherence/IncoherentRestrictionsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incoherence/IncoherentRestrictionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.incoherence; import java.io.StringReader; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityBase.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityBase.java index 3a64572ac75..d2004b4d30f 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityBase.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.incompatibility; import org.drools.verifier.TestBaseOld; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityPatternsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityPatternsTest.java index 8057a952f78..9691c1faa26 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityPatternsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityPatternsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.incompatibility; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityRestrictionsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityRestrictionsTest.java index 450343d5589..e257794c78a 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityRestrictionsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/incompatibility/IncompatibilityRestrictionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.incompatibility; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/jarloader/PackageHeaderLoaderTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/jarloader/PackageHeaderLoaderTest.java index d6a215c7aa9..8b274bff7a5 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/jarloader/PackageHeaderLoaderTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/jarloader/PackageHeaderLoaderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.jarloader; import java.io.IOException; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/jarloader/VerifierMapBackedClassLoaderTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/jarloader/VerifierMapBackedClassLoaderTest.java index bb04bbb3cd1..e9f14c91be7 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/jarloader/VerifierMapBackedClassLoaderTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/jarloader/VerifierMapBackedClassLoaderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.jarloader; import java.io.IOException; @@ -36,9 +39,7 @@ void testCheckResources() throws Exception { VerifierMapBackedClassLoader verifierMapBackedClassLoader = new VerifierMapBackedClassLoader(jarInputStreams); - assertThat(verifierMapBackedClassLoader.getStore().containsKey("org.test.Person")).isNotNull(); - assertThat(verifierMapBackedClassLoader.getStore().containsKey("org.test.Rambo")).isNotNull(); - assertThat(verifierMapBackedClassLoader.getStore().containsKey("org.test.Pet")).isNotNull(); + assertThat(verifierMapBackedClassLoader.getStore()).containsKeys("org.test.Person", "org.test.Rambo", "org.test.Pet"); } @Test diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/DrlPackageDataTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/DrlPackageDataTest.java index 097846bc079..58156bfe263 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/DrlPackageDataTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/DrlPackageDataTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.misc; import java.io.BufferedReader; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/DrlRuleDataTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/DrlRuleDataTest.java index db1106fd1f4..9a463e30c46 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/DrlRuleDataTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/DrlRuleDataTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.misc; import java.util.List; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/FindMissingNumberTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/FindMissingNumberTest.java index f483d71a5a8..1b81c063cbd 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/FindMissingNumberTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/misc/FindMissingNumberTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.misc; import java.math.BigDecimal; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/missingEquality/MissingEqualityTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/missingEquality/MissingEqualityTest.java index 4ad7b7f2e62..f04336b22e0 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/missingEquality/MissingEqualityTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/missingEquality/MissingEqualityTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.missingEquality; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositePatternsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositePatternsTest.java index 87aa1883d05..e6f9e040d69 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositePatternsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositePatternsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.opposites; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositeRestrictionsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositeRestrictionsTest.java index e343134071f..eec5d36c6ee 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositeRestrictionsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositeRestrictionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.opposites; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositesBase.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositesBase.java index cc29796d675..a16a5dc5e17 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositesBase.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/opposites/OppositesBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.opposites; import org.drools.verifier.TestBaseOld; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/optimisation/PatternOrderTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/optimisation/PatternOrderTest.java index 2f4fe3f7659..a839007574c 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/optimisation/PatternOrderTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/optimisation/PatternOrderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.optimisation; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/optimisation/RestrictionOrderTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/optimisation/RestrictionOrderTest.java index f439d243374..ea340f8ba41 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/optimisation/RestrictionOrderTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/optimisation/RestrictionOrderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.optimisation; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/overlaps/OverlappingRestrictionsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/overlaps/OverlappingRestrictionsTest.java index 40fcecee55d..ecba7cad6c5 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/overlaps/OverlappingRestrictionsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/overlaps/OverlappingRestrictionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.overlaps; import org.drools.verifier.TestBaseOld; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/NotesTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/NotesTest.java index b10ebea6b5e..774cc0ce1f5 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/NotesTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/NotesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.redundancy; import org.drools.core.base.RuleNameMatchesAgendaFilter; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/RedundancyTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/RedundancyTest.java index b16b33a95e6..2efc1fb87de 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/RedundancyTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/RedundancyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.redundancy; import org.drools.verifier.Verifier; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/WarningsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/WarningsTest.java index b85d728e61d..51bcc668983 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/WarningsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/redundancy/WarningsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.redundancy; import org.drools.verifier.TestBaseOld; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/report/VerifierReportBuilderTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/report/VerifierReportBuilderTest.java index 5c39df56c7d..53f59cf0d87 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/report/VerifierReportBuilderTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/report/VerifierReportBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report; import java.io.File; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/report/components/CauseTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/report/components/CauseTest.java index bc7755ced2a..594a94d0a82 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/report/components/CauseTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/report/components/CauseTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.report.components; import java.util.ArrayList; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/solver/PatternSolverTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/solver/PatternSolverTest.java index f04485b7907..4530a02438c 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/solver/PatternSolverTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/solver/PatternSolverTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.solver; import java.util.List; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantRestrictionsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantRestrictionsTest.java index e05076ac41f..580b43c5664 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantRestrictionsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantRestrictionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.subsumption; import org.drools.verifier.Verifier; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantSubPatternsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantSubPatternsTest.java index 397e0a2b7b7..670da93861f 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantSubPatternsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantSubPatternsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.subsumption; import org.drools.verifier.Verifier; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantSubRulesTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantSubRulesTest.java index a25c2e8b49a..f65ad538539 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantSubRulesTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/subsumption/SubsumptantSubRulesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.subsumption; import org.drools.verifier.Verifier; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/ExprConstraintDescrVisitorTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/ExprConstraintDescrVisitorTest.java index e6c0eab5277..e95fdb8fad9 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/ExprConstraintDescrVisitorTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/ExprConstraintDescrVisitorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.visitor; import java.util.Collection; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/NestedPatternsTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/NestedPatternsTest.java index ce404857ff5..87d11dcd91e 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/NestedPatternsTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/NestedPatternsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.visitor; import java.io.InputStreamReader; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/PackageDescrVisitorTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/PackageDescrVisitorTest.java index b465625dfc1..9c360240274 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/PackageDescrVisitorTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/PackageDescrVisitorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.verifier.visitor; import java.io.InputStream; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/PatternDescrVisitorTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/PatternDescrVisitorTest.java index 51948c8cab1..9987bacadc2 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/PatternDescrVisitorTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/PatternDescrVisitorTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.visitor; diff --git a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/VerifierComponentTest.java b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/VerifierComponentTest.java index eef8d59f4a4..4981446ea3d 100644 --- a/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/VerifierComponentTest.java +++ b/drools-verifier/drools-verifier-drl/src/test/java/org/drools/verifier/visitor/VerifierComponentTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.verifier.visitor; import java.io.InputStreamReader; diff --git a/drools-verifier/pom.xml b/drools-verifier/pom.xml index 724dfad9747..17cda824e53 100644 --- a/drools-verifier/pom.xml +++ b/drools-verifier/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-wiring/drools-wiring-api/pom.xml b/drools-wiring/drools-wiring-api/pom.xml index db5d1832e78..e15aaff05b5 100755 --- a/drools-wiring/drools-wiring-api/pom.xml +++ b/drools-wiring/drools-wiring-api/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-wiring - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT org.drools diff --git a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ComponentsFactory.java b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ComponentsFactory.java index 903930e7c63..3d412440d3e 100755 --- a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ComponentsFactory.java +++ b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ComponentsFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.wiring.api; import java.io.IOException; diff --git a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ComponentsSupplier.java b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ComponentsSupplier.java index 5170a0bd9cc..eb429b98730 100755 --- a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ComponentsSupplier.java +++ b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ComponentsSupplier.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.wiring.api; import java.io.IOException; diff --git a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ResourceProvider.java b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ResourceProvider.java index 5e2cdff9a86..4cdbe2b664f 100755 --- a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ResourceProvider.java +++ b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/ResourceProvider.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.wiring.api; import java.io.IOException; diff --git a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/classloader/ProjectClassLoader.java b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/classloader/ProjectClassLoader.java index 8279373429f..08f722980a9 100755 --- a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/classloader/ProjectClassLoader.java +++ b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/classloader/ProjectClassLoader.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.wiring.api.classloader; import java.io.ByteArrayInputStream; diff --git a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/util/ByteArrayClassLoader.java b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/util/ByteArrayClassLoader.java index 3ca93289b09..55e82c2d722 100755 --- a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/util/ByteArrayClassLoader.java +++ b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/util/ByteArrayClassLoader.java @@ -1,17 +1,20 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.wiring.api.util; diff --git a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/util/ClassUtils.java b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/util/ClassUtils.java index cb9b5d7e8fe..cdf0b5b98e2 100755 --- a/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/util/ClassUtils.java +++ b/drools-wiring/drools-wiring-api/src/main/java/org/drools/wiring/api/util/ClassUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.wiring.api.util; import java.io.File; diff --git a/drools-wiring/drools-wiring-api/src/test/java/org/drools/wiring/api/classloader/ProjectClassLoaderTest.java b/drools-wiring/drools-wiring-api/src/test/java/org/drools/wiring/api/classloader/ProjectClassLoaderTest.java index b39040963a2..15f7cfbd800 100644 --- a/drools-wiring/drools-wiring-api/src/test/java/org/drools/wiring/api/classloader/ProjectClassLoaderTest.java +++ b/drools-wiring/drools-wiring-api/src/test/java/org/drools/wiring/api/classloader/ProjectClassLoaderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.wiring.api.classloader; import org.junit.Test; diff --git a/drools-wiring/drools-wiring-dynamic/pom.xml b/drools-wiring/drools-wiring-dynamic/pom.xml index 447e660a2d3..b207771d957 100755 --- a/drools-wiring/drools-wiring-dynamic/pom.xml +++ b/drools-wiring/drools-wiring-dynamic/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-wiring - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT org.drools diff --git a/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/DynamicComponentsSupplier.java b/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/DynamicComponentsSupplier.java index ef45c9bda06..8592ec1cb9d 100755 --- a/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/DynamicComponentsSupplier.java +++ b/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/DynamicComponentsSupplier.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.wiring.dynamic; import java.io.IOException; diff --git a/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/DynamicProjectClassLoader.java b/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/DynamicProjectClassLoader.java index ee53d79365b..ae44b56d8cf 100755 --- a/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/DynamicProjectClassLoader.java +++ b/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/DynamicProjectClassLoader.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.wiring.dynamic; import java.io.IOException; diff --git a/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/PackageClassLoader.java b/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/PackageClassLoader.java index a30900935c9..824c87d2a6f 100644 --- a/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/PackageClassLoader.java +++ b/drools-wiring/drools-wiring-dynamic/src/main/java/org/drools/wiring/dynamic/PackageClassLoader.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.wiring.dynamic; import java.io.ByteArrayInputStream; diff --git a/drools-wiring/drools-wiring-dynamic/src/test/java/org/drools/dynamic/ClassLoaderTest.java b/drools-wiring/drools-wiring-dynamic/src/test/java/org/drools/dynamic/ClassLoaderTest.java index 717652bfea9..a120c4f390e 100755 --- a/drools-wiring/drools-wiring-dynamic/src/test/java/org/drools/dynamic/ClassLoaderTest.java +++ b/drools-wiring/drools-wiring-dynamic/src/test/java/org/drools/dynamic/ClassLoaderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.dynamic; import java.util.ArrayList; diff --git a/drools-wiring/drools-wiring-static/pom.xml b/drools-wiring/drools-wiring-static/pom.xml index 8e1fc4c4b9c..1cc4ac9701e 100755 --- a/drools-wiring/drools-wiring-static/pom.xml +++ b/drools-wiring/drools-wiring-static/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.drools drools-wiring - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT org.drools diff --git a/drools-wiring/drools-wiring-static/src/main/java/org/drools/wiring/statics/StaticComponentsSupplier.java b/drools-wiring/drools-wiring-static/src/main/java/org/drools/wiring/statics/StaticComponentsSupplier.java index 1f5fb4f3235..282edc66b9e 100755 --- a/drools-wiring/drools-wiring-static/src/main/java/org/drools/wiring/statics/StaticComponentsSupplier.java +++ b/drools-wiring/drools-wiring-static/src/main/java/org/drools/wiring/statics/StaticComponentsSupplier.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.wiring.statics; diff --git a/drools-wiring/drools-wiring-static/src/main/java/org/drools/wiring/statics/StaticProjectClassLoader.java b/drools-wiring/drools-wiring-static/src/main/java/org/drools/wiring/statics/StaticProjectClassLoader.java index e1791610421..f615bcc5976 100755 --- a/drools-wiring/drools-wiring-static/src/main/java/org/drools/wiring/statics/StaticProjectClassLoader.java +++ b/drools-wiring/drools-wiring-static/src/main/java/org/drools/wiring/statics/StaticProjectClassLoader.java @@ -1,17 +1,20 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.wiring.statics; diff --git a/drools-wiring/drools-wiring-static/src/test/java/org/drools/wiring/statics/DummyByteArrayClassLoaderTest.java b/drools-wiring/drools-wiring-static/src/test/java/org/drools/wiring/statics/DummyByteArrayClassLoaderTest.java index 83931f8633b..0c7eafc483a 100644 --- a/drools-wiring/drools-wiring-static/src/test/java/org/drools/wiring/statics/DummyByteArrayClassLoaderTest.java +++ b/drools-wiring/drools-wiring-static/src/test/java/org/drools/wiring/statics/DummyByteArrayClassLoaderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.wiring.statics; diff --git a/drools-wiring/pom.xml b/drools-wiring/pom.xml index 7841c5f779f..1b0be1851f6 100644 --- a/drools-wiring/pom.xml +++ b/drools-wiring/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-xml-support/pom.xml b/drools-xml-support/pom.xml index d131f32e0ed..dbc8ffd59a9 100644 --- a/drools-xml-support/pom.xml +++ b/drools-xml-support/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/XMLSupportImpl.java b/drools-xml-support/src/main/java/org/drools/xml/support/XMLSupportImpl.java index c1751fb7637..4b6dba734bb 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/XMLSupportImpl.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/XMLSupportImpl.java @@ -1,23 +1,26 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver; -import org.drools.core.base.XMLSupport; +import org.drools.base.base.XMLSupport; import org.drools.commands.runtime.BatchExecutionCommandImpl; import org.drools.xml.support.converters.KieModuleMarshaller; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/XStreamHelper.java b/drools-xml-support/src/main/java/org/drools/xml/support/XStreamHelper.java index 287ec5a9e64..3a32f066e46 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/XStreamHelper.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/XStreamHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.xml.support; import com.thoughtworks.xstream.XStream; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/XStreamJSon.java b/drools-xml-support/src/main/java/org/drools/xml/support/XStreamJSon.java index a36233ef1f7..2a7c7049aec 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/XStreamJSon.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/XStreamJSon.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.xml.support; import java.util.ArrayList; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/XStreamXML.java b/drools-xml-support/src/main/java/org/drools/xml/support/XStreamXML.java index e4521735c70..e3a96af5c88 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/XStreamXML.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/XStreamXML.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.xml.support; import java.util.ArrayList; @@ -36,9 +38,10 @@ import com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriterHelper; import com.thoughtworks.xstream.io.HierarchicalStreamReader; import com.thoughtworks.xstream.io.HierarchicalStreamWriter; +import org.drools.base.base.DroolsQuery; import org.drools.core.QueryResultsImpl; -import org.drools.core.base.ClassObjectType; -import org.drools.core.base.DroolsQuery; +import org.drools.base.base.ClassObjectType; +import org.drools.core.base.DroolsQueryImpl; import org.drools.commands.runtime.AdvanceSessionTimeCommand; import org.drools.commands.runtime.BatchExecutionCommandImpl; import org.drools.commands.runtime.GetGlobalCommand; @@ -66,10 +69,10 @@ import org.drools.commands.runtime.rule.UpdateCommand; import org.drools.core.common.DefaultFactHandle; import org.drools.core.common.DisconnectedFactHandle; -import org.drools.core.rule.Declaration; +import org.drools.base.rule.Declaration; import org.drools.commands.runtime.ExecutionResultImpl; import org.drools.commands.runtime.FlatQueryResults; -import org.drools.core.base.ObjectType; +import org.drools.base.base.ObjectType; import org.kie.api.command.Command; import org.kie.api.command.Setter; import org.kie.api.runtime.ExecutionResults; @@ -1117,7 +1120,7 @@ public void marshal(Object object, for( String identifier : results.getIdentifiers() ) { for( QueryResultsRow row : results) { Object rowObj = row.get(identifier); - if(rowObj instanceof DroolsQuery) { + if(rowObj instanceof DroolsQueryImpl) { continue; } actualIds.add( identifier ); diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/containers/CommandsObjectContainer.java b/drools-xml-support/src/main/java/org/drools/xml/support/containers/CommandsObjectContainer.java index ed8284f389a..60f36264dea 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/containers/CommandsObjectContainer.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/containers/CommandsObjectContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.xml.support.containers; public class CommandsObjectContainer { diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/containers/IdentifiersContainer.java b/drools-xml-support/src/main/java/org/drools/xml/support/containers/IdentifiersContainer.java index bba7d3274b4..e6f38586202 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/containers/IdentifiersContainer.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/containers/IdentifiersContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.xml.support.containers; public class IdentifiersContainer { diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/containers/ObjectsObjectContainer.java b/drools-xml-support/src/main/java/org/drools/xml/support/containers/ObjectsObjectContainer.java index f06c5809294..a01e27a521d 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/containers/ObjectsObjectContainer.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/containers/ObjectsObjectContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.xml.support.containers; public class ObjectsObjectContainer { diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/containers/ParameterContainer.java b/drools-xml-support/src/main/java/org/drools/xml/support/containers/ParameterContainer.java index 852cb0cfdaf..fe5041d7d1a 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/containers/ParameterContainer.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/containers/ParameterContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.xml.support.containers; public class ParameterContainer { diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/containers/RowItemContainer.java b/drools-xml-support/src/main/java/org/drools/xml/support/containers/RowItemContainer.java index b7bffa72cdc..e060bc77dfe 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/containers/RowItemContainer.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/containers/RowItemContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.xml.support.containers; import org.kie.api.runtime.rule.FactHandle; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/containers/WorkItemResultsContainer.java b/drools-xml-support/src/main/java/org/drools/xml/support/containers/WorkItemResultsContainer.java index 46a40453520..050567a0df3 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/containers/WorkItemResultsContainer.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/containers/WorkItemResultsContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.drools.xml.support.containers; public class WorkItemResultsContainer { diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/AbstractXStreamConverter.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/AbstractXStreamConverter.java index 0f664246d5e..a9f682110a1 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/AbstractXStreamConverter.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/AbstractXStreamConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.drools.xml.support.converters; import java.util.ArrayList; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/ChannelConverter.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/ChannelConverter.java index d134f8e5ae3..15997b02f15 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/ChannelConverter.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/ChannelConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support.converters; import com.thoughtworks.xstream.converters.MarshallingContext; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KBaseConverter.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KBaseConverter.java index aa20a710653..6b157916c32 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KBaseConverter.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KBaseConverter.java @@ -1,24 +1,28 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support.converters; import com.thoughtworks.xstream.converters.MarshallingContext; import com.thoughtworks.xstream.converters.UnmarshallingContext; import com.thoughtworks.xstream.io.HierarchicalStreamReader; import com.thoughtworks.xstream.io.HierarchicalStreamWriter; +import org.drools.compiler.kproject.KieModuleException; import org.drools.compiler.kproject.models.KieBaseModelImpl; import org.drools.compiler.kproject.models.KieSessionModelImpl; import org.drools.compiler.kproject.models.RuleTemplateModelImpl; @@ -115,7 +119,12 @@ public Object unmarshal(HierarchicalStreamReader reader, final KieBaseModelImpl kBase = new KieBaseModelImpl(); String kbaseName = reader.getAttribute( "name" ); - kBase.setNameForUnmarshalling( kbaseName != null ? kbaseName : StringUtils.uuid() ); + if (kbaseName == null) { + kbaseName = StringUtils.uuid(); + } else if (kbaseName.isEmpty()) { + throw new KieModuleException("kbase name is empty in kmodule.xml"); + } + kBase.setNameForUnmarshalling( kbaseName ); kBase.setDefault( "true".equals(reader.getAttribute( "default" )) ); diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KSessionConverter.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KSessionConverter.java index 8470efff85f..f1ea7100c19 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KSessionConverter.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KSessionConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support.converters; import java.util.List; @@ -21,6 +24,7 @@ import com.thoughtworks.xstream.converters.UnmarshallingContext; import com.thoughtworks.xstream.io.HierarchicalStreamReader; import com.thoughtworks.xstream.io.HierarchicalStreamWriter; +import org.drools.compiler.kproject.KieModuleException; import org.drools.compiler.kproject.models.ChannelModelImpl; import org.drools.compiler.kproject.models.FileLoggerModelImpl; import org.drools.compiler.kproject.models.KieSessionModelImpl; @@ -90,7 +94,11 @@ public void marshal(Object value, HierarchicalStreamWriter writer, MarshallingCo public Object unmarshal(HierarchicalStreamReader reader, final UnmarshallingContext context) { final KieSessionModelImpl kSession = new KieSessionModelImpl(); - kSession.setNameForUnmarshalling( reader.getAttribute("name") ); + String kSessionName = reader.getAttribute("name"); + if (kSessionName.isEmpty()) { + throw new KieModuleException("ksession name is empty in kmodule.xml"); + } + kSession.setNameForUnmarshalling( kSessionName ); kSession.setDefault( "true".equals(reader.getAttribute( "default" )) ); kSession.setDirectFiring( "true".equals(reader.getAttribute( "directFiring" )) ); kSession.setThreadSafe( "true".equals(reader.getAttribute( "threadSafe" )) ); diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleConverter.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleConverter.java index 42ef6fe0f67..d6799eae0b6 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleConverter.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support.converters; import com.thoughtworks.xstream.converters.MarshallingContext; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleMarshaller.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleMarshaller.java index 89c88336fc5..ed507e775ed 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleMarshaller.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleMarshaller.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.drools.xml.support.converters; import java.io.ByteArrayInputStream; @@ -31,7 +35,7 @@ import org.drools.compiler.kproject.models.QualifierModelImpl; import org.drools.compiler.kproject.models.RuleTemplateModelImpl; import org.drools.compiler.kproject.models.WorkItemHandlerModelImpl; -import org.drools.core.base.XMLSupport; +import org.drools.base.base.XMLSupport; import org.kie.api.builder.model.KieModuleModel; import static org.drools.util.IoUtils.readBytesFromInputStream; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleValidator.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleValidator.java index 0925aa7f2e0..875d344d03c 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleValidator.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/KieModuleValidator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support.converters; import java.io.ByteArrayInputStream; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/ListenerConverter.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/ListenerConverter.java index 23936314b70..ac26bbb3c0d 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/ListenerConverter.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/ListenerConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support.converters; import com.thoughtworks.xstream.converters.MarshallingContext; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/QualifierConverter.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/QualifierConverter.java index e6e83e61458..6364096c9fc 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/QualifierConverter.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/QualifierConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support.converters; import java.util.Map; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/RuleTemplateConverter.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/RuleTemplateConverter.java index 4e6c7c69446..1143dc473ce 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/RuleTemplateConverter.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/RuleTemplateConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support.converters; import com.thoughtworks.xstream.converters.MarshallingContext; diff --git a/drools-xml-support/src/main/java/org/drools/xml/support/converters/WorkItemHandelerConverter.java b/drools-xml-support/src/main/java/org/drools/xml/support/converters/WorkItemHandelerConverter.java index 513050ca186..9f4fa500f59 100644 --- a/drools-xml-support/src/main/java/org/drools/xml/support/converters/WorkItemHandelerConverter.java +++ b/drools-xml-support/src/main/java/org/drools/xml/support/converters/WorkItemHandelerConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.drools.xml.support.converters; import com.thoughtworks.xstream.converters.MarshallingContext; diff --git a/drools-xml-support/src/main/resources/META-INF/services/org.drools.core.base.XMLSupport b/drools-xml-support/src/main/resources/META-INF/services/org.drools.base.base.XMLSupport similarity index 100% rename from drools-xml-support/src/main/resources/META-INF/services/org.drools.core.base.XMLSupport rename to drools-xml-support/src/main/resources/META-INF/services/org.drools.base.base.XMLSupport diff --git a/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java b/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java index 0599915ec99..8f867a445df 100644 --- a/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java +++ b/drools-xml-support/src/test/java/org/drools/xml/support/CommandSerializationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.drools.xml.support; import java.io.ByteArrayInputStream; diff --git a/drools-xml-support/src/test/java/org/drools/xml/support/XStreamXMLTest.java b/drools-xml-support/src/test/java/org/drools/xml/support/XStreamXMLTest.java index d0da6c391fc..f1be85ba3c5 100644 --- a/drools-xml-support/src/test/java/org/drools/xml/support/XStreamXMLTest.java +++ b/drools-xml-support/src/test/java/org/drools/xml/support/XStreamXMLTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.xml.support; diff --git a/efesto/documentation/sdt/CompositeKnowledgeBuilderImpl_build.sdt b/efesto/documentation/sdt/CompositeKnowledgeBuilderImpl_build.sdt index dc65a2ad8c0..73ba9ddd07f 100644 --- a/efesto/documentation/sdt/CompositeKnowledgeBuilderImpl_build.sdt +++ b/efesto/documentation/sdt/CompositeKnowledgeBuilderImpl_build.sdt @@ -1 +1 @@ -({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"build","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":3714} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"build","_attributes":["public"],"_argNames":["buildRules"],"_argTypes":["boolean"],"_returnType":"void","offset":3732} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerBuildResources","_attributes":["public"],"_argNames":["resources"],"_argTypes":["java.util.List\u003corg.kie.api.io.Resource\u003e"],"_returnType":"void","offset":3844} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResources","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":3892} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4688} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4771} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4854} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildPackageDescr","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","offset":3963} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6463} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6557} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6652} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6747} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6843} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6939} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":7036} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":7131} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":7231} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":7326} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildAssemblerResourcesBeforeRules","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":3992} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["serviceClass"],"_argTypes":["java.lang.Class\u003cT\u003e"],"_returnType":"T","offset":7694} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"compareTo","_attributes":["public"],"_argNames":["other"],"_argTypes":["org.kie.api.internal.utils.KieService"],"_returnType":"int","offset":1398} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":842} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":869} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":976} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":1114} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":1140} ))) ({"_classDescription":{"_className":"org.kie.api.internal.assembler.KieAssemblers","_attributes":["public","abstract","interface"]},"_methodName":"addResourceBeforeRules","_attributes":["public","abstract"],"_argNames":["knowledgeBuilder","resource","type","configuration"],"_argTypes":["java.lang.Object","org.kie.api.io.Resource","org.kie.api.io.ResourceType","org.kie.api.io.ResourceConfiguration"],"_returnType":"void","offset":8082} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"doFirstBuildStep","_attributes":["protected"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":4077} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildPackagesWithoutRules","_attributes":["public"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":49277} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","typeBuilder","globalVariableContext","droolsAssemblerContext","buildResultAccumulator","kBase","configuration"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.TypeDeclarationBuilder","org.drools.compiler.builder.impl.GlobalVariableContext","org.drools.compiler.builder.DroolsAssemblerContext","org.drools.compiler.builder.impl.BuildResultAccumulator","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl"],"_returnType":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","offset":49714} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":50104} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"initAnnotationNormalizers","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"java.util.Map\u003cjava.lang.String,java.util.function.Supplier\u003corg.drools.compiler.builder.impl.processors.AnnotationNormalizer\u003e\u003e","offset":3157} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3272} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.TypeDeclarationAnnotationNormalizer","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["annotationNormalizer","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.processors.AnnotationNormalizer","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.TypeDeclarationAnnotationNormalizer","offset":3327} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3257} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.TypeDeclarationCompositeCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","typeBuilder"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.impl.TypeDeclarationBuilder"],"_returnType":"org.drools.compiler.builder.impl.processors.TypeDeclarationCompositeCompilationPhase","offset":3461} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ImportCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.ImportCompilationPhase","offset":3561} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3546} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.EntryPointDeclarationCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.EntryPointDeclarationCompilationPhase","offset":3622} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3607} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AccumulateFunctionCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AccumulateFunctionCompilationPhase","offset":3757} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3742} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3830} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.WindowDeclarationCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBuilder"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.builder.DroolsAssemblerContext"],"_returnType":"org.drools.compiler.builder.impl.processors.WindowDeclarationCompilationPhase","offset":3845} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":1070} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3815} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3951} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.FunctionCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","configuration"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.builder.impl.processors.FunctionCompilationPhase","offset":3966} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":774} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3936} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":4054} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.GlobalCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBase","globalVariableContext","filterAcceptsRemoval"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.GlobalVariableContext","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"org.drools.compiler.builder.impl.processors.GlobalCompilationPhase","offset":4069} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":1240} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":4039} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":4245} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.RuleAnnotationNormalizer","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["annotationNormalizer","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.processors.AnnotationNormalizer","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.RuleAnnotationNormalizer","offset":4300} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":4230} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompilationPhase","_attributes":["public","abstract","interface"]},"_methodName":"process","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":4484} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultAccumulator","_attributes":["public","abstract","interface"]},"_methodName":"addBuilderResult","_attributes":["public","abstract"],"_argNames":["result"],"_argTypes":["org.kie.internal.builder.KnowledgeBuilderResult"],"_returnType":"void","offset":4534} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildRules","_attributes":["protected"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":49322} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":51163} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":39447} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"compileKnowledgePackages","_attributes":["protected"],"_argNames":["packageDescr","pkgRegistry"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.compiler.PackageRegistry"],"_returnType":"void","offset":51224} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":25976} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":26076} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":26228} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.RuleValidator","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","configuration"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.builder.impl.processors.RuleValidator","offset":26327} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.FunctionCompiler","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packageDescr","pkgRegistry","assetFilter","rootClassLoader"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter","java.lang.ClassLoader"],"_returnType":"org.drools.compiler.builder.impl.processors.FunctionCompiler","offset":26435} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.RuleCompiler","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBase","parallelRulesBuildThreshold","assetFilter","packageAttributes","resource","kBuilder"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.kiesession.rulebase.InternalKnowledgeBase","int","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","org.kie.api.io.Resource","org.drools.compiler.builder.DroolsAssemblerContext"],"_returnType":"org.drools.compiler.builder.impl.processors.RuleCompiler","offset":26530} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompilationPhase","_attributes":["public","abstract","interface"]},"_methodName":"process","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":26707} ) ({"_enclosedMethodName":"compileKnowledgePackages","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.compiler.PackageRegistry"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["p"],"_argTypes":["org.drools.compiler.builder.impl.processors.CompilationPhase"],"_returnType":"java.util.function.Consumer\u003corg.drools.compiler.builder.impl.processors.CompilationPhase\u003e","offset":26758} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultAccumulatorImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["results"],"_argTypes":["java.util.Collection\u003c? extends org.kie.internal.builder.KnowledgeBuilderResult\u003e"],"_returnType":"void","offset":26776} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"wireAllRules","_attributes":["protected"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":51330} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ConsequenceCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packageRegistryCompiler"],"_argTypes":["org.drools.compiler.builder.impl.PackageRegistryCompiler"],"_returnType":"org.drools.compiler.builder.impl.processors.ConsequenceCompilationPhase","offset":26899} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ConsequenceCompilationPhase","_attributes":["public"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":26977} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultAccumulatorImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["results"],"_argTypes":["java.util.Collection\u003c? extends org.kie.internal.builder.KnowledgeBuilderResult\u003e"],"_returnType":"void","offset":27004} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"processKieBaseTypes","_attributes":["protected"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":51354} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"hasErrors","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"boolean","offset":27106} ) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"processAllTypesDeclaration","_attributes":["public","abstract"],"_argNames":["pkgs"],"_argTypes":["java.util.Collection\u003corg.drools.core.definitions.InternalKnowledgePackage\u003e"],"_returnType":"void","offset":27390} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":51536} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":39447} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"compileRete","_attributes":["protected"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":51597} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"hasErrors","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"boolean","offset":27543} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ReteCompiler","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBase","assetFilter"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.core.impl.RuleBase","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"org.drools.compiler.builder.impl.processors.ReteCompiler","offset":27620} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ReteCompiler","_attributes":["public"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":27710} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildPackagesWithoutRules","_attributes":["public"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":4143} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","typeBuilder","globalVariableContext","droolsAssemblerContext","buildResultAccumulator","kBase","configuration"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.TypeDeclarationBuilder","org.drools.compiler.builder.impl.GlobalVariableContext","org.drools.compiler.builder.DroolsAssemblerContext","org.drools.compiler.builder.impl.BuildResultAccumulator","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl"],"_returnType":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","offset":49714} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":50104} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"initAnnotationNormalizers","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"java.util.Map\u003cjava.lang.String,java.util.function.Supplier\u003corg.drools.compiler.builder.impl.processors.AnnotationNormalizer\u003e\u003e","offset":3157} ({"_classDescription":{"_className":"org.kie.internal.builder.conf.LanguageLevelOption","_attributes":["public","final"]},"_methodName":"useJavaAnnotations","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"boolean","offset":4892} ) ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":5004} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.PackageRegistryManager","_attributes":["public","abstract","interface"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public","abstract"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5191} ) ({"_enclosedMethodName":"initAnnotationNormalizers","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.drools.compiler.builder.impl.processors.AnnotationNormalizer\u003e","offset":5413} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","_attributes":["public","abstract"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["typeResolver","isStrict"],"_argTypes":["org.drools.util.TypeResolver","boolean"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","offset":5440} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer.Strict","_attributes":["static","packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["typeResolver"],"_argTypes":["org.drools.util.TypeResolver"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer.Strict","offset":907} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["packageLocal"],"_argNames":["typeResolver"],"_argTypes":["org.drools.util.TypeResolver"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","offset":1964} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer.NonStrict","_attributes":["static","packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["typeResolver"],"_argTypes":["org.drools.util.TypeResolver"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer.NonStrict","offset":974} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["packageLocal"],"_argNames":["typeResolver"],"_argTypes":["org.drools.util.TypeResolver"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","offset":2850} ))))) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3272} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.TypeDeclarationAnnotationNormalizer","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["annotationNormalizer","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.processors.AnnotationNormalizer","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.TypeDeclarationAnnotationNormalizer","offset":3327} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3257} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.TypeDeclarationCompositeCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","typeBuilder"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.impl.TypeDeclarationBuilder"],"_returnType":"org.drools.compiler.builder.impl.processors.TypeDeclarationCompositeCompilationPhase","offset":3461} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ImportCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.ImportCompilationPhase","offset":3561} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":377} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3546} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.EntryPointDeclarationCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.EntryPointDeclarationCompilationPhase","offset":3622} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":422} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3607} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AccumulateFunctionCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AccumulateFunctionCompilationPhase","offset":3757} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":599} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3742} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3830} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.WindowDeclarationCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBuilder"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.builder.DroolsAssemblerContext"],"_returnType":"org.drools.compiler.builder.impl.processors.WindowDeclarationCompilationPhase","offset":3845} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":1070} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3815} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3951} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.FunctionCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","configuration"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.builder.impl.processors.FunctionCompilationPhase","offset":3966} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":774} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3936} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":4054} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.GlobalCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBase","globalVariableContext","filterAcceptsRemoval"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.GlobalVariableContext","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"org.drools.compiler.builder.impl.processors.GlobalCompilationPhase","offset":4069} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":1240} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":4039} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":4245} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.RuleAnnotationNormalizer","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["annotationNormalizer","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.processors.AnnotationNormalizer","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.RuleAnnotationNormalizer","offset":4300} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":4230} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompilationPhase","_attributes":["public","abstract","interface"]},"_methodName":"process","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":4484} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultAccumulator","_attributes":["public","abstract","interface"]},"_methodName":"addBuilderResult","_attributes":["public","abstract"],"_argNames":["result"],"_argTypes":["org.kie.internal.builder.KnowledgeBuilderResult"],"_returnType":"void","offset":4534} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildProcesses","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":4198} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4473} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4560} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildAssemblerResourcesAfterRules","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":4224} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["serviceClass"],"_argTypes":["java.lang.Class\u003cT\u003e"],"_returnType":"T","offset":8591} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"compareTo","_attributes":["public"],"_argNames":["other"],"_argTypes":["org.kie.api.internal.utils.KieService"],"_returnType":"int","offset":1398} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":842} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":869} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":976} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":1114} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":1140} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"descrToResourceWithConfiguration","_attributes":["private","static"],"_argNames":["rd"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.kie.api.io.ResourceWithConfiguration","offset":8816} ({"_enclosedMethodName":"descrToResourceWithConfiguration","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["kb"],"_argTypes":["java.lang.Object"],"_returnType":"java.util.function.Consumer\u003cjava.lang.Object\u003e","offset":6137} ) ({"_enclosedMethodName":"descrToResourceWithConfiguration","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["kb"],"_argTypes":["java.lang.Object"],"_returnType":"java.util.function.Consumer\u003cjava.lang.Object\u003e","offset":6252} ) ({"_classDescription":{"_className":"org.kie.internal.io.ResourceWithConfigurationImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["resource","resourceConfiguration","beforeAdd","afterAdd"],"_argTypes":["org.kie.api.io.Resource","org.kie.api.io.ResourceConfiguration","java.util.function.Consumer\u003cjava.lang.Object\u003e","java.util.function.Consumer\u003cjava.lang.Object\u003e"],"_returnType":"org.kie.internal.io.ResourceWithConfigurationImpl","offset":5974} )) ({"_classDescription":{"_className":"org.kie.api.internal.assembler.KieAssemblers","_attributes":["public","abstract","interface"]},"_methodName":"addResourcesAfterRules","_attributes":["public","abstract"],"_argNames":["knowledgeBuilder","resources","type"],"_argTypes":["java.lang.Object","java.util.List\u003corg.kie.api.io.ResourceWithConfiguration\u003e","org.kie.api.io.ResourceType"],"_returnType":"void","offset":8938} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"doSecondBuildStep","_attributes":["protected"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":4278} ))) +({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"build","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":3714} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"build","_attributes":["public"],"_argNames":["buildRules"],"_argTypes":["boolean"],"_returnType":"void","offset":3732} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerBuildResources","_attributes":["public"],"_argNames":["resources"],"_argTypes":["java.util.List\u003corg.kie.api.io.Resource\u003e"],"_returnType":"void","offset":3844} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResources","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":3892} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4688} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4771} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4854} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildPackageDescr","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","offset":3963} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6463} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6557} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6652} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6747} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6843} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":6939} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":7036} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":7131} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":7231} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResource","_attributes":["private"],"_argNames":["packages","resourceType","mapper"],"_argTypes":["java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.ResourceType","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper"],"_returnType":"void","offset":7326} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceToPkgDescrMapper","_attributes":["private","abstract","static","interface"]},"_methodName":"map","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":9568} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"registerPackageDescr","_attributes":["private"],"_argNames":["resourceDescr","packages","resource","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr","java.util.Map\u003cjava.lang.String,org.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":9618} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"makeCompositePackageDescr","_attributes":["private"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.lang.descr.CompositePackageDescr","offset":10492} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addPackageDescr","_attributes":["public"],"_argNames":["resource","packageDescr"],"_argTypes":["org.kie.api.io.Resource","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":10672} ) ({"_classDescription":{"_className":"org.drools.compiler.lang.descr.CompositePackageDescr","_attributes":["public"]},"_methodName":"addFilter","_attributes":["public"],"_argNames":["f"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"void","offset":10753} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildAssemblerResourcesBeforeRules","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":3992} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["serviceClass"],"_argTypes":["java.lang.Class\u003cT\u003e"],"_returnType":"T","offset":7694} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"compareTo","_attributes":["public"],"_argNames":["other"],"_argTypes":["org.kie.api.internal.utils.KieService"],"_returnType":"int","offset":1398} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":842} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":869} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":976} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":1114} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":1140} ))) ({"_classDescription":{"_className":"org.kie.api.internal.assembler.KieAssemblers","_attributes":["public","abstract","interface"]},"_methodName":"addResourceBeforeRules","_attributes":["public","abstract"],"_argNames":["knowledgeBuilder","resource","type","configuration"],"_argTypes":["java.lang.Object","org.kie.api.io.Resource","org.kie.api.io.ResourceType","org.kie.api.io.ResourceConfiguration"],"_returnType":"void","offset":8082} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"doFirstBuildStep","_attributes":["protected"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":4077} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildPackagesWithoutRules","_attributes":["public"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":49277} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","typeBuilder","globalVariableContext","droolsAssemblerContext","buildResultAccumulator","kBase","configuration"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.TypeDeclarationBuilder","org.drools.compiler.builder.impl.GlobalVariableContext","org.drools.compiler.builder.DroolsAssemblerContext","org.drools.compiler.builder.impl.BuildResultAccumulator","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl"],"_returnType":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","offset":49714} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":50104} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"initAnnotationNormalizers","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"java.util.Map\u003cjava.lang.String,java.util.function.Supplier\u003corg.drools.compiler.builder.impl.processors.AnnotationNormalizer\u003e\u003e","offset":3157} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3272} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.TypeDeclarationAnnotationNormalizer","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["annotationNormalizer","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.processors.AnnotationNormalizer","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.TypeDeclarationAnnotationNormalizer","offset":3327} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3257} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.TypeDeclarationCompositeCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","typeBuilder"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.impl.TypeDeclarationBuilder"],"_returnType":"org.drools.compiler.builder.impl.processors.TypeDeclarationCompositeCompilationPhase","offset":3461} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ImportCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.ImportCompilationPhase","offset":3561} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3546} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.EntryPointDeclarationCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.EntryPointDeclarationCompilationPhase","offset":3622} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3607} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AccumulateFunctionCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AccumulateFunctionCompilationPhase","offset":3757} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3742} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3830} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.WindowDeclarationCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBuilder"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.builder.DroolsAssemblerContext"],"_returnType":"org.drools.compiler.builder.impl.processors.WindowDeclarationCompilationPhase","offset":3845} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":1070} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3815} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3951} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.FunctionCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","configuration"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.builder.impl.processors.FunctionCompilationPhase","offset":3966} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":774} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3936} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":4054} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.GlobalCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBase","globalVariableContext","filterAcceptsRemoval"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.GlobalVariableContext","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"org.drools.compiler.builder.impl.processors.GlobalCompilationPhase","offset":4069} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":1240} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":4039} ) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":4245} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.RuleAnnotationNormalizer","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["annotationNormalizer","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.processors.AnnotationNormalizer","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.RuleAnnotationNormalizer","offset":4300} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":4230} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompilationPhase","_attributes":["public","abstract","interface"]},"_methodName":"process","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":4484} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultAccumulator","_attributes":["public","abstract","interface"]},"_methodName":"addBuilderResult","_attributes":["public","abstract"],"_argNames":["result"],"_argTypes":["org.kie.internal.builder.KnowledgeBuilderResult"],"_returnType":"void","offset":4534} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildRules","_attributes":["protected"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":49322} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":51163} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":39447} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"compileKnowledgePackages","_attributes":["protected"],"_argNames":["packageDescr","pkgRegistry"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.compiler.PackageRegistry"],"_returnType":"void","offset":51224} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":25976} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":26076} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":26228} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.RuleValidator","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","configuration"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.builder.impl.processors.RuleValidator","offset":26327} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.FunctionCompiler","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packageDescr","pkgRegistry","assetFilter","rootClassLoader"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter","java.lang.ClassLoader"],"_returnType":"org.drools.compiler.builder.impl.processors.FunctionCompiler","offset":26435} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.RuleCompiler","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBase","parallelRulesBuildThreshold","assetFilter","packageAttributes","resource","kBuilder"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.kiesession.rulebase.InternalKnowledgeBase","int","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","org.kie.api.io.Resource","org.drools.compiler.builder.DroolsAssemblerContext"],"_returnType":"org.drools.compiler.builder.impl.processors.RuleCompiler","offset":26530} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompilationPhase","_attributes":["public","abstract","interface"]},"_methodName":"process","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":26707} ) ({"_enclosedMethodName":"compileKnowledgePackages","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.compiler.PackageRegistry"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["p"],"_argTypes":["org.drools.compiler.builder.impl.processors.CompilationPhase"],"_returnType":"java.util.function.Consumer\u003corg.drools.compiler.builder.impl.processors.CompilationPhase\u003e","offset":26758} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultAccumulatorImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["results"],"_argTypes":["java.util.Collection\u003c? extends org.kie.internal.builder.KnowledgeBuilderResult\u003e"],"_returnType":"void","offset":26776} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"wireAllRules","_attributes":["protected"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":51330} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ConsequenceCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packageRegistryCompiler"],"_argTypes":["org.drools.compiler.builder.impl.PackageRegistryCompiler"],"_returnType":"org.drools.compiler.builder.impl.processors.ConsequenceCompilationPhase","offset":26899} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ConsequenceCompilationPhase","_attributes":["public"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":26977} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultAccumulatorImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["results"],"_argTypes":["java.util.Collection\u003c? extends org.kie.internal.builder.KnowledgeBuilderResult\u003e"],"_returnType":"void","offset":27004} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"processKieBaseTypes","_attributes":["protected"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":51354} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"hasErrors","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"boolean","offset":27106} ) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"processAllTypesDeclaration","_attributes":["public","abstract"],"_argNames":["pkgs"],"_argTypes":["java.util.Collection\u003corg.drools.core.definitions.InternalKnowledgePackage\u003e"],"_returnType":"void","offset":27390} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":51536} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":39447} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"compileRete","_attributes":["protected"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":51597} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"hasErrors","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"boolean","offset":27543} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ReteCompiler","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBase","assetFilter"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.core.impl.InternalRuleBase","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"org.drools.compiler.builder.impl.processors.ReteCompiler","offset":27620} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ReteCompiler","_attributes":["public"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":27710} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildPackagesWithoutRules","_attributes":["public"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":4143} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","typeBuilder","globalVariableContext","droolsAssemblerContext","buildResultAccumulator","kBase","configuration"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.TypeDeclarationBuilder","org.drools.compiler.builder.impl.GlobalVariableContext","org.drools.compiler.builder.DroolsAssemblerContext","org.drools.compiler.builder.impl.BuildResultAccumulator","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl"],"_returnType":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","offset":49714} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":50104} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"initAnnotationNormalizers","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"java.util.Map\u003cjava.lang.String,java.util.function.Supplier\u003corg.drools.compiler.builder.impl.processors.AnnotationNormalizer\u003e\u003e","offset":3157} ({"_classDescription":{"_className":"org.kie.internal.builder.conf.LanguageLevelOption","_attributes":["public","final"]},"_methodName":"useJavaAnnotations","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"boolean","offset":4892} ) ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":5004} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.PackageRegistryManager","_attributes":["public","abstract","interface"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public","abstract"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5191} ) ({"_enclosedMethodName":"initAnnotationNormalizers","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.drools.compiler.builder.impl.processors.AnnotationNormalizer\u003e","offset":5413} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","_attributes":["public","abstract"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["typeResolver","isStrict"],"_argTypes":["org.drools.util.TypeResolver","boolean"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","offset":5440} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer.Strict","_attributes":["static","packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["typeResolver"],"_argTypes":["org.drools.util.TypeResolver"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer.Strict","offset":907} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["packageLocal"],"_argNames":["typeResolver"],"_argTypes":["org.drools.util.TypeResolver"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","offset":1964} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer.NonStrict","_attributes":["static","packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["typeResolver"],"_argTypes":["org.drools.util.TypeResolver"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer.NonStrict","offset":974} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["packageLocal"],"_argNames":["typeResolver"],"_argTypes":["org.drools.util.TypeResolver"],"_returnType":"org.drools.compiler.builder.impl.processors.AnnotationNormalizer","offset":2850} ))))) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3272} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.TypeDeclarationAnnotationNormalizer","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["annotationNormalizer","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.processors.AnnotationNormalizer","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.TypeDeclarationAnnotationNormalizer","offset":3327} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3257} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.TypeDeclarationCompositeCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","typeBuilder"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.impl.TypeDeclarationBuilder"],"_returnType":"org.drools.compiler.builder.impl.processors.TypeDeclarationCompositeCompilationPhase","offset":3461} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.ImportCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.ImportCompilationPhase","offset":3561} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":377} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3546} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.EntryPointDeclarationCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.EntryPointDeclarationCompilationPhase","offset":3622} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":422} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3607} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AccumulateFunctionCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AccumulateFunctionCompilationPhase","offset":3757} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":599} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3742} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3830} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.WindowDeclarationCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBuilder"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.compiler.builder.DroolsAssemblerContext"],"_returnType":"org.drools.compiler.builder.impl.processors.WindowDeclarationCompilationPhase","offset":3845} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":1070} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3815} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":3951} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.FunctionCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","configuration"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.builder.impl.processors.FunctionCompilationPhase","offset":3966} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":774} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":3936} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["reg","desc"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":4054} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.GlobalCompilationPhase","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr","kBase","globalVariableContext","filterAcceptsRemoval"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.GlobalVariableContext","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter"],"_returnType":"org.drools.compiler.builder.impl.processors.GlobalCompilationPhase","offset":4069} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["public"],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.AbstractPackageCompilationPhase","offset":1240} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":4039} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_enclosedMethodName":"process","_enclosedMethodArgTypes":[],"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.compiler.PackageRegistry","org.drools.compiler.lang.descr.CompositePackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory","offset":4245} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.RuleAnnotationNormalizer","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["annotationNormalizer","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.processors.AnnotationNormalizer","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.RuleAnnotationNormalizer","offset":4300} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompositePackageCompilationPhase","_attributes":["public"]},"_methodName":"iteratingPhase","_attributes":["private"],"_argNames":["phaseFactory"],"_argTypes":["org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":4230} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.IteratingPhase","_attributes":["packageLocal"]},"_methodName":"new","_attributes":["public"],"_argNames":["packages","pkgRegistryManager","phaseFactory"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e","org.drools.compiler.builder.PackageRegistryManager","org.drools.compiler.builder.impl.processors.SinglePackagePhaseFactory"],"_returnType":"org.drools.compiler.builder.impl.processors.IteratingPhase","offset":5623} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.CompilationPhase","_attributes":["public","abstract","interface"]},"_methodName":"process","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":4484} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultAccumulator","_attributes":["public","abstract","interface"]},"_methodName":"addBuilderResult","_attributes":["public","abstract"],"_argNames":["result"],"_argTypes":["org.kie.internal.builder.KnowledgeBuilderResult"],"_returnType":"void","offset":4534} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildProcesses","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":4198} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4473} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildResourceType","_attributes":["private"],"_argNames":["resourceBuilder","resourceType"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4560} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceBuilder","_attributes":["private","abstract","static","interface"]},"_methodName":"build","_attributes":["public","abstract"],"_argNames":["kBuilder","resourceDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"void","offset":5357} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"buildAssemblerResourcesAfterRules","_attributes":["private"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":4224} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["serviceClass"],"_argTypes":["java.lang.Class\u003cT\u003e"],"_returnType":"T","offset":8591} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"compareTo","_attributes":["public"],"_argNames":["other"],"_argTypes":["org.kie.api.internal.utils.KieService"],"_returnType":"int","offset":1398} ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":842} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":869} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":976} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":1114} ) ({"_classDescription":{"_className":"org.kie.api.internal.utils.KieService","_attributes":["public","abstract","interface"]},"_methodName":"servicePriority","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"int","offset":1140} ))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"descrToResourceWithConfiguration","_attributes":["private","static"],"_argNames":["rd"],"_argTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_returnType":"org.kie.api.io.ResourceWithConfiguration","offset":8816} ({"_enclosedMethodName":"descrToResourceWithConfiguration","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["kb"],"_argTypes":["java.lang.Object"],"_returnType":"java.util.function.Consumer\u003cjava.lang.Object\u003e","offset":6137} ) ({"_enclosedMethodName":"descrToResourceWithConfiguration","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.ResourceDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["kb"],"_argTypes":["java.lang.Object"],"_returnType":"java.util.function.Consumer\u003cjava.lang.Object\u003e","offset":6252} ) ({"_classDescription":{"_className":"org.kie.internal.io.ResourceWithConfigurationImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["resource","resourceConfiguration","beforeAdd","afterAdd"],"_argTypes":["org.kie.api.io.Resource","org.kie.api.io.ResourceConfiguration","java.util.function.Consumer\u003cjava.lang.Object\u003e","java.util.function.Consumer\u003cjava.lang.Object\u003e"],"_returnType":"org.kie.internal.io.ResourceWithConfigurationImpl","offset":5974} )) ({"_classDescription":{"_className":"org.kie.api.internal.assembler.KieAssemblers","_attributes":["public","abstract","interface"]},"_methodName":"addResourcesAfterRules","_attributes":["public","abstract"],"_argNames":["knowledgeBuilder","resources","type"],"_argTypes":["java.lang.Object","java.util.List\u003corg.kie.api.io.ResourceWithConfiguration\u003e","org.kie.api.io.ResourceType"],"_returnType":"void","offset":8938} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"doSecondBuildStep","_attributes":["protected"],"_argNames":["packages"],"_argTypes":["java.util.Collection\u003corg.drools.compiler.lang.descr.CompositePackageDescr\u003e"],"_returnType":"void","offset":4278} ))) diff --git a/efesto/documentation/sdt/PMMLAssemblerService_addResourceAfterRules_withoutConfigurations.sdt b/efesto/documentation/sdt/PMMLAssemblerService_addResourceAfterRules_withoutConfigurations.sdt index 3a7e76a8ad3..d2880b78bb4 100644 --- a/efesto/documentation/sdt/PMMLAssemblerService_addResourceAfterRules_withoutConfigurations.sdt +++ b/efesto/documentation/sdt/PMMLAssemblerService_addResourceAfterRules_withoutConfigurations.sdt @@ -1 +1 @@ -({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addResourceAfterRules","_attributes":["public"],"_argNames":["kbuilder","resource","type","configuration"],"_argTypes":["java.lang.Object","org.kie.api.io.Resource","org.kie.api.io.ResourceType","org.kie.api.io.ResourceConfiguration"],"_returnType":"void","offset":5470} ({"_classDescription":{"_className":"org.kie.internal.pmml.PMMLImplementationsUtil","_attributes":["public"]},"_methodName":"isjPMMLAvailableToClassLoader","_attributes":["public","static"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"boolean","offset":5821} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsFromResourceWithSources","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5989} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getCachedOrCreate","_attributes":["public"],"_argNames":["key","creator"],"_argTypes":["java.lang.String","java.util.function.Supplier\u003cT\u003e"],"_returnType":"T","offset":5375} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":5560} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getFileName","_attributes":["static","packageLocal"],"_argNames":["fullPath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":6054} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["s"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":9533} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["static","packageLocal"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"org.drools.util.PortablePath","offset":1086} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"normalizePath","_attributes":["private","static"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"java.lang.String","offset":1217} ) ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["path"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":1305} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl"],"_returnType":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","offset":6182} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompiler","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModelsWithSources","_attributes":["public","abstract"],"_argNames":["factoryClassName","packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5790} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getKiePMMLModelsWithSources","_attributes":["public"],"_argNames":["factoryClassName","packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3065} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["is","fileName"],"_argTypes":["java.io.InputStream","java.lang.String"],"_returnType":"org.dmg.pmml.PMML","offset":3606} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingModelName","_attributes":["static","packageLocal"],"_argNames":["model","fileName","i"],"_argTypes":["org.dmg.pmml.Model","java.lang.String","int"],"_returnType":"void","offset":2965} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3030} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["toPopulate","miningFields","dataFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.OutputField\u003e","java.util.List\u003corg.dmg.pmml.MiningField\u003e","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":12213} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingMiningTargetField","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3097} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":4536} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetDataField","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003corg.dmg.pmml.DataField\u003e","offset":4696} ) ({"_enclosedMethodName":"populateMissingMiningTargetField","_enclosedMethodArgTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.DataField\u003e","offset":4761} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetMiningField","_attributes":["static","packageLocal"],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"org.dmg.pmml.MiningField","offset":4867} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"correctTargetFields","_attributes":["static","packageLocal"],"_argNames":["targetMiningField","targets"],"_argTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_returnType":"void","offset":4992} ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.Target\u003e","offset":8798} ) ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.Target\u003e","offset":8874} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":3162} ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.OutputField\u003e","offset":5486} ) ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.OutputField\u003e","offset":5732} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":5798} ({"_enclosedMethodName":"getMiningTargetFields","_enclosedMethodArgTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["miningField"],"_argTypes":["org.dmg.pmml.MiningField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.MiningField\u003e","offset":16065} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":3276} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectSegmentId","_attributes":["static","packageLocal"],"_argNames":["segment","modelName","i"],"_argTypes":["org.dmg.pmml.mining.Segment","java.lang.String","int"],"_returnType":"void","offset":9454} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingSegmentModelName","_attributes":["static","packageLocal"],"_argNames":["model","segmentId"],"_argTypes":["org.dmg.pmml.Model","java.lang.String"],"_returnType":"void","offset":9579} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingTargetFieldInSegment","_attributes":["static","packageLocal"],"_argNames":["parentMiningSchema","childrenModel"],"_argTypes":["org.dmg.pmml.MiningSchema","org.dmg.pmml.Model"],"_returnType":"void","offset":9648} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":9735} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":9849} ))) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.lang.String\u003e","offset":3760} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":3821} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4152} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getModelsWithSources","_attributes":["private"],"_argNames":["packageName","pmml","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":4318} ({"_enclosedMethodName":"getModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":8335} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"fromGeneratedPackageNameAndFields","_attributes":["public","static"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO\u003cT\u003e","offset":8462} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":6378} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":5450} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":5416} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary","model"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary","org.dmg.pmml.Model"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":2989} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryAndTransformationDictionary","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":25924} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName","fields"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":2918} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":4100} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4168} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getTargetFieldName","_attributes":["public","static"],"_argNames":["fields","model"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003cjava.lang.String\u003e","offset":4364} ) ({"_enclosedMethodName":"new","_enclosedMethodArgTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["field"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.DataField\u003e","offset":4644} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSources","_attributes":["public","static"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":8649} ({"_enclosedMethodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSources","_enclosedMethodArgTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2986} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModelWithSources","_attributes":["public"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelWithSources","offset":3019} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getSourcesMap","_attributes":["public","abstract"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"java.util.Map\u003cjava.lang.String,java.lang.String\u003e","offset":1896} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModelWithSources","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["modelName","kmodulePackageName","miningFields","outputFields","targetFields","sourcesMap","isInterpreted"],"_argTypes":["java.lang.String","java.lang.String","java.util.List\u003corg.kie.pmml.api.models.MiningField\u003e","java.util.List\u003corg.kie.pmml.api.models.OutputField\u003e","java.util.List\u003corg.kie.pmml.api.models.TargetField\u003e","java.util.Map\u003cjava.lang.String,java.lang.String\u003e","boolean"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelWithSources","offset":2036} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModel","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModel","offset":2021} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","offset":2189} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSourcesCommon","_attributes":["static","packageLocal"],"_argNames":["fields","model","modelFunction"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model","java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3078} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":5208} ({"_enclosedMethodName":"byName","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"λ→","_attributes":[],"_argNames":["value"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.api.enums.PMML_MODEL\u003e","offset":2004} ) ({"_enclosedMethodName":"byName","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KieEnumException\u003e","offset":2071} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KieEnumException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KieEnumException","offset":2077} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLInternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLInternalException","offset":879} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getModelImplementationProviderStream","_attributes":["private","static"],"_argNames":["pmmlMODEL"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.stream.Stream\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5318} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProviderFinder","_attributes":["public","abstract","interface"]},"_methodName":"getImplementations","_attributes":["public","abstract"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5920} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getImplementations","_attributes":["public"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":1987} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getProviders","_attributes":["private"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.Iterator\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003e","offset":1861} ) ({"_enclosedMethodName":"getImplementations","_enclosedMethodArgTypes":["boolean"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["provider"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Consumer\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2070} ))) ({"_enclosedMethodName":"getModelImplementationProviderStream","_enclosedMethodArgTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":6028} )))))) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["expectedClass"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.lang.String\u003e","offset":4641} ) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["expectedClass"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.lang.Boolean\u003e","offset":4727} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getHasSourceMap","_attributes":["private"],"_argNames":["toReturn","expectedClass"],"_argTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_returnType":"org.kie.pmml.commons.model.HasSourcesMap","offset":4830} ({"_enclosedMethodName":"getHasSourceMap","_enclosedMethodArgTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["kiePMMLModel"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":9065} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":9347} )) ({"_enclosedMethodName":"getHasSourceMap","_enclosedMethodArgTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KiePMMLException\u003e","offset":9569} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":9575} )) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":9815} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":5467} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"getFactorySourceCode","_attributes":["public","static"],"_argNames":["factoryClassName","packageName","generatedClassesModelTypeMap"],"_argTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"java.util.Map\u003cjava.lang.String,java.lang.String\u003e","offset":5616} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getFromFileName","_attributes":["public","static"],"_argNames":["fileName"],"_argTypes":["java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":2778} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLInternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLInternalException","offset":2167} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":2384} )) ({"_enclosedMethodName":"getFactorySourceCode","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":3076} ) ({"_enclosedMethodName":"getFactorySourceCode","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KiePMMLException\u003e","offset":3302} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":3308} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"populateKiePmmlFields","_attributes":["static","packageLocal"],"_argNames":["toPopulate","generatedClassesModelTypeMap"],"_argTypes":["com.github.javaparser.ast.body.FieldDeclaration","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"void","offset":3621} ({"_enclosedMethodName":"populateKiePmmlFields","_enclosedMethodArgTypes":["com.github.javaparser.ast.body.FieldDeclaration","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["entry"],"_argTypes":["java.util.Map.Entry\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"java.util.function.Function\u003cjava.util.Map.Entry\u003cjava.lang.String,java.lang.Boolean\u003e,com.github.javaparser.ast.expr.Expression\u003e","offset":4828} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"getInstantiationExpression","_attributes":["public","static"],"_argNames":["kiePMMLModelClass","isInterpreted"],"_argTypes":["java.lang.String","boolean"],"_returnType":"com.github.javaparser.ast.expr.Expression","offset":4837} )))) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLFactoryModel","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["name","kmodulePackageName","sourcesMap"],"_argTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.String\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLFactoryModel","offset":5750} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModel","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModel","offset":1425} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","offset":2189} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":6043} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":6206} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"populateWithPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["toReturn","resource"],"_argTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","org.kie.api.io.Resource"],"_returnType":"void","offset":6238} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":6677} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":7364} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMapperSource","_attributes":["public","static"],"_argNames":["fullRuleName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":7805} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getKiePMMLModelCompilationUnit","_attributes":["public","static"],"_argNames":["className","packageName","javaTemplate","modelClassName"],"_argTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":1608} ) ({"_enclosedMethodName":"getPMMLRuleMapperSource","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":1975} )) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":7882} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":8163} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":7364} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMapperSource","_attributes":["public","static"],"_argNames":["fullRuleName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":7805} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":7882} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":8163} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":6770} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":8757} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMappersSource","_attributes":["public","static"],"_argNames":["packageName","generatedRuleMappers"],"_argTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_returnType":"java.lang.String","offset":9069} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getKiePMMLModelCompilationUnit","_attributes":["public","static"],"_argNames":["className","packageName","javaTemplate","modelClassName"],"_argTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":1695} ) ({"_enclosedMethodName":"getPMMLRuleMappersSource","_enclosedMethodArgTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":2075} ) ({"_enclosedMethodName":"getPMMLRuleMappersSource","_enclosedMethodArgTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["generatedRuleMapper"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,com.github.javaparser.ast.expr.ObjectCreationExpr\u003e","offset":2276} )) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":9258} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":6368} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":5965} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":7084} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromResource","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":6111} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadKiePMMLModelFactory","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelFactory","offset":3475} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":4375} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadKiePMMLModelFactory","_attributes":["private","static"],"_argNames":["classLoader","fullFactoryClassName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelFactory","offset":4621} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromFactory","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModelFactory"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.pmml.commons.model.KiePMMLModelFactory"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3614} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":5830} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e","offset":6318} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappersClass","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.Optional\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMappers\u003e","offset":7923} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":6488} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e","offset":6318} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":6488} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","pmmlRuleMappers"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":5904} ({"_classDescription":{"_className":"org.drools.modelcompiler.builder.KieBaseBuilder","_attributes":["public"]},"_methodName":"createKieBaseFromModel","_attributes":["public","static"],"_argNames":["models","options"],"_argTypes":["java.util.Collection\u003corg.drools.model.Model\u003e","org.kie.api.conf.KieBaseOption..."],"_returnType":"org.drools.kiesession.rulebase.InternalKnowledgeBase","offset":7098} ({"_classDescription":{"_className":"org.kie.api.KieServices","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.kie.api.KieServices","offset":2544} ) ({"_classDescription":{"_className":"org.kie.api.KieServices","_attributes":["public","abstract","interface"]},"_methodName":"newKieBaseConfiguration","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"org.kie.api.KieBaseConfiguration","offset":2550} ) ({"_classDescription":{"_className":"org.drools.modelcompiler.builder.KieBaseBuilder","_attributes":["public"]},"_methodName":"createKieBaseFromModel","_attributes":["public","static"],"_argNames":["models","kieBaseConf"],"_argTypes":["java.util.Collection\u003corg.drools.model.Model\u003e","org.kie.api.KieBaseConfiguration"],"_returnType":"org.drools.kiesession.rulebase.InternalKnowledgeBase","offset":2747} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["kBase"],"_argTypes":["org.drools.kiesession.rulebase.InternalKnowledgeBase"],"_returnType":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","offset":7058} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["kBase","configuration"],"_argTypes":["org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl"],"_returnType":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","offset":6998} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"addPackage","_attributes":["public","synchronized"],"_argNames":["newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":7245} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":29752} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":29992} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":30054} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":30456} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","_attributes":["public","final"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder","kBase","configuration","typeBuilder","filterCondition","pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.builder.impl.TypeDeclarationBuilder","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter","org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","offset":30171} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","_attributes":["public","final"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":30577} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultCollectorImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["results"],"_argTypes":["java.util.Collection\u003c? extends org.kie.internal.builder.KnowledgeBuilderResult\u003e"],"_returnType":"void","offset":30613} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"merge","_attributes":["public"],"_argNames":["newDatas","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":30812} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DuplicateFunction","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["func","config"],"_argTypes":["org.drools.core.rule.Function","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.compiler.DuplicateFunction","offset":31164} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"addBuilderResult","_attributes":["public"],"_argNames":["result"],"_argTypes":["org.kie.internal.builder.KnowledgeBuilderResult"],"_returnType":"void","offset":31147} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addFunction","_attributes":["public","abstract"],"_argNames":["function"],"_argTypes":["org.drools.core.rule.Function"],"_returnType":"void","offset":31323} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"mergeStore","_attributes":["public"],"_argNames":["newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":31390} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onBeforeExecute","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":31450} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"mergePackage","_attributes":["private"],"_argNames":["pkg","newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":32257} )))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":3959} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsCompiledFromResource","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":6230} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getCachedOrCreate","_attributes":["public"],"_argNames":["key","creator"],"_argTypes":["java.lang.String","java.util.function.Supplier\u003cT\u003e"],"_returnType":"T","offset":4412} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":4604} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getFileName","_attributes":["static","packageLocal"],"_argNames":["fullPath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4787} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["s"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":9533} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["static","packageLocal"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"org.drools.util.PortablePath","offset":1086} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"normalizePath","_attributes":["private","static"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"java.lang.String","offset":1217} ) ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["path"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":1305} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl"],"_returnType":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","offset":4875} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompiler","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModels","_attributes":["public","abstract"],"_argNames":["packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":4681} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getKiePMMLModels","_attributes":["public"],"_argNames":["packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2294} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["is","fileName"],"_argTypes":["java.io.InputStream","java.lang.String"],"_returnType":"org.dmg.pmml.PMML","offset":2624} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingModelName","_attributes":["static","packageLocal"],"_argNames":["model","fileName","i"],"_argTypes":["org.dmg.pmml.Model","java.lang.String","int"],"_returnType":"void","offset":2965} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3030} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["toPopulate","miningFields","dataFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.OutputField\u003e","java.util.List\u003corg.dmg.pmml.MiningField\u003e","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":12213} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingMiningTargetField","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3097} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":4536} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetDataField","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003corg.dmg.pmml.DataField\u003e","offset":4696} ) ({"_enclosedMethodName":"populateMissingMiningTargetField","_enclosedMethodArgTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.DataField\u003e","offset":4761} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetMiningField","_attributes":["static","packageLocal"],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"org.dmg.pmml.MiningField","offset":4867} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"correctTargetFields","_attributes":["static","packageLocal"],"_argNames":["targetMiningField","targets"],"_argTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_returnType":"void","offset":4992} ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.Target\u003e","offset":8798} ) ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.Target\u003e","offset":8874} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":3162} ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.OutputField\u003e","offset":5486} ) ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.OutputField\u003e","offset":5732} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":5798} ({"_enclosedMethodName":"getMiningTargetFields","_enclosedMethodArgTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["miningField"],"_argTypes":["org.dmg.pmml.MiningField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.MiningField\u003e","offset":16065} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":3276} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectSegmentId","_attributes":["static","packageLocal"],"_argNames":["segment","modelName","i"],"_argTypes":["org.dmg.pmml.mining.Segment","java.lang.String","int"],"_returnType":"void","offset":9454} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingSegmentModelName","_attributes":["static","packageLocal"],"_argNames":["model","segmentId"],"_argTypes":["org.dmg.pmml.Model","java.lang.String"],"_returnType":"void","offset":9579} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingTargetFieldInSegment","_attributes":["static","packageLocal"],"_argNames":["parentMiningSchema","childrenModel"],"_argTypes":["org.dmg.pmml.MiningSchema","org.dmg.pmml.Model"],"_returnType":"void","offset":9648} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":9735} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":9849} ))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getModels","_attributes":["private"],"_argNames":["packageName","pmml","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2672} ({"_enclosedMethodName":"getModels","_enclosedMethodArgTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":7032} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"fromGeneratedPackageNameAndFields","_attributes":["public","static"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO\u003cT\u003e","offset":7159} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":6378} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":5450} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":5416} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary","model"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary","org.dmg.pmml.Model"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":2989} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryAndTransformationDictionary","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":25924} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName","fields"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":2918} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":4100} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4168} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getTargetFieldName","_attributes":["public","static"],"_argNames":["fields","model"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003cjava.lang.String\u003e","offset":4364} ) ({"_enclosedMethodName":"new","_enclosedMethodArgTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["field"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.DataField\u003e","offset":4644} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":7346} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getModelImplementationProviderStream","_attributes":["private","static"],"_argNames":["pmmlMODEL"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.stream.Stream\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2115} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProviderFinder","_attributes":["public","abstract","interface"]},"_methodName":"getImplementations","_attributes":["public","abstract"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5920} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getImplementations","_attributes":["public"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":1631} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getProviders","_attributes":["private"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.Iterator\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003e","offset":1861} ) ({"_enclosedMethodName":"getImplementations","_enclosedMethodArgTypes":["boolean"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["provider"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Consumer\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2070} ))) ({"_enclosedMethodName":"getModelImplementationProviderStream","_enclosedMethodArgTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":6028} )) ({"_enclosedMethodName":"getFromCommonDataAndTransformationDictionaryAndModel","_enclosedMethodArgTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2205} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModel","_attributes":["public","abstract"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"E","offset":2238} ))))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":2794} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":2957} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":4971} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6318} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":7084} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} )))))) +({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addResourceAfterRules","_attributes":["public"],"_argNames":["kbuilder","resource","type","configuration"],"_argTypes":["java.lang.Object","org.kie.api.io.Resource","org.kie.api.io.ResourceType","org.kie.api.io.ResourceConfiguration"],"_returnType":"void","offset":5470} ({"_classDescription":{"_className":"org.kie.internal.pmml.PMMLImplementationsUtil","_attributes":["public"]},"_methodName":"isjPMMLAvailableToClassLoader","_attributes":["public","static"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"boolean","offset":5821} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsFromResourceWithSources","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5989} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getCachedOrCreate","_attributes":["public"],"_argNames":["key","creator"],"_argTypes":["java.lang.String","java.util.function.Supplier\u003cT\u003e"],"_returnType":"T","offset":5375} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":5560} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getFileName","_attributes":["static","packageLocal"],"_argNames":["fullPath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":6054} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["s"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":9533} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["static","packageLocal"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"org.drools.util.PortablePath","offset":1086} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"normalizePath","_attributes":["private","static"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"java.lang.String","offset":1217} ) ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["path"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":1305} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl"],"_returnType":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","offset":6182} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompiler","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModelsWithSources","_attributes":["public","abstract"],"_argNames":["factoryClassName","packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5790} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getKiePMMLModelsWithSources","_attributes":["public"],"_argNames":["factoryClassName","packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3065} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["is","fileName"],"_argTypes":["java.io.InputStream","java.lang.String"],"_returnType":"org.dmg.pmml.PMML","offset":3606} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingModelName","_attributes":["static","packageLocal"],"_argNames":["model","fileName","i"],"_argTypes":["org.dmg.pmml.Model","java.lang.String","int"],"_returnType":"void","offset":2965} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3030} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["toPopulate","miningFields","dataFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.OutputField\u003e","java.util.List\u003corg.dmg.pmml.MiningField\u003e","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":12213} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingMiningTargetField","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3097} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":4536} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetDataField","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003corg.dmg.pmml.DataField\u003e","offset":4696} ) ({"_enclosedMethodName":"populateMissingMiningTargetField","_enclosedMethodArgTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.DataField\u003e","offset":4761} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetMiningField","_attributes":["static","packageLocal"],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"org.dmg.pmml.MiningField","offset":4867} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"correctTargetFields","_attributes":["static","packageLocal"],"_argNames":["targetMiningField","targets"],"_argTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_returnType":"void","offset":4992} ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.Target\u003e","offset":8798} ) ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.Target\u003e","offset":8874} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":3162} ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.OutputField\u003e","offset":5486} ) ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.OutputField\u003e","offset":5732} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":5798} ({"_enclosedMethodName":"getMiningTargetFields","_enclosedMethodArgTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["miningField"],"_argTypes":["org.dmg.pmml.MiningField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.MiningField\u003e","offset":16065} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":3276} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectSegmentId","_attributes":["static","packageLocal"],"_argNames":["segment","modelName","i"],"_argTypes":["org.dmg.pmml.mining.Segment","java.lang.String","int"],"_returnType":"void","offset":9454} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingSegmentModelName","_attributes":["static","packageLocal"],"_argNames":["model","segmentId"],"_argTypes":["org.dmg.pmml.Model","java.lang.String"],"_returnType":"void","offset":9579} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingTargetFieldInSegment","_attributes":["static","packageLocal"],"_argNames":["parentMiningSchema","childrenModel"],"_argTypes":["org.dmg.pmml.MiningSchema","org.dmg.pmml.Model"],"_returnType":"void","offset":9648} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":9735} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":9849} ))) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.lang.String\u003e","offset":3760} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":3821} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4152} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getModelsWithSources","_attributes":["private"],"_argNames":["packageName","pmml","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":4318} ({"_enclosedMethodName":"getModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":8335} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"fromGeneratedPackageNameAndFields","_attributes":["public","static"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO\u003cT\u003e","offset":8462} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":6378} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":5450} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":5416} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary","model"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary","org.dmg.pmml.Model"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":2989} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryAndTransformationDictionary","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":25924} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName","fields"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":2918} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":4100} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4168} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getTargetFieldName","_attributes":["public","static"],"_argNames":["fields","model"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003cjava.lang.String\u003e","offset":4364} ) ({"_enclosedMethodName":"new","_enclosedMethodArgTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["field"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.DataField\u003e","offset":4644} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSources","_attributes":["public","static"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":8649} ({"_enclosedMethodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSources","_enclosedMethodArgTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2986} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModelWithSources","_attributes":["public"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelWithSources","offset":3019} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getSourcesMap","_attributes":["public","abstract"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"java.util.Map\u003cjava.lang.String,java.lang.String\u003e","offset":1896} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModelWithSources","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["modelName","kmodulePackageName","miningFields","outputFields","targetFields","sourcesMap","isInterpreted"],"_argTypes":["java.lang.String","java.lang.String","java.util.List\u003corg.kie.pmml.api.models.MiningField\u003e","java.util.List\u003corg.kie.pmml.api.models.OutputField\u003e","java.util.List\u003corg.kie.pmml.api.models.TargetField\u003e","java.util.Map\u003cjava.lang.String,java.lang.String\u003e","boolean"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelWithSources","offset":2036} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModel","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModel","offset":2021} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","offset":2189} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSourcesCommon","_attributes":["static","packageLocal"],"_argNames":["fields","model","modelFunction"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model","java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3078} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":5208} ({"_enclosedMethodName":"byName","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"λ→","_attributes":[],"_argNames":["value"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.api.enums.PMML_MODEL\u003e","offset":2004} ) ({"_enclosedMethodName":"byName","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KieEnumException\u003e","offset":2071} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KieEnumException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KieEnumException","offset":2077} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLInternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLInternalException","offset":879} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getModelImplementationProviderStream","_attributes":["private","static"],"_argNames":["pmmlMODEL"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.stream.Stream\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5318} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProviderFinder","_attributes":["public","abstract","interface"]},"_methodName":"getImplementations","_attributes":["public","abstract"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5920} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getImplementations","_attributes":["public"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":1987} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getProviders","_attributes":["private"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.Iterator\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003e","offset":1861} ) ({"_enclosedMethodName":"getImplementations","_enclosedMethodArgTypes":["boolean"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["provider"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Consumer\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2070} ))) ({"_enclosedMethodName":"getModelImplementationProviderStream","_enclosedMethodArgTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":6028} )))))) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["expectedClass"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.lang.String\u003e","offset":4641} ) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["expectedClass"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.lang.Boolean\u003e","offset":4727} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getHasSourceMap","_attributes":["private"],"_argNames":["toReturn","expectedClass"],"_argTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_returnType":"org.kie.pmml.commons.model.HasSourcesMap","offset":4830} ({"_enclosedMethodName":"getHasSourceMap","_enclosedMethodArgTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["kiePMMLModel"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":9065} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":9347} )) ({"_enclosedMethodName":"getHasSourceMap","_enclosedMethodArgTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KiePMMLException\u003e","offset":9569} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":9575} )) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":9815} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":5467} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"getFactorySourceCode","_attributes":["public","static"],"_argNames":["factoryClassName","packageName","generatedClassesModelTypeMap"],"_argTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"java.util.Map\u003cjava.lang.String,java.lang.String\u003e","offset":5616} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getFromFileName","_attributes":["public","static"],"_argNames":["fileName"],"_argTypes":["java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":2778} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLInternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLInternalException","offset":2167} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":2384} )) ({"_enclosedMethodName":"getFactorySourceCode","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":3076} ) ({"_enclosedMethodName":"getFactorySourceCode","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KiePMMLException\u003e","offset":3302} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":3308} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"populateKiePmmlFields","_attributes":["static","packageLocal"],"_argNames":["toPopulate","generatedClassesModelTypeMap"],"_argTypes":["com.github.javaparser.ast.body.FieldDeclaration","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"void","offset":3621} ({"_enclosedMethodName":"populateKiePmmlFields","_enclosedMethodArgTypes":["com.github.javaparser.ast.body.FieldDeclaration","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["entry"],"_argTypes":["java.util.Map.Entry\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"java.util.function.Function\u003cjava.util.Map.Entry\u003cjava.lang.String,java.lang.Boolean\u003e,com.github.javaparser.ast.expr.Expression\u003e","offset":4828} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"getInstantiationExpression","_attributes":["public","static"],"_argNames":["kiePMMLModelClass","isInterpreted"],"_argTypes":["java.lang.String","boolean"],"_returnType":"com.github.javaparser.ast.expr.Expression","offset":4837} )))) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLFactoryModel","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["name","kmodulePackageName","sourcesMap"],"_argTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.String\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLFactoryModel","offset":5750} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModel","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModel","offset":1425} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","offset":2189} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":6043} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":6206} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"populateWithPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["toReturn","resource"],"_argTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","org.kie.api.io.Resource"],"_returnType":"void","offset":6238} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":6677} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":7364} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMapperSource","_attributes":["public","static"],"_argNames":["fullRuleName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":7805} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getKiePMMLModelCompilationUnit","_attributes":["public","static"],"_argNames":["className","packageName","javaTemplate","modelClassName"],"_argTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":1608} ) ({"_enclosedMethodName":"getPMMLRuleMapperSource","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":1975} )) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":7882} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":8163} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":7364} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMapperSource","_attributes":["public","static"],"_argNames":["fullRuleName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":7805} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":7882} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":8163} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":6770} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":8757} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMappersSource","_attributes":["public","static"],"_argNames":["packageName","generatedRuleMappers"],"_argTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_returnType":"java.lang.String","offset":9069} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getKiePMMLModelCompilationUnit","_attributes":["public","static"],"_argNames":["className","packageName","javaTemplate","modelClassName"],"_argTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":1695} ) ({"_enclosedMethodName":"getPMMLRuleMappersSource","_enclosedMethodArgTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":2075} ) ({"_enclosedMethodName":"getPMMLRuleMappersSource","_enclosedMethodArgTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["generatedRuleMapper"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,com.github.javaparser.ast.expr.ObjectCreationExpr\u003e","offset":2276} )) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":9258} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":6368} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":5965} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":7084} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromResource","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":6111} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadKiePMMLModelFactory","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelFactory","offset":3475} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":4375} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadKiePMMLModelFactory","_attributes":["private","static"],"_argNames":["classLoader","fullFactoryClassName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelFactory","offset":4621} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromFactory","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModelFactory"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.pmml.commons.model.KiePMMLModelFactory"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3614} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":5830} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e","offset":6318} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappersClass","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.Optional\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMappers\u003e","offset":7923} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":6488} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e","offset":6318} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":6488} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","pmmlRuleMappers"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":5904} ({"_classDescription":{"_className":"org.drools.modelcompiler.builder.KieBaseBuilder","_attributes":["public"]},"_methodName":"createKieBaseFromModel","_attributes":["public","static"],"_argNames":["models","options"],"_argTypes":["java.util.Collection\u003corg.drools.model.Model\u003e","org.kie.api.conf.KieBaseOption..."],"_returnType":"org.drools.kiesession.rulebase.InternalKnowledgeBase","offset":7098} ({"_classDescription":{"_className":"org.kie.api.KieServices","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.kie.api.KieServices","offset":2544} ) ({"_classDescription":{"_className":"org.kie.api.KieServices","_attributes":["public","abstract","interface"]},"_methodName":"newKieBaseConfiguration","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"org.kie.api.KieBaseConfiguration","offset":2550} ) ({"_classDescription":{"_className":"org.drools.modelcompiler.builder.KieBaseBuilder","_attributes":["public"]},"_methodName":"createKieBaseFromModel","_attributes":["public","static"],"_argNames":["models","kieBaseConf"],"_argTypes":["java.util.Collection\u003corg.drools.model.Model\u003e","org.kie.api.KieBaseConfiguration"],"_returnType":"org.drools.kiesession.rulebase.InternalKnowledgeBase","offset":2747} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["kBase"],"_argTypes":["org.drools.kiesession.rulebase.InternalKnowledgeBase"],"_returnType":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","offset":7058} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["kBase","configuration"],"_argTypes":["org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl"],"_returnType":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","offset":6998} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"addPackage","_attributes":["public","synchronized"],"_argNames":["newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":7245} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":29752} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":29992} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":30054} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":30456} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","_attributes":["public","final"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder","kBase","configuration","typeBuilder","filterCondition","pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.builder.impl.TypeDeclarationBuilder","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter","org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","offset":30171} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","_attributes":["public","final"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":30577} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultCollectorImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["results"],"_argTypes":["java.util.Collection\u003c? extends org.kie.internal.builder.KnowledgeBuilderResult\u003e"],"_returnType":"void","offset":30613} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"merge","_attributes":["public"],"_argNames":["newDatas","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":30812} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DuplicateFunction","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["func","config"],"_argTypes":["org.drools.core.rule.Function","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.compiler.DuplicateFunction","offset":31164} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"addBuilderResult","_attributes":["public"],"_argNames":["result"],"_argTypes":["org.kie.internal.builder.KnowledgeBuilderResult"],"_returnType":"void","offset":31147} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addFunction","_attributes":["public","abstract"],"_argNames":["function"],"_argTypes":["org.drools.core.rule.Function"],"_returnType":"void","offset":31323} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"mergeStore","_attributes":["public"],"_argNames":["newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":31390} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onBeforeExecute","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":31450} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"mergePackage","_attributes":["private"],"_argNames":["pkg","newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":32257} )))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":3959} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsCompiledFromResource","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":6230} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getCachedOrCreate","_attributes":["public"],"_argNames":["key","creator"],"_argTypes":["java.lang.String","java.util.function.Supplier\u003cT\u003e"],"_returnType":"T","offset":4412} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":4604} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getFileName","_attributes":["static","packageLocal"],"_argNames":["fullPath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4787} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["s"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":9533} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["static","packageLocal"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"org.drools.util.PortablePath","offset":1086} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"normalizePath","_attributes":["private","static"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"java.lang.String","offset":1217} ) ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["path"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":1305} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl"],"_returnType":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","offset":4875} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompiler","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModels","_attributes":["public","abstract"],"_argNames":["packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":4681} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getKiePMMLModels","_attributes":["public"],"_argNames":["packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2294} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["is","fileName"],"_argTypes":["java.io.InputStream","java.lang.String"],"_returnType":"org.dmg.pmml.PMML","offset":2624} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingModelName","_attributes":["static","packageLocal"],"_argNames":["model","fileName","i"],"_argTypes":["org.dmg.pmml.Model","java.lang.String","int"],"_returnType":"void","offset":2965} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3030} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["toPopulate","miningFields","dataFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.OutputField\u003e","java.util.List\u003corg.dmg.pmml.MiningField\u003e","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":12213} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingMiningTargetField","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3097} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":4536} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetDataField","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003corg.dmg.pmml.DataField\u003e","offset":4696} ) ({"_enclosedMethodName":"populateMissingMiningTargetField","_enclosedMethodArgTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.DataField\u003e","offset":4761} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetMiningField","_attributes":["static","packageLocal"],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"org.dmg.pmml.MiningField","offset":4867} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"correctTargetFields","_attributes":["static","packageLocal"],"_argNames":["targetMiningField","targets"],"_argTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_returnType":"void","offset":4992} ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.Target\u003e","offset":8798} ) ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.Target\u003e","offset":8874} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":3162} ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.OutputField\u003e","offset":5486} ) ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.OutputField\u003e","offset":5732} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":5798} ({"_enclosedMethodName":"getMiningTargetFields","_enclosedMethodArgTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["miningField"],"_argTypes":["org.dmg.pmml.MiningField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.MiningField\u003e","offset":16065} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":3276} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectSegmentId","_attributes":["static","packageLocal"],"_argNames":["segment","modelName","i"],"_argTypes":["org.dmg.pmml.mining.Segment","java.lang.String","int"],"_returnType":"void","offset":9454} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingSegmentModelName","_attributes":["static","packageLocal"],"_argNames":["model","segmentId"],"_argTypes":["org.dmg.pmml.Model","java.lang.String"],"_returnType":"void","offset":9579} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingTargetFieldInSegment","_attributes":["static","packageLocal"],"_argNames":["parentMiningSchema","childrenModel"],"_argTypes":["org.dmg.pmml.MiningSchema","org.dmg.pmml.Model"],"_returnType":"void","offset":9648} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":9735} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":9849} ))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getModels","_attributes":["private"],"_argNames":["packageName","pmml","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2672} ({"_enclosedMethodName":"getModels","_enclosedMethodArgTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":7032} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"fromGeneratedPackageNameAndFields","_attributes":["public","static"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO\u003cT\u003e","offset":7159} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":6378} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":5450} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":5416} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary","model"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary","org.dmg.pmml.Model"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":2989} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryAndTransformationDictionary","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":25924} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName","fields"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":2918} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":4100} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4168} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getTargetFieldName","_attributes":["public","static"],"_argNames":["fields","model"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003cjava.lang.String\u003e","offset":4364} ) ({"_enclosedMethodName":"new","_enclosedMethodArgTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["field"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.DataField\u003e","offset":4644} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":7346} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getModelImplementationProviderStream","_attributes":["private","static"],"_argNames":["pmmlMODEL"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.stream.Stream\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2115} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProviderFinder","_attributes":["public","abstract","interface"]},"_methodName":"getImplementations","_attributes":["public","abstract"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5920} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getImplementations","_attributes":["public"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":1631} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getProviders","_attributes":["private"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.Iterator\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003e","offset":1861} ) ({"_enclosedMethodName":"getImplementations","_enclosedMethodArgTypes":["boolean"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["provider"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Consumer\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2070} ))) ({"_enclosedMethodName":"getModelImplementationProviderStream","_enclosedMethodArgTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":6028} )) ({"_enclosedMethodName":"getFromCommonDataAndTransformationDictionaryAndModel","_enclosedMethodArgTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2205} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModel","_attributes":["public","abstract"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"E","offset":2238} ))))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":2794} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":2957} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":4971} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6318} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":7084} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} )))))) diff --git a/efesto/documentation/sdt/PMMLAssemblerService_addResourcesAfterRules_withConfigurations.sdt b/efesto/documentation/sdt/PMMLAssemblerService_addResourcesAfterRules_withConfigurations.sdt index d4b6b7d8dca..67177217c76 100644 --- a/efesto/documentation/sdt/PMMLAssemblerService_addResourcesAfterRules_withConfigurations.sdt +++ b/efesto/documentation/sdt/PMMLAssemblerService_addResourcesAfterRules_withConfigurations.sdt @@ -1 +1 @@ -({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addResourcesAfterRules","_attributes":["public"],"_argNames":["kbuilder","resources","type"],"_argTypes":["java.lang.Object","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4635} ({"_classDescription":{"_className":"org.kie.internal.pmml.PMMLImplementationsUtil","_attributes":["public"]},"_methodName":"isjPMMLAvailableToClassLoader","_attributes":["public","static"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"boolean","offset":4834} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsFromResourcesWithConfigurationsWithSources","_attributes":["public","static"],"_argNames":["kbuilderImpl","resourceWithConfigurations"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5002} ({"_enclosedMethodName":"getKiePMMLModelsFromResourcesWithConfigurationsWithSources","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.Resource,java.util.stream.Stream\u003c? extends org.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":2929} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsFromResourceWithSources","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2941} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getCachedOrCreate","_attributes":["public"],"_argNames":["key","creator"],"_argTypes":["java.lang.String","java.util.function.Supplier\u003cT\u003e"],"_returnType":"T","offset":5375} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":5560} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getFileName","_attributes":["static","packageLocal"],"_argNames":["fullPath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":6054} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["s"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":9533} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["static","packageLocal"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"org.drools.util.PortablePath","offset":1086} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"normalizePath","_attributes":["private","static"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"java.lang.String","offset":1217} ) ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["path"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":1305} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl"],"_returnType":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","offset":6182} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompiler","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModelsWithSources","_attributes":["public","abstract"],"_argNames":["factoryClassName","packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5790} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getKiePMMLModelsWithSources","_attributes":["public"],"_argNames":["factoryClassName","packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3065} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["is","fileName"],"_argTypes":["java.io.InputStream","java.lang.String"],"_returnType":"org.dmg.pmml.PMML","offset":3606} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingModelName","_attributes":["static","packageLocal"],"_argNames":["model","fileName","i"],"_argTypes":["org.dmg.pmml.Model","java.lang.String","int"],"_returnType":"void","offset":2965} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3030} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["toPopulate","miningFields","dataFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.OutputField\u003e","java.util.List\u003corg.dmg.pmml.MiningField\u003e","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":12213} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingMiningTargetField","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3097} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":4536} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetDataField","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003corg.dmg.pmml.DataField\u003e","offset":4696} ) ({"_enclosedMethodName":"populateMissingMiningTargetField","_enclosedMethodArgTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.DataField\u003e","offset":4761} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetMiningField","_attributes":["static","packageLocal"],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"org.dmg.pmml.MiningField","offset":4867} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"correctTargetFields","_attributes":["static","packageLocal"],"_argNames":["targetMiningField","targets"],"_argTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_returnType":"void","offset":4992} ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.Target\u003e","offset":8798} ) ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.Target\u003e","offset":8874} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":3162} ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.OutputField\u003e","offset":5486} ) ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.OutputField\u003e","offset":5732} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":5798} ({"_enclosedMethodName":"getMiningTargetFields","_enclosedMethodArgTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["miningField"],"_argTypes":["org.dmg.pmml.MiningField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.MiningField\u003e","offset":16065} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":3276} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectSegmentId","_attributes":["static","packageLocal"],"_argNames":["segment","modelName","i"],"_argTypes":["org.dmg.pmml.mining.Segment","java.lang.String","int"],"_returnType":"void","offset":9454} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingSegmentModelName","_attributes":["static","packageLocal"],"_argNames":["model","segmentId"],"_argTypes":["org.dmg.pmml.Model","java.lang.String"],"_returnType":"void","offset":9579} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingTargetFieldInSegment","_attributes":["static","packageLocal"],"_argNames":["parentMiningSchema","childrenModel"],"_argTypes":["org.dmg.pmml.MiningSchema","org.dmg.pmml.Model"],"_returnType":"void","offset":9648} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":9735} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":9849} ))) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.lang.String\u003e","offset":3760} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":3821} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4152} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getModelsWithSources","_attributes":["private"],"_argNames":["packageName","pmml","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":4318} ({"_enclosedMethodName":"getModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":8335} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"fromGeneratedPackageNameAndFields","_attributes":["public","static"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO\u003cT\u003e","offset":8462} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":6378} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":5450} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":5416} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary","model"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary","org.dmg.pmml.Model"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":2989} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryAndTransformationDictionary","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":25924} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName","fields"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":2918} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":4100} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4168} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getTargetFieldName","_attributes":["public","static"],"_argNames":["fields","model"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003cjava.lang.String\u003e","offset":4364} ) ({"_enclosedMethodName":"new","_enclosedMethodArgTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["field"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.DataField\u003e","offset":4644} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSources","_attributes":["public","static"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":8649} ({"_enclosedMethodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSources","_enclosedMethodArgTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2986} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModelWithSources","_attributes":["public"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelWithSources","offset":3019} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getSourcesMap","_attributes":["public","abstract"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"java.util.Map\u003cjava.lang.String,java.lang.String\u003e","offset":1896} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModelWithSources","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["modelName","kmodulePackageName","miningFields","outputFields","targetFields","sourcesMap","isInterpreted"],"_argTypes":["java.lang.String","java.lang.String","java.util.List\u003corg.kie.pmml.api.models.MiningField\u003e","java.util.List\u003corg.kie.pmml.api.models.OutputField\u003e","java.util.List\u003corg.kie.pmml.api.models.TargetField\u003e","java.util.Map\u003cjava.lang.String,java.lang.String\u003e","boolean"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelWithSources","offset":2036} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModel","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModel","offset":2021} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","offset":2189} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSourcesCommon","_attributes":["static","packageLocal"],"_argNames":["fields","model","modelFunction"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model","java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3078} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":5208} ({"_enclosedMethodName":"byName","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"λ→","_attributes":[],"_argNames":["value"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.api.enums.PMML_MODEL\u003e","offset":2004} ) ({"_enclosedMethodName":"byName","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KieEnumException\u003e","offset":2071} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KieEnumException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KieEnumException","offset":2077} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLInternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLInternalException","offset":879} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getModelImplementationProviderStream","_attributes":["private","static"],"_argNames":["pmmlMODEL"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.stream.Stream\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5318} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProviderFinder","_attributes":["public","abstract","interface"]},"_methodName":"getImplementations","_attributes":["public","abstract"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5920} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getImplementations","_attributes":["public"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":1987} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getProviders","_attributes":["private"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.Iterator\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003e","offset":1861} ) ({"_enclosedMethodName":"getImplementations","_enclosedMethodArgTypes":["boolean"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["provider"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Consumer\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2070} ))) ({"_enclosedMethodName":"getModelImplementationProviderStream","_enclosedMethodArgTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":6028} )))))) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["expectedClass"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.lang.String\u003e","offset":4641} ) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["expectedClass"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.lang.Boolean\u003e","offset":4727} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getHasSourceMap","_attributes":["private"],"_argNames":["toReturn","expectedClass"],"_argTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_returnType":"org.kie.pmml.commons.model.HasSourcesMap","offset":4830} ({"_enclosedMethodName":"getHasSourceMap","_enclosedMethodArgTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["kiePMMLModel"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":9065} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":9347} )) ({"_enclosedMethodName":"getHasSourceMap","_enclosedMethodArgTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KiePMMLException\u003e","offset":9569} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":9575} )) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":9815} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":5467} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"getFactorySourceCode","_attributes":["public","static"],"_argNames":["factoryClassName","packageName","generatedClassesModelTypeMap"],"_argTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"java.util.Map\u003cjava.lang.String,java.lang.String\u003e","offset":5616} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getFromFileName","_attributes":["public","static"],"_argNames":["fileName"],"_argTypes":["java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":2778} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLInternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLInternalException","offset":2167} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":2384} )) ({"_enclosedMethodName":"getFactorySourceCode","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":3076} ) ({"_enclosedMethodName":"getFactorySourceCode","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KiePMMLException\u003e","offset":3302} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":3308} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"populateKiePmmlFields","_attributes":["static","packageLocal"],"_argNames":["toPopulate","generatedClassesModelTypeMap"],"_argTypes":["com.github.javaparser.ast.body.FieldDeclaration","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"void","offset":3621} ({"_enclosedMethodName":"populateKiePmmlFields","_enclosedMethodArgTypes":["com.github.javaparser.ast.body.FieldDeclaration","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["entry"],"_argTypes":["java.util.Map.Entry\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"java.util.function.Function\u003cjava.util.Map.Entry\u003cjava.lang.String,java.lang.Boolean\u003e,com.github.javaparser.ast.expr.Expression\u003e","offset":4828} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"getInstantiationExpression","_attributes":["public","static"],"_argNames":["kiePMMLModelClass","isInterpreted"],"_argTypes":["java.lang.String","boolean"],"_returnType":"com.github.javaparser.ast.expr.Expression","offset":4837} )))) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLFactoryModel","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["name","kmodulePackageName","sourcesMap"],"_argTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.String\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLFactoryModel","offset":5750} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModel","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModel","offset":1425} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","offset":2189} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":6043} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":6206} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"populateWithPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["toReturn","resource"],"_argTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","org.kie.api.io.Resource"],"_returnType":"void","offset":6238} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":6677} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":7364} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMapperSource","_attributes":["public","static"],"_argNames":["fullRuleName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":7805} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getKiePMMLModelCompilationUnit","_attributes":["public","static"],"_argNames":["className","packageName","javaTemplate","modelClassName"],"_argTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":1608} ) ({"_enclosedMethodName":"getPMMLRuleMapperSource","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":1975} )) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":7882} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":8163} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":7364} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMapperSource","_attributes":["public","static"],"_argNames":["fullRuleName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":7805} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":7882} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":8163} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":6770} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":8757} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMappersSource","_attributes":["public","static"],"_argNames":["packageName","generatedRuleMappers"],"_argTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_returnType":"java.lang.String","offset":9069} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getKiePMMLModelCompilationUnit","_attributes":["public","static"],"_argNames":["className","packageName","javaTemplate","modelClassName"],"_argTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":1695} ) ({"_enclosedMethodName":"getPMMLRuleMappersSource","_enclosedMethodArgTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":2075} ) ({"_enclosedMethodName":"getPMMLRuleMappersSource","_enclosedMethodArgTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["generatedRuleMapper"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,com.github.javaparser.ast.expr.ObjectCreationExpr\u003e","offset":2276} )) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":9258} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":6368} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":4978} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":7084} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromResourcesWithConfigurations","_attributes":["public","static"],"_argNames":["kbuilderImpl","resourceWithConfigurations"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5144} ({"_enclosedMethodName":"getKiePMMLModelsLoadedFromResourcesWithConfigurations","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.Resource,java.util.stream.Stream\u003c? extends org.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":2766} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromResource","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2778} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadKiePMMLModelFactory","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelFactory","offset":3475} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":4375} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadKiePMMLModelFactory","_attributes":["private","static"],"_argNames":["classLoader","fullFactoryClassName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelFactory","offset":4621} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromFactory","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModelFactory"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.pmml.commons.model.KiePMMLModelFactory"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3614} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":5830} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e","offset":6318} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappersClass","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.Optional\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMappers\u003e","offset":7923} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":6488} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e","offset":6318} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":6488} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","pmmlRuleMappers"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":5904} ({"_classDescription":{"_className":"org.drools.modelcompiler.builder.KieBaseBuilder","_attributes":["public"]},"_methodName":"createKieBaseFromModel","_attributes":["public","static"],"_argNames":["models","options"],"_argTypes":["java.util.Collection\u003corg.drools.model.Model\u003e","org.kie.api.conf.KieBaseOption..."],"_returnType":"org.drools.kiesession.rulebase.InternalKnowledgeBase","offset":7098} ({"_classDescription":{"_className":"org.kie.api.KieServices","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.kie.api.KieServices","offset":2544} ) ({"_classDescription":{"_className":"org.kie.api.KieServices","_attributes":["public","abstract","interface"]},"_methodName":"newKieBaseConfiguration","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"org.kie.api.KieBaseConfiguration","offset":2550} ) ({"_classDescription":{"_className":"org.drools.modelcompiler.builder.KieBaseBuilder","_attributes":["public"]},"_methodName":"createKieBaseFromModel","_attributes":["public","static"],"_argNames":["models","kieBaseConf"],"_argTypes":["java.util.Collection\u003corg.drools.model.Model\u003e","org.kie.api.KieBaseConfiguration"],"_returnType":"org.drools.kiesession.rulebase.InternalKnowledgeBase","offset":2747} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["kBase"],"_argTypes":["org.drools.kiesession.rulebase.InternalKnowledgeBase"],"_returnType":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","offset":7058} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["kBase","configuration"],"_argTypes":["org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl"],"_returnType":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","offset":6998} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"addPackage","_attributes":["public","synchronized"],"_argNames":["newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":7245} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":29752} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":29992} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":30054} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":30456} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","_attributes":["public","final"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder","kBase","configuration","typeBuilder","filterCondition","pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.builder.impl.TypeDeclarationBuilder","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter","org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","offset":30171} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","_attributes":["public","final"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":30577} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultCollectorImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["results"],"_argTypes":["java.util.Collection\u003c? extends org.kie.internal.builder.KnowledgeBuilderResult\u003e"],"_returnType":"void","offset":30613} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"merge","_attributes":["public"],"_argNames":["newDatas","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":30812} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DuplicateFunction","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["func","config"],"_argTypes":["org.drools.core.rule.Function","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.compiler.DuplicateFunction","offset":31164} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"addBuilderResult","_attributes":["public"],"_argNames":["result"],"_argTypes":["org.kie.internal.builder.KnowledgeBuilderResult"],"_returnType":"void","offset":31147} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addFunction","_attributes":["public","abstract"],"_argNames":["function"],"_argTypes":["org.drools.core.rule.Function"],"_returnType":"void","offset":31323} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"mergeStore","_attributes":["public"],"_argNames":["newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":31390} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onBeforeExecute","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":31450} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"mergePackage","_attributes":["private"],"_argNames":["pkg","newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":32257} )))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":3959} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsCompiledFromResourcesWithConfigurations","_attributes":["public","static"],"_argNames":["kbuilderImpl","resourceWithConfigurations"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5283} ({"_enclosedMethodName":"getKiePMMLModelsCompiledFromResourcesWithConfigurations","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.Resource,java.util.stream.Stream\u003c? extends org.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":3721} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsCompiledFromResource","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3733} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getCachedOrCreate","_attributes":["public"],"_argNames":["key","creator"],"_argTypes":["java.lang.String","java.util.function.Supplier\u003cT\u003e"],"_returnType":"T","offset":4412} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":4604} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getFileName","_attributes":["static","packageLocal"],"_argNames":["fullPath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4787} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["s"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":9533} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["static","packageLocal"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"org.drools.util.PortablePath","offset":1086} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"normalizePath","_attributes":["private","static"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"java.lang.String","offset":1217} ) ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["path"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":1305} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl"],"_returnType":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","offset":4875} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompiler","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModels","_attributes":["public","abstract"],"_argNames":["packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":4681} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getKiePMMLModels","_attributes":["public"],"_argNames":["packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2294} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["is","fileName"],"_argTypes":["java.io.InputStream","java.lang.String"],"_returnType":"org.dmg.pmml.PMML","offset":2624} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingModelName","_attributes":["static","packageLocal"],"_argNames":["model","fileName","i"],"_argTypes":["org.dmg.pmml.Model","java.lang.String","int"],"_returnType":"void","offset":2965} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3030} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["toPopulate","miningFields","dataFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.OutputField\u003e","java.util.List\u003corg.dmg.pmml.MiningField\u003e","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":12213} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingMiningTargetField","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3097} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":4536} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetDataField","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003corg.dmg.pmml.DataField\u003e","offset":4696} ) ({"_enclosedMethodName":"populateMissingMiningTargetField","_enclosedMethodArgTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.DataField\u003e","offset":4761} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetMiningField","_attributes":["static","packageLocal"],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"org.dmg.pmml.MiningField","offset":4867} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"correctTargetFields","_attributes":["static","packageLocal"],"_argNames":["targetMiningField","targets"],"_argTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_returnType":"void","offset":4992} ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.Target\u003e","offset":8798} ) ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.Target\u003e","offset":8874} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":3162} ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.OutputField\u003e","offset":5486} ) ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.OutputField\u003e","offset":5732} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":5798} ({"_enclosedMethodName":"getMiningTargetFields","_enclosedMethodArgTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["miningField"],"_argTypes":["org.dmg.pmml.MiningField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.MiningField\u003e","offset":16065} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":3276} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectSegmentId","_attributes":["static","packageLocal"],"_argNames":["segment","modelName","i"],"_argTypes":["org.dmg.pmml.mining.Segment","java.lang.String","int"],"_returnType":"void","offset":9454} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingSegmentModelName","_attributes":["static","packageLocal"],"_argNames":["model","segmentId"],"_argTypes":["org.dmg.pmml.Model","java.lang.String"],"_returnType":"void","offset":9579} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingTargetFieldInSegment","_attributes":["static","packageLocal"],"_argNames":["parentMiningSchema","childrenModel"],"_argTypes":["org.dmg.pmml.MiningSchema","org.dmg.pmml.Model"],"_returnType":"void","offset":9648} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":9735} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":9849} ))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getModels","_attributes":["private"],"_argNames":["packageName","pmml","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2672} ({"_enclosedMethodName":"getModels","_enclosedMethodArgTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":7032} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"fromGeneratedPackageNameAndFields","_attributes":["public","static"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO\u003cT\u003e","offset":7159} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":6378} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":5450} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":5416} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary","model"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary","org.dmg.pmml.Model"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":2989} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryAndTransformationDictionary","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":25924} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName","fields"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":2918} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":4100} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4168} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getTargetFieldName","_attributes":["public","static"],"_argNames":["fields","model"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003cjava.lang.String\u003e","offset":4364} ) ({"_enclosedMethodName":"new","_enclosedMethodArgTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["field"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.DataField\u003e","offset":4644} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":7346} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getModelImplementationProviderStream","_attributes":["private","static"],"_argNames":["pmmlMODEL"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.stream.Stream\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2115} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProviderFinder","_attributes":["public","abstract","interface"]},"_methodName":"getImplementations","_attributes":["public","abstract"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5920} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getImplementations","_attributes":["public"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":1631} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getProviders","_attributes":["private"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.Iterator\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003e","offset":1861} ) ({"_enclosedMethodName":"getImplementations","_enclosedMethodArgTypes":["boolean"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["provider"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Consumer\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2070} ))) ({"_enclosedMethodName":"getModelImplementationProviderStream","_enclosedMethodArgTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":6028} )) ({"_enclosedMethodName":"getFromCommonDataAndTransformationDictionaryAndModel","_enclosedMethodArgTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2205} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModel","_attributes":["public","abstract"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"E","offset":2238} ))))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":2794} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":2957} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":4971} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":5391} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":7084} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.RuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} )))))) +({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addResourcesAfterRules","_attributes":["public"],"_argNames":["kbuilder","resources","type"],"_argTypes":["java.lang.Object","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e","org.kie.api.io.ResourceType"],"_returnType":"void","offset":4635} ({"_classDescription":{"_className":"org.kie.internal.pmml.PMMLImplementationsUtil","_attributes":["public"]},"_methodName":"isjPMMLAvailableToClassLoader","_attributes":["public","static"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"boolean","offset":4834} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsFromResourcesWithConfigurationsWithSources","_attributes":["public","static"],"_argNames":["kbuilderImpl","resourceWithConfigurations"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5002} ({"_enclosedMethodName":"getKiePMMLModelsFromResourcesWithConfigurationsWithSources","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.Resource,java.util.stream.Stream\u003c? extends org.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":2929} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsFromResourceWithSources","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2941} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getCachedOrCreate","_attributes":["public"],"_argNames":["key","creator"],"_argTypes":["java.lang.String","java.util.function.Supplier\u003cT\u003e"],"_returnType":"T","offset":5375} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":5560} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getFileName","_attributes":["static","packageLocal"],"_argNames":["fullPath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":6054} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["s"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":9533} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["static","packageLocal"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"org.drools.util.PortablePath","offset":1086} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"normalizePath","_attributes":["private","static"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"java.lang.String","offset":1217} ) ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["path"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":1305} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl"],"_returnType":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","offset":6182} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompiler","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModelsWithSources","_attributes":["public","abstract"],"_argNames":["factoryClassName","packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5790} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getKiePMMLModelsWithSources","_attributes":["public"],"_argNames":["factoryClassName","packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3065} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["is","fileName"],"_argTypes":["java.io.InputStream","java.lang.String"],"_returnType":"org.dmg.pmml.PMML","offset":3606} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingModelName","_attributes":["static","packageLocal"],"_argNames":["model","fileName","i"],"_argTypes":["org.dmg.pmml.Model","java.lang.String","int"],"_returnType":"void","offset":2965} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3030} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["toPopulate","miningFields","dataFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.OutputField\u003e","java.util.List\u003corg.dmg.pmml.MiningField\u003e","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":12213} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingMiningTargetField","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3097} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":4536} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetDataField","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003corg.dmg.pmml.DataField\u003e","offset":4696} ) ({"_enclosedMethodName":"populateMissingMiningTargetField","_enclosedMethodArgTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.DataField\u003e","offset":4761} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetMiningField","_attributes":["static","packageLocal"],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"org.dmg.pmml.MiningField","offset":4867} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"correctTargetFields","_attributes":["static","packageLocal"],"_argNames":["targetMiningField","targets"],"_argTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_returnType":"void","offset":4992} ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.Target\u003e","offset":8798} ) ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.Target\u003e","offset":8874} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":3162} ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.OutputField\u003e","offset":5486} ) ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.OutputField\u003e","offset":5732} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":5798} ({"_enclosedMethodName":"getMiningTargetFields","_enclosedMethodArgTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["miningField"],"_argTypes":["org.dmg.pmml.MiningField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.MiningField\u003e","offset":16065} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":3276} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectSegmentId","_attributes":["static","packageLocal"],"_argNames":["segment","modelName","i"],"_argTypes":["org.dmg.pmml.mining.Segment","java.lang.String","int"],"_returnType":"void","offset":9454} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingSegmentModelName","_attributes":["static","packageLocal"],"_argNames":["model","segmentId"],"_argTypes":["org.dmg.pmml.Model","java.lang.String"],"_returnType":"void","offset":9579} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingTargetFieldInSegment","_attributes":["static","packageLocal"],"_argNames":["parentMiningSchema","childrenModel"],"_argTypes":["org.dmg.pmml.MiningSchema","org.dmg.pmml.Model"],"_returnType":"void","offset":9648} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":9735} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":9849} ))) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.lang.String\u003e","offset":3760} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":3821} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4152} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getModelsWithSources","_attributes":["private"],"_argNames":["packageName","pmml","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":4318} ({"_enclosedMethodName":"getModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":8335} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"fromGeneratedPackageNameAndFields","_attributes":["public","static"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO\u003cT\u003e","offset":8462} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":6378} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":5450} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":5416} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary","model"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary","org.dmg.pmml.Model"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":2989} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryAndTransformationDictionary","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":25924} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName","fields"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":2918} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":4100} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4168} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getTargetFieldName","_attributes":["public","static"],"_argNames":["fields","model"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003cjava.lang.String\u003e","offset":4364} ) ({"_enclosedMethodName":"new","_enclosedMethodArgTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["field"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.DataField\u003e","offset":4644} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSources","_attributes":["public","static"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":8649} ({"_enclosedMethodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSources","_enclosedMethodArgTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2986} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModelWithSources","_attributes":["public"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelWithSources","offset":3019} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getSourcesMap","_attributes":["public","abstract"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"java.util.Map\u003cjava.lang.String,java.lang.String\u003e","offset":1896} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModelWithSources","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["modelName","kmodulePackageName","miningFields","outputFields","targetFields","sourcesMap","isInterpreted"],"_argTypes":["java.lang.String","java.lang.String","java.util.List\u003corg.kie.pmml.api.models.MiningField\u003e","java.util.List\u003corg.kie.pmml.api.models.OutputField\u003e","java.util.List\u003corg.kie.pmml.api.models.TargetField\u003e","java.util.Map\u003cjava.lang.String,java.lang.String\u003e","boolean"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelWithSources","offset":2036} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModel","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModel","offset":2021} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","offset":2189} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModelWithSourcesCommon","_attributes":["static","packageLocal"],"_argNames":["fields","model","modelFunction"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model","java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3078} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":5208} ({"_enclosedMethodName":"byName","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"λ→","_attributes":[],"_argNames":["value"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.api.enums.PMML_MODEL\u003e","offset":2004} ) ({"_enclosedMethodName":"byName","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KieEnumException\u003e","offset":2071} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KieEnumException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KieEnumException","offset":2077} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLInternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLInternalException","offset":879} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getModelImplementationProviderStream","_attributes":["private","static"],"_argNames":["pmmlMODEL"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.stream.Stream\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5318} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProviderFinder","_attributes":["public","abstract","interface"]},"_methodName":"getImplementations","_attributes":["public","abstract"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5920} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getImplementations","_attributes":["public"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":1987} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getProviders","_attributes":["private"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.Iterator\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003e","offset":1861} ) ({"_enclosedMethodName":"getImplementations","_enclosedMethodArgTypes":["boolean"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["provider"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Consumer\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2070} ))) ({"_enclosedMethodName":"getModelImplementationProviderStream","_enclosedMethodArgTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":6028} )))))) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["expectedClass"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.lang.String\u003e","offset":4641} ) ({"_enclosedMethodName":"getKiePMMLModelsWithSources","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["expectedClass"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.lang.Boolean\u003e","offset":4727} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getHasSourceMap","_attributes":["private"],"_argNames":["toReturn","expectedClass"],"_argTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_returnType":"org.kie.pmml.commons.model.HasSourcesMap","offset":4830} ({"_enclosedMethodName":"getHasSourceMap","_enclosedMethodArgTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["kiePMMLModel"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":9065} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":9347} )) ({"_enclosedMethodName":"getHasSourceMap","_enclosedMethodArgTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KiePMMLException\u003e","offset":9569} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":9575} )) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":9815} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":5467} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"getFactorySourceCode","_attributes":["public","static"],"_argNames":["factoryClassName","packageName","generatedClassesModelTypeMap"],"_argTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"java.util.Map\u003cjava.lang.String,java.lang.String\u003e","offset":5616} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getFromFileName","_attributes":["public","static"],"_argNames":["fileName"],"_argTypes":["java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":2778} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLInternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLInternalException","offset":2167} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":2384} )) ({"_enclosedMethodName":"getFactorySourceCode","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":3076} ) ({"_enclosedMethodName":"getFactorySourceCode","_enclosedMethodArgTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003corg.kie.pmml.api.exceptions.KiePMMLException\u003e","offset":3302} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":3308} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"populateKiePmmlFields","_attributes":["static","packageLocal"],"_argNames":["toPopulate","generatedClassesModelTypeMap"],"_argTypes":["com.github.javaparser.ast.body.FieldDeclaration","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"void","offset":3621} ({"_enclosedMethodName":"populateKiePmmlFields","_enclosedMethodArgTypes":["com.github.javaparser.ast.body.FieldDeclaration","java.util.Map\u003cjava.lang.String,java.lang.Boolean\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["entry"],"_argTypes":["java.util.Map.Entry\u003cjava.lang.String,java.lang.Boolean\u003e"],"_returnType":"java.util.function.Function\u003cjava.util.Map.Entry\u003cjava.lang.String,java.lang.Boolean\u003e,com.github.javaparser.ast.expr.Expression\u003e","offset":4828} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.factories.KiePMMLFactoryFactory","_attributes":["public"]},"_methodName":"getInstantiationExpression","_attributes":["public","static"],"_argNames":["kiePMMLModelClass","isInterpreted"],"_argTypes":["java.lang.String","boolean"],"_returnType":"com.github.javaparser.ast.expr.Expression","offset":4837} )))) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLFactoryModel","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["name","kmodulePackageName","sourcesMap"],"_argTypes":["java.lang.String","java.lang.String","java.util.Map\u003cjava.lang.String,java.lang.String\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLFactoryModel","offset":5750} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.KiePMMLModel","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModel","offset":1425} ({"_classDescription":{"_className":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","_attributes":["public","abstract"]},"_methodName":"new","_attributes":["protected"],"_argNames":["name","extensions"],"_argTypes":["java.lang.String","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLExtension\u003e"],"_returnType":"org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent","offset":2189} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":6043} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":6206} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"populateWithPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["toReturn","resource"],"_argTypes":["java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","org.kie.api.io.Resource"],"_returnType":"void","offset":6238} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":6677} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":7364} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMapperSource","_attributes":["public","static"],"_argNames":["fullRuleName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":7805} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getKiePMMLModelCompilationUnit","_attributes":["public","static"],"_argNames":["className","packageName","javaTemplate","modelClassName"],"_argTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":1608} ) ({"_enclosedMethodName":"getPMMLRuleMapperSource","_enclosedMethodArgTypes":["java.lang.String"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":1975} )) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":7882} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":8163} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":7364} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMapperFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMapperSource","_attributes":["public","static"],"_argNames":["fullRuleName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":7805} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":7882} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMapper","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":8163} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"addPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kiePMMLModel","generatedRuleMappers","sourcePath"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel","java.util.List\u003cjava.lang.String\u003e","java.lang.String"],"_returnType":"void","offset":6770} ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":8757} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"getPMMLRuleMappersSource","_attributes":["public","static"],"_argNames":["packageName","generatedRuleMappers"],"_argTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_returnType":"java.lang.String","offset":9069} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.JavaParserUtils","_attributes":["public"]},"_methodName":"getKiePMMLModelCompilationUnit","_attributes":["public","static"],"_argNames":["className","packageName","javaTemplate","modelClassName"],"_argTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String"],"_returnType":"com.github.javaparser.ast.CompilationUnit","offset":1695} ) ({"_enclosedMethodName":"getPMMLRuleMappersSource","_enclosedMethodArgTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cjava.lang.RuntimeException\u003e","offset":2075} ) ({"_enclosedMethodName":"getPMMLRuleMappersSource","_enclosedMethodArgTypes":["java.lang.String","java.util.List\u003cjava.lang.String\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.factories.PMMLRuleMappersFactory","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["generatedRuleMapper"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,com.github.javaparser.ast.expr.ObjectCreationExpr\u003e","offset":2276} )) ({"_classDescription":{"_className":"org.kie.pmml.commons.model.HasSourcesMap","_attributes":["public","abstract","interface"]},"_methodName":"addSourceMap","_attributes":["public","abstract"],"_argNames":["key","value"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"void","offset":9258} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":6368} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":4978} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":7084} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromResourcesWithConfigurations","_attributes":["public","static"],"_argNames":["kbuilderImpl","resourceWithConfigurations"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5144} ({"_enclosedMethodName":"getKiePMMLModelsLoadedFromResourcesWithConfigurations","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.Resource,java.util.stream.Stream\u003c? extends org.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":2766} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromResource","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2778} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadKiePMMLModelFactory","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelFactory","offset":3475} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":4375} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadKiePMMLModelFactory","_attributes":["private","static"],"_argNames":["classLoader","fullFactoryClassName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.commons.model.KiePMMLModelFactory","offset":4621} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"getKiePMMLModelsLoadedFromFactory","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModelFactory"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.pmml.commons.model.KiePMMLModelFactory"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3614} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":5830} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e","offset":6318} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappersClass","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.Optional\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMappers\u003e","offset":7923} )) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":6488} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["private","static"],"_argNames":["classLoader","packageName"],"_argTypes":["java.lang.ClassLoader","java.lang.String"],"_returnType":"java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e","offset":6318} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"populatePMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","kiePMMLModels","toPopulate"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":6488} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLLoaderService","_attributes":["public"]},"_methodName":"loadPMMLRuleMappers","_attributes":["static","packageLocal"],"_argNames":["kbuilderImpl","pmmlRuleMappers"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.evaluator.assembler.rulemapping.PMMLRuleMapper\u003e"],"_returnType":"void","offset":5904} ({"_classDescription":{"_className":"org.drools.modelcompiler.builder.KieBaseBuilder","_attributes":["public"]},"_methodName":"createKieBaseFromModel","_attributes":["public","static"],"_argNames":["models","options"],"_argTypes":["java.util.Collection\u003corg.drools.model.Model\u003e","org.kie.api.conf.KieBaseOption..."],"_returnType":"org.drools.kiesession.rulebase.InternalKnowledgeBase","offset":7098} ({"_classDescription":{"_className":"org.kie.api.KieServices","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.kie.api.KieServices","offset":2544} ) ({"_classDescription":{"_className":"org.kie.api.KieServices","_attributes":["public","abstract","interface"]},"_methodName":"newKieBaseConfiguration","_attributes":["public","abstract"],"_argNames":[],"_argTypes":[],"_returnType":"org.kie.api.KieBaseConfiguration","offset":2550} ) ({"_classDescription":{"_className":"org.drools.modelcompiler.builder.KieBaseBuilder","_attributes":["public"]},"_methodName":"createKieBaseFromModel","_attributes":["public","static"],"_argNames":["models","kieBaseConf"],"_argTypes":["java.util.Collection\u003corg.drools.model.Model\u003e","org.kie.api.KieBaseConfiguration"],"_returnType":"org.drools.kiesession.rulebase.InternalKnowledgeBase","offset":2747} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["kBase"],"_argTypes":["org.drools.kiesession.rulebase.InternalKnowledgeBase"],"_returnType":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","offset":7058} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["kBase","configuration"],"_argTypes":["org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl"],"_returnType":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","offset":6998} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"addPackage","_attributes":["public","synchronized"],"_argNames":["newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":7245} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":29752} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":29992} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":30054} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageRegistry","_attributes":["public"],"_argNames":["packageName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":30456} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","_attributes":["public","final"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder","kBase","configuration","typeBuilder","filterCondition","pkgRegistry","packageDescr"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.drools.kiesession.rulebase.InternalKnowledgeBase","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.builder.impl.TypeDeclarationBuilder","org.drools.compiler.builder.impl.KnowledgeBuilderImpl.AssetFilter","org.drools.compiler.compiler.PackageRegistry","org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","offset":30171} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.processors.PackageCompilationPhase","_attributes":["public","final"]},"_methodName":"process","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":30577} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.BuildResultCollectorImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["results"],"_argTypes":["java.util.Collection\u003c? extends org.kie.internal.builder.KnowledgeBuilderResult\u003e"],"_returnType":"void","offset":30613} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"merge","_attributes":["public"],"_argNames":["newDatas","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":30812} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DuplicateFunction","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["func","config"],"_argTypes":["org.drools.core.rule.Function","org.kie.internal.builder.KnowledgeBuilderConfiguration"],"_returnType":"org.drools.compiler.compiler.DuplicateFunction","offset":31164} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"addBuilderResult","_attributes":["public"],"_argNames":["result"],"_argTypes":["org.kie.internal.builder.KnowledgeBuilderResult"],"_returnType":"void","offset":31147} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addFunction","_attributes":["public","abstract"],"_argNames":["function"],"_argTypes":["org.drools.core.rule.Function"],"_returnType":"void","offset":31323} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"mergeStore","_attributes":["public"],"_argNames":["newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":31390} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onBeforeExecute","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"void","offset":31450} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"mergePackage","_attributes":["private"],"_argNames":["pkg","newPkg"],"_argTypes":["org.drools.core.definitions.InternalKnowledgePackage","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"void","offset":32257} )))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":3959} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsCompiledFromResourcesWithConfigurations","_attributes":["public","static"],"_argNames":["kbuilderImpl","resourceWithConfigurations"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":5283} ({"_enclosedMethodName":"getKiePMMLModelsCompiledFromResourcesWithConfigurations","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.Collection\u003corg.kie.api.io.ResourceWithConfiguration\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.Resource,java.util.stream.Stream\u003c? extends org.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":3721} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getKiePMMLModelsCompiledFromResource","_attributes":["public","static"],"_argNames":["kbuilderImpl","resource"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","org.kie.api.io.Resource"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":3733} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getCachedOrCreate","_attributes":["public"],"_argNames":["key","creator"],"_argTypes":["java.lang.String","java.util.function.Supplier\u003cT\u003e"],"_returnType":"T","offset":4412} ) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["public","static"],"_argNames":["resource"],"_argTypes":["org.kie.api.io.Resource"],"_returnType":"java.lang.String[]","offset":4604} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"getFactoryClassNamePackageName","_attributes":["static","packageLocal"],"_argNames":["sourcePath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String[]","offset":3687} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4325} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4394} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLCompilerService","_attributes":["public"]},"_methodName":"getFileName","_attributes":["static","packageLocal"],"_argNames":["fullPath"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4787} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["public","static"],"_argNames":["s"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":9533} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"of","_attributes":["static","packageLocal"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"org.drools.util.PortablePath","offset":1086} ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"normalizePath","_attributes":["private","static"],"_argNames":["s","isWindowsSeparator"],"_argTypes":["java.lang.String","boolean"],"_returnType":"java.lang.String","offset":1217} ) ({"_classDescription":{"_className":"org.drools.util.PortablePath","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["path"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.util.PortablePath","offset":1305} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["knowledgeBuilder"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl"],"_returnType":"org.kie.pmml.evaluator.assembler.implementations.HasKnowledgeBuilderImpl","offset":4875} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompiler","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModels","_attributes":["public","abstract"],"_argNames":["packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":4681} ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getKiePMMLModels","_attributes":["public"],"_argNames":["packageName","inputStream","fileName","hasClassloader"],"_argTypes":["java.lang.String","java.io.InputStream","java.lang.String","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2294} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"load","_attributes":["public","static"],"_argNames":["is","fileName"],"_argTypes":["java.io.InputStream","java.lang.String"],"_returnType":"org.dmg.pmml.PMML","offset":2624} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingModelName","_attributes":["static","packageLocal"],"_argNames":["model","fileName","i"],"_argTypes":["org.dmg.pmml.Model","java.lang.String","int"],"_returnType":"void","offset":2965} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3030} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingOutputFieldDataType","_attributes":["static","packageLocal"],"_argNames":["toPopulate","miningFields","dataFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.OutputField\u003e","java.util.List\u003corg.dmg.pmml.MiningField\u003e","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":12213} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingMiningTargetField","_attributes":["static","packageLocal"],"_argNames":["model","dataFields"],"_argTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_returnType":"void","offset":3097} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":4536} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetDataField","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003corg.dmg.pmml.DataField\u003e","offset":4696} ) ({"_enclosedMethodName":"populateMissingMiningTargetField","_enclosedMethodArgTypes":["org.dmg.pmml.Model","java.util.List\u003corg.dmg.pmml.DataField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.DataField\u003e","offset":4761} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getTargetMiningField","_attributes":["static","packageLocal"],"_argNames":["dataField"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"org.dmg.pmml.MiningField","offset":4867} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"correctTargetFields","_attributes":["static","packageLocal"],"_argNames":["targetMiningField","targets"],"_argTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_returnType":"void","offset":4992} ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.Target\u003e","offset":8798} ) ({"_enclosedMethodName":"correctTargetFields","_enclosedMethodArgTypes":["org.dmg.pmml.MiningField","org.dmg.pmml.Targets"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["targetField"],"_argTypes":["org.dmg.pmml.Target"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.Target\u003e","offset":8874} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":3162} ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.OutputField\u003e","offset":5486} ) ({"_enclosedMethodName":"populateMissingPredictedOutputFieldTarget","_enclosedMethodArgTypes":["org.dmg.pmml.Model"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["outputField"],"_argTypes":["org.dmg.pmml.OutputField"],"_returnType":"java.util.function.Consumer\u003corg.dmg.pmml.OutputField\u003e","offset":5732} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"getMiningTargetFields","_attributes":["static","packageLocal"],"_argNames":["miningFields"],"_argTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_returnType":"java.util.List\u003corg.dmg.pmml.MiningField\u003e","offset":5798} ({"_enclosedMethodName":"getMiningTargetFields","_enclosedMethodArgTypes":["java.util.List\u003corg.dmg.pmml.MiningField\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["miningField"],"_argTypes":["org.dmg.pmml.MiningField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.MiningField\u003e","offset":16065} )))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":3276} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectSegmentId","_attributes":["static","packageLocal"],"_argNames":["segment","modelName","i"],"_argTypes":["org.dmg.pmml.mining.Segment","java.lang.String","int"],"_returnType":"void","offset":9454} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingSegmentModelName","_attributes":["static","packageLocal"],"_argNames":["model","segmentId"],"_argTypes":["org.dmg.pmml.Model","java.lang.String"],"_returnType":"void","offset":9579} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingTargetFieldInSegment","_attributes":["static","packageLocal"],"_argNames":["parentMiningSchema","childrenModel"],"_argTypes":["org.dmg.pmml.MiningSchema","org.dmg.pmml.Model"],"_returnType":"void","offset":9648} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateMissingPredictedOutputFieldTarget","_attributes":["static","packageLocal"],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"void","offset":9735} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.utils.KiePMMLUtil","_attributes":["public"]},"_methodName":"populateCorrectMiningModel","_attributes":["static","packageLocal"],"_argNames":["miningModel"],"_argTypes":["org.dmg.pmml.mining.MiningModel"],"_returnType":"void","offset":9849} ))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"getModels","_attributes":["private"],"_argNames":["packageName","pmml","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2672} ({"_enclosedMethodName":"getModels","_enclosedMethodArgTypes":["java.lang.String","org.dmg.pmml.PMML","org.kie.pmml.commons.model.HasClassLoader"],"_classDescription":{"_className":"org.kie.pmml.compilation.executor.PMMLCompilerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["model"],"_argTypes":["org.dmg.pmml.Model"],"_returnType":"java.util.function.Function\u003corg.dmg.pmml.Model,java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e\u003e","offset":7032} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"fromGeneratedPackageNameAndFields","_attributes":["public","static"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO\u003cT\u003e","offset":7159} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["packageName","pmml","model","hasClassloader"],"_argTypes":["java.lang.String","org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":6378} ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedPackageName","_attributes":["public","static"],"_argNames":["modelName"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":5450} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":5416} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary","model"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary","org.dmg.pmml.Model"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":2989} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getFieldsFromDataDictionaryAndTransformationDictionary","_attributes":["public","static"],"_argNames":["dataDictionary","transformationDictionary"],"_argTypes":["org.dmg.pmml.DataDictionary","org.dmg.pmml.TransformationDictionary"],"_returnType":"java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","offset":25924} )) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"new","_attributes":["private"],"_argNames":["pmml","model","hasClassloader","packageName","fields"],"_argTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_returnType":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","offset":2918} ({"_classDescription":{"_className":"org.kie.pmml.api.enums.PMML_MODEL","_attributes":["public","final"]},"_methodName":"byName","_attributes":["public","static"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.kie.pmml.api.enums.PMML_MODEL","offset":4100} ) ({"_classDescription":{"_className":"org.kie.pmml.commons.utils.KiePMMLModelUtils","_attributes":["public"]},"_methodName":"getSanitizedClassName","_attributes":["public","static"],"_argNames":["input"],"_argTypes":["java.lang.String"],"_returnType":"java.lang.String","offset":4168} ) ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.utils.ModelUtils","_attributes":["public"]},"_methodName":"getTargetFieldName","_attributes":["public","static"],"_argNames":["fields","model"],"_argTypes":["java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e","org.dmg.pmml.Model"],"_returnType":"java.util.Optional\u003cjava.lang.String\u003e","offset":4364} ) ({"_enclosedMethodName":"new","_enclosedMethodArgTypes":["org.dmg.pmml.PMML","T","org.kie.pmml.commons.model.HasClassLoader","java.lang.String","java.util.List\u003corg.dmg.pmml.Field\u003c?\u003e\u003e"],"_classDescription":{"_className":"org.kie.pmml.compilation.api.dto.CommonCompilationDTO","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["field"],"_argTypes":["org.dmg.pmml.DataField"],"_returnType":"java.util.function.Predicate\u003corg.dmg.pmml.DataField\u003e","offset":4644} ))))) ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getFromCommonDataAndTransformationDictionaryAndModel","_attributes":["public","static"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_returnType":"java.util.Optional\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e","offset":7346} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"getModelImplementationProviderStream","_attributes":["private","static"],"_argNames":["pmmlMODEL"],"_argTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_returnType":"java.util.stream.Stream\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2115} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProviderFinder","_attributes":["public","abstract","interface"]},"_methodName":"getImplementations","_attributes":["public","abstract"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":5920} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getImplementations","_attributes":["public"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.List\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":1631} ({"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"getProviders","_attributes":["private"],"_argNames":["refresh"],"_argTypes":["boolean"],"_returnType":"java.util.Iterator\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003e","offset":1861} ) ({"_enclosedMethodName":"getImplementations","_enclosedMethodArgTypes":["boolean"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.ModelImplementationProviderFinderImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["provider"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Consumer\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":2070} ))) ({"_enclosedMethodName":"getModelImplementationProviderStream","_enclosedMethodArgTypes":["org.kie.pmml.api.enums.PMML_MODEL"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003cT,E\u003e"],"_returnType":"java.util.function.Predicate\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003cT,E\u003e\u003e","offset":6028} )) ({"_enclosedMethodName":"getFromCommonDataAndTransformationDictionaryAndModel","_enclosedMethodArgTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO"],"_classDescription":{"_className":"org.kie.pmml.compilation.commons.implementations.KiePMMLModelRetriever","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["implementation"],"_argTypes":["org.kie.pmml.compilation.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"java.util.function.Function\u003corg.kie.pmml.compiler.api.provider.ModelImplementationProvider\u003corg.dmg.pmml.Model,org.kie.pmml.commons.model.KiePMMLModel\u003e,org.kie.pmml.commons.model.KiePMMLModel\u003e","offset":2205} ({"_classDescription":{"_className":"org.kie.pmml.compilation.api.provider.ModelImplementationProvider","_attributes":["public","abstract","interface"]},"_methodName":"getKiePMMLModel","_attributes":["public","abstract"],"_argNames":["compilationDTO"],"_argTypes":["org.kie.pmml.compilation.api.dto.CompilationDTO\u003cT\u003e"],"_returnType":"E","offset":2238} ))))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.KiePMMLException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.KiePMMLException","offset":2794} ) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":2957} ))) ({"_classDescription":{"_className":"org.kie.pmml.api.exceptions.ExternalException","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["message","cause"],"_argTypes":["java.lang.String","java.lang.Throwable"],"_returnType":"org.kie.pmml.api.exceptions.ExternalException","offset":4971} )))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":5391} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} ))) ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"addModels","_attributes":["protected"],"_argNames":["kbuilderImpl","toAdd"],"_argTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":7084} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":6545} ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["namespace","documentation"],"_argTypes":["java.lang.String","java.lang.String"],"_returnType":"org.drools.drl.ast.descr.PackageDescr","offset":2563} )) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":6651} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getOrCreatePackageRegistry","_attributes":["public"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":27845} ({"_classDescription":{"_className":"org.drools.util.StringUtils","_attributes":["public"]},"_methodName":"isEmpty","_attributes":["public","static"],"_argNames":["str"],"_argTypes":["java.lang.CharSequence"],"_returnType":"boolean","offset":3482} ) ({"_enclosedMethodName":"getOrCreatePackageRegistry","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,org.drools.compiler.compiler.PackageRegistry\u003e","offset":3685} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"createPackageRegistry","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":3693} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"initPackage","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"void","offset":4057} ({"_enclosedMethodName":"initPackage","_enclosedMethodArgTypes":["org.drools.drl.ast.descr.PackageDescr"],"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["k"],"_argTypes":["java.lang.String"],"_returnType":"java.util.function.Function\u003cjava.lang.String,java.util.List\u003corg.drools.drl.ast.descr.PackageDescr\u003e\u003e","offset":6051} ) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.PackageDescr","_attributes":["public"]},"_methodName":"addAllImports","_attributes":["public"],"_argNames":["importEntries"],"_argTypes":["java.util.Collection\u003corg.drools.drl.ast.descr.ImportDescr\u003e"],"_returnType":"void","offset":6402} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"get","_attributes":["public"],"_argNames":["namespace"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e","offset":6640} ) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageAttributeManagerImpl","_attributes":["public"]},"_methodName":"put","_attributes":["public"],"_argNames":["namespace","pkgAttributes"],"_argTypes":["java.lang.String","java.util.Map\u003cjava.lang.String,org.drools.drl.ast.descr.AttributeDescr\u003e"],"_returnType":"void","offset":6803} )) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"getPackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4331} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"get","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"org.drools.core.reteoo.CoreComponentFactory","offset":4501} ) ({"_classDescription":{"_className":"org.drools.core.reteoo.CoreComponentFactory","_attributes":["public","abstract","interface"]},"_methodName":"createKnowledgePackage","_attributes":["public","abstract"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.definitions.InternalKnowledgePackage","offset":4507} ) ({"_classDescription":{"_className":"org.drools.core.base.ClassFieldAccessorCache","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["classLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"org.drools.core.base.ClassFieldAccessorCache","offset":4600} ) ({"_classDescription":{"_className":"org.drools.core.impl.InternalRuleBase","_attributes":["public","abstract","interface"]},"_methodName":"addPackage","_attributes":["public","abstract"],"_argNames":["pkg"],"_argTypes":["org.kie.api.definition.KiePackage"],"_returnType":"java.util.concurrent.Future\u003corg.kie.api.definition.KiePackage\u003e","offset":4822} ) ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeRegistry","_attributes":["public"]},"_methodName":"onAdd","_attributes":["public"],"_argNames":["rootClassLoader"],"_argTypes":["java.lang.ClassLoader"],"_returnType":"void","offset":5112} ({"_classDescription":{"_className":"org.drools.core.rule.DialectRuntimeData","_attributes":["public","abstract","interface"]},"_methodName":"onAdd","_attributes":["public","abstract"],"_argNames":["dialectRuntimeRegistry","rootClassLoader"],"_argTypes":["org.drools.core.rule.DialectRuntimeRegistry","java.lang.ClassLoader"],"_returnType":"void","offset":2791} )) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.PackageRegistry","offset":5199} ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","_attributes":["public"]},"_methodName":"buildDialectRegistry","_attributes":["public"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.DialectCompiletimeRegistry","offset":1421} ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectConfiguration","_attributes":["public","abstract","interface"]},"_methodName":"newDialect","_attributes":["public","abstract"],"_argNames":["rootClassLoader","pkgConf","pkgRegistry","pkg"],"_argTypes":["java.lang.ClassLoader","org.drools.compiler.builder.impl.KnowledgeBuilderConfigurationImpl","org.drools.compiler.compiler.PackageRegistry","org.drools.core.definitions.InternalKnowledgePackage"],"_returnType":"org.drools.compiler.compiler.Dialect","offset":18547} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addDialect","_attributes":["public"],"_argNames":["name","dialect"],"_argTypes":["java.lang.String","org.drools.compiler.compiler.Dialect"],"_returnType":"void","offset":18624} ))) ({"_classDescription":{"_className":"org.drools.drl.ast.descr.ImportDescr","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["clazzName"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.drl.ast.descr.ImportDescr","offset":5337} ) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":5327} ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":2231} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.DialectCompiletimeRegistry","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":2312} ({"_classDescription":{"_className":"org.drools.compiler.compiler.Dialect","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDescr"],"_argTypes":["org.drools.drl.ast.descr.ImportDescr"],"_returnType":"void","offset":3022} ))) ({"_classDescription":{"_className":"org.drools.compiler.compiler.PackageRegistry","_attributes":["public"]},"_methodName":"registerImport","_attributes":["public"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":5484} ({"_classDescription":{"_className":"org.drools.core.rule.ImportDeclaration","_attributes":["public"]},"_methodName":"new","_attributes":["public"],"_argNames":["target"],"_argTypes":["java.lang.String"],"_returnType":"org.drools.core.rule.ImportDeclaration","offset":2423} ) ({"_classDescription":{"_className":"org.drools.core.definitions.InternalKnowledgePackage","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":2413} ({"_classDescription":{"_className":"org.drools.core.definitions.impl.KnowledgePackageImpl","_attributes":["public"]},"_methodName":"addImport","_attributes":["public"],"_argNames":["importDecl"],"_argTypes":["org.drools.core.rule.ImportDeclaration"],"_returnType":"void","offset":11974} ({"_classDescription":{"_className":"org.drools.util.TypeResolver","_attributes":["public","abstract","interface"]},"_methodName":"addImport","_attributes":["public","abstract"],"_argNames":["importEntry"],"_argTypes":["java.lang.String"],"_returnType":"void","offset":12155} )))) ({"_classDescription":{"_className":"org.drools.compiler.builder.impl.PackageRegistryManagerImpl","_attributes":["public"]},"_methodName":"getPackageDialect","_attributes":["private"],"_argNames":["packageDescr"],"_argTypes":["org.drools.drl.ast.descr.PackageDescr"],"_returnType":"java.lang.String","offset":5567} ))))) ({"_enclosedMethodName":"addModels","_enclosedMethodArgTypes":["org.drools.compiler.builder.impl.KnowledgeBuilderImpl","java.util.List\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.service.PMMLAssemblerService","_attributes":["public"]},"_methodName":"λ→","_attributes":[],"_argNames":["rtp"],"_argTypes":["org.kie.api.io.ResourceType"],"_returnType":"java.util.function.Function\u003corg.kie.api.io.ResourceType,org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl\u003e","offset":6909} ) ({"_classDescription":{"_className":"org.drools.core.definitions.ResourceTypePackageRegistry","_attributes":["public"]},"_methodName":"computeIfAbsent","_attributes":["public"],"_argNames":["resourceType","mappingFunction"],"_argTypes":["org.kie.api.io.ResourceType","java.util.function.Function\u003c? super org.kie.api.io.ResourceType,T\u003e"],"_returnType":"T","offset":6874} ) ({"_classDescription":{"_className":"PMMLPackage","_attributes":["public","abstract","interface"]},"_methodName":"addAll","_attributes":["public","abstract"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":6960} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"addAll","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["java.util.Collection\u003corg.kie.pmml.commons.model.KiePMMLModel\u003e"],"_returnType":"void","offset":2147} ({"_classDescription":{"_className":"org.kie.pmml.evaluator.assembler.container.PMMLPackageImpl","_attributes":["public"]},"_methodName":"add","_attributes":["public"],"_argNames":["toAdd"],"_argTypes":["org.kie.pmml.commons.model.KiePMMLModel"],"_returnType":"void","offset":2210} )))))) diff --git a/efesto/efesto-common-utils/pom.xml b/efesto/efesto-common-utils/pom.xml index 9477df1d244..d04739c0653 100644 --- a/efesto/efesto-common-utils/pom.xml +++ b/efesto/efesto-common-utils/pom.xml @@ -1,4 +1,24 @@ + @@ -7,13 +27,14 @@ org.kie efesto - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT efesto-common-utils Efesto :: Common :: Utils + org.drools.efesto.commonutils false diff --git a/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/CommonCodegenUtils.java b/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/CommonCodegenUtils.java index daf14cfb783..2a7006cf92a 100644 --- a/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/CommonCodegenUtils.java +++ b/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/CommonCodegenUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.utils; diff --git a/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/JavaParserUtils.java b/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/JavaParserUtils.java index 0a5522bb923..269fe1e4b82 100644 --- a/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/JavaParserUtils.java +++ b/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/JavaParserUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.utils; diff --git a/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/PackageClassNameUtils.java b/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/PackageClassNameUtils.java index 40488d9ee39..c39124826f8 100644 --- a/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/PackageClassNameUtils.java +++ b/efesto/efesto-common-utils/src/main/java/org/kie/efesto/common/utils/PackageClassNameUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.utils; diff --git a/efesto/efesto-core/efesto-common-api/pom.xml b/efesto/efesto-core/efesto-common-api/pom.xml index 9bc23668d25..4abc6af3351 100644 --- a/efesto/efesto-core/efesto-common-api/pom.xml +++ b/efesto/efesto-core/efesto-common-api/pom.xml @@ -1,4 +1,24 @@ + @@ -7,13 +27,14 @@ org.kie efesto-core - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT efesto-common-api Efesto :: Common :: Api + org.drools.efesto.core.commonapi false diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/cache/EfestoClassKey.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/cache/EfestoClassKey.java index ab7fab5cf59..32292db1392 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/cache/EfestoClassKey.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/cache/EfestoClassKey.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.api.cache; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/cache/EfestoIdentifierClassKey.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/cache/EfestoIdentifierClassKey.java index 0f769327372..92563d0f55c 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/cache/EfestoIdentifierClassKey.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/cache/EfestoIdentifierClassKey.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.api.cache; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/constants/Constants.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/constants/Constants.java index 992cb085595..bd95c469852 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/constants/Constants.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/constants/Constants.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.constants; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/exceptions/KieEfestoCommonException.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/exceptions/KieEfestoCommonException.java index 699563a6794..ce1fe65b1c8 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/exceptions/KieEfestoCommonException.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/exceptions/KieEfestoCommonException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.exceptions; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/AppRoot.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/AppRoot.java index 415d095ec4a..233337a4674 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/AppRoot.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/AppRoot.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.api.identifiers; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ComponentRoot.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ComponentRoot.java index a578506d24c..69bacd31382 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ComponentRoot.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ComponentRoot.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; /** diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/EfestoAppRoot.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/EfestoAppRoot.java index 94a1c4def05..b1867129c45 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/EfestoAppRoot.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/EfestoAppRoot.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.api.identifiers; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/EfestoComponentRoot.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/EfestoComponentRoot.java index 21aa034ee3a..68e0999c4d2 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/EfestoComponentRoot.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/EfestoComponentRoot.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; /** diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/Id.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/Id.java index 41900ef2c12..795143de6fb 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/Id.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/Id.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; /** diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalId.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalId.java index 9cdc6b71c97..34696307e52 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalId.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalId.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; /** diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalUri.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalUri.java index a4fbd8d3153..916ab22c8da 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalUri.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalUri.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; import java.io.UnsupportedEncodingException; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalUriId.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalUriId.java index 17289c11fe6..68bf0758949 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalUriId.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/LocalUriId.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; import java.util.Objects; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ModelLocalUriId.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ModelLocalUriId.java index d06e4ae8fb7..bd44d4a55ea 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ModelLocalUriId.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ModelLocalUriId.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ReflectiveAppRoot.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ReflectiveAppRoot.java index f599e48d3a4..19ed00d3103 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ReflectiveAppRoot.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/ReflectiveAppRoot.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; /** diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/RemoteId.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/RemoteId.java index 096fb812970..7f692d35ead 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/RemoteId.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/identifiers/RemoteId.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; /** diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/io/IndexFile.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/io/IndexFile.java index 7ac7f3e3575..ecef13ebe5a 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/io/IndexFile.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/io/IndexFile.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.api.io; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/io/MemoryFile.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/io/MemoryFile.java index c500dc77a0c..6f13d277dd2 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/io/MemoryFile.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/io/MemoryFile.java @@ -1,16 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ package org.kie.efesto.common.api.io; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/listener/EfestoListener.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/listener/EfestoListener.java index fb6c542007c..e5b2738be1b 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/listener/EfestoListener.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/listener/EfestoListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.listener; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/EfestoContext.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/EfestoContext.java index c4a40ee0dcd..8e3c02863c6 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/EfestoContext.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/EfestoContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.efesto.common.api.model; import java.util.Map; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedClassResource.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedClassResource.java index c30d11cb614..fc009682930 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedClassResource.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedClassResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.api.model; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedClassesRepository.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedClassesRepository.java index 371318ba3c7..a722157c3e4 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedClassesRepository.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedClassesRepository.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.api.model; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedExecutableResource.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedExecutableResource.java index d82e0169ba7..41a903aa00c 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedExecutableResource.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedExecutableResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.api.model; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedRedirectResource.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedRedirectResource.java index 224bf09a86e..21d479f5970 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedRedirectResource.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedRedirectResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.common.api.model; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedResource.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedResource.java index 5855614aa49..666c05b8972 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedResource.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.model; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedResources.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedResources.java index 0418604b00f..1082cb9fbf2 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedResources.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/model/GeneratedResources.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.model; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/CollectionUtils.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/CollectionUtils.java index a598a98c2b5..abf43401de0 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/CollectionUtils.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/CollectionUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.efesto.common.api.utils; import java.util.Optional; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/EfestoAppRootHelper.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/EfestoAppRootHelper.java index 112ccc80cb3..b6c65cb7ce6 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/EfestoAppRootHelper.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/EfestoAppRootHelper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.utils; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/FileNameUtils.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/FileNameUtils.java index b3fc0691650..ac30ce8764b 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/FileNameUtils.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/FileNameUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.utils; diff --git a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/MemoryFileUtils.java b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/MemoryFileUtils.java index f4b86d099e4..d9121b6b3aa 100644 --- a/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/MemoryFileUtils.java +++ b/efesto/efesto-core/efesto-common-api/src/main/java/org/kie/efesto/common/api/utils/MemoryFileUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.utils; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/cache/EfestoClassKeyTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/cache/EfestoClassKeyTest.java index 5994aeff787..bb3cf73d3ac 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/cache/EfestoClassKeyTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/cache/EfestoClassKeyTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.cache; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/cache/EfestoIdentifierClassKeyTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/cache/EfestoIdentifierClassKeyTest.java index 6570dc94dae..60ef1db59fc 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/cache/EfestoIdentifierClassKeyTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/cache/EfestoIdentifierClassKeyTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.cache; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/AppRootTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/AppRootTest.java index 3e2427bfcf7..9696a102d83 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/AppRootTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/AppRootTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; import org.junit.jupiter.api.Test; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/LocalUriTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/LocalUriTest.java index a076b7fa58a..35202f4ae3a 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/LocalUriTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/LocalUriTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.efesto.common.api.identifiers; import org.junit.jupiter.api.Test; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/ModelLocalUriIdTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/ModelLocalUriIdTest.java index 8f2d0157100..862a29f77b7 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/ModelLocalUriIdTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/ModelLocalUriIdTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/ReflectiveAppRootTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/ReflectiveAppRootTest.java index f179cbf629d..8c94454b75c 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/ReflectiveAppRootTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/ReflectiveAppRootTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentFoo.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentFoo.java index 036c0db3380..c2016c2d65a 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentFoo.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentFoo.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentRootA.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentRootA.java index 1b150003803..902163871d5 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentRootA.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentRootA.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentRootB.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentRootB.java index a5f81a6e4b9..a512c892854 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentRootB.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/ComponentRootB.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/EfestoComponentRootBar.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/EfestoComponentRootBar.java index 1fe060d984e..8b18fce305c 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/EfestoComponentRootBar.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/EfestoComponentRootBar.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdA.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdA.java index 38393bb9492..b66ac6dea89 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdA.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdA.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdB.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdB.java index f1b79687feb..f3f7c6540a1 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdB.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdB.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdFoo.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdFoo.java index 24494554587..992295f4230 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdFoo.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/identifiers/componentroots/LocalComponentIdFoo.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/io/IndexFileTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/io/IndexFileTest.java index 2d3f7e1c8f1..7d6b1e196d3 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/io/IndexFileTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/io/IndexFileTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.io; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/io/MemoryFileTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/io/MemoryFileTest.java index 8d16cd3e7ca..f796a2d192d 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/io/MemoryFileTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/io/MemoryFileTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.io; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/model/GeneratedResourcesTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/model/GeneratedResourcesTest.java index 5af96ec4708..b5f146a9415 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/model/GeneratedResourcesTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/model/GeneratedResourcesTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.model; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/utils/FileNameUtilsTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/utils/FileNameUtilsTest.java index 94517a20755..9d593baccfc 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/utils/FileNameUtilsTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/utils/FileNameUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.utils; diff --git a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/utils/MemoryFileUtilsTest.java b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/utils/MemoryFileUtilsTest.java index b066ba112a9..f4a54f83f00 100644 --- a/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/utils/MemoryFileUtilsTest.java +++ b/efesto/efesto-core/efesto-common-api/src/test/java/org/kie/efesto/common/api/utils/MemoryFileUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.api.utils; diff --git a/efesto/efesto-core/efesto-common-core/pom.xml b/efesto/efesto-core/efesto-common-core/pom.xml index d5a34ce946f..a1b8d8dfddf 100644 --- a/efesto/efesto-core/efesto-common-core/pom.xml +++ b/efesto/efesto-core/efesto-common-core/pom.xml @@ -1,4 +1,24 @@ + @@ -7,13 +27,14 @@ org.kie efesto-core - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT efesto-common-core Efesto :: Common :: Core + org.drools.efesto.core.commoncore false diff --git a/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdDeSerializer.java b/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdDeSerializer.java index 03f55ca1ede..81d3841fd44 100644 --- a/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdDeSerializer.java +++ b/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdDeSerializer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.serialization; diff --git a/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdSerializer.java b/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdSerializer.java index 9840785e6cb..beb2bc751b0 100644 --- a/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdSerializer.java +++ b/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdSerializer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.serialization; diff --git a/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/utils/JSONUtils.java b/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/utils/JSONUtils.java index c06c275eaf5..e802a120ef6 100644 --- a/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/utils/JSONUtils.java +++ b/efesto/efesto-core/efesto-common-core/src/main/java/org/kie/efesto/common/core/utils/JSONUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.utils; diff --git a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentFoo.java b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentFoo.java index d80241a0452..6a9108fe32d 100644 --- a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentFoo.java +++ b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentFoo.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentRootA.java b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentRootA.java index 2723e054d72..4fd5b86376c 100644 --- a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentRootA.java +++ b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentRootA.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentRootB.java b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentRootB.java index 49feea0ca58..bbf7d030e2d 100644 --- a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentRootB.java +++ b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/ComponentRootB.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdA.java b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdA.java index 19b9748bb20..a847785539b 100644 --- a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdA.java +++ b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdA.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdB.java b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdB.java index 42a56555f9d..4fe818e204f 100644 --- a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdB.java +++ b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdB.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdFoo.java b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdFoo.java index 557894aece7..b671554424f 100644 --- a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdFoo.java +++ b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/identifiers/componentroots/LocalComponentIdFoo.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.identifiers.componentroots; diff --git a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdDeSerializerTest.java b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdDeSerializerTest.java index 1dfd88c0e93..88bab217122 100644 --- a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdDeSerializerTest.java +++ b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdDeSerializerTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.serialization; diff --git a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdSerializerTest.java b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdSerializerTest.java index 2673417e30c..85f48ce6eb3 100644 --- a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdSerializerTest.java +++ b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/serialization/ModelLocalUriIdSerializerTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.serialization; diff --git a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/utils/JSONUtilsTest.java b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/utils/JSONUtilsTest.java index e7505c666d1..9be10a73828 100644 --- a/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/utils/JSONUtilsTest.java +++ b/efesto/efesto-core/efesto-common-core/src/test/java/org/kie/efesto/common/core/utils/JSONUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.common.core.utils; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/pom.xml b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/pom.xml index 48bb161bc2b..c2d30943af4 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/pom.xml +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/pom.xml @@ -1,4 +1,24 @@ + @@ -7,13 +27,14 @@ org.kie efesto-compilation-manager - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT efesto-compilation-manager-api Efesto :: Compilation :: Manager :: Api + org.drools.efesto.core.compilationmanager.api false diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/exceptions/EfestoCompilationManagerException.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/exceptions/EfestoCompilationManagerException.java index fc86d285cf1..38ecb197946 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/exceptions/EfestoCompilationManagerException.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/exceptions/EfestoCompilationManagerException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.exceptions; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/exceptions/KieCompilerServiceException.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/exceptions/KieCompilerServiceException.java index 7cb4397dce7..50cf9f7a9a9 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/exceptions/KieCompilerServiceException.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/exceptions/KieCompilerServiceException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.exceptions; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/AbstractEfestoCallableCompilationOutput.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/AbstractEfestoCallableCompilationOutput.java index e9746908f2b..6e37a96be15 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/AbstractEfestoCallableCompilationOutput.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/AbstractEfestoCallableCompilationOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCallableOutput.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCallableOutput.java index f88136e82e0..5c88b3dea46 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCallableOutput.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCallableOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCallableOutputClassesContainer.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCallableOutputClassesContainer.java index 1f101b4d655..30619c92219 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCallableOutputClassesContainer.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCallableOutputClassesContainer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoClassesContainer.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoClassesContainer.java index 87ef43eba1f..c4fd4452dd2 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoClassesContainer.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoClassesContainer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCompilationContext.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCompilationContext.java index 2890c0e9e34..9e88e91db3d 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCompilationContext.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCompilationContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCompilationOutput.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCompilationOutput.java index 16dd1597f9c..f054d302782 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCompilationOutput.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoCompilationOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoFileResource.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoFileResource.java index aa52a8bf68f..365bc6a2b9d 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoFileResource.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoFileResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoFileSetResource.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoFileSetResource.java index f8cf74a7854..b8bd1620911 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoFileSetResource.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoFileSetResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoInputStreamResource.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoInputStreamResource.java index f41a7e0c102..66aadb5e50f 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoInputStreamResource.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoInputStreamResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoOutputClassesContainer.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoOutputClassesContainer.java index 375c96958ef..76146b183a5 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoOutputClassesContainer.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoOutputClassesContainer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoRedirectOutput.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoRedirectOutput.java index 95c0288b6c7..5cef0144b06 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoRedirectOutput.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoRedirectOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoResource.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoResource.java index 9933459ec6b..fbc58cb1563 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoResource.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoSetResource.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoSetResource.java index 355953b0049..0fa462e7420 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoSetResource.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/model/EfestoSetResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/service/CompilationManager.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/service/CompilationManager.java index 26e5f10b057..b7be7ae902f 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/service/CompilationManager.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/service/CompilationManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.service; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/service/KieCompilerService.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/service/KieCompilerService.java index ece53833c59..1d0f489fc6d 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/service/KieCompilerService.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/service/KieCompilerService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.service; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/utils/SPIUtils.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/utils/SPIUtils.java index 6c902282a96..a40b49efcfd 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/utils/SPIUtils.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/main/java/org/kie/efesto/compilationmanager/api/utils/SPIUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.utils; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/test/java/org/kie/efesto/compilationmanager/api/model/EfestoRedirectOutputTest.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/test/java/org/kie/efesto/compilationmanager/api/model/EfestoRedirectOutputTest.java index 22379cab61f..7a4aad85afe 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/test/java/org/kie/efesto/compilationmanager/api/model/EfestoRedirectOutputTest.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-api/src/test/java/org/kie/efesto/compilationmanager/api/model/EfestoRedirectOutputTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.api.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/pom.xml b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/pom.xml index 7fd0233f372..014ef2bd832 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/pom.xml +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/pom.xml @@ -1,4 +1,24 @@ + @@ -19,13 +39,14 @@ org.kie efesto-compilation-manager - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT efesto-compilation-manager-core Efesto :: Compilation :: Manager :: Core + org.drools.efesto.core.compilationmanager.core false diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/model/EfestoCompilationContextImpl.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/model/EfestoCompilationContextImpl.java index a4a02496600..c02893b19da 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/model/EfestoCompilationContextImpl.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/model/EfestoCompilationContextImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/model/EfestoCompilationContextUtils.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/model/EfestoCompilationContextUtils.java index a14b32ab4fc..3238cc96852 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/model/EfestoCompilationContextUtils.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/model/EfestoCompilationContextUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.model; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/service/CompilationManagerImpl.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/service/CompilationManagerImpl.java index 17c333ee82a..de86f3aabb2 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/service/CompilationManagerImpl.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/service/CompilationManagerImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.service; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/utils/CompilationManagerUtils.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/utils/CompilationManagerUtils.java index c08086815aa..064a89955d1 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/utils/CompilationManagerUtils.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/main/java/org/kie/efesto/compilationmanager/core/utils/CompilationManagerUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.utils; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/AbstractMockKieCompilerService.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/AbstractMockKieCompilerService.java index 07d98eba585..28644179f37 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/AbstractMockKieCompilerService.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/AbstractMockKieCompilerService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/AbstractMockOutput.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/AbstractMockOutput.java index 79d53bb6a5a..09af35e2b80 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/AbstractMockOutput.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/AbstractMockOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoCallableOutput.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoCallableOutput.java index c4ad2ac8a41..93c45c7f1ae 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoCallableOutput.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoCallableOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoCallableOutputE.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoCallableOutputE.java index 8f97119f887..aba6c4ed22c 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoCallableOutputE.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoCallableOutputE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoInputF.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoInputF.java index 66d837ecab3..ecb33881f35 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoInputF.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoInputF.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputA.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputA.java index 7f12ad7a999..25339bf476a 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputA.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputA.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputB.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputB.java index da14b204836..c03c8414f42 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputB.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputB.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputC.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputC.java index 685db93575d..76d2765d118 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputC.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputC.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputD.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputD.java index dfbca0569cb..ba3654aa12c 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputD.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputD.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputE.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputE.java index f782fe2cc6f..f2db69815a9 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputE.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockEfestoRedirectOutputE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceAB.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceAB.java index bdfb555e7b5..80c9aaa5805 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceAB.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceAB.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceC.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceC.java index b0915f4bd1d..f457c6b926a 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceC.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceC.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceE.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceE.java index ac4c5047792..8bee5b848a9 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceE.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceF.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceF.java index 8053a4fbd9a..1e381e6d4ce 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceF.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/mocks/MockKieCompilerServiceF.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.mocks; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/service/TestCompilationManagerImpl.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/service/TestCompilationManagerImpl.java index 199c0566318..d99f4fd0811 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/service/TestCompilationManagerImpl.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/service/TestCompilationManagerImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.service; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/utils/CompilationManagerUtilsTest.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/utils/CompilationManagerUtilsTest.java index 58b99f873c2..184900b926a 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/utils/CompilationManagerUtilsTest.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/utils/CompilationManagerUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.utils; diff --git a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/utils/TestSPIUtils.java b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/utils/TestSPIUtils.java index 7b2cafbab59..d2253da495d 100644 --- a/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/utils/TestSPIUtils.java +++ b/efesto/efesto-core/efesto-compilation-manager/efesto-compilation-manager-core/src/test/java/org/kie/efesto/compilationmanager/core/utils/TestSPIUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.compilationmanager.core.utils; diff --git a/efesto/efesto-core/efesto-compilation-manager/pom.xml b/efesto/efesto-core/efesto-compilation-manager/pom.xml index e414f297464..76bf18454e3 100644 --- a/efesto/efesto-core/efesto-compilation-manager/pom.xml +++ b/efesto/efesto-core/efesto-compilation-manager/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie efesto-core - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT pom diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/pom.xml b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/pom.xml index 190aa9677f4..1a86dfa3b0b 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/pom.xml +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/pom.xml @@ -1,4 +1,24 @@ + @@ -7,13 +27,14 @@ org.kie efesto-runtime-manager - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT efesto-runtime-manager-api Efesto :: Runtime :: Manager :: Api + org.drools.efesto.core.runtimemanager.api false diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/exceptions/EfestoRuntimeManagerException.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/exceptions/EfestoRuntimeManagerException.java index fb37ae664e4..672a92748c2 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/exceptions/EfestoRuntimeManagerException.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/exceptions/EfestoRuntimeManagerException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.exceptions; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/exceptions/KieRuntimeServiceException.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/exceptions/KieRuntimeServiceException.java index ccb9090267c..7de6a11dd4c 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/exceptions/KieRuntimeServiceException.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/exceptions/KieRuntimeServiceException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.exceptions; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/AbstractEfestoOutput.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/AbstractEfestoOutput.java index 0c212787776..4567150c429 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/AbstractEfestoOutput.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/AbstractEfestoOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.model; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/BaseEfestoInput.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/BaseEfestoInput.java index e9e6bd746ab..c485d7683b1 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/BaseEfestoInput.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/BaseEfestoInput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.model; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoInput.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoInput.java index fc8bffbcc0e..a4fd64982bc 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoInput.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoInput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.model; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoMapInputDTO.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoMapInputDTO.java index 85bb1f5505a..e596772dfb4 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoMapInputDTO.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoMapInputDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.model; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoOriginalTypeGeneratedType.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoOriginalTypeGeneratedType.java index cbdc5741efd..9b1d64e940f 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoOriginalTypeGeneratedType.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoOriginalTypeGeneratedType.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.efesto.runtimemanager.api.model; import java.io.Serializable; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoOutput.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoOutput.java index c7c2f500a40..68f6c9955de 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoOutput.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.model; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoRuntimeContext.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoRuntimeContext.java index 8a004e2155e..e3d5e2ed6a3 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoRuntimeContext.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/model/EfestoRuntimeContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.efesto.runtimemanager.api.model; import java.util.ServiceLoader; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/service/KieRuntimeService.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/service/KieRuntimeService.java index fe58593a618..32ea77d9b32 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/service/KieRuntimeService.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/service/KieRuntimeService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.service; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/service/RuntimeManager.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/service/RuntimeManager.java index 2525b00237f..a7ddff48cb9 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/service/RuntimeManager.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/service/RuntimeManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.service; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/utils/GeneratedResourceUtils.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/utils/GeneratedResourceUtils.java index 310afd14f83..b020f6b7caf 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/utils/GeneratedResourceUtils.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/utils/GeneratedResourceUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.utils; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/utils/SPIUtils.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/utils/SPIUtils.java index 75f959d967d..9a3b19e2ada 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/utils/SPIUtils.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/main/java/org/kie/efesto/runtimemanager/api/utils/SPIUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.utils; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/test/java/org/kie/efesto/runtimemanager/api/model/EfestoInputTest.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/test/java/org/kie/efesto/runtimemanager/api/model/EfestoInputTest.java index 681b7ab7da0..6357b096d5a 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/test/java/org/kie/efesto/runtimemanager/api/model/EfestoInputTest.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-api/src/test/java/org/kie/efesto/runtimemanager/api/model/EfestoInputTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.api.model; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/pom.xml b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/pom.xml index 064baea720f..37395b6167e 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/pom.xml +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/pom.xml @@ -1,4 +1,24 @@ + @@ -7,13 +27,14 @@ org.kie efesto-runtime-manager - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT efesto-runtime-manager-core Efesto :: Runtime :: Manager :: Core + org.drools.efesto.core.compilationmanager.core false diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/model/EfestoRuntimeContextImpl.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/model/EfestoRuntimeContextImpl.java index 930ee4f4dce..24ee41f4915 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/model/EfestoRuntimeContextImpl.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/model/EfestoRuntimeContextImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.model; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/model/EfestoRuntimeContextUtils.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/model/EfestoRuntimeContextUtils.java index f9ed2982005..02a94079940 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/model/EfestoRuntimeContextUtils.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/model/EfestoRuntimeContextUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.model; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerImpl.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerImpl.java index a7d1a6612d6..01b1b2545c1 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerImpl.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.service; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerUtils.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerUtils.java index 892109487e5..7b065c31f3f 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerUtils.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/main/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.service; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/AbstractMockEfestoInput.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/AbstractMockEfestoInput.java index d62fa5e6c9a..2fc60a29a44 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/AbstractMockEfestoInput.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/AbstractMockEfestoInput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/AbstractMockKieRuntimeService.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/AbstractMockKieRuntimeService.java index fae0dd8fe3f..92f15eaeb19 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/AbstractMockKieRuntimeService.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/AbstractMockKieRuntimeService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputA.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputA.java index 42c3e8dc782..07407c5d557 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputA.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputA.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputB.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputB.java index 322ebd3212b..18c1eab56e6 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputB.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputB.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputC.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputC.java index 357fc2e35f2..c70aa7216ce 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputC.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputC.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputD.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputD.java index bbabd3dd3cf..aa6c4d0c4a6 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputD.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoInputD.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoOutput.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoOutput.java index ad70e9516a1..b64e6001faf 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoOutput.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockEfestoOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceA.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceA.java index 8e49460c94b..adffc6798b6 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceA.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceA.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceB.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceB.java index a1ca45d7df4..f0af267170c 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceB.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceB.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceC.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceC.java index 0ccf22afe2e..1d8f44ab478 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceC.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/MockKieRuntimeServiceC.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/TestBKieRuntimeService.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/TestBKieRuntimeService.java index e22e024fe02..f6187963af7 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/TestBKieRuntimeService.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/TestBKieRuntimeService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/TestKieRuntimeService.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/TestKieRuntimeService.java index aaaca007d49..95a1243c663 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/TestKieRuntimeService.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/mocks/TestKieRuntimeService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.mocks; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerImplTest.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerImplTest.java index 1769d02e4ad..7ee80101b76 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerImplTest.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerImplTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.service; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerUtilsTest.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerUtilsTest.java index 06423b1c8f3..8e997a4d6c0 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerUtilsTest.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/service/RuntimeManagerUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.service; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/utils/GeneratedResourceUtilsTest.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/utils/GeneratedResourceUtilsTest.java index e905ce911e3..e0ea0b2853a 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/utils/GeneratedResourceUtilsTest.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/utils/GeneratedResourceUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.utils; diff --git a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/utils/TestSPIUtils.java b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/utils/TestSPIUtils.java index 8600873c74d..d6bd15abd90 100644 --- a/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/utils/TestSPIUtils.java +++ b/efesto/efesto-core/efesto-runtime-manager/efesto-runtime-manager-core/src/test/java/org/kie/efesto/runtimemanager/core/utils/TestSPIUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.efesto.runtimemanager.core.utils; diff --git a/efesto/efesto-core/efesto-runtime-manager/pom.xml b/efesto/efesto-core/efesto-runtime-manager/pom.xml index 3f1fa6a1c6d..6749f94a474 100644 --- a/efesto/efesto-core/efesto-runtime-manager/pom.xml +++ b/efesto/efesto-core/efesto-runtime-manager/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie efesto-core - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT pom diff --git a/efesto/efesto-core/pom.xml b/efesto/efesto-core/pom.xml index 29fd43ab2a2..dc54b246e4c 100644 --- a/efesto/efesto-core/pom.xml +++ b/efesto/efesto-core/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie efesto - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT pom diff --git a/efesto/efesto-dependencies/pom.xml b/efesto/efesto-dependencies/pom.xml index 13e6bd7b887..cc1d1ee5e29 100644 --- a/efesto/efesto-dependencies/pom.xml +++ b/efesto/efesto-dependencies/pom.xml @@ -1,11 +1,31 @@ + efesto org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -18,6 +38,7 @@ + org.drools.efesto.dependencies true diff --git a/efesto/pom.xml b/efesto/pom.xml index 55e14a6c8d8..a8d7adbe6ee 100644 --- a/efesto/pom.xml +++ b/efesto/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/jpmml-migration-recipe/pom.xml b/jpmml-migration-recipe/pom.xml index 3567f2508df..055a1e40b0d 100644 --- a/jpmml-migration-recipe/pom.xml +++ b/jpmml-migration-recipe/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -15,13 +35,16 @@ Kie :: Jpmml Migration Recipe OpenRewrite recipe to migrate JPMML model library from 1.5.1 to 1.6.4 + + org.kie.jpmml.migration.recipe + org.openrewrite.recipe rewrite-recipe-bom - 1.17.0 + 1.19.4 pom import diff --git a/jpmml-migration-recipe/src/main/java/org/kie/openrewrite/recipe/jpmml/JPMMLCodeRecipe.java b/jpmml-migration-recipe/src/main/java/org/kie/openrewrite/recipe/jpmml/JPMMLCodeRecipe.java index dde728cb0c4..e2071a3171e 100644 --- a/jpmml-migration-recipe/src/main/java/org/kie/openrewrite/recipe/jpmml/JPMMLCodeRecipe.java +++ b/jpmml-migration-recipe/src/main/java/org/kie/openrewrite/recipe/jpmml/JPMMLCodeRecipe.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.openrewrite.recipe.jpmml; import com.fasterxml.jackson.annotation.JsonCreator; diff --git a/jpmml-migration-recipe/src/main/java/org/kie/openrewrite/recipe/jpmml/JPMMLVisitor.java b/jpmml-migration-recipe/src/main/java/org/kie/openrewrite/recipe/jpmml/JPMMLVisitor.java index dac94225fc4..2c471f50973 100644 --- a/jpmml-migration-recipe/src/main/java/org/kie/openrewrite/recipe/jpmml/JPMMLVisitor.java +++ b/jpmml-migration-recipe/src/main/java/org/kie/openrewrite/recipe/jpmml/JPMMLVisitor.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.openrewrite.recipe.jpmml; diff --git a/jpmml-migration-recipe/src/main/resources/META-INF/rewrite/rewrite.yml b/jpmml-migration-recipe/src/main/resources/META-INF/rewrite/rewrite.yml index 89732d0f0a5..188d842ec0e 100644 --- a/jpmml-migration-recipe/src/main/resources/META-INF/rewrite/rewrite.yml +++ b/jpmml-migration-recipe/src/main/resources/META-INF/rewrite/rewrite.yml @@ -1,3 +1,22 @@ +# +# 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. +# + --- type: specs.openrewrite.org/v1beta/recipe name: org.kie.openrewrite.recipe.jpmml.JPMMLRecipe diff --git a/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/CommonTestingUtilities.java b/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/CommonTestingUtilities.java index c5c49c307bf..52d7596ae2c 100644 --- a/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/CommonTestingUtilities.java +++ b/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/CommonTestingUtilities.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.openrewrite.recipe.jpmml; diff --git a/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLCodeRecipeTest.java b/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLCodeRecipeTest.java index ecb0565ece5..ea72a3e8c68 100644 --- a/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLCodeRecipeTest.java +++ b/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLCodeRecipeTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.openrewrite.recipe.jpmml; import org.intellij.lang.annotations.Language; diff --git a/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLRecipeTest.java b/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLRecipeTest.java index 6d0cfe1f5fc..f8ea02630d1 100644 --- a/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLRecipeTest.java +++ b/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLRecipeTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.openrewrite.recipe.jpmml; import org.intellij.lang.annotations.Language; diff --git a/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLVisitorTest.java b/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLVisitorTest.java index fcde3c8f379..3b26c210db5 100644 --- a/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLVisitorTest.java +++ b/jpmml-migration-recipe/src/test/java/org/kie/openrewrite/recipe/jpmml/JPMMLVisitorTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.openrewrite.recipe.jpmml; import org.junit.jupiter.api.BeforeEach; diff --git a/jpmml-migration-recipe/src/test/resources/logback.xml b/jpmml-migration-recipe/src/test/resources/logback.xml index d42850d53f3..53d915bf497 100644 --- a/jpmml-migration-recipe/src/test/resources/logback.xml +++ b/jpmml-migration-recipe/src/test/resources/logback.xml @@ -1,4 +1,24 @@ + diff --git a/kie-api/pom.xml b/kie-api/pom.xml index 0f599f578b8..2e9ebda2be0 100644 --- a/kie-api/pom.xml +++ b/kie-api/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-api/src/main/java/org/kie/api/KieBase.java b/kie-api/src/main/java/org/kie/api/KieBase.java index ae4c076b67d..58a4e38fd34 100644 --- a/kie-api/src/main/java/org/kie/api/KieBase.java +++ b/kie-api/src/main/java/org/kie/api/KieBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/KieBaseConfiguration.java b/kie-api/src/main/java/org/kie/api/KieBaseConfiguration.java index b87391718e8..ed613aa94b7 100644 --- a/kie-api/src/main/java/org/kie/api/KieBaseConfiguration.java +++ b/kie-api/src/main/java/org/kie/api/KieBaseConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api; import org.kie.api.conf.KieBaseOptionsConfiguration; diff --git a/kie-api/src/main/java/org/kie/api/KieServices.java b/kie-api/src/main/java/org/kie/api/KieServices.java index 7d3d271489d..560ce900542 100644 --- a/kie-api/src/main/java/org/kie/api/KieServices.java +++ b/kie-api/src/main/java/org/kie/api/KieServices.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api; import java.io.File; diff --git a/kie-api/src/main/java/org/kie/api/PropertiesConfiguration.java b/kie-api/src/main/java/org/kie/api/PropertiesConfiguration.java index ff1d414ec05..214c8b283b7 100644 --- a/kie-api/src/main/java/org/kie/api/PropertiesConfiguration.java +++ b/kie-api/src/main/java/org/kie/api/PropertiesConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api; /** diff --git a/kie-api/src/main/java/org/kie/api/builder/CompilationErrorsException.java b/kie-api/src/main/java/org/kie/api/builder/CompilationErrorsException.java index 4699d0f7be9..c22a6444ac0 100644 --- a/kie-api/src/main/java/org/kie/api/builder/CompilationErrorsException.java +++ b/kie-api/src/main/java/org/kie/api/builder/CompilationErrorsException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.builder; diff --git a/kie-api/src/main/java/org/kie/api/builder/Include.java b/kie-api/src/main/java/org/kie/api/builder/Include.java index 8563cd0ece1..0d283ccec0d 100644 --- a/kie-api/src/main/java/org/kie/api/builder/Include.java +++ b/kie-api/src/main/java/org/kie/api/builder/Include.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.builder; public interface Include { diff --git a/kie-api/src/main/java/org/kie/api/builder/KieBuilder.java b/kie-api/src/main/java/org/kie/api/builder/KieBuilder.java index fd03d8aaf26..6d70a4b51b1 100644 --- a/kie-api/src/main/java/org/kie/api/builder/KieBuilder.java +++ b/kie-api/src/main/java/org/kie/api/builder/KieBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder; import org.kie.api.io.Resource; diff --git a/kie-api/src/main/java/org/kie/api/builder/KieFileSystem.java b/kie-api/src/main/java/org/kie/api/builder/KieFileSystem.java index 4e7b9c66786..9f2a56b89d0 100644 --- a/kie-api/src/main/java/org/kie/api/builder/KieFileSystem.java +++ b/kie-api/src/main/java/org/kie/api/builder/KieFileSystem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder; import org.kie.api.io.Resource; diff --git a/kie-api/src/main/java/org/kie/api/builder/KieModule.java b/kie-api/src/main/java/org/kie/api/builder/KieModule.java index 3ab821656e8..1b2f75f85df 100644 --- a/kie-api/src/main/java/org/kie/api/builder/KieModule.java +++ b/kie-api/src/main/java/org/kie/api/builder/KieModule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder; /** diff --git a/kie-api/src/main/java/org/kie/api/builder/KieRepository.java b/kie-api/src/main/java/org/kie/api/builder/KieRepository.java index 2ebf28f86fd..db8b6f4a3eb 100644 --- a/kie-api/src/main/java/org/kie/api/builder/KieRepository.java +++ b/kie-api/src/main/java/org/kie/api/builder/KieRepository.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder; import org.kie.api.io.Resource; diff --git a/kie-api/src/main/java/org/kie/api/builder/KieScanner.java b/kie-api/src/main/java/org/kie/api/builder/KieScanner.java index be5675a8264..3acd0202b64 100644 --- a/kie-api/src/main/java/org/kie/api/builder/KieScanner.java +++ b/kie-api/src/main/java/org/kie/api/builder/KieScanner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/builder/KieScannerFactoryService.java b/kie-api/src/main/java/org/kie/api/builder/KieScannerFactoryService.java index cc0f3fc3300..c52aca3b4dd 100644 --- a/kie-api/src/main/java/org/kie/api/builder/KieScannerFactoryService.java +++ b/kie-api/src/main/java/org/kie/api/builder/KieScannerFactoryService.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.builder; import org.kie.api.internal.utils.KieService; diff --git a/kie-api/src/main/java/org/kie/api/builder/Message.java b/kie-api/src/main/java/org/kie/api/builder/Message.java index 5d48e61a9ea..d5a51cd9e29 100644 --- a/kie-api/src/main/java/org/kie/api/builder/Message.java +++ b/kie-api/src/main/java/org/kie/api/builder/Message.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder; /** diff --git a/kie-api/src/main/java/org/kie/api/builder/ReleaseId.java b/kie-api/src/main/java/org/kie/api/builder/ReleaseId.java index e257d2eb884..80f192312a9 100644 --- a/kie-api/src/main/java/org/kie/api/builder/ReleaseId.java +++ b/kie-api/src/main/java/org/kie/api/builder/ReleaseId.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder; /** diff --git a/kie-api/src/main/java/org/kie/api/builder/ReleaseIdComparator.java b/kie-api/src/main/java/org/kie/api/builder/ReleaseIdComparator.java index 7305e98b60f..156c81b8c56 100644 --- a/kie-api/src/main/java/org/kie/api/builder/ReleaseIdComparator.java +++ b/kie-api/src/main/java/org/kie/api/builder/ReleaseIdComparator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.builder; diff --git a/kie-api/src/main/java/org/kie/api/builder/Results.java b/kie-api/src/main/java/org/kie/api/builder/Results.java index 825da738bb1..f34a48bab00 100644 --- a/kie-api/src/main/java/org/kie/api/builder/Results.java +++ b/kie-api/src/main/java/org/kie/api/builder/Results.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/builder/model/ChannelModel.java b/kie-api/src/main/java/org/kie/api/builder/model/ChannelModel.java index ac61d1da290..2d220591b98 100644 --- a/kie-api/src/main/java/org/kie/api/builder/model/ChannelModel.java +++ b/kie-api/src/main/java/org/kie/api/builder/model/ChannelModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder.model; /** diff --git a/kie-api/src/main/java/org/kie/api/builder/model/FileLoggerModel.java b/kie-api/src/main/java/org/kie/api/builder/model/FileLoggerModel.java index 146c96c03df..3dfbe80b5b2 100644 --- a/kie-api/src/main/java/org/kie/api/builder/model/FileLoggerModel.java +++ b/kie-api/src/main/java/org/kie/api/builder/model/FileLoggerModel.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.api.builder.model; /** diff --git a/kie-api/src/main/java/org/kie/api/builder/model/KieBaseModel.java b/kie-api/src/main/java/org/kie/api/builder/model/KieBaseModel.java index 9db6cb102ca..2f451e17516 100644 --- a/kie-api/src/main/java/org/kie/api/builder/model/KieBaseModel.java +++ b/kie-api/src/main/java/org/kie/api/builder/model/KieBaseModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder.model; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/builder/model/KieModuleModel.java b/kie-api/src/main/java/org/kie/api/builder/model/KieModuleModel.java index a9cf3fcff2b..d159084e322 100644 --- a/kie-api/src/main/java/org/kie/api/builder/model/KieModuleModel.java +++ b/kie-api/src/main/java/org/kie/api/builder/model/KieModuleModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder.model; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/builder/model/KieSessionModel.java b/kie-api/src/main/java/org/kie/api/builder/model/KieSessionModel.java index 3259eb145e4..ea96087e077 100644 --- a/kie-api/src/main/java/org/kie/api/builder/model/KieSessionModel.java +++ b/kie-api/src/main/java/org/kie/api/builder/model/KieSessionModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder.model; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/builder/model/ListenerModel.java b/kie-api/src/main/java/org/kie/api/builder/model/ListenerModel.java index 7eabe9e7c40..d57af00b7cd 100644 --- a/kie-api/src/main/java/org/kie/api/builder/model/ListenerModel.java +++ b/kie-api/src/main/java/org/kie/api/builder/model/ListenerModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder.model; import static java.util.EnumSet.allOf; diff --git a/kie-api/src/main/java/org/kie/api/builder/model/QualifierModel.java b/kie-api/src/main/java/org/kie/api/builder/model/QualifierModel.java index 4874114fd3b..ee4adb33ace 100644 --- a/kie-api/src/main/java/org/kie/api/builder/model/QualifierModel.java +++ b/kie-api/src/main/java/org/kie/api/builder/model/QualifierModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.builder.model; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/builder/model/RuleTemplateModel.java b/kie-api/src/main/java/org/kie/api/builder/model/RuleTemplateModel.java index 4daee27bbe9..72fabfcb116 100644 --- a/kie-api/src/main/java/org/kie/api/builder/model/RuleTemplateModel.java +++ b/kie-api/src/main/java/org/kie/api/builder/model/RuleTemplateModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 +/** + * 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 * - * 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. + * 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. */ - package org.kie.api.builder.model; /** diff --git a/kie-api/src/main/java/org/kie/api/builder/model/WorkItemHandlerModel.java b/kie-api/src/main/java/org/kie/api/builder/model/WorkItemHandlerModel.java index 9fa9c64b8dc..8983090cc36 100644 --- a/kie-api/src/main/java/org/kie/api/builder/model/WorkItemHandlerModel.java +++ b/kie-api/src/main/java/org/kie/api/builder/model/WorkItemHandlerModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.builder.model; /** diff --git a/kie-api/src/main/java/org/kie/api/cluster/ClusterAwareService.java b/kie-api/src/main/java/org/kie/api/cluster/ClusterAwareService.java index 158b1966d02..e205821e597 100644 --- a/kie-api/src/main/java/org/kie/api/cluster/ClusterAwareService.java +++ b/kie-api/src/main/java/org/kie/api/cluster/ClusterAwareService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.cluster; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/cluster/ClusterListener.java b/kie-api/src/main/java/org/kie/api/cluster/ClusterListener.java index 21291e5be82..ede4c5892b1 100644 --- a/kie-api/src/main/java/org/kie/api/cluster/ClusterListener.java +++ b/kie-api/src/main/java/org/kie/api/cluster/ClusterListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.cluster; public interface ClusterListener { diff --git a/kie-api/src/main/java/org/kie/api/cluster/ClusterNode.java b/kie-api/src/main/java/org/kie/api/cluster/ClusterNode.java index cc56fb1ee7d..cd68aaf4eab 100644 --- a/kie-api/src/main/java/org/kie/api/cluster/ClusterNode.java +++ b/kie-api/src/main/java/org/kie/api/cluster/ClusterNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.cluster; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/command/BatchExecutionCommand.java b/kie-api/src/main/java/org/kie/api/command/BatchExecutionCommand.java index b64c889c165..c0dc1c43a9c 100644 --- a/kie-api/src/main/java/org/kie/api/command/BatchExecutionCommand.java +++ b/kie-api/src/main/java/org/kie/api/command/BatchExecutionCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.command; import org.kie.api.runtime.ExecutionResults; diff --git a/kie-api/src/main/java/org/kie/api/command/Command.java b/kie-api/src/main/java/org/kie/api/command/Command.java index 057be0dd6cb..11ddc8c139a 100644 --- a/kie-api/src/main/java/org/kie/api/command/Command.java +++ b/kie-api/src/main/java/org/kie/api/command/Command.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.command; import java.io.Serializable; diff --git a/kie-api/src/main/java/org/kie/api/command/ExecutableCommand.java b/kie-api/src/main/java/org/kie/api/command/ExecutableCommand.java index 090b44ec2d4..4557662151e 100644 --- a/kie-api/src/main/java/org/kie/api/command/ExecutableCommand.java +++ b/kie-api/src/main/java/org/kie/api/command/ExecutableCommand.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.command; import org.kie.api.runtime.Context; diff --git a/kie-api/src/main/java/org/kie/api/command/KieCommands.java b/kie-api/src/main/java/org/kie/api/command/KieCommands.java index b2a72695259..afb5d8d2bbd 100644 --- a/kie-api/src/main/java/org/kie/api/command/KieCommands.java +++ b/kie-api/src/main/java/org/kie/api/command/KieCommands.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.command; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/command/Setter.java b/kie-api/src/main/java/org/kie/api/command/Setter.java index d6f62eff041..0341eea28a4 100644 --- a/kie-api/src/main/java/org/kie/api/command/Setter.java +++ b/kie-api/src/main/java/org/kie/api/command/Setter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.command; /** diff --git a/kie-api/src/main/java/org/kie/api/concurrent/KieExecutors.java b/kie-api/src/main/java/org/kie/api/concurrent/KieExecutors.java index 5cb1d22e5d7..4322ea50b7c 100644 --- a/kie-api/src/main/java/org/kie/api/concurrent/KieExecutors.java +++ b/kie-api/src/main/java/org/kie/api/concurrent/KieExecutors.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.concurrent; import java.util.concurrent.CompletionService; diff --git a/kie-api/src/main/java/org/kie/api/conf/BetaRangeIndexOption.java b/kie-api/src/main/java/org/kie/api/conf/BetaRangeIndexOption.java index 1fbec5da8c2..2e85e28edff 100644 --- a/kie-api/src/main/java/org/kie/api/conf/BetaRangeIndexOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/BetaRangeIndexOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; /** diff --git a/kie-api/src/main/java/org/kie/api/conf/ConfigurationKey.java b/kie-api/src/main/java/org/kie/api/conf/ConfigurationKey.java index a6b743ffd71..b8f6de39993 100644 --- a/kie-api/src/main/java/org/kie/api/conf/ConfigurationKey.java +++ b/kie-api/src/main/java/org/kie/api/conf/ConfigurationKey.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.conf; public class ConfigurationKey { diff --git a/kie-api/src/main/java/org/kie/api/conf/DeclarativeAgendaOption.java b/kie-api/src/main/java/org/kie/api/conf/DeclarativeAgendaOption.java index 9ab6b16b10b..bafe92974a9 100644 --- a/kie-api/src/main/java/org/kie/api/conf/DeclarativeAgendaOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/DeclarativeAgendaOption.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.conf; diff --git a/kie-api/src/main/java/org/kie/api/conf/EqualityBehaviorOption.java b/kie-api/src/main/java/org/kie/api/conf/EqualityBehaviorOption.java index d6e358874ea..144a73854cd 100644 --- a/kie-api/src/main/java/org/kie/api/conf/EqualityBehaviorOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/EqualityBehaviorOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; diff --git a/kie-api/src/main/java/org/kie/api/conf/EventProcessingOption.java b/kie-api/src/main/java/org/kie/api/conf/EventProcessingOption.java index 79d416edcba..bb444f48948 100644 --- a/kie-api/src/main/java/org/kie/api/conf/EventProcessingOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/EventProcessingOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; /** diff --git a/kie-api/src/main/java/org/kie/api/conf/KieBaseMutabilityOption.java b/kie-api/src/main/java/org/kie/api/conf/KieBaseMutabilityOption.java index 21404f5c1a4..869a1add4ed 100644 --- a/kie-api/src/main/java/org/kie/api/conf/KieBaseMutabilityOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/KieBaseMutabilityOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; diff --git a/kie-api/src/main/java/org/kie/api/conf/KieBaseOption.java b/kie-api/src/main/java/org/kie/api/conf/KieBaseOption.java index f2f5d08bde5..1790b7796c9 100644 --- a/kie-api/src/main/java/org/kie/api/conf/KieBaseOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/KieBaseOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; import org.kie.api.KieBase; diff --git a/kie-api/src/main/java/org/kie/api/conf/KieBaseOptionsConfiguration.java b/kie-api/src/main/java/org/kie/api/conf/KieBaseOptionsConfiguration.java index 8946d229522..3a24fadde98 100644 --- a/kie-api/src/main/java/org/kie/api/conf/KieBaseOptionsConfiguration.java +++ b/kie-api/src/main/java/org/kie/api/conf/KieBaseOptionsConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; /** diff --git a/kie-api/src/main/java/org/kie/api/conf/MBeansOption.java b/kie-api/src/main/java/org/kie/api/conf/MBeansOption.java index 1fae3629097..34f0e30ba89 100644 --- a/kie-api/src/main/java/org/kie/api/conf/MBeansOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/MBeansOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; /** diff --git a/kie-api/src/main/java/org/kie/api/conf/MultiValueKieBaseOption.java b/kie-api/src/main/java/org/kie/api/conf/MultiValueKieBaseOption.java index f7eaf3e4b09..f129585e085 100644 --- a/kie-api/src/main/java/org/kie/api/conf/MultiValueKieBaseOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/MultiValueKieBaseOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; /** diff --git a/kie-api/src/main/java/org/kie/api/conf/MultiValueOption.java b/kie-api/src/main/java/org/kie/api/conf/MultiValueOption.java index f7af56a073a..3b076488e2b 100644 --- a/kie-api/src/main/java/org/kie/api/conf/MultiValueOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/MultiValueOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; /** diff --git a/kie-api/src/main/java/org/kie/api/conf/MultiValueRuleBaseOption.java b/kie-api/src/main/java/org/kie/api/conf/MultiValueRuleBaseOption.java index de2ad375cda..1e8f5f56158 100644 --- a/kie-api/src/main/java/org/kie/api/conf/MultiValueRuleBaseOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/MultiValueRuleBaseOption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.conf; public interface MultiValueRuleBaseOption extends MultiValueKieBaseOption { diff --git a/kie-api/src/main/java/org/kie/api/conf/Option.java b/kie-api/src/main/java/org/kie/api/conf/Option.java index 4d63b851bcc..3cb1a262c85 100644 --- a/kie-api/src/main/java/org/kie/api/conf/Option.java +++ b/kie-api/src/main/java/org/kie/api/conf/Option.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; import java.io.Serializable; diff --git a/kie-api/src/main/java/org/kie/api/conf/OptionKey.java b/kie-api/src/main/java/org/kie/api/conf/OptionKey.java index 3d40629d907..a1f2d7d8524 100644 --- a/kie-api/src/main/java/org/kie/api/conf/OptionKey.java +++ b/kie-api/src/main/java/org/kie/api/conf/OptionKey.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.conf; public class OptionKey { diff --git a/kie-api/src/main/java/org/kie/api/conf/OptionsConfiguration.java b/kie-api/src/main/java/org/kie/api/conf/OptionsConfiguration.java index 000d00b2b3c..046014b9a02 100644 --- a/kie-api/src/main/java/org/kie/api/conf/OptionsConfiguration.java +++ b/kie-api/src/main/java/org/kie/api/conf/OptionsConfiguration.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.conf; import java.util.Collections; diff --git a/kie-api/src/main/java/org/kie/api/conf/RemoveIdentitiesOption.java b/kie-api/src/main/java/org/kie/api/conf/RemoveIdentitiesOption.java index 0cdf9e8735b..4303105fed8 100644 --- a/kie-api/src/main/java/org/kie/api/conf/RemoveIdentitiesOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/RemoveIdentitiesOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; diff --git a/kie-api/src/main/java/org/kie/api/conf/SequentialOption.java b/kie-api/src/main/java/org/kie/api/conf/SequentialOption.java index d3646642b33..40648cf9941 100644 --- a/kie-api/src/main/java/org/kie/api/conf/SequentialOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/SequentialOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; /** diff --git a/kie-api/src/main/java/org/kie/api/conf/SessionsPoolOption.java b/kie-api/src/main/java/org/kie/api/conf/SessionsPoolOption.java index f134f218fa5..d998eaa5a8f 100644 --- a/kie-api/src/main/java/org/kie/api/conf/SessionsPoolOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/SessionsPoolOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.conf; public class SessionsPoolOption implements SingleValueRuleBaseOption { diff --git a/kie-api/src/main/java/org/kie/api/conf/SingleValueKieBaseOption.java b/kie-api/src/main/java/org/kie/api/conf/SingleValueKieBaseOption.java index 468b1e176a4..fb5b707bf22 100644 --- a/kie-api/src/main/java/org/kie/api/conf/SingleValueKieBaseOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/SingleValueKieBaseOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; diff --git a/kie-api/src/main/java/org/kie/api/conf/SingleValueOption.java b/kie-api/src/main/java/org/kie/api/conf/SingleValueOption.java index 83fea66c97a..25ff752214e 100644 --- a/kie-api/src/main/java/org/kie/api/conf/SingleValueOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/SingleValueOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.conf; diff --git a/kie-api/src/main/java/org/kie/api/conf/SingleValueRuleBaseOption.java b/kie-api/src/main/java/org/kie/api/conf/SingleValueRuleBaseOption.java index 5fd457db85e..807dd93dc6f 100644 --- a/kie-api/src/main/java/org/kie/api/conf/SingleValueRuleBaseOption.java +++ b/kie-api/src/main/java/org/kie/api/conf/SingleValueRuleBaseOption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.conf; public interface SingleValueRuleBaseOption extends SingleValueKieBaseOption { diff --git a/kie-api/src/main/java/org/kie/api/definition/KieDefinition.java b/kie-api/src/main/java/org/kie/api/definition/KieDefinition.java index 85b60d6d38b..280166bda8e 100644 --- a/kie-api/src/main/java/org/kie/api/definition/KieDefinition.java +++ b/kie-api/src/main/java/org/kie/api/definition/KieDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition; /** diff --git a/kie-api/src/main/java/org/kie/api/definition/KieDescr.java b/kie-api/src/main/java/org/kie/api/definition/KieDescr.java index 17b491145d4..55efff24618 100644 --- a/kie-api/src/main/java/org/kie/api/definition/KieDescr.java +++ b/kie-api/src/main/java/org/kie/api/definition/KieDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition; /** diff --git a/kie-api/src/main/java/org/kie/api/definition/KiePackage.java b/kie-api/src/main/java/org/kie/api/definition/KiePackage.java index 962c7b316d8..da30b196a81 100644 --- a/kie-api/src/main/java/org/kie/api/definition/KiePackage.java +++ b/kie-api/src/main/java/org/kie/api/definition/KiePackage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/definition/process/Connection.java b/kie-api/src/main/java/org/kie/api/definition/process/Connection.java index 206c7997b38..32fd57cb1a4 100644 --- a/kie-api/src/main/java/org/kie/api/definition/process/Connection.java +++ b/kie-api/src/main/java/org/kie/api/definition/process/Connection.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.process; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/definition/process/Node.java b/kie-api/src/main/java/org/kie/api/definition/process/Node.java index aa85a3c412b..68e4830d04d 100644 --- a/kie-api/src/main/java/org/kie/api/definition/process/Node.java +++ b/kie-api/src/main/java/org/kie/api/definition/process/Node.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.process; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/definition/process/NodeContainer.java b/kie-api/src/main/java/org/kie/api/definition/process/NodeContainer.java index d83c5a0b74f..46f2f5ca3ce 100644 --- a/kie-api/src/main/java/org/kie/api/definition/process/NodeContainer.java +++ b/kie-api/src/main/java/org/kie/api/definition/process/NodeContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.process; /** diff --git a/kie-api/src/main/java/org/kie/api/definition/process/NodeType.java b/kie-api/src/main/java/org/kie/api/definition/process/NodeType.java index 03f8758dcf3..afe43778e9a 100644 --- a/kie-api/src/main/java/org/kie/api/definition/process/NodeType.java +++ b/kie-api/src/main/java/org/kie/api/definition/process/NodeType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.definition.process; diff --git a/kie-api/src/main/java/org/kie/api/definition/process/Process.java b/kie-api/src/main/java/org/kie/api/definition/process/Process.java index 5c5a4309150..760b0c14f33 100644 --- a/kie-api/src/main/java/org/kie/api/definition/process/Process.java +++ b/kie-api/src/main/java/org/kie/api/definition/process/Process.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.process; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/definition/process/WorkflowProcess.java b/kie-api/src/main/java/org/kie/api/definition/process/WorkflowProcess.java index 3cbccc6c6f7..e1ee0729a1e 100644 --- a/kie-api/src/main/java/org/kie/api/definition/process/WorkflowProcess.java +++ b/kie-api/src/main/java/org/kie/api/definition/process/WorkflowProcess.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.process; /** diff --git a/kie-api/src/main/java/org/kie/api/definition/rule/ActivationListener.java b/kie-api/src/main/java/org/kie/api/definition/rule/ActivationListener.java index c8f42a95761..dd369633f8b 100644 --- a/kie-api/src/main/java/org/kie/api/definition/rule/ActivationListener.java +++ b/kie-api/src/main/java/org/kie/api/definition/rule/ActivationListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.definition.rule; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/rule/All.java b/kie-api/src/main/java/org/kie/api/definition/rule/All.java index faecb85ec60..15a6a7b9692 100644 --- a/kie-api/src/main/java/org/kie/api/definition/rule/All.java +++ b/kie-api/src/main/java/org/kie/api/definition/rule/All.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.definition.rule; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/rule/Direct.java b/kie-api/src/main/java/org/kie/api/definition/rule/Direct.java index cbe850d6973..c848ca38bd4 100644 --- a/kie-api/src/main/java/org/kie/api/definition/rule/Direct.java +++ b/kie-api/src/main/java/org/kie/api/definition/rule/Direct.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.definition.rule; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/rule/Global.java b/kie-api/src/main/java/org/kie/api/definition/rule/Global.java index b19e9b2f834..a310d2eab0e 100644 --- a/kie-api/src/main/java/org/kie/api/definition/rule/Global.java +++ b/kie-api/src/main/java/org/kie/api/definition/rule/Global.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.definition.rule; diff --git a/kie-api/src/main/java/org/kie/api/definition/rule/Propagation.java b/kie-api/src/main/java/org/kie/api/definition/rule/Propagation.java index dfbdcb7d59c..d73467532a6 100644 --- a/kie-api/src/main/java/org/kie/api/definition/rule/Propagation.java +++ b/kie-api/src/main/java/org/kie/api/definition/rule/Propagation.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.definition.rule; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/rule/Query.java b/kie-api/src/main/java/org/kie/api/definition/rule/Query.java index 70a4c7120a5..213747b1650 100644 --- a/kie-api/src/main/java/org/kie/api/definition/rule/Query.java +++ b/kie-api/src/main/java/org/kie/api/definition/rule/Query.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.rule; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/definition/rule/Rule.java b/kie-api/src/main/java/org/kie/api/definition/rule/Rule.java index ac6d2e83bfb..d3529cac4dc 100644 --- a/kie-api/src/main/java/org/kie/api/definition/rule/Rule.java +++ b/kie-api/src/main/java/org/kie/api/definition/rule/Rule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.rule; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/definition/rule/Watch.java b/kie-api/src/main/java/org/kie/api/definition/rule/Watch.java index a556c2451cc..6182e328895 100644 --- a/kie-api/src/main/java/org/kie/api/definition/rule/Watch.java +++ b/kie-api/src/main/java/org/kie/api/definition/rule/Watch.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.definition.rule; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Annotation.java b/kie-api/src/main/java/org/kie/api/definition/type/Annotation.java index 84c6f9f0c0c..93fdc69ce8a 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Annotation.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Annotation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.definition.type; public interface Annotation { diff --git a/kie-api/src/main/java/org/kie/api/definition/type/ClassReactive.java b/kie-api/src/main/java/org/kie/api/definition/type/ClassReactive.java index 62f520ee133..5055315c040 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/ClassReactive.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/ClassReactive.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Description.java b/kie-api/src/main/java/org/kie/api/definition/type/Description.java index de878fe6724..ee98bfe7e7a 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Description.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Description.java @@ -1,19 +1,21 @@ /** - * Copyright 2012 Red Hat, Inc. and/or its affiliates + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Duration.java b/kie-api/src/main/java/org/kie/api/definition/type/Duration.java index d77e8f8c033..a3997f912b4 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Duration.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Duration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Expires.java b/kie-api/src/main/java/org/kie/api/definition/type/Expires.java index dbcf6ea718d..83b19b74361 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Expires.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Expires.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/FactField.java b/kie-api/src/main/java/org/kie/api/definition/type/FactField.java index 7b10636a81a..36ca58a7e9c 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/FactField.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/FactField.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.type; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/FactType.java b/kie-api/src/main/java/org/kie/api/definition/type/FactType.java index d282915f88c..0ed0adb8ee0 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/FactType.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/FactType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.type; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Key.java b/kie-api/src/main/java/org/kie/api/definition/type/Key.java index 37338075509..f3edc9a6c85 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Key.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Key.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Label.java b/kie-api/src/main/java/org/kie/api/definition/type/Label.java index 4514a2a0387..fe022e43879 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Label.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Label.java @@ -1,19 +1,21 @@ /** - * Copyright 2012 Red Hat, Inc. and/or its affiliates + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Modifies.java b/kie-api/src/main/java/org/kie/api/definition/type/Modifies.java index b3738d10e5d..cc593d30164 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Modifies.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Modifies.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Position.java b/kie-api/src/main/java/org/kie/api/definition/type/Position.java index e973df008c0..880b50634a1 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Position.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Position.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/PropertyChangeSupport.java b/kie-api/src/main/java/org/kie/api/definition/type/PropertyChangeSupport.java index 755284ff8fc..bbef2db3e99 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/PropertyChangeSupport.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/PropertyChangeSupport.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/PropertyReactive.java b/kie-api/src/main/java/org/kie/api/definition/type/PropertyReactive.java index b95f63c1adf..16cdc9f9713 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/PropertyReactive.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/PropertyReactive.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Role.java b/kie-api/src/main/java/org/kie/api/definition/type/Role.java index 4aa2da9213c..92a5f6437b2 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Role.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Role.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/Timestamp.java b/kie-api/src/main/java/org/kie/api/definition/type/Timestamp.java index 341b9e15f99..3356acb45e7 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/Timestamp.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/Timestamp.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/definition/type/TypeSafe.java b/kie-api/src/main/java/org/kie/api/definition/type/TypeSafe.java index ae5246bd371..5035275d53d 100644 --- a/kie-api/src/main/java/org/kie/api/definition/type/TypeSafe.java +++ b/kie-api/src/main/java/org/kie/api/definition/type/TypeSafe.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.definition.type; import java.lang.annotation.ElementType; diff --git a/kie-api/src/main/java/org/kie/api/event/KieRuntimeEvent.java b/kie-api/src/main/java/org/kie/api/event/KieRuntimeEvent.java index 8f4992450ee..e6d7942f17a 100644 --- a/kie-api/src/main/java/org/kie/api/event/KieRuntimeEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/KieRuntimeEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event; import org.kie.api.runtime.KieRuntime; diff --git a/kie-api/src/main/java/org/kie/api/event/KieRuntimeEventManager.java b/kie-api/src/main/java/org/kie/api/event/KieRuntimeEventManager.java index eab4f24d791..7345df32fa8 100644 --- a/kie-api/src/main/java/org/kie/api/event/KieRuntimeEventManager.java +++ b/kie-api/src/main/java/org/kie/api/event/KieRuntimeEventManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event; import org.kie.api.event.process.ProcessEventManager; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterFunctionRemovedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterFunctionRemovedEvent.java index 324e055f1b8..1b842fc5c88 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterFunctionRemovedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterFunctionRemovedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKieBaseLockedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKieBaseLockedEvent.java index ba897bc12ca..0c13f133c2e 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKieBaseLockedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKieBaseLockedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKieBaseUnlockedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKieBaseUnlockedEvent.java index a154d8a1924..cac28f98876 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKieBaseUnlockedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKieBaseUnlockedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; public interface AfterKieBaseUnlockedEvent diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKiePackageAddedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKiePackageAddedEvent.java index e69bc5224e0..d2278a390d4 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKiePackageAddedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKiePackageAddedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.KiePackage; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKiePackageRemovedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKiePackageRemovedEvent.java index 04069f81c9e..a0b42a6cccf 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKiePackageRemovedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterKiePackageRemovedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.KiePackage; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterProcessAddedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterProcessAddedEvent.java index 8fc4a326742..c9a1a71f712 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterProcessAddedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterProcessAddedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.process.Process; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterProcessRemovedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterProcessRemovedEvent.java index f0779fb7844..fa94ee69ea6 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterProcessRemovedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterProcessRemovedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.process.Process; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterRuleAddedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterRuleAddedEvent.java index 813bf81d7dd..6e9888cba40 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterRuleAddedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterRuleAddedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterRuleRemovedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterRuleRemovedEvent.java index b15dbf74d5c..3053c15710e 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/AfterRuleRemovedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/AfterRuleRemovedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeFunctionRemovedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeFunctionRemovedEvent.java index 563531fdccc..c90a62759ff 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeFunctionRemovedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeFunctionRemovedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKieBaseLockedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKieBaseLockedEvent.java index e0cd3786f75..3f9db0178b7 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKieBaseLockedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKieBaseLockedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKieBaseUnlockedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKieBaseUnlockedEvent.java index 0b458579060..2d56c3ae099 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKieBaseUnlockedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKieBaseUnlockedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.KieBase; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKiePackageAddedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKiePackageAddedEvent.java index 91e611a0509..9aa5fe7e4db 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKiePackageAddedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKiePackageAddedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.KiePackage; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKiePackageRemovedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKiePackageRemovedEvent.java index 8490cca73b5..f408c8a16e0 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKiePackageRemovedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeKiePackageRemovedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.KiePackage; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeProcessAddedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeProcessAddedEvent.java index 5e4f65dd0b9..372810ba15f 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeProcessAddedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeProcessAddedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.process.Process; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeProcessRemovedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeProcessRemovedEvent.java index 62b3d42f483..3c37d826f84 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeProcessRemovedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeProcessRemovedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.process.Process; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeRuleAddedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeRuleAddedEvent.java index 46ca3ddc082..28e33fb83e5 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeRuleAddedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeRuleAddedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeRuleRemovedEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeRuleRemovedEvent.java index a19d9f4dfe2..a74a9dab99b 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeRuleRemovedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/BeforeRuleRemovedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/DefaultKieBaseEventListener.java b/kie-api/src/main/java/org/kie/api/event/kiebase/DefaultKieBaseEventListener.java index 525dec24c8e..f403bc53023 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/DefaultKieBaseEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/DefaultKieBaseEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; public class DefaultKieBaseEventListener diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEvent.java b/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEvent.java index 81c1767178b..264d8d520d7 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import org.kie.api.KieBase; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEventListener.java b/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEventListener.java index 01e714b699b..b0cb8b43533 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import java.util.EventListener; diff --git a/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEventManager.java b/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEventManager.java index 14e0337e58e..64f6eae1bca 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEventManager.java +++ b/kie-api/src/main/java/org/kie/api/event/kiebase/KieBaseEventManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiebase; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/event/kiescanner/DefaultKieScannerEventListener.java b/kie-api/src/main/java/org/kie/api/event/kiescanner/DefaultKieScannerEventListener.java index 1d1117a53e3..a3b6be01648 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiescanner/DefaultKieScannerEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/kiescanner/DefaultKieScannerEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiescanner; diff --git a/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerEvent.java b/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerEvent.java index ff73847a264..5b8c3efcbcf 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiescanner; public interface KieScannerEvent { diff --git a/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerEventListener.java b/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerEventListener.java index 79c3c55fc02..b14ee327837 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiescanner; import java.util.EventListener; diff --git a/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerStatusChangeEvent.java b/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerStatusChangeEvent.java index 22ade0f6c61..19db2fcfca5 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerStatusChangeEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerStatusChangeEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiescanner; import org.kie.api.builder.KieScanner.Status; diff --git a/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerUpdateResultsEvent.java b/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerUpdateResultsEvent.java index fda847ffe21..b3b35b2550c 100644 --- a/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerUpdateResultsEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/kiescanner/KieScannerUpdateResultsEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.kiescanner; import org.kie.api.builder.Results; diff --git a/kie-api/src/main/java/org/kie/api/event/process/DefaultProcessEventListener.java b/kie-api/src/main/java/org/kie/api/event/process/DefaultProcessEventListener.java index 0e92a4490a2..7190943b3e1 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/DefaultProcessEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/process/DefaultProcessEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.process; public class DefaultProcessEventListener diff --git a/kie-api/src/main/java/org/kie/api/event/process/MessageEvent.java b/kie-api/src/main/java/org/kie/api/event/process/MessageEvent.java index 07553b32bf0..a31942b9243 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/MessageEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/MessageEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.event.process; diff --git a/kie-api/src/main/java/org/kie/api/event/process/ProcessCompletedEvent.java b/kie-api/src/main/java/org/kie/api/event/process/ProcessCompletedEvent.java index 50d3de68041..5c2ec0b3b35 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/ProcessCompletedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessCompletedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; /** diff --git a/kie-api/src/main/java/org/kie/api/event/process/ProcessEvent.java b/kie-api/src/main/java/org/kie/api/event/process/ProcessEvent.java index 25607b0ba11..b1b68bdedc3 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/ProcessEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; import java.util.Date; @@ -41,4 +43,11 @@ public interface ProcessEvent */ Date getEventDate(); + /** + * @return associated identity that performed the event + */ + default String getEventIdentity(){ + return null; + } + } diff --git a/kie-api/src/main/java/org/kie/api/event/process/ProcessEventListener.java b/kie-api/src/main/java/org/kie/api/event/process/ProcessEventListener.java index d92ae124797..4f27158b6b1 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/ProcessEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; import java.util.EventListener; diff --git a/kie-api/src/main/java/org/kie/api/event/process/ProcessEventManager.java b/kie-api/src/main/java/org/kie/api/event/process/ProcessEventManager.java index 1fe167b862a..5d43ead09be 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/ProcessEventManager.java +++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessEventManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeEvent.java b/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeEvent.java index f2bdd3d2f77..b89b801faa7 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; import org.kie.api.runtime.process.NodeInstance; diff --git a/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeLeftEvent.java b/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeLeftEvent.java index b49d1f21145..6c575a1917a 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeLeftEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeLeftEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; /** diff --git a/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeTriggeredEvent.java b/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeTriggeredEvent.java index fa39b698f3d..baba29fa5a4 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeTriggeredEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessNodeTriggeredEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; /** diff --git a/kie-api/src/main/java/org/kie/api/event/process/ProcessStartedEvent.java b/kie-api/src/main/java/org/kie/api/event/process/ProcessStartedEvent.java index 3bb404025e7..eb10041f346 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/ProcessStartedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessStartedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; /** diff --git a/kie-api/src/main/java/org/kie/api/event/process/ProcessVariableChangedEvent.java b/kie-api/src/main/java/org/kie/api/event/process/ProcessVariableChangedEvent.java index c28ed428dd5..15df383035d 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/ProcessVariableChangedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/ProcessVariableChangedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/event/process/SLAViolatedEvent.java b/kie-api/src/main/java/org/kie/api/event/process/SLAViolatedEvent.java index 3b2a4108f12..c0f81f4083b 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/SLAViolatedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/SLAViolatedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.event.process; import org.kie.api.runtime.process.NodeInstance; diff --git a/kie-api/src/main/java/org/kie/api/event/process/SignalEvent.java b/kie-api/src/main/java/org/kie/api/event/process/SignalEvent.java index 45e8c63a18d..3f2f269ad88 100644 --- a/kie-api/src/main/java/org/kie/api/event/process/SignalEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/process/SignalEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.event.process; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/AfterMatchFiredEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/AfterMatchFiredEvent.java index 01482d1ebad..1995a501a7f 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/AfterMatchFiredEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/AfterMatchFiredEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/AgendaEventListener.java b/kie-api/src/main/java/org/kie/api/event/rule/AgendaEventListener.java index 8df43fe6fa4..04e8bbc3bc3 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/AgendaEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/AgendaEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; import java.util.EventListener; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupEvent.java index 7baa69d0389..9b4d6cd115a 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; import org.kie.api.event.KieRuntimeEvent; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupPoppedEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupPoppedEvent.java index 247a46db94f..1bc1c049d4d 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupPoppedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupPoppedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupPushedEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupPushedEvent.java index 6a4059daeb7..4a004dc1b95 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupPushedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/AgendaGroupPushedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/BeforeMatchFiredEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/BeforeMatchFiredEvent.java index a578ee40f20..f522c7b42ed 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/BeforeMatchFiredEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/BeforeMatchFiredEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/DebugAgendaEventListener.java b/kie-api/src/main/java/org/kie/api/event/rule/DebugAgendaEventListener.java index 471fa805cd7..e3e9345e261 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/DebugAgendaEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/DebugAgendaEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; import java.io.PrintStream; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/DebugRuleRuntimeEventListener.java b/kie-api/src/main/java/org/kie/api/event/rule/DebugRuleRuntimeEventListener.java index 79b5ef72182..def42377338 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/DebugRuleRuntimeEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/DebugRuleRuntimeEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; import java.io.PrintStream; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/DefaultAgendaEventListener.java b/kie-api/src/main/java/org/kie/api/event/rule/DefaultAgendaEventListener.java index e6b13d5efb9..261caa29471 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/DefaultAgendaEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/DefaultAgendaEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; public class DefaultAgendaEventListener diff --git a/kie-api/src/main/java/org/kie/api/event/rule/DefaultRuleRuntimeEventListener.java b/kie-api/src/main/java/org/kie/api/event/rule/DefaultRuleRuntimeEventListener.java index f2beb7f3025..88dc32e6edf 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/DefaultRuleRuntimeEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/DefaultRuleRuntimeEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; public class DefaultRuleRuntimeEventListener diff --git a/kie-api/src/main/java/org/kie/api/event/rule/MatchCancelledCause.java b/kie-api/src/main/java/org/kie/api/event/rule/MatchCancelledCause.java index d5bceec77c6..519dd954202 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/MatchCancelledCause.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/MatchCancelledCause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; public enum MatchCancelledCause { diff --git a/kie-api/src/main/java/org/kie/api/event/rule/MatchCancelledEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/MatchCancelledEvent.java index 863dd1f4a1e..7ea5b117f62 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/MatchCancelledEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/MatchCancelledEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/MatchCreatedEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/MatchCreatedEvent.java index 5e3c409dc90..e6965a0b529 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/MatchCreatedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/MatchCreatedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/MatchEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/MatchEvent.java index 2192ac62413..18a06bcd3f3 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/MatchEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/MatchEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; import org.kie.api.event.KieRuntimeEvent; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/ObjectDeletedEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/ObjectDeletedEvent.java index 44de6c7e097..0238819fe30 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/ObjectDeletedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/ObjectDeletedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/ObjectInsertedEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/ObjectInsertedEvent.java index d72b87a85d6..36a88c48051 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/ObjectInsertedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/ObjectInsertedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/ObjectUpdatedEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/ObjectUpdatedEvent.java index 6d6fb38da29..c6d557f0175 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/ObjectUpdatedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/ObjectUpdatedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupActivatedEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupActivatedEvent.java index d36e655cc71..d8cee273b62 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupActivatedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupActivatedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupDeactivatedEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupDeactivatedEvent.java index d07f9bad658..82e0829c77c 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupDeactivatedEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupDeactivatedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupEvent.java index 57bc8e2aa75..0bb5e0d9a74 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/RuleFlowGroupEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.event.rule; import org.kie.api.event.KieRuntimeEvent; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEvent.java b/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEvent.java index 97d24b0c598..abd04513a1c 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEvent.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEvent.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.event.rule; import org.kie.api.event.KieRuntimeEvent; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEventListener.java b/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEventListener.java index a11dd059041..88ee87cb303 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEventListener.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEventListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.event.rule; import java.util.EventListener; diff --git a/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEventManager.java b/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEventManager.java index cbc6b27b290..def6772c378 100644 --- a/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEventManager.java +++ b/kie-api/src/main/java/org/kie/api/event/rule/RuleRuntimeEventManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.event.rule; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/fluent/ActionNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/ActionNodeBuilder.java index 09d867be147..f233f1fe51c 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/ActionNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/ActionNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/BoundaryEventNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/BoundaryEventNodeBuilder.java index 3a987b8c8b1..3ff3f2fbbb2 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/BoundaryEventNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/BoundaryEventNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/CompositeNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/CompositeNodeBuilder.java index 56a50ad2c01..71ac1db37d6 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/CompositeNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/CompositeNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/CompositeNodeOperations.java b/kie-api/src/main/java/org/kie/api/fluent/CompositeNodeOperations.java index 77818710e6c..5894c323e56 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/CompositeNodeOperations.java +++ b/kie-api/src/main/java/org/kie/api/fluent/CompositeNodeOperations.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/Dialect.java b/kie-api/src/main/java/org/kie/api/fluent/Dialect.java index efea4613325..558c66f1871 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/Dialect.java +++ b/kie-api/src/main/java/org/kie/api/fluent/Dialect.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/DynamicNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/DynamicNodeBuilder.java index 43ec9a8d923..1e9716e6d18 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/DynamicNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/DynamicNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/EndNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/EndNodeBuilder.java index d745f4fdb1b..58be4cc469c 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/EndNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/EndNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/EventNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/EventNodeBuilder.java index f14e528b6e4..c98ac354abe 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/EventNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/EventNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/EventNodeOperations.java b/kie-api/src/main/java/org/kie/api/fluent/EventNodeOperations.java index 13711ca9c57..2b074816ce5 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/EventNodeOperations.java +++ b/kie-api/src/main/java/org/kie/api/fluent/EventNodeOperations.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/FaultNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/FaultNodeBuilder.java index 693b649428d..0f3c6e316e6 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/FaultNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/FaultNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/ForEachNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/ForEachNodeBuilder.java index acaf82e6418..e934b49cd02 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/ForEachNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/ForEachNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/HumanNodeOperations.java b/kie-api/src/main/java/org/kie/api/fluent/HumanNodeOperations.java index e04c691c322..5f6acfa2378 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/HumanNodeOperations.java +++ b/kie-api/src/main/java/org/kie/api/fluent/HumanNodeOperations.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/HumanTaskNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/HumanTaskNodeBuilder.java index 5f01f5af3b5..f8c932807b7 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/HumanTaskNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/HumanTaskNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/JoinNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/JoinNodeBuilder.java index 499fb647f04..4e5162bbc6a 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/JoinNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/JoinNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/MilestoneNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/MilestoneNodeBuilder.java index 18491f1f798..0b93a4b4e7f 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/MilestoneNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/MilestoneNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/NodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/NodeBuilder.java index 3e796d344a6..79c04ab833b 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/NodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/NodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/NodeContainerBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/NodeContainerBuilder.java index e25c012c860..6ae96ca34a0 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/NodeContainerBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/NodeContainerBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilder.java index c88903b3b27..bee76f715f4 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilderFactories.java b/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilderFactories.java index a54727772b1..21b744befd2 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilderFactories.java +++ b/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilderFactories.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilderFactory.java b/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilderFactory.java index c6ba574cf03..f43fa4cd670 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilderFactory.java +++ b/kie-api/src/main/java/org/kie/api/fluent/ProcessBuilderFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/RuleSetNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/RuleSetNodeBuilder.java index 4eb27863964..ce54d461dc8 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/RuleSetNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/RuleSetNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/SplitNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/SplitNodeBuilder.java index c8280785b52..0b75e496eba 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/SplitNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/SplitNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/StartNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/StartNodeBuilder.java index 0be806494dd..a4c629516fc 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/StartNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/StartNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/SubProcessNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/SubProcessNodeBuilder.java index 5cf41189974..3311e709b33 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/SubProcessNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/SubProcessNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/TimerNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/TimerNodeBuilder.java index 0d822959a5e..9999c288df6 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/TimerNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/TimerNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/TimerOperations.java b/kie-api/src/main/java/org/kie/api/fluent/TimerOperations.java index 2b84288c08e..5711e62e9b0 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/TimerOperations.java +++ b/kie-api/src/main/java/org/kie/api/fluent/TimerOperations.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/Variable.java b/kie-api/src/main/java/org/kie/api/fluent/Variable.java index 853edf0875d..9f489a248b5 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/Variable.java +++ b/kie-api/src/main/java/org/kie/api/fluent/Variable.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/WorkItemNodeBuilder.java b/kie-api/src/main/java/org/kie/api/fluent/WorkItemNodeBuilder.java index cd9e8261434..c3e92ff5a8f 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/WorkItemNodeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/fluent/WorkItemNodeBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.fluent; diff --git a/kie-api/src/main/java/org/kie/api/fluent/package-info.java b/kie-api/src/main/java/org/kie/api/fluent/package-info.java index 6bf21bcf163..bd3d74200d2 100644 --- a/kie-api/src/main/java/org/kie/api/fluent/package-info.java +++ b/kie-api/src/main/java/org/kie/api/fluent/package-info.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ /** * Process Fluent API allows programmer to build an in memory representation of a bpmn file.
diff --git a/kie-api/src/main/java/org/kie/api/internal/assembler/KieAssemblerService.java b/kie-api/src/main/java/org/kie/api/internal/assembler/KieAssemblerService.java index 51aad5795ac..c2e1b24b14f 100644 --- a/kie-api/src/main/java/org/kie/api/internal/assembler/KieAssemblerService.java +++ b/kie-api/src/main/java/org/kie/api/internal/assembler/KieAssemblerService.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.internal.assembler; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/internal/assembler/KieAssemblers.java b/kie-api/src/main/java/org/kie/api/internal/assembler/KieAssemblers.java index 4fbb725dcaf..df38cdeec3f 100644 --- a/kie-api/src/main/java/org/kie/api/internal/assembler/KieAssemblers.java +++ b/kie-api/src/main/java/org/kie/api/internal/assembler/KieAssemblers.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.internal.assembler; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/internal/assembler/ProcessedResource.java b/kie-api/src/main/java/org/kie/api/internal/assembler/ProcessedResource.java index 3a67f8173ab..19f3babb516 100644 --- a/kie-api/src/main/java/org/kie/api/internal/assembler/ProcessedResource.java +++ b/kie-api/src/main/java/org/kie/api/internal/assembler/ProcessedResource.java @@ -1,20 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.internal.assembler; import org.kie.api.io.Resource; diff --git a/kie-api/src/main/java/org/kie/api/internal/io/ResourceTypePackage.java b/kie-api/src/main/java/org/kie/api/internal/io/ResourceTypePackage.java index 9fb454f0d7c..69874d7afc1 100644 --- a/kie-api/src/main/java/org/kie/api/internal/io/ResourceTypePackage.java +++ b/kie-api/src/main/java/org/kie/api/internal/io/ResourceTypePackage.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.api.internal.io; import java.io.Serializable; diff --git a/kie-api/src/main/java/org/kie/api/internal/runtime/KieRuntimeService.java b/kie-api/src/main/java/org/kie/api/internal/runtime/KieRuntimeService.java index 568d6dc2b18..de3d3a66f13 100644 --- a/kie-api/src/main/java/org/kie/api/internal/runtime/KieRuntimeService.java +++ b/kie-api/src/main/java/org/kie/api/internal/runtime/KieRuntimeService.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.internal.runtime; import org.kie.api.KieBase; diff --git a/kie-api/src/main/java/org/kie/api/internal/runtime/KieRuntimes.java b/kie-api/src/main/java/org/kie/api/internal/runtime/KieRuntimes.java index 33d9ffc6171..74e77348621 100644 --- a/kie-api/src/main/java/org/kie/api/internal/runtime/KieRuntimes.java +++ b/kie-api/src/main/java/org/kie/api/internal/runtime/KieRuntimes.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.internal.runtime; import org.kie.api.internal.utils.KieService; diff --git a/kie-api/src/main/java/org/kie/api/internal/utils/KieService.java b/kie-api/src/main/java/org/kie/api/internal/utils/KieService.java index 75d5bbfe4a9..a0bf1b2ad9f 100644 --- a/kie-api/src/main/java/org/kie/api/internal/utils/KieService.java +++ b/kie-api/src/main/java/org/kie/api/internal/utils/KieService.java @@ -1,27 +1,38 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.internal.utils; import java.util.ServiceLoader; public interface KieService extends Comparable { + + public static final String UNDEFINED = "undefined"; + default int servicePriority() { return 0; } + // Override when you want to load a service based on a tag + default String serviceTag() { + return UNDEFINED; + } + @Override default int compareTo(KieService other) { if (servicePriority() == other.servicePriority()) { @@ -40,4 +51,23 @@ static T load(Class serviceClass) { } return service; } + + static T loadWithTag(Class serviceClass, String tag) { + if (tag == null || tag.equals(UNDEFINED)) { + return load(serviceClass); // fall back to priority based loading + } + + ServiceLoader loader = ServiceLoader.load(serviceClass, serviceClass.getClassLoader()); + T service = null; + for (T impl : loader) { + if (tag.equals(impl.serviceTag())) { // accept only services with the specified tag + if (service == null) { + service = impl; + } else { + throw new IllegalStateException("Found 2 services with the same tag \"" + tag + "\": " + service.getClass().getCanonicalName() + " and " + impl.getClass().getCanonicalName()); + } + } + } + return service; + } } diff --git a/kie-api/src/main/java/org/kie/api/internal/weaver/KieWeaverService.java b/kie-api/src/main/java/org/kie/api/internal/weaver/KieWeaverService.java index 603ebab7493..522777f9ae3 100644 --- a/kie-api/src/main/java/org/kie/api/internal/weaver/KieWeaverService.java +++ b/kie-api/src/main/java/org/kie/api/internal/weaver/KieWeaverService.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.internal.weaver; import org.kie.api.definition.KiePackage; diff --git a/kie-api/src/main/java/org/kie/api/internal/weaver/KieWeavers.java b/kie-api/src/main/java/org/kie/api/internal/weaver/KieWeavers.java index 33a82b3ac70..536ed3fdaf4 100644 --- a/kie-api/src/main/java/org/kie/api/internal/weaver/KieWeavers.java +++ b/kie-api/src/main/java/org/kie/api/internal/weaver/KieWeavers.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.internal.weaver; import org.kie.api.definition.KiePackage; diff --git a/kie-api/src/main/java/org/kie/api/io/KieResources.java b/kie-api/src/main/java/org/kie/api/io/KieResources.java index 8ec69b7b9de..0df0f322ba7 100644 --- a/kie-api/src/main/java/org/kie/api/io/KieResources.java +++ b/kie-api/src/main/java/org/kie/api/io/KieResources.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.io; import java.io.File; diff --git a/kie-api/src/main/java/org/kie/api/io/Resource.java b/kie-api/src/main/java/org/kie/api/io/Resource.java index 31cdf514b2f..5a1f409067c 100644 --- a/kie-api/src/main/java/org/kie/api/io/Resource.java +++ b/kie-api/src/main/java/org/kie/api/io/Resource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.io; import java.io.IOException; diff --git a/kie-api/src/main/java/org/kie/api/io/ResourceConfiguration.java b/kie-api/src/main/java/org/kie/api/io/ResourceConfiguration.java index bba714930d7..ba29a7894bc 100644 --- a/kie-api/src/main/java/org/kie/api/io/ResourceConfiguration.java +++ b/kie-api/src/main/java/org/kie/api/io/ResourceConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.io; import java.util.Properties; diff --git a/kie-api/src/main/java/org/kie/api/io/ResourceType.java b/kie-api/src/main/java/org/kie/api/io/ResourceType.java index 3c3fe0d19cc..3b0f22416c3 100644 --- a/kie-api/src/main/java/org/kie/api/io/ResourceType.java +++ b/kie-api/src/main/java/org/kie/api/io/ResourceType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.io; import java.io.Serializable; diff --git a/kie-api/src/main/java/org/kie/api/io/ResourceWithConfiguration.java b/kie-api/src/main/java/org/kie/api/io/ResourceWithConfiguration.java index 7a8739c5ad5..be807bff70e 100644 --- a/kie-api/src/main/java/org/kie/api/io/ResourceWithConfiguration.java +++ b/kie-api/src/main/java/org/kie/api/io/ResourceWithConfiguration.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.api.io; import java.util.function.Consumer; diff --git a/kie-api/src/main/java/org/kie/api/logger/KieLoggers.java b/kie-api/src/main/java/org/kie/api/logger/KieLoggers.java index 6300e07cccb..aba9da54ef1 100644 --- a/kie-api/src/main/java/org/kie/api/logger/KieLoggers.java +++ b/kie-api/src/main/java/org/kie/api/logger/KieLoggers.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.logger; import org.kie.api.event.KieRuntimeEventManager; diff --git a/kie-api/src/main/java/org/kie/api/logger/KieRuntimeLogger.java b/kie-api/src/main/java/org/kie/api/logger/KieRuntimeLogger.java index 642544ef678..84804e69ded 100644 --- a/kie-api/src/main/java/org/kie/api/logger/KieRuntimeLogger.java +++ b/kie-api/src/main/java/org/kie/api/logger/KieRuntimeLogger.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.logger; /** diff --git a/kie-api/src/main/java/org/kie/api/management/GAV.java b/kie-api/src/main/java/org/kie/api/management/GAV.java index f16cc32b403..9a4357fb1f9 100644 --- a/kie-api/src/main/java/org/kie/api/management/GAV.java +++ b/kie-api/src/main/java/org/kie/api/management/GAV.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.api.management; import javax.management.openmbean.CompositeData; diff --git a/kie-api/src/main/java/org/kie/api/management/GenericKieSessionMonitoringMXBean.java b/kie-api/src/main/java/org/kie/api/management/GenericKieSessionMonitoringMXBean.java index c1785668aad..bdb7b471147 100644 --- a/kie-api/src/main/java/org/kie/api/management/GenericKieSessionMonitoringMXBean.java +++ b/kie-api/src/main/java/org/kie/api/management/GenericKieSessionMonitoringMXBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.management; import java.util.Date; diff --git a/kie-api/src/main/java/org/kie/api/management/KieBaseConfigurationMonitorMBean.java b/kie-api/src/main/java/org/kie/api/management/KieBaseConfigurationMonitorMBean.java index 2a2e5e01449..a443acf6dc6 100644 --- a/kie-api/src/main/java/org/kie/api/management/KieBaseConfigurationMonitorMBean.java +++ b/kie-api/src/main/java/org/kie/api/management/KieBaseConfigurationMonitorMBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.management; public interface KieBaseConfigurationMonitorMBean { @@ -45,9 +47,6 @@ public interface KieBaseConfigurationMonitorMBean { public boolean isMBeansEnabled(); - @Deprecated - public boolean isMultithreadEvaluation(); - public boolean isRemoveIdentities(); @Deprecated diff --git a/kie-api/src/main/java/org/kie/api/management/KieContainerMonitorMXBean.java b/kie-api/src/main/java/org/kie/api/management/KieContainerMonitorMXBean.java index 41eb5f838f0..1bcae0b010f 100644 --- a/kie-api/src/main/java/org/kie/api/management/KieContainerMonitorMXBean.java +++ b/kie-api/src/main/java/org/kie/api/management/KieContainerMonitorMXBean.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.api.management; public interface KieContainerMonitorMXBean { diff --git a/kie-api/src/main/java/org/kie/api/management/KieManagementAgentMBean.java b/kie-api/src/main/java/org/kie/api/management/KieManagementAgentMBean.java index e5e0cec8d83..394443caaef 100644 --- a/kie-api/src/main/java/org/kie/api/management/KieManagementAgentMBean.java +++ b/kie-api/src/main/java/org/kie/api/management/KieManagementAgentMBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.management; /** diff --git a/kie-api/src/main/java/org/kie/api/management/KieSessionMonitoringMXBean.java b/kie-api/src/main/java/org/kie/api/management/KieSessionMonitoringMXBean.java index 717a03f9ff1..c4dc75c868e 100644 --- a/kie-api/src/main/java/org/kie/api/management/KieSessionMonitoringMXBean.java +++ b/kie-api/src/main/java/org/kie/api/management/KieSessionMonitoringMXBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.management; /** diff --git a/kie-api/src/main/java/org/kie/api/management/ObjectTypeNodeMonitorMBean.java b/kie-api/src/main/java/org/kie/api/management/ObjectTypeNodeMonitorMBean.java index 62bb6e23e3a..6613c840c56 100644 --- a/kie-api/src/main/java/org/kie/api/management/ObjectTypeNodeMonitorMBean.java +++ b/kie-api/src/main/java/org/kie/api/management/ObjectTypeNodeMonitorMBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.management; /** diff --git a/kie-api/src/main/java/org/kie/api/management/StatelessKieSessionMonitoringMXBean.java b/kie-api/src/main/java/org/kie/api/management/StatelessKieSessionMonitoringMXBean.java index b66c0f2aaea..dbde91c3788 100644 --- a/kie-api/src/main/java/org/kie/api/management/StatelessKieSessionMonitoringMXBean.java +++ b/kie-api/src/main/java/org/kie/api/management/StatelessKieSessionMonitoringMXBean.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.management; /** diff --git a/kie-api/src/main/java/org/kie/api/marshalling/KieMarshallers.java b/kie-api/src/main/java/org/kie/api/marshalling/KieMarshallers.java index 3de276a06ed..5f681c2ea2d 100644 --- a/kie-api/src/main/java/org/kie/api/marshalling/KieMarshallers.java +++ b/kie-api/src/main/java/org/kie/api/marshalling/KieMarshallers.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.marshalling; import org.kie.api.KieBase; diff --git a/kie-api/src/main/java/org/kie/api/marshalling/Marshaller.java b/kie-api/src/main/java/org/kie/api/marshalling/Marshaller.java index 77b7770258d..9430976051e 100644 --- a/kie-api/src/main/java/org/kie/api/marshalling/Marshaller.java +++ b/kie-api/src/main/java/org/kie/api/marshalling/Marshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.marshalling; import java.io.IOException; diff --git a/kie-api/src/main/java/org/kie/api/marshalling/MarshallingConfiguration.java b/kie-api/src/main/java/org/kie/api/marshalling/MarshallingConfiguration.java index 7d852ab154e..17789dc316b 100644 --- a/kie-api/src/main/java/org/kie/api/marshalling/MarshallingConfiguration.java +++ b/kie-api/src/main/java/org/kie/api/marshalling/MarshallingConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.marshalling; diff --git a/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategy.java b/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategy.java index 00fa22cd655..be2535bd894 100644 --- a/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategy.java +++ b/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.marshalling; import java.io.IOException; diff --git a/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategyAcceptor.java b/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategyAcceptor.java index 3bff5fe6d5d..1ce3fdf6810 100644 --- a/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategyAcceptor.java +++ b/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategyAcceptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.marshalling; public interface ObjectMarshallingStrategyAcceptor { diff --git a/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategyStore.java b/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategyStore.java index c322b577395..012f160bc3f 100644 --- a/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategyStore.java +++ b/kie-api/src/main/java/org/kie/api/marshalling/ObjectMarshallingStrategyStore.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.marshalling; public interface ObjectMarshallingStrategyStore { diff --git a/kie-api/src/main/java/org/kie/api/persistence/ObjectStoringStrategy.java b/kie-api/src/main/java/org/kie/api/persistence/ObjectStoringStrategy.java index 85bb9dc44a1..4a9cdb63795 100644 --- a/kie-api/src/main/java/org/kie/api/persistence/ObjectStoringStrategy.java +++ b/kie-api/src/main/java/org/kie/api/persistence/ObjectStoringStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.persistence; public interface ObjectStoringStrategy { diff --git a/kie-api/src/main/java/org/kie/api/persistence/jpa/KieStoreServices.java b/kie-api/src/main/java/org/kie/api/persistence/jpa/KieStoreServices.java index 5a56ddc0c63..ff71ee70df2 100644 --- a/kie-api/src/main/java/org/kie/api/persistence/jpa/KieStoreServices.java +++ b/kie-api/src/main/java/org/kie/api/persistence/jpa/KieStoreServices.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.persistence.jpa; import org.kie.api.KieBase; diff --git a/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java b/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java index cb33ba3dc3d..9c727454aca 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java +++ b/kie-api/src/main/java/org/kie/api/pmml/AbstractOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java b/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java index 413db4a8fd1..54fbc053050 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java +++ b/kie-api/src/main/java/org/kie/api/pmml/DoubleFieldOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java b/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java index 0de625b8f2f..eebb975416d 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java +++ b/kie-api/src/main/java/org/kie/api/pmml/IntegerFieldOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/OutputFieldFactory.java b/kie-api/src/main/java/org/kie/api/pmml/OutputFieldFactory.java index e9c70e36b67..f97b0a6b261 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/OutputFieldFactory.java +++ b/kie-api/src/main/java/org/kie/api/pmml/OutputFieldFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4AbstractField.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4AbstractField.java index ab0d7521bf2..d0d5e1c91cf 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4AbstractField.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4AbstractField.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4Data.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4Data.java index 4c614e4dc29..c7fab658bd5 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4Data.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4Data.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java index 5294014700d..63515db55ad 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4DataField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4DataType.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4DataType.java index 4b44c75f2f2..8db18b32133 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4DataType.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4DataType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4Field.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4Field.java index d1ad838bbc0..f5a4599e207 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4Field.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4Field.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4Output.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4Output.java index e17cedbbbbf..0a2b3a378b1 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4Output.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4Output.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java index f795d3a5b01..cf5a1191036 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4OutputField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java b/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java index 49728c846fc..d3421b3bff6 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMML4Result.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java b/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java index b39d168f63f..235999635f0 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java +++ b/kie-api/src/main/java/org/kie/api/pmml/PMMLRequestData.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java b/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java index 677a93b394b..2f83078daab 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java +++ b/kie-api/src/main/java/org/kie/api/pmml/ParameterInfo.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java b/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java index 1d59e1de4dd..f21eb8951ad 100644 --- a/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java +++ b/kie-api/src/main/java/org/kie/api/pmml/StringFieldOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.pmml; diff --git a/kie-api/src/main/java/org/kie/api/remote/Remotable.java b/kie-api/src/main/java/org/kie/api/remote/Remotable.java index 44e5d68c371..fdfc188da79 100644 --- a/kie-api/src/main/java/org/kie/api/remote/Remotable.java +++ b/kie-api/src/main/java/org/kie/api/remote/Remotable.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.api.remote; import java.lang.annotation.Documented; diff --git a/kie-api/src/main/java/org/kie/api/runtime/BatchRequestMessage.java b/kie-api/src/main/java/org/kie/api/runtime/BatchRequestMessage.java index 0892d1f20fa..cb6ea3ffdd6 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/BatchRequestMessage.java +++ b/kie-api/src/main/java/org/kie/api/runtime/BatchRequestMessage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/runtime/Calendars.java b/kie-api/src/main/java/org/kie/api/runtime/Calendars.java index 94cb68a27cd..79181353630 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/Calendars.java +++ b/kie-api/src/main/java/org/kie/api/runtime/Calendars.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; import org.kie.api.time.Calendar; diff --git a/kie-api/src/main/java/org/kie/api/runtime/Channel.java b/kie-api/src/main/java/org/kie/api/runtime/Channel.java index 9b6d918cbdc..dd081112ee1 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/Channel.java +++ b/kie-api/src/main/java/org/kie/api/runtime/Channel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/ClassObjectFilter.java b/kie-api/src/main/java/org/kie/api/runtime/ClassObjectFilter.java index 3ae720a89b2..b2f456f04b3 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/ClassObjectFilter.java +++ b/kie-api/src/main/java/org/kie/api/runtime/ClassObjectFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/CommandExecutor.java b/kie-api/src/main/java/org/kie/api/runtime/CommandExecutor.java index 460ff5ac776..18a64d550b3 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/CommandExecutor.java +++ b/kie-api/src/main/java/org/kie/api/runtime/CommandExecutor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; import org.kie.api.command.Command; diff --git a/kie-api/src/main/java/org/kie/api/runtime/Context.java b/kie-api/src/main/java/org/kie/api/runtime/Context.java index d499d960156..aa38652cbec 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/Context.java +++ b/kie-api/src/main/java/org/kie/api/runtime/Context.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/Environment.java b/kie-api/src/main/java/org/kie/api/runtime/Environment.java index adf457d0983..c424615c54e 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/Environment.java +++ b/kie-api/src/main/java/org/kie/api/runtime/Environment.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; public interface Environment { diff --git a/kie-api/src/main/java/org/kie/api/runtime/EnvironmentName.java b/kie-api/src/main/java/org/kie/api/runtime/EnvironmentName.java index 27dfdc7fda4..d29885fe078 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/EnvironmentName.java +++ b/kie-api/src/main/java/org/kie/api/runtime/EnvironmentName.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; public class EnvironmentName { diff --git a/kie-api/src/main/java/org/kie/api/runtime/Executable.java b/kie-api/src/main/java/org/kie/api/runtime/Executable.java index 26c65e2681d..3a38e391514 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/Executable.java +++ b/kie-api/src/main/java/org/kie/api/runtime/Executable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; public interface Executable { diff --git a/kie-api/src/main/java/org/kie/api/runtime/ExecutableRunner.java b/kie-api/src/main/java/org/kie/api/runtime/ExecutableRunner.java index 102a95277df..03f4ccd6042 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/ExecutableRunner.java +++ b/kie-api/src/main/java/org/kie/api/runtime/ExecutableRunner.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; import org.kie.api.command.Command; diff --git a/kie-api/src/main/java/org/kie/api/runtime/ExecutionResults.java b/kie-api/src/main/java/org/kie/api/runtime/ExecutionResults.java index 5b927a0588f..3a77683b91e 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/ExecutionResults.java +++ b/kie-api/src/main/java/org/kie/api/runtime/ExecutionResults.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/runtime/Globals.java b/kie-api/src/main/java/org/kie/api/runtime/Globals.java index 836c9c548de..693bfccfca0 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/Globals.java +++ b/kie-api/src/main/java/org/kie/api/runtime/Globals.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/runtime/KieContainer.java b/kie-api/src/main/java/org/kie/api/runtime/KieContainer.java index 88482ab8530..6da3b39306a 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/KieContainer.java +++ b/kie-api/src/main/java/org/kie/api/runtime/KieContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/runtime/KieContainerSessionsPool.java b/kie-api/src/main/java/org/kie/api/runtime/KieContainerSessionsPool.java index 433c5b669d5..077e548ae2e 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/KieContainerSessionsPool.java +++ b/kie-api/src/main/java/org/kie/api/runtime/KieContainerSessionsPool.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 JBoss Inc - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; import org.kie.api.command.Command; diff --git a/kie-api/src/main/java/org/kie/api/runtime/KieContext.java b/kie-api/src/main/java/org/kie/api/runtime/KieContext.java index 262651a9a75..2131c90a9b5 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/KieContext.java +++ b/kie-api/src/main/java/org/kie/api/runtime/KieContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; import org.kie.api.KieBase; diff --git a/kie-api/src/main/java/org/kie/api/runtime/KieRuntime.java b/kie-api/src/main/java/org/kie/api/runtime/KieRuntime.java index 317bbfa4de2..1ea1669fc18 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/KieRuntime.java +++ b/kie-api/src/main/java/org/kie/api/runtime/KieRuntime.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/runtime/KieRuntimeBuilder.java b/kie-api/src/main/java/org/kie/api/runtime/KieRuntimeBuilder.java index 5d67113ce60..4628f816bbe 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/KieRuntimeBuilder.java +++ b/kie-api/src/main/java/org/kie/api/runtime/KieRuntimeBuilder.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.api.runtime; import org.kie.api.KieBase; diff --git a/kie-api/src/main/java/org/kie/api/runtime/KieRuntimeFactory.java b/kie-api/src/main/java/org/kie/api/runtime/KieRuntimeFactory.java index 15f4d6126f3..b13c80eca7a 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/KieRuntimeFactory.java +++ b/kie-api/src/main/java/org/kie/api/runtime/KieRuntimeFactory.java @@ -1,20 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 * - * Unless required by applicable law or agreed to in writing, software + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.runtime; import java.util.NoSuchElementException; diff --git a/kie-api/src/main/java/org/kie/api/runtime/KieSession.java b/kie-api/src/main/java/org/kie/api/runtime/KieSession.java index aca9e6f4460..7c6267f377e 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/KieSession.java +++ b/kie-api/src/main/java/org/kie/api/runtime/KieSession.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; import org.kie.api.runtime.process.StatefulProcessSession; diff --git a/kie-api/src/main/java/org/kie/api/runtime/KieSessionConfiguration.java b/kie-api/src/main/java/org/kie/api/runtime/KieSessionConfiguration.java index ff721e1cc36..7b9bc770685 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/KieSessionConfiguration.java +++ b/kie-api/src/main/java/org/kie/api/runtime/KieSessionConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; import org.kie.api.runtime.conf.KieSessionOptionsConfiguration; diff --git a/kie-api/src/main/java/org/kie/api/runtime/KieSessionsPool.java b/kie-api/src/main/java/org/kie/api/runtime/KieSessionsPool.java index 760db9a4b03..d894c63e850 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/KieSessionsPool.java +++ b/kie-api/src/main/java/org/kie/api/runtime/KieSessionsPool.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 JBoss Inc - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; import org.kie.api.command.Command; diff --git a/kie-api/src/main/java/org/kie/api/runtime/ObjectFilter.java b/kie-api/src/main/java/org/kie/api/runtime/ObjectFilter.java index c6cf199c264..d9a3880c6b0 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/ObjectFilter.java +++ b/kie-api/src/main/java/org/kie/api/runtime/ObjectFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/RequestContext.java b/kie-api/src/main/java/org/kie/api/runtime/RequestContext.java index d9d66c9617a..e0dadb44d2f 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/RequestContext.java +++ b/kie-api/src/main/java/org/kie/api/runtime/RequestContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/runtime/StatelessKieSession.java b/kie-api/src/main/java/org/kie/api/runtime/StatelessKieSession.java index 772558e594f..4c7869eb1e6 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/StatelessKieSession.java +++ b/kie-api/src/main/java/org/kie/api/runtime/StatelessKieSession.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/AccumulateNullPropagationOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/AccumulateNullPropagationOption.java index 89abf9ed369..f1c6a781f62 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/AccumulateNullPropagationOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/AccumulateNullPropagationOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/BeliefSystemTypeOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/BeliefSystemTypeOption.java index 75808de9d47..3b493f91586 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/BeliefSystemTypeOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/BeliefSystemTypeOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/ClockTypeOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/ClockTypeOption.java index 163e9dd9e49..9350f80d2dc 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/ClockTypeOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/ClockTypeOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/DirectFiringOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/DirectFiringOption.java index 448a2427a41..425a6f2f1f7 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/DirectFiringOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/DirectFiringOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/KeepReferenceOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/KeepReferenceOption.java index a505bddb405..84c16c1cd04 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/KeepReferenceOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/KeepReferenceOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/KieSessionOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/KieSessionOption.java index d16d4cd28a8..7cf62dc397c 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/KieSessionOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/KieSessionOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.Option; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/KieSessionOptionsConfiguration.java b/kie-api/src/main/java/org/kie/api/runtime/conf/KieSessionOptionsConfiguration.java index 22e3a1776ff..ac45a1786b3 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/KieSessionOptionsConfiguration.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/KieSessionOptionsConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionsConfiguration; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/MultiValueKieSessionOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/MultiValueKieSessionOption.java index a7d51f3e7e3..7e02c202683 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/MultiValueKieSessionOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/MultiValueKieSessionOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.MultiValueOption; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/MultiValueRuleRuntimeOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/MultiValueRuleRuntimeOption.java index c7707cd87a4..37f8e5e7012 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/MultiValueRuleRuntimeOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/MultiValueRuleRuntimeOption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.runtime.conf; public interface MultiValueRuleRuntimeOption extends MultiValueKieSessionOption { diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/PersistedSessionOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/PersistedSessionOption.java index aa6fa2082ee..2ce05fd0dfa 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/PersistedSessionOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/PersistedSessionOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; @@ -28,6 +30,10 @@ public enum PersistenceStrategy { FULL, STORES_ONLY } + public enum PersistenceObjectsStrategy { + SIMPLE, OBJECT_REFERENCES + } + public enum SafepointStrategy { ALWAYS, AFTER_FIRE, EXPLICIT; @@ -36,6 +42,14 @@ public boolean useSafepoints() { } } + /** + * NONE : On restoring a session, filter firing based on StoredObject.isPropagated + * ACTIVATION_KEY : On restoring a session, filter firing based on StoredObject.isPropagated and persisted ActivationKey + */ + public enum ActivationStrategy { + NONE, ACTIVATION_KEY + } + /** * The property name for the clock type configuration */ @@ -45,8 +59,12 @@ public boolean useSafepoints() { private PersistenceStrategy persistenceStrategy = PersistenceStrategy.FULL; + private PersistenceObjectsStrategy persistenceObjectsStrategy = PersistenceObjectsStrategy.SIMPLE; + private SafepointStrategy safepointStrategy = SafepointStrategy.ALWAYS; + private ActivationStrategy activationStrategy = ActivationStrategy.NONE; + private PersistedSessionOption() { this(-1L); } @@ -78,6 +96,13 @@ public PersistenceStrategy getPersistenceStrategy() { return persistenceStrategy; } + public PersistenceObjectsStrategy getPersistenceObjectsStrategy() {return persistenceObjectsStrategy;} + + public PersistedSessionOption withPersistenceObjectsStrategy(PersistenceObjectsStrategy persistenceObjectsStrategy){ + this.persistenceObjectsStrategy = persistenceObjectsStrategy; + return this; + } + public PersistedSessionOption withPersistenceStrategy(PersistenceStrategy persistenceStrategy) { this.persistenceStrategy = persistenceStrategy; return this; @@ -92,6 +117,15 @@ public PersistedSessionOption withSafepointStrategy(SafepointStrategy safepointS return this; } + public ActivationStrategy getActivationStrategy() { + return activationStrategy; + } + + public PersistedSessionOption withActivationStrategy(ActivationStrategy activationStrategy) { + this.activationStrategy = activationStrategy; + return this; + } + public boolean isNewSession() { return sessionId < 0; } diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/QueryListenerOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/QueryListenerOption.java index 39a79227139..db73a7be3e5 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/QueryListenerOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/QueryListenerOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/SingleValueKieSessionOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/SingleValueKieSessionOption.java index 750464c1cdf..9863be8a5ee 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/SingleValueKieSessionOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/SingleValueKieSessionOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.SingleValueOption; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/SingleValueRuleRuntimeOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/SingleValueRuleRuntimeOption.java index 2442e74275c..43038d5058b 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/SingleValueRuleRuntimeOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/SingleValueRuleRuntimeOption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.runtime.conf; public interface SingleValueRuleRuntimeOption extends SingleValueKieSessionOption { diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/ThreadSafeOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/ThreadSafeOption.java index 23f6d51cdc0..1d55026a405 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/ThreadSafeOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/ThreadSafeOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/TimedRuleExecutionFilter.java b/kie-api/src/main/java/org/kie/api/runtime/conf/TimedRuleExecutionFilter.java index ed479a5dbd8..b6536dd764d 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/TimedRuleExecutionFilter.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/TimedRuleExecutionFilter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.runtime.conf; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/TimedRuleExecutionOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/TimedRuleExecutionOption.java index 25c901425a3..5e5e60920e2 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/TimedRuleExecutionOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/TimedRuleExecutionOption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/TimerJobFactoryOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/TimerJobFactoryOption.java index af3339c39ed..aab652a5dfb 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/TimerJobFactoryOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/TimerJobFactoryOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-api/src/main/java/org/kie/api/runtime/conf/WorkItemHandlerOption.java b/kie-api/src/main/java/org/kie/api/runtime/conf/WorkItemHandlerOption.java index b85b5f187c7..59b5957239f 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/conf/WorkItemHandlerOption.java +++ b/kie-api/src/main/java/org/kie/api/runtime/conf/WorkItemHandlerOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.conf; import org.kie.api.runtime.process.WorkItemHandler; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/Context.java b/kie-api/src/main/java/org/kie/api/runtime/manager/Context.java index 2f4dd206d7c..ecbd53e67ce 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/Context.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/Context.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.runtime.manager; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/RegisterableItemsFactory.java b/kie-api/src/main/java/org/kie/api/runtime/manager/RegisterableItemsFactory.java index 08d4216d091..0bfefd0447f 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/RegisterableItemsFactory.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/RegisterableItemsFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.runtime.manager; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEngine.java b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEngine.java index 4358c2fcdf8..7124d7d9cca 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEngine.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEngine.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.runtime.manager; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironment.java b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironment.java index 50228d71416..444ea30410a 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironment.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironment.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.runtime.manager; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironmentBuilder.java b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironmentBuilder.java index 6e7cc72957f..b13582730b4 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironmentBuilder.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironmentBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.runtime.manager; import org.kie.api.KieBase; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironmentBuilderFactory.java b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironmentBuilderFactory.java index cddb7d602fc..8e4502c9d1f 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironmentBuilderFactory.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeEnvironmentBuilderFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.api.runtime.manager; import org.kie.api.builder.ReleaseId; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeManager.java b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeManager.java index dbe8dc88127..8580c5975e9 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeManager.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeManager.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.runtime.manager; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeManagerFactory.java b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeManagerFactory.java index 3458c2b463a..e5bfc516f3b 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeManagerFactory.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/RuntimeManagerFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.runtime.manager; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/audit/AuditService.java b/kie-api/src/main/java/org/kie/api/runtime/manager/audit/AuditService.java index 2a86fd2822c..11e5ec34491 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/audit/AuditService.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/audit/AuditService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.manager.audit; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/audit/NodeInstanceLog.java b/kie-api/src/main/java/org/kie/api/runtime/manager/audit/NodeInstanceLog.java index e23ddb0c12a..cd3e4294b68 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/audit/NodeInstanceLog.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/audit/NodeInstanceLog.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.manager.audit; import java.util.Date; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/audit/ProcessInstanceLog.java b/kie-api/src/main/java/org/kie/api/runtime/manager/audit/ProcessInstanceLog.java index c9b3ea66450..e9bebcb91a4 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/audit/ProcessInstanceLog.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/audit/ProcessInstanceLog.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.manager.audit; import java.util.Date; diff --git a/kie-api/src/main/java/org/kie/api/runtime/manager/audit/VariableInstanceLog.java b/kie-api/src/main/java/org/kie/api/runtime/manager/audit/VariableInstanceLog.java index 8ed9f6d140d..da38c29c30b 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/manager/audit/VariableInstanceLog.java +++ b/kie-api/src/main/java/org/kie/api/runtime/manager/audit/VariableInstanceLog.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.manager.audit; import java.util.Date; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/CaseAssignment.java b/kie-api/src/main/java/org/kie/api/runtime/process/CaseAssignment.java index ef64b42e8f8..fb159a4c9b0 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/CaseAssignment.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/CaseAssignment.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/CaseData.java b/kie-api/src/main/java/org/kie/api/runtime/process/CaseData.java index 3dbaf6cf706..7e5441799bc 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/CaseData.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/CaseData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/DataTransformer.java b/kie-api/src/main/java/org/kie/api/runtime/process/DataTransformer.java index 29bdfee63c2..98ab8e6fbe0 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/DataTransformer.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/DataTransformer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/EventListener.java b/kie-api/src/main/java/org/kie/api/runtime/process/EventListener.java index d5fdddefe1b..53a58cf8447 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/EventListener.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/EventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstance.java b/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstance.java index 1db7c0a8d6e..52269e49948 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstance.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstance.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import org.kie.api.definition.process.Node; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstanceContainer.java b/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstanceContainer.java index cd7b6dad1dc..f8a749bc758 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstanceContainer.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/NodeInstanceContainer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/ProcessContext.java b/kie-api/src/main/java/org/kie/api/runtime/process/ProcessContext.java index 68289381e13..512747daf5a 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/ProcessContext.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/ProcessContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import org.kie.api.runtime.KieContext; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/ProcessInstance.java b/kie-api/src/main/java/org/kie/api/runtime/process/ProcessInstance.java index de4b3ed64d3..7d46c14a1b8 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/ProcessInstance.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/ProcessInstance.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import org.kie.api.definition.process.Process; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/ProcessRuntime.java b/kie-api/src/main/java/org/kie/api/runtime/process/ProcessRuntime.java index c9bdb42863c..d51e3055d19 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/ProcessRuntime.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/ProcessRuntime.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/ProcessWorkItemHandlerException.java b/kie-api/src/main/java/org/kie/api/runtime/process/ProcessWorkItemHandlerException.java index db0e97fe1ca..fcf039e3762 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/ProcessWorkItemHandlerException.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/ProcessWorkItemHandlerException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.process; public class ProcessWorkItemHandlerException extends RuntimeException { diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/StatefulProcessSession.java b/kie-api/src/main/java/org/kie/api/runtime/process/StatefulProcessSession.java index 8f0bc971e17..b7f985211a5 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/StatefulProcessSession.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/StatefulProcessSession.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/StatelessProcessSession.java b/kie-api/src/main/java/org/kie/api/runtime/process/StatelessProcessSession.java index 6e06bc5b60d..f025e4306e6 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/StatelessProcessSession.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/StatelessProcessSession.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/WorkItem.java b/kie-api/src/main/java/org/kie/api/runtime/process/WorkItem.java index 5b17512a702..7e8f9f747dc 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/WorkItem.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/WorkItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/WorkItemHandler.java b/kie-api/src/main/java/org/kie/api/runtime/process/WorkItemHandler.java index 28e949ca07f..39f60f3b626 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/WorkItemHandler.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/WorkItemHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/WorkItemManager.java b/kie-api/src/main/java/org/kie/api/runtime/process/WorkItemManager.java index a253d379868..38325258ed8 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/WorkItemManager.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/WorkItemManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; import java.util.Map; diff --git a/kie-api/src/main/java/org/kie/api/runtime/process/WorkflowProcessInstance.java b/kie-api/src/main/java/org/kie/api/runtime/process/WorkflowProcessInstance.java index 88e77de0e0d..716fdb98ca6 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/process/WorkflowProcessInstance.java +++ b/kie-api/src/main/java/org/kie/api/runtime/process/WorkflowProcessInstance.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.process; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/query/AdvancedQueryContext.java b/kie-api/src/main/java/org/kie/api/runtime/query/AdvancedQueryContext.java index 7847a10416f..ca11d491569 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/query/AdvancedQueryContext.java +++ b/kie-api/src/main/java/org/kie/api/runtime/query/AdvancedQueryContext.java @@ -1,19 +1,21 @@ -/* -* Copyright 2017 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ - +/** + * 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. + */ package org.kie.api.runtime.query; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java b/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java index 970c21fafdf..024a9187638 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java +++ b/kie-api/src/main/java/org/kie/api/runtime/query/QueryContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.query; import java.io.Serializable; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/AccumulateFunction.java b/kie-api/src/main/java/org/kie/api/runtime/rule/AccumulateFunction.java index 49159fc7519..008f9e7a00d 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/AccumulateFunction.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/AccumulateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/ActivationGroup.java b/kie-api/src/main/java/org/kie/api/runtime/rule/ActivationGroup.java index 3e66e061ae0..8397f17ea07 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/ActivationGroup.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/ActivationGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface ActivationGroup { diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/Agenda.java b/kie-api/src/main/java/org/kie/api/runtime/rule/Agenda.java index 0ff6ba14515..08ba85bc050 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/Agenda.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/Agenda.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface Agenda { diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/AgendaFilter.java b/kie-api/src/main/java/org/kie/api/runtime/rule/AgendaFilter.java index e6245aad214..8f504a4b2a5 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/AgendaFilter.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/AgendaFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface AgendaFilter { diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/AgendaGroup.java b/kie-api/src/main/java/org/kie/api/runtime/rule/AgendaGroup.java index 9cf1df6763c..a467a4e8291 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/AgendaGroup.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/AgendaGroup.java @@ -1,22 +1,30 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface AgendaGroup { + + /** + * Static reference to determine the default AgendaGroup name. + */ + String MAIN = "MAIN"; + /** * @return * The AgendaGroup name diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/AttachedViewChangedEventListener.java b/kie-api/src/main/java/org/kie/api/runtime/rule/AttachedViewChangedEventListener.java index 6ae0ea6e790..15f7dd7549b 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/AttachedViewChangedEventListener.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/AttachedViewChangedEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface AttachedViewChangedEventListener { diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/ConsequenceException.java b/kie-api/src/main/java/org/kie/api/runtime/rule/ConsequenceException.java index 9386f69297e..e0320a12540 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/ConsequenceException.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/ConsequenceException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; import java.io.PrintStream; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/ConsequenceExceptionHandler.java b/kie-api/src/main/java/org/kie/api/runtime/rule/ConsequenceExceptionHandler.java index f7e712f8bfe..eca60e19c85 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/ConsequenceExceptionHandler.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/ConsequenceExceptionHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface ConsequenceExceptionHandler { diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/EntryPoint.java b/kie-api/src/main/java/org/kie/api/runtime/rule/EntryPoint.java index a6b1bad7bde..6f4c36d1348 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/EntryPoint.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/EntryPoint.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/Evaluator.java b/kie-api/src/main/java/org/kie/api/runtime/rule/Evaluator.java index 78e5211833a..e233d4ab9c2 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/Evaluator.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/Evaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; import java.io.Serializable; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/EvaluatorDefinition.java b/kie-api/src/main/java/org/kie/api/runtime/rule/EvaluatorDefinition.java index aed25548c3b..24862df24dd 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/EvaluatorDefinition.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/EvaluatorDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/EventHandle.java b/kie-api/src/main/java/org/kie/api/runtime/rule/EventHandle.java new file mode 100644 index 00000000000..ebca8fca305 --- /dev/null +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/EventHandle.java @@ -0,0 +1,31 @@ +/** + * 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. + */ +package org.kie.api.runtime.rule; + +public interface EventHandle extends FactHandle { + + long getStartTimestamp(); + + long getDuration(); + + long getEndTimestamp(); + + boolean isExpired(); + +} diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/FactHandle.java b/kie-api/src/main/java/org/kie/api/runtime/rule/FactHandle.java index 406de2bd0d9..50aca2f19e7 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/FactHandle.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/FactHandle.java @@ -1,25 +1,40 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; /** * An handle to a fact inserted into the working memory */ public interface FactHandle { + Object getObject(); + + boolean isNegated(); + + boolean isEvent(); + + long getId(); + + long getRecency(); + + K as(Class klass) throws ClassCastException; + + boolean isValid(); /** * The way how the fact to which this FactHandle was assigned diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/LiveQuery.java b/kie-api/src/main/java/org/kie/api/runtime/rule/LiveQuery.java index 86a44d966ab..edec4cdac60 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/LiveQuery.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/LiveQuery.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface LiveQuery { diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/Match.java b/kie-api/src/main/java/org/kie/api/runtime/rule/Match.java index 44ce9685933..02aa206dc2f 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/Match.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/Match.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; import java.util.List; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/Operator.java b/kie-api/src/main/java/org/kie/api/runtime/rule/Operator.java index 71436aeb110..b7128e0b883 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/Operator.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/Operator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/PropagationContext.java b/kie-api/src/main/java/org/kie/api/runtime/rule/PropagationContext.java index 0be24810ece..0b50df364e9 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/PropagationContext.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/PropagationContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/QueryResults.java b/kie-api/src/main/java/org/kie/api/runtime/rule/QueryResults.java index 5e4ea5a3e85..7745233ba69 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/QueryResults.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/QueryResults.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; import java.util.ArrayList; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/QueryResultsRow.java b/kie-api/src/main/java/org/kie/api/runtime/rule/QueryResultsRow.java index 406b3fa7737..035e9f90ba0 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/QueryResultsRow.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/QueryResultsRow.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; /** diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/Row.java b/kie-api/src/main/java/org/kie/api/runtime/rule/Row.java index e6be2e3387c..a01f8402734 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/Row.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/Row.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface Row { diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/RuleContext.java b/kie-api/src/main/java/org/kie/api/runtime/rule/RuleContext.java index 739959356f2..cd2894a2999 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/RuleContext.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/RuleContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; import org.kie.api.definition.rule.Rule; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/RuleFlowGroup.java b/kie-api/src/main/java/org/kie/api/runtime/rule/RuleFlowGroup.java index 9cf784ed41d..57aecf2e0c2 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/RuleFlowGroup.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/RuleFlowGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface RuleFlowGroup { diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/RuleRuntime.java b/kie-api/src/main/java/org/kie/api/runtime/rule/RuleRuntime.java index 92fc5a521f6..42b90580679 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/RuleRuntime.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/RuleRuntime.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; import java.util.Collection; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/StatefulRuleSession.java b/kie-api/src/main/java/org/kie/api/runtime/rule/StatefulRuleSession.java index 7bb2c07c3b0..8e7663c7e54 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/StatefulRuleSession.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/StatefulRuleSession.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/StatelessRuleSession.java b/kie-api/src/main/java/org/kie/api/runtime/rule/StatelessRuleSession.java index f104a49aa8d..c39bcd37013 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/StatelessRuleSession.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/StatelessRuleSession.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.runtime.rule; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/Variable.java b/kie-api/src/main/java/org/kie/api/runtime/rule/Variable.java index d5e29d59eb6..2cb8c8f21fe 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/Variable.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/Variable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/runtime/rule/ViewChangedEventListener.java b/kie-api/src/main/java/org/kie/api/runtime/rule/ViewChangedEventListener.java index 1717a7cc6e5..fa4aaa87e28 100644 --- a/kie-api/src/main/java/org/kie/api/runtime/rule/ViewChangedEventListener.java +++ b/kie-api/src/main/java/org/kie/api/runtime/rule/ViewChangedEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.runtime.rule; public interface ViewChangedEventListener { diff --git a/kie-api/src/main/java/org/kie/api/task/TaskContext.java b/kie-api/src/main/java/org/kie/api/task/TaskContext.java index 81313d4bc73..49be748e893 100644 --- a/kie-api/src/main/java/org/kie/api/task/TaskContext.java +++ b/kie-api/src/main/java/org/kie/api/task/TaskContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.task; diff --git a/kie-api/src/main/java/org/kie/api/task/TaskEvent.java b/kie-api/src/main/java/org/kie/api/task/TaskEvent.java index 23b4425fd2d..24659b88291 100644 --- a/kie-api/src/main/java/org/kie/api/task/TaskEvent.java +++ b/kie-api/src/main/java/org/kie/api/task/TaskEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.task; diff --git a/kie-api/src/main/java/org/kie/api/task/TaskLifeCycleEventListener.java b/kie-api/src/main/java/org/kie/api/task/TaskLifeCycleEventListener.java index 42eae0fe2db..65276688179 100644 --- a/kie-api/src/main/java/org/kie/api/task/TaskLifeCycleEventListener.java +++ b/kie-api/src/main/java/org/kie/api/task/TaskLifeCycleEventListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.task; diff --git a/kie-api/src/main/java/org/kie/api/task/TaskService.java b/kie-api/src/main/java/org/kie/api/task/TaskService.java index 908d662ad1b..6a8670ddb42 100644 --- a/kie-api/src/main/java/org/kie/api/task/TaskService.java +++ b/kie-api/src/main/java/org/kie/api/task/TaskService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.api.task; diff --git a/kie-api/src/main/java/org/kie/api/task/UserGroupCallback.java b/kie-api/src/main/java/org/kie/api/task/UserGroupCallback.java index 8fc6f3d08d6..f1443f35aef 100644 --- a/kie-api/src/main/java/org/kie/api/task/UserGroupCallback.java +++ b/kie-api/src/main/java/org/kie/api/task/UserGroupCallback.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.task; diff --git a/kie-api/src/main/java/org/kie/api/task/UserInfo.java b/kie-api/src/main/java/org/kie/api/task/UserInfo.java index cf683694b53..955e1b603bb 100644 --- a/kie-api/src/main/java/org/kie/api/task/UserInfo.java +++ b/kie-api/src/main/java/org/kie/api/task/UserInfo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task; import java.util.Iterator; diff --git a/kie-api/src/main/java/org/kie/api/task/model/Attachment.java b/kie-api/src/main/java/org/kie/api/task/model/Attachment.java index adfae0affe2..31dfdeae917 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/Attachment.java +++ b/kie-api/src/main/java/org/kie/api/task/model/Attachment.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/task/model/Comment.java b/kie-api/src/main/java/org/kie/api/task/model/Comment.java index 32923152de5..f95f806954c 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/Comment.java +++ b/kie-api/src/main/java/org/kie/api/task/model/Comment.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/task/model/Content.java b/kie-api/src/main/java/org/kie/api/task/model/Content.java index f8ccc9817ea..ce35d6365ed 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/Content.java +++ b/kie-api/src/main/java/org/kie/api/task/model/Content.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/task/model/Email.java b/kie-api/src/main/java/org/kie/api/task/model/Email.java index 6d4b7ff24bc..09ce3cd6c74 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/Email.java +++ b/kie-api/src/main/java/org/kie/api/task/model/Email.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; diff --git a/kie-api/src/main/java/org/kie/api/task/model/Group.java b/kie-api/src/main/java/org/kie/api/task/model/Group.java index c23b861feaf..8bd2d1ada6c 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/Group.java +++ b/kie-api/src/main/java/org/kie/api/task/model/Group.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; diff --git a/kie-api/src/main/java/org/kie/api/task/model/I18NText.java b/kie-api/src/main/java/org/kie/api/task/model/I18NText.java index dc49b95bf31..a383ae73045 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/I18NText.java +++ b/kie-api/src/main/java/org/kie/api/task/model/I18NText.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/task/model/OrganizationalEntity.java b/kie-api/src/main/java/org/kie/api/task/model/OrganizationalEntity.java index 0088879c2b4..b39e0e4c761 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/OrganizationalEntity.java +++ b/kie-api/src/main/java/org/kie/api/task/model/OrganizationalEntity.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/task/model/PeopleAssignments.java b/kie-api/src/main/java/org/kie/api/task/model/PeopleAssignments.java index 52887cbc404..4f1ee657e1a 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/PeopleAssignments.java +++ b/kie-api/src/main/java/org/kie/api/task/model/PeopleAssignments.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/task/model/QuickTaskSummary.java b/kie-api/src/main/java/org/kie/api/task/model/QuickTaskSummary.java index 403d0053825..b00915f4925 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/QuickTaskSummary.java +++ b/kie-api/src/main/java/org/kie/api/task/model/QuickTaskSummary.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/task/model/Status.java b/kie-api/src/main/java/org/kie/api/task/model/Status.java index f37ba2607c3..57a6b11146c 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/Status.java +++ b/kie-api/src/main/java/org/kie/api/task/model/Status.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import javax.xml.bind.annotation.XmlType; diff --git a/kie-api/src/main/java/org/kie/api/task/model/Task.java b/kie-api/src/main/java/org/kie/api/task/model/Task.java index 15bae5194f2..58e9670f782 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/Task.java +++ b/kie-api/src/main/java/org/kie/api/task/model/Task.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/task/model/TaskData.java b/kie-api/src/main/java/org/kie/api/task/model/TaskData.java index 974728253c7..3b229afa294 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/TaskData.java +++ b/kie-api/src/main/java/org/kie/api/task/model/TaskData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; import java.io.Externalizable; diff --git a/kie-api/src/main/java/org/kie/api/task/model/TaskSummary.java b/kie-api/src/main/java/org/kie/api/task/model/TaskSummary.java index 7d0d9f80abf..219c44f4858 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/TaskSummary.java +++ b/kie-api/src/main/java/org/kie/api/task/model/TaskSummary.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.api.task.model; diff --git a/kie-api/src/main/java/org/kie/api/task/model/User.java b/kie-api/src/main/java/org/kie/api/task/model/User.java index 9050babc932..5082abb1d50 100644 --- a/kie-api/src/main/java/org/kie/api/task/model/User.java +++ b/kie-api/src/main/java/org/kie/api/task/model/User.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.task.model; public interface User extends OrganizationalEntity { diff --git a/kie-api/src/main/java/org/kie/api/time/Calendar.java b/kie-api/src/main/java/org/kie/api/time/Calendar.java index b95d8407df2..e1f70adbe81 100644 --- a/kie-api/src/main/java/org/kie/api/time/Calendar.java +++ b/kie-api/src/main/java/org/kie/api/time/Calendar.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.time; public interface Calendar { diff --git a/kie-api/src/main/java/org/kie/api/time/SessionClock.java b/kie-api/src/main/java/org/kie/api/time/SessionClock.java index 672c2a19a63..dac7e78ba79 100644 --- a/kie-api/src/main/java/org/kie/api/time/SessionClock.java +++ b/kie-api/src/main/java/org/kie/api/time/SessionClock.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.time; /** diff --git a/kie-api/src/main/java/org/kie/api/time/SessionPseudoClock.java b/kie-api/src/main/java/org/kie/api/time/SessionPseudoClock.java index 88a85b17181..e2a89609292 100644 --- a/kie-api/src/main/java/org/kie/api/time/SessionPseudoClock.java +++ b/kie-api/src/main/java/org/kie/api/time/SessionPseudoClock.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.api.time; import java.util.concurrent.TimeUnit; diff --git a/kie-api/src/main/resources/META-INF/ErraiApp.properties b/kie-api/src/main/resources/META-INF/ErraiApp.properties index 140bd5616d1..92b3b405bbf 100644 --- a/kie-api/src/main/resources/META-INF/ErraiApp.properties +++ b/kie-api/src/main/resources/META-INF/ErraiApp.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # # ErraiApp.properties # diff --git a/kie-api/src/main/resources/org/kie/api/KieAPI.gwt.xml b/kie-api/src/main/resources/org/kie/api/KieAPI.gwt.xml index d5c5cf2d1d5..a41a1f06ea8 100644 --- a/kie-api/src/main/resources/org/kie/api/KieAPI.gwt.xml +++ b/kie-api/src/main/resources/org/kie/api/KieAPI.gwt.xml @@ -1,4 +1,24 @@ + diff --git a/kie-api/src/test/java/org/kie/api/KModuleXSDTest.java b/kie-api/src/test/java/org/kie/api/KModuleXSDTest.java index 291a3dd95fb..172165a00cc 100644 --- a/kie-api/src/test/java/org/kie/api/KModuleXSDTest.java +++ b/kie-api/src/test/java/org/kie/api/KModuleXSDTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api; import java.net.URL; diff --git a/kie-api/src/test/java/org/kie/api/internal/utils/AnotherMockAssemblersImpl.java b/kie-api/src/test/java/org/kie/api/internal/utils/AnotherMockAssemblersImpl.java index 87c316a07b0..a43aa9d548f 100644 --- a/kie-api/src/test/java/org/kie/api/internal/utils/AnotherMockAssemblersImpl.java +++ b/kie-api/src/test/java/org/kie/api/internal/utils/AnotherMockAssemblersImpl.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.api.internal.utils; public class AnotherMockAssemblersImpl extends MockAssemblersImpl { diff --git a/kie-api/src/test/java/org/kie/api/internal/utils/MockAssemblersImpl.java b/kie-api/src/test/java/org/kie/api/internal/utils/MockAssemblersImpl.java index 383aa828330..e01bd92027b 100644 --- a/kie-api/src/test/java/org/kie/api/internal/utils/MockAssemblersImpl.java +++ b/kie-api/src/test/java/org/kie/api/internal/utils/MockAssemblersImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.internal.utils; import java.util.HashMap; diff --git a/kie-api/src/test/java/org/kie/api/internal/utils/MockChildAssemblerService.java b/kie-api/src/test/java/org/kie/api/internal/utils/MockChildAssemblerService.java index 0d63cf40ea2..9aeabbb4175 100644 --- a/kie-api/src/test/java/org/kie/api/internal/utils/MockChildAssemblerService.java +++ b/kie-api/src/test/java/org/kie/api/internal/utils/MockChildAssemblerService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.internal.utils; import org.kie.api.internal.assembler.KieAssemblerService; diff --git a/kie-api/src/test/java/org/kie/api/io/ResourceTypeTest.java b/kie-api/src/test/java/org/kie/api/io/ResourceTypeTest.java index 97cb56ad1aa..95ad217e06e 100644 --- a/kie-api/src/test/java/org/kie/api/io/ResourceTypeTest.java +++ b/kie-api/src/test/java/org/kie/api/io/ResourceTypeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.api.io; import java.util.List; diff --git a/kie-api/src/test/resources/org/kie/api/kmod1.xml b/kie-api/src/test/resources/org/kie/api/kmod1.xml index 8b4e16467ab..714fcc93ead 100644 --- a/kie-api/src/test/resources/org/kie/api/kmod1.xml +++ b/kie-api/src/test/resources/org/kie/api/kmod1.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-dmn-archetype/pom.xml b/kie-archetypes/kie-drools-dmn-archetype/pom.xml index 74129679326..aa7e6094007 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/pom.xml +++ b/kie-archetypes/kie-drools-dmn-archetype/pom.xml @@ -1,10 +1,30 @@ + 4.0.0 org.kie kie-archetypes - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-drools-dmn-archetype diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml index 6773edc1a87..a867b4b0c44 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/pom.xml b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/pom.xml index 79789d8429b..8122674f2e7 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/pom.xml +++ b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/pom.xml @@ -2,6 +2,26 @@ #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) + 4.0.0 diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/kmodule.xml b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/kmodule.xml index 7c01f7b73b3..d0701d88834 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/kmodule.xml +++ b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/kmodule.xml @@ -2,6 +2,26 @@ #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) + diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/ScenarioJunitActivatorTest.java b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/ScenarioJunitActivatorTest.java index 9fa46896411..c46aaeed78d 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/ScenarioJunitActivatorTest.java +++ b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/ScenarioJunitActivatorTest.java @@ -1,16 +1,38 @@ -#* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * 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. + */ +#* + * 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 + * 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. + * 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. *# #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/TrafficViolationTest.java b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/TrafficViolationTest.java index c2e195f8b16..704061238f9 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/TrafficViolationTest.java +++ b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/TrafficViolationTest.java @@ -1,16 +1,38 @@ -#* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * 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. + */ +#* + * 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 + * 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. + * 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. *# #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/utils/shim/Map.java b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/utils/shim/Map.java index 10004c58fc3..9fbf087952a 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/utils/shim/Map.java +++ b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/java/utils/shim/Map.java @@ -1,16 +1,38 @@ -#* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * 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. + */ +#* + * 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 + * 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. + * 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. *#package utils.shim; import java.util.Collections; diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml index b511333f633..58a20a47330 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml +++ b/kie-archetypes/kie-drools-dmn-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties index 762e22835e8..c7ece5a6066 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties +++ b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties @@ -1,3 +1,22 @@ +# +# 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. +# + package=it.pkg version=0.1-SNAPSHOT groupId=archetype.it diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml index f25a3368c9d..e5746ae9b40 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml +++ b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml @@ -1,4 +1,24 @@ + 4.0.0 diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/resources/META-INF/kmodule.xml b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/resources/META-INF/kmodule.xml index 2561698d262..decf47d1de2 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/resources/META-INF/kmodule.xml +++ b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/ScenarioJunitActivatorTest.java b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/ScenarioJunitActivatorTest.java index 3826456af0b..eee899510d8 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/ScenarioJunitActivatorTest.java +++ b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/ScenarioJunitActivatorTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package it.pkg; diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/TrafficViolationTest.java b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/TrafficViolationTest.java index 46d0029d363..67f05621c2a 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/TrafficViolationTest.java +++ b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/TrafficViolationTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package it.pkg; diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/utils/shim/Map.java b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/utils/shim/Map.java index 8c2a104b6bc..103767de811 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/utils/shim/Map.java +++ b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/utils/shim/Map.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package utils.shim; import java.util.Collections; diff --git a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml index b511333f633..58a20a47330 100644 --- a/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml +++ b/kie-archetypes/kie-drools-dmn-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-exec-model-archetype/pom.xml b/kie-archetypes/kie-drools-exec-model-archetype/pom.xml index 6b66fdb867b..450a18b949e 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/pom.xml +++ b/kie-archetypes/kie-drools-exec-model-archetype/pom.xml @@ -1,10 +1,30 @@ + 4.0.0 org.kie kie-archetypes - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-drools-exec-model-archetype diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml index bbdb680feb1..6691a5cc679 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/pom.xml b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/pom.xml index 2f1014ef497..094cacd4502 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/pom.xml +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/pom.xml @@ -2,6 +2,26 @@ #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) + 4.0.0 diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/main/java/Measurement.java b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/main/java/Measurement.java index ea3e53458bf..9c8f9f2950e 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/main/java/Measurement.java +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/main/java/Measurement.java @@ -1,16 +1,38 @@ -#* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * 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. + */ +#* + * 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 + * 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. + * 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. *# #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/kmodule.xml b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/kmodule.xml index 7c01f7b73b3..d0701d88834 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/kmodule.xml +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/main/resources/META-INF/kmodule.xml @@ -2,6 +2,26 @@ #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) + diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/test/java/RuleTest.java b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/test/java/RuleTest.java index 1927765395e..c01e197d1d8 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/test/java/RuleTest.java +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/test/java/RuleTest.java @@ -1,16 +1,38 @@ -#* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * 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. + */ +#* + * 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 + * 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. + * 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. *# #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml index b511333f633..58a20a47330 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties index 762e22835e8..c7ece5a6066 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties @@ -1,3 +1,22 @@ +# +# 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. +# + package=it.pkg version=0.1-SNAPSHOT groupId=archetype.it diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml index b720f7afddd..6300c20ec94 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml @@ -1,4 +1,24 @@ + 4.0.0 diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/Measurement.java b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/Measurement.java index 9d269ec7a82..26a3ff54708 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/Measurement.java +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/Measurement.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package it.pkg; diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/resources/META-INF/kmodule.xml b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/resources/META-INF/kmodule.xml index 2561698d262..decf47d1de2 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/resources/META-INF/kmodule.xml +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/RuleTest.java b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/RuleTest.java index 005945bb324..9ecc7e0d864 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/RuleTest.java +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/RuleTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package it.pkg; diff --git a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml index b511333f633..58a20a47330 100644 --- a/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml +++ b/kie-archetypes/kie-drools-exec-model-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/pom.xml b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/pom.xml index bce7fca074b..29606922214 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/pom.xml +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/pom.xml @@ -1,10 +1,30 @@ + 4.0.0 org.kie kie-archetypes - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-drools-exec-model-ruleunit-archetype diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml index 9141ae6abe6..df9b53c7077 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/pom.xml b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/pom.xml index 8d927d4bf2a..199bb027f01 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/pom.xml +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/pom.xml @@ -2,6 +2,26 @@ #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) + 4.0.0 diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/main/java/Measurement.java b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/main/java/Measurement.java index ea3e53458bf..9c8f9f2950e 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/main/java/Measurement.java +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/main/java/Measurement.java @@ -1,16 +1,38 @@ -#* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * 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. + */ +#* + * 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 + * 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. + * 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. *# #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/main/java/MeasurementUnit.java b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/main/java/MeasurementUnit.java index f1544ab1e7c..bfcc49768f1 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/main/java/MeasurementUnit.java +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/main/java/MeasurementUnit.java @@ -1,17 +1,39 @@ -#* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * 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. + */ +#* + * 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 + * 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. - *# + * 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. +*# #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/test/java/RuleTest.java b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/test/java/RuleTest.java index bf4a1e47419..5b2650c9aa3 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/test/java/RuleTest.java +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/test/java/RuleTest.java @@ -1,16 +1,38 @@ -#* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * 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. + */ +#* + * 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 + * 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. + * 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. *# #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml index b511333f633..58a20a47330 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/main/resources/archetype-resources/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties index 29a0b39ca8d..5837029ce10 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/archetype.properties @@ -1,3 +1,22 @@ +# +# 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. +# + #Sun Sep 07 11:34:37 CEST 2014 package=it.pkg version=0.1-SNAPSHOT diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml index d345d203c19..31568de9810 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/pom.xml @@ -1,4 +1,24 @@ + 4.0.0 diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/Measurement.java b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/Measurement.java index 9d269ec7a82..26a3ff54708 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/Measurement.java +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/Measurement.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package it.pkg; diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/MeasurementUnit.java b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/MeasurementUnit.java index 52124671bfe..e3c3c749261 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/MeasurementUnit.java +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/main/java/it/pkg/MeasurementUnit.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package it.pkg; diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/RuleTest.java b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/RuleTest.java index aaefbfef3bf..554dbe7751c 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/RuleTest.java +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/java/it/pkg/RuleTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package it.pkg; diff --git a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml index b511333f633..58a20a47330 100644 --- a/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml +++ b/kie-archetypes/kie-drools-exec-model-ruleunit-archetype/src/test/resources/projects/integrationtestDefaults/reference/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/kie-archetypes/pom.xml b/kie-archetypes/pom.xml index 392bd935cca..d06d304611c 100644 --- a/kie-archetypes/pom.xml +++ b/kie-archetypes/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-ci/kie-ci-test-jars/.gitignore b/kie-ci/kie-ci-test-jars/.gitignore new file mode 100644 index 00000000000..751b1d076ab --- /dev/null +++ b/kie-ci/kie-ci-test-jars/.gitignore @@ -0,0 +1 @@ +build.log diff --git a/kie-ci/kie-ci-test-jars/kie-ci-test-bom/pom.xml b/kie-ci/kie-ci-test-jars/kie-ci-test-bom/pom.xml new file mode 100644 index 00000000000..64515f40eb7 --- /dev/null +++ b/kie-ci/kie-ci-test-jars/kie-ci-test-bom/pom.xml @@ -0,0 +1,57 @@ + + + + 4.0.0 + + + org.kie.ci.test + kie-ci-test-jars + 1.2.3.Final + + + kie-ci-test-bom + pom + + + org.kie.ci.test.bom + 11 + 11 + + + + + + org.kie.ci.test + kie-ci-test-jar + 1.2.3.Final + + + org.kie.ci.test + org.kie.ci.test.jar.with.dep + 1.2.3.Final + + + + + \ No newline at end of file diff --git a/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/pom.xml b/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/pom.xml new file mode 100644 index 00000000000..668f91a5ed8 --- /dev/null +++ b/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/pom.xml @@ -0,0 +1,55 @@ + + + + 4.0.0 + + + org.kie.ci.test + kie-ci-test-jars + 1.2.3.Final + + + kie-ci-test-jar-with-dep + + + org.kie.ci.test.jar.with.dep + 11 + 11 + + + + + org.kie.ci.test + kie-ci-test-jar + 1.2.3.Final + + + junit + junit + 4.13.1 + test + + + + \ No newline at end of file diff --git a/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/src/main/java/org/kie/ci/test/dep/Main.java b/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/src/main/java/org/kie/ci/test/dep/Main.java new file mode 100644 index 00000000000..6d548620d05 --- /dev/null +++ b/kie-ci/kie-ci-test-jars/kie-ci-test-jar-with-dep/src/main/java/org/kie/ci/test/dep/Main.java @@ -0,0 +1,34 @@ +/** + * 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. + */ +package org.kie.ci.test.dep; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } + + public String someCustomMethod() { + return "This is a custom method!"; + } + + @Override + public String toString() { + return "Main{}"; + } +} \ No newline at end of file diff --git a/kie-ci/kie-ci-test-jars/kie-ci-test-jar/pom.xml b/kie-ci/kie-ci-test-jars/kie-ci-test-jar/pom.xml new file mode 100644 index 00000000000..998e1538733 --- /dev/null +++ b/kie-ci/kie-ci-test-jars/kie-ci-test-jar/pom.xml @@ -0,0 +1,41 @@ + + + + 4.0.0 + + + org.kie.ci.test + kie-ci-test-jars + 1.2.3.Final + + + kie-ci-test-jar + + + org.kie.ci.test.jar + 11 + 11 + + + \ No newline at end of file diff --git a/kie-ci/kie-ci-test-jars/kie-ci-test-jar/src/main/java/org/kie/ci/test/Main.java b/kie-ci/kie-ci-test-jars/kie-ci-test-jar/src/main/java/org/kie/ci/test/Main.java new file mode 100644 index 00000000000..e4bd0bafbf3 --- /dev/null +++ b/kie-ci/kie-ci-test-jars/kie-ci-test-jar/src/main/java/org/kie/ci/test/Main.java @@ -0,0 +1,25 @@ +/** + * 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. + */ +package org.kie.ci.test; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file diff --git a/kie-ci/kie-ci-test-jars/pom.xml b/kie-ci/kie-ci-test-jars/pom.xml new file mode 100644 index 00000000000..2aa66d35a19 --- /dev/null +++ b/kie-ci/kie-ci-test-jars/pom.xml @@ -0,0 +1,44 @@ + + + + 4.0.0 + + org.kie.ci.test + kie-ci-test-jars + 1.2.3.Final + pom + + + org.kie.ci.test.jars + 11 + 11 + + + + kie-ci-test-jar + kie-ci-test-jar-with-dep + kie-ci-test-bom + + + \ No newline at end of file diff --git a/kie-ci/pom.xml b/kie-ci/pom.xml index a1b54ae224c..353541dfa35 100644 --- a/kie-ci/pom.xml +++ b/kie-ci/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -28,6 +48,10 @@ org.drools drools-wiring-dynamic
+ + org.drools + drools-base + org.drools drools-core @@ -83,6 +107,12 @@ javax.inject + + + com.google.guava + guava + + commons-io commons-io @@ -176,6 +206,32 @@ + + org.apache.maven.plugins + maven-invoker-plugin + + true + true + + kie-ci-test-jars/pom.xml + + ${project.basedir} + clean install + + ${project.build.testOutputDirectory}/kie-ci-tests-custom-settings.xml + + ${project.build.directory}/testing-maven-repo + + + + build-kie-ci-test-jars + generate-test-resources + + run + + + + diff --git a/kie-ci/src/main/java/org/kie/api/builder/helper/FluentKieModuleDeploymentHelper.java b/kie-ci/src/main/java/org/kie/api/builder/helper/FluentKieModuleDeploymentHelper.java index 13eac95cb75..46bf16cdeb7 100644 --- a/kie-ci/src/main/java/org/kie/api/builder/helper/FluentKieModuleDeploymentHelper.java +++ b/kie-ci/src/main/java/org/kie/api/builder/helper/FluentKieModuleDeploymentHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.api.builder.helper; import java.util.List; diff --git a/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentConfig.java b/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentConfig.java index 3cdfb044e16..122bd5a68e3 100644 --- a/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentConfig.java +++ b/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentConfig.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.api.builder.helper; import java.util.ArrayList; diff --git a/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentHelper.java b/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentHelper.java index c3080687429..58ee05d1148 100644 --- a/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentHelper.java +++ b/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.api.builder.helper; /** diff --git a/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentHelperImpl.java b/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentHelperImpl.java index 1fe4d8f487b..e4808116fa9 100644 --- a/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentHelperImpl.java +++ b/kie-ci/src/main/java/org/kie/api/builder/helper/KieModuleDeploymentHelperImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.api.builder.helper; import java.io.ByteArrayOutputStream; diff --git a/kie-ci/src/main/java/org/kie/api/builder/helper/SingleKieModuleDeploymentHelper.java b/kie-ci/src/main/java/org/kie/api/builder/helper/SingleKieModuleDeploymentHelper.java index b81c9b554cd..2a3ead963ae 100644 --- a/kie-ci/src/main/java/org/kie/api/builder/helper/SingleKieModuleDeploymentHelper.java +++ b/kie-ci/src/main/java/org/kie/api/builder/helper/SingleKieModuleDeploymentHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.api.builder.helper; import java.util.List; diff --git a/kie-ci/src/main/java/org/kie/scanner/KieInJarModuleMetaDataImpl.java b/kie-ci/src/main/java/org/kie/scanner/KieInJarModuleMetaDataImpl.java index 4574b2d3bb6..fe747acb9a9 100644 --- a/kie-ci/src/main/java/org/kie/scanner/KieInJarModuleMetaDataImpl.java +++ b/kie-ci/src/main/java/org/kie/scanner/KieInJarModuleMetaDataImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.ByteArrayOutputStream; @@ -34,8 +37,8 @@ import org.drools.compiler.kie.builder.impl.InternalKieModule; import org.drools.compiler.kproject.models.KieModuleModelImpl; -import org.drools.core.rule.KieModuleMetaInfo; -import org.drools.core.rule.TypeMetaInfo; +import org.drools.base.rule.KieModuleMetaInfo; +import org.drools.base.rule.TypeMetaInfo; import org.drools.util.ClassUtils; import org.drools.util.IoUtils; import org.drools.wiring.api.classloader.ProjectClassLoader; @@ -135,7 +138,11 @@ private Class getClass(String name) throws ClassNotFoundException { private byte[] loadClassData(String name) throws IOException { for (URL url : urls) { - URL tryUrl = new URL(url.toString() + "!/" + name); + if (url == null) { + continue; + } + String prefix = "file".equals(url.getProtocol()) ? "jar:" : ""; + URL tryUrl = new URL(prefix + url.toString() + "!/" + name); try (InputStream stream = tryUrl.openStream()) { if (stream == null) { continue; diff --git a/kie-ci/src/main/java/org/kie/scanner/KieMavenRepository.java b/kie-ci/src/main/java/org/kie/scanner/KieMavenRepository.java index 816fc75901c..3893c6e336f 100644 --- a/kie-ci/src/main/java/org/kie/scanner/KieMavenRepository.java +++ b/kie-ci/src/main/java/org/kie/scanner/KieMavenRepository.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.scanner; import java.io.File; diff --git a/kie-ci/src/main/java/org/kie/scanner/KieModuleMetaData.java b/kie-ci/src/main/java/org/kie/scanner/KieModuleMetaData.java index 88e1a49e5cf..beda12ba691 100644 --- a/kie-ci/src/main/java/org/kie/scanner/KieModuleMetaData.java +++ b/kie-ci/src/main/java/org/kie/scanner/KieModuleMetaData.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; @@ -22,7 +25,7 @@ import java.util.Map; import org.drools.compiler.kie.builder.impl.InternalKieModule; -import org.drools.core.rule.TypeMetaInfo; +import org.drools.base.rule.TypeMetaInfo; import org.kie.api.builder.KieModule; import org.kie.api.builder.ReleaseId; import org.kie.util.maven.support.DependencyFilter; diff --git a/kie-ci/src/main/java/org/kie/scanner/KieModuleMetaDataImpl.java b/kie-ci/src/main/java/org/kie/scanner/KieModuleMetaDataImpl.java index c129117eca1..1a17edf5c4f 100644 --- a/kie-ci/src/main/java/org/kie/scanner/KieModuleMetaDataImpl.java +++ b/kie-ci/src/main/java/org/kie/scanner/KieModuleMetaDataImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; @@ -34,8 +37,8 @@ import org.drools.compiler.kie.builder.impl.InternalKieModule; import org.drools.compiler.kproject.models.KieModuleModelImpl; -import org.drools.core.rule.KieModuleMetaInfo; -import org.drools.core.rule.TypeMetaInfo; +import org.drools.base.rule.KieModuleMetaInfo; +import org.drools.base.rule.TypeMetaInfo; import org.drools.wiring.api.classloader.ProjectClassLoader; import org.eclipse.aether.artifact.Artifact; import org.kie.api.builder.ReleaseId; diff --git a/kie-ci/src/main/java/org/kie/scanner/KieRepositoryScannerImpl.java b/kie-ci/src/main/java/org/kie/scanner/KieRepositoryScannerImpl.java index 9df6e29cc90..d46a391fb36 100644 --- a/kie-ci/src/main/java/org/kie/scanner/KieRepositoryScannerImpl.java +++ b/kie-ci/src/main/java/org/kie/scanner/KieRepositoryScannerImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; diff --git a/kie-ci/src/main/java/org/kie/scanner/KieScannerFactoryServiceImpl.java b/kie-ci/src/main/java/org/kie/scanner/KieScannerFactoryServiceImpl.java index 6dd6e5cfad0..e6b1b177c52 100644 --- a/kie-ci/src/main/java/org/kie/scanner/KieScannerFactoryServiceImpl.java +++ b/kie-ci/src/main/java/org/kie/scanner/KieScannerFactoryServiceImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import org.kie.api.builder.KieScanner; diff --git a/kie-ci/src/main/java/org/kie/scanner/KieScannersRegistry.java b/kie-ci/src/main/java/org/kie/scanner/KieScannersRegistry.java index 0da62f5b1ac..10302d907f1 100644 --- a/kie-ci/src/main/java/org/kie/scanner/KieScannersRegistry.java +++ b/kie-ci/src/main/java/org/kie/scanner/KieScannersRegistry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import org.drools.compiler.kie.builder.impl.InternalKieScanner; diff --git a/kie-ci/src/main/java/org/kie/scanner/KieURLClassLoader.java b/kie-ci/src/main/java/org/kie/scanner/KieURLClassLoader.java index e2a1e1f10e7..1f6be0b99c2 100644 --- a/kie-ci/src/main/java/org/kie/scanner/KieURLClassLoader.java +++ b/kie-ci/src/main/java/org/kie/scanner/KieURLClassLoader.java @@ -1,18 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.net.URL; diff --git a/kie-ci/src/main/java/org/kie/scanner/MavenClassLoaderResolver.java b/kie-ci/src/main/java/org/kie/scanner/MavenClassLoaderResolver.java index fb0e8ff709b..5b00071db30 100644 --- a/kie-ci/src/main/java/org/kie/scanner/MavenClassLoaderResolver.java +++ b/kie-ci/src/main/java/org/kie/scanner/MavenClassLoaderResolver.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; diff --git a/kie-ci/src/main/java/org/kie/scanner/management/KieScannerMBean.java b/kie-ci/src/main/java/org/kie/scanner/management/KieScannerMBean.java index 6d6200b16d0..3c623be3c9d 100644 --- a/kie-ci/src/main/java/org/kie/scanner/management/KieScannerMBean.java +++ b/kie-ci/src/main/java/org/kie/scanner/management/KieScannerMBean.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner.management; public interface KieScannerMBean { diff --git a/kie-ci/src/main/java/org/kie/scanner/management/KieScannerMBeanImpl.java b/kie-ci/src/main/java/org/kie/scanner/management/KieScannerMBeanImpl.java index d962a592621..0a05fc0706c 100644 --- a/kie-ci/src/main/java/org/kie/scanner/management/KieScannerMBeanImpl.java +++ b/kie-ci/src/main/java/org/kie/scanner/management/KieScannerMBeanImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner.management; import java.util.concurrent.atomic.AtomicInteger; diff --git a/kie-ci/src/main/java/org/kie/scanner/management/MBeanUtils.java b/kie-ci/src/main/java/org/kie/scanner/management/MBeanUtils.java index 197c65f2cc8..6ddd6d7ec90 100644 --- a/kie-ci/src/main/java/org/kie/scanner/management/MBeanUtils.java +++ b/kie-ci/src/main/java/org/kie/scanner/management/MBeanUtils.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner.management; import java.lang.management.ManagementFactory; diff --git a/kie-ci/src/test/filtered-resources/kie-ci-tests-custom-settings.xml b/kie-ci/src/test/filtered-resources/kie-ci-tests-custom-settings.xml index 63eb731233a..4786663ef4f 100644 --- a/kie-ci/src/test/filtered-resources/kie-ci-tests-custom-settings.xml +++ b/kie-ci/src/test/filtered-resources/kie-ci-tests-custom-settings.xml @@ -1,3 +1,23 @@ + diff --git a/kie-ci/src/test/filtered-resources/versions.properties b/kie-ci/src/test/filtered-resources/versions.properties new file mode 100644 index 00000000000..15ab88e5635 --- /dev/null +++ b/kie-ci/src/test/filtered-resources/versions.properties @@ -0,0 +1,20 @@ +# +# 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. +# + +version.junit=${version.junit} \ No newline at end of file diff --git a/kie-ci/src/test/java/org/kie/api/builder/helper/KieModuleDeploymentHelperLoadResourcesTest.java b/kie-ci/src/test/java/org/kie/api/builder/helper/KieModuleDeploymentHelperLoadResourcesTest.java index d50bdf106e4..4f4ae25e5b6 100644 --- a/kie-ci/src/test/java/org/kie/api/builder/helper/KieModuleDeploymentHelperLoadResourcesTest.java +++ b/kie-ci/src/test/java/org/kie/api/builder/helper/KieModuleDeploymentHelperLoadResourcesTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.api.builder.helper; import java.io.File; diff --git a/kie-ci/src/test/java/org/kie/api/builder/helper/KieModuleDeploymentHelperTest.java b/kie-ci/src/test/java/org/kie/api/builder/helper/KieModuleDeploymentHelperTest.java index 334db048cbf..def9532ac34 100644 --- a/kie-ci/src/test/java/org/kie/api/builder/helper/KieModuleDeploymentHelperTest.java +++ b/kie-ci/src/test/java/org/kie/api/builder/helper/KieModuleDeploymentHelperTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.api.builder.helper; import java.io.File; diff --git a/kie-ci/src/test/java/org/kie/declarativetypes/JavaBeansEventRoleTest.java b/kie-ci/src/test/java/org/kie/declarativetypes/JavaBeansEventRoleTest.java index c4ec2d5b437..a196274469f 100644 --- a/kie-ci/src/test/java/org/kie/declarativetypes/JavaBeansEventRoleTest.java +++ b/kie-ci/src/test/java/org/kie/declarativetypes/JavaBeansEventRoleTest.java @@ -1,21 +1,24 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.declarativetypes; -import org.drools.core.rule.TypeMetaInfo; +import org.drools.base.rule.TypeMetaInfo; import org.drools.mvel.CommonTestMethodBase; import org.junit.Test; import org.kie.api.KieServices; diff --git a/kie-ci/src/test/java/org/kie/scanner/AbstractKieCiTest.java b/kie-ci/src/test/java/org/kie/scanner/AbstractKieCiTest.java index dd86aa78a30..4b5e8305972 100644 --- a/kie-ci/src/test/java/org/kie/scanner/AbstractKieCiTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/AbstractKieCiTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; @@ -354,4 +357,8 @@ protected boolean producesResults(KieSession ksession, Object... results) { } return true; } + + protected ReleaseId getTestDependencyJarReleaseId() { + return KieServices.get().newReleaseId("org.kie.ci.test", "kie-ci-test-jar-with-dep", "1.2.3.Final"); + } } diff --git a/kie-ci/src/test/java/org/kie/scanner/DependentScopeNamedBeanTest.java b/kie-ci/src/test/java/org/kie/scanner/DependentScopeNamedBeanTest.java index a4272d4ee5b..8a7b98370fc 100644 --- a/kie-ci/src/test/java/org/kie/scanner/DependentScopeNamedBeanTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/DependentScopeNamedBeanTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.InputStream; diff --git a/kie-ci/src/test/java/org/kie/scanner/KieModuleBuilderTest.java b/kie-ci/src/test/java/org/kie/scanner/KieModuleBuilderTest.java index 9107d3e9356..bc7e0ad68c1 100644 --- a/kie-ci/src/test/java/org/kie/scanner/KieModuleBuilderTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/KieModuleBuilderTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; @@ -142,10 +145,9 @@ public void testPomTypeDependencies() throws Exception { ReleaseId releaseIdNoDep = ks.newReleaseId( "org.kie", "test-no-dep", "1.0-SNAPSHOT" ); ReleaseId releaseIdWithDep = ks.newReleaseId( "org.kie", "test-with-dep", "1.0-SNAPSHOT" ); - ReleaseId ejbReleaseId = ks.newReleaseId( "org.jboss.as", "jboss-as-ejb-client-bom", "7.1.1.Final" ); - ReleaseId jmsReleaseId = ks.newReleaseId( "org.jboss.as", "jboss-as-jms-client-bom", "7.1.1.Final" ); + ReleaseId bomTypeDependency = ks.newReleaseId( "org.kie.ci.test", "kie-ci-test-bom", "1.2.3.Final" ); - String pom = getPomWithPomDependencies(releaseIdNoDep, ejbReleaseId, jmsReleaseId); + String pom = getPomWithPomDependencies(releaseIdNoDep, bomTypeDependency); File pomFile = fileManager.newFile("pom.xml"); fileManager.write(pomFile, pom); diff --git a/kie-ci/src/test/java/org/kie/scanner/KieModuleIncrementalCompilationTest.java b/kie-ci/src/test/java/org/kie/scanner/KieModuleIncrementalCompilationTest.java index 42d7ed025fb..6f4d6e53be9 100644 --- a/kie-ci/src/test/java/org/kie/scanner/KieModuleIncrementalCompilationTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/KieModuleIncrementalCompilationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.util.Collection; diff --git a/kie-ci/src/test/java/org/kie/scanner/KieModuleMavenTest.java b/kie-ci/src/test/java/org/kie/scanner/KieModuleMavenTest.java index c8233cc13a0..115ba529369 100644 --- a/kie-ci/src/test/java/org/kie/scanner/KieModuleMavenTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/KieModuleMavenTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; @@ -28,8 +31,8 @@ import org.drools.compiler.kie.builder.impl.KieContainerImpl; import org.drools.compiler.kie.builder.impl.KieRepositoryImpl; import org.drools.compiler.kie.builder.impl.KieServicesImpl; -import org.drools.core.factmodel.ClassDefinition; -import org.drools.core.factmodel.FieldDefinition; +import org.drools.base.factmodel.ClassDefinition; +import org.drools.base.factmodel.FieldDefinition; import org.drools.mvel.asm.DefaultBeanClassBuilder; import org.junit.Test; import org.kie.api.KieBase; @@ -101,10 +104,9 @@ public KieRepository getRepository() { } }; - ReleaseId dependency = ks.newReleaseId("org.drools", "drools-core", "5.5.0.Final"); ReleaseId releaseId = ks.newReleaseId("org.kie", "maven-test", "1.0-SNAPSHOT"); InternalKieModule kJar1 = createKieJar(ks, releaseId, true, "rule1", "rule2"); - String pomText = getPom(releaseId, dependency); + String pomText = getPom(releaseId, getTestDependencyJarReleaseId()); File pomFile = new File(System.getProperty("java.io.tmpdir"), MavenRepository.toFileName(releaseId, null) + ".pom"); try { FileOutputStream fos = new FileOutputStream(pomFile); @@ -133,7 +135,7 @@ public KieRepository getRepository() { } }; - ReleaseId dependency = ks.newReleaseId("org.drools", "drools-core", "5.5.0.Final"); + ReleaseId dependency = getTestDependencyJarReleaseId(); ReleaseId releaseId = ks.newReleaseId("org.kie", "maven-test", "1.0-SNAPSHOT"); String pomText = getPom(releaseId, dependency); @@ -154,17 +156,12 @@ public KieRepository getRepository() { KieContainer kieContainer = ks.newKieContainer(releaseId); Collection expectedDependencies = new HashSet(); - expectedDependencies.add(ks.newReleaseId("org.drools", "knowledge-api", "5.5.0.Final")); - expectedDependencies.add(ks.newReleaseId("org.drools", "knowledge-internal-api", "5.5.0.Final")); - expectedDependencies.add(ks.newReleaseId("org.drools", "drools-core", "5.5.0.Final")); - expectedDependencies.add(ks.newReleaseId("org.mvel", "mvel2", "2.1.3.Final")); - expectedDependencies.add(ks.newReleaseId("org.slf4j", "slf4j-api", "1.6.4")); - + expectedDependencies.add(dependency); + expectedDependencies.add(ks.newReleaseId(dependency.getGroupId(), "kie-ci-test-jar", dependency.getVersion())); Collection dependencies = ((InternalKieModule)((KieContainerImpl) kieContainer) .getKieModuleForKBase( "KBase1" )) .getJarDependencies( DependencyFilter.TAKE_ALL_FILTER ); assertThat(dependencies).isNotNull(); - assertThat(dependencies.size()).isEqualTo(5); ClassLoader kieContainerCL = kieContainer.getClassLoader(); assertThat(kieContainerCL instanceof KieTypeResolver).as("Kie Container class loader must be of KieTypeResolver type").isTrue(); @@ -271,10 +268,11 @@ public KieRepository getRepository() { } }; - ReleaseId dependency = ks.newReleaseId("org.drools", "drools-core", "${version.org.drools}"); + final ReleaseId dependencyReleaseIdTemplate = getTestDependencyJarReleaseId(); + ReleaseId dependency = ks.newReleaseId(dependencyReleaseIdTemplate.getGroupId(), dependencyReleaseIdTemplate.getArtifactId(), "${version.org.drools.test}"); ReleaseId releaseId = ks.newReleaseId("org.kie.test", "maven-test", "1.0-SNAPSHOT"); - InternalKieModule kJar1 = createKieJarWithProperties(ks, releaseId, true, "5.5.0.Final", new ReleaseId[]{dependency}, "rule1", "rule2"); - String pomText = generatePomXmlWithProperties(releaseId, "5.5.0.Final", dependency); + InternalKieModule kJar1 = createKieJarWithProperties(ks, releaseId, true, dependencyReleaseIdTemplate.getVersion(), new ReleaseId[]{dependency}, "rule1", "rule2"); + String pomText = generatePomXmlWithProperties(releaseId, "${project.version}", dependency); File pomFile = new File(System.getProperty("java.io.tmpdir"), MavenRepository.toFileName(releaseId, null) + ".pom"); try { FileOutputStream fos = new FileOutputStream(pomFile); @@ -357,7 +355,7 @@ public static String generatePomXml(ReleaseId releaseId, ReleaseId... dependenci return sBuilder.toString(); } - public static String generatePomXmlWithProperties(ReleaseId releaseId, String droolsVersion, ReleaseId... dependencies) { + public static String generatePomXmlWithProperties(ReleaseId releaseId, String dependencyVersion, ReleaseId... dependencies) { StringBuilder sBuilder = new StringBuilder(); sBuilder.append(" \n"); @@ -369,7 +367,7 @@ public static String generatePomXmlWithProperties(ReleaseId releaseId, String dr sBuilder.append(" jar \n"); sBuilder.append(" Default \n"); sBuilder.append(" \n"); - sBuilder.append(" "+droolsVersion+" \n"); + sBuilder.append(" "+dependencyVersion+" \n"); sBuilder.append(" \n"); if (dependencies.length > 0) { diff --git a/kie-ci/src/test/java/org/kie/scanner/KieModuleMetaDataImplTest.java b/kie-ci/src/test/java/org/kie/scanner/KieModuleMetaDataImplTest.java index b23ec38433e..830e851cb25 100644 --- a/kie-ci/src/test/java/org/kie/scanner/KieModuleMetaDataImplTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/KieModuleMetaDataImplTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.scanner; import org.junit.Test; diff --git a/kie-ci/src/test/java/org/kie/scanner/KieModuleMetaDataTest.java b/kie-ci/src/test/java/org/kie/scanner/KieModuleMetaDataTest.java index c484b9e77b4..8188a23e8ae 100644 --- a/kie-ci/src/test/java/org/kie/scanner/KieModuleMetaDataTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/KieModuleMetaDataTest.java @@ -1,28 +1,25 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.util.Collection; -import java.util.List; - import org.drools.compiler.kie.builder.impl.InternalKieModule; -import org.drools.core.rule.TypeMetaInfo; +import org.drools.base.rule.TypeMetaInfo; import org.junit.Test; import org.kie.api.KieServices; import org.kie.api.builder.KieBuilder; @@ -35,6 +32,15 @@ import org.kie.maven.integration.MavenRepository; import org.kie.util.maven.support.DependencyFilter; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Properties; + import static java.util.Arrays.asList; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; @@ -42,73 +48,84 @@ public class KieModuleMetaDataTest extends AbstractKieCiTest { + private String junitVersion; + + private synchronized String getJunitVersion() throws IOException { + if (junitVersion == null) { + final String propertiesPath = Objects.requireNonNull(Thread.currentThread().getContextClassLoader().getResource("versions.properties")).getPath(); + final Properties versionProperties = new Properties(); + versionProperties.load(new FileInputStream(propertiesPath)); + junitVersion = versionProperties.getProperty("version.junit"); + } + return junitVersion; + } + @Test public void testKieModuleMetaData() throws Exception { - ReleaseId releaseId = KieServices.Factory.get().newReleaseId( "org.drools", "drools-core", "5.5.0.Final" ); - KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( releaseId ); - checkDroolsCoreDep( kieModuleMetaData ); - assertThat(("" + kieModuleMetaData.getPackages()).contains("junit")).isTrue(); + KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(getTestDependencyJarReleaseId()); + checkDependency(kieModuleMetaData); + assertThat((kieModuleMetaData.getPackages()).contains("org.junit")).isTrue(); } @Test public void testKieModuleMetaDataWithoutTestDependencies() throws Exception { - ReleaseId releaseId = KieServices.Factory.get().newReleaseId( "org.drools", "drools-core", "5.5.0.Final" ); - KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( releaseId, new DependencyFilter.ExcludeScopeFilter("test") ); - checkDroolsCoreDep( kieModuleMetaData ); - assertThat( "" + kieModuleMetaData.getPackages() ).doesNotContain("junit"); + KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(getTestDependencyJarReleaseId(), + new DependencyFilter.ExcludeScopeFilter("test")); + checkDependency(kieModuleMetaData); + assertThat(kieModuleMetaData.getPackages()).doesNotContain("org.junit"); } @Test public void testKieModuleMetaDataForNonExistingGAV() throws Exception { // DROOLS-1562 - ReleaseId releaseId = KieServices.Factory.get().newReleaseId( "org.drools", "drools-core", "5.7.0.Final" ); - KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( releaseId ); + ReleaseId releaseId = KieServices.Factory.get().newReleaseId("org.drools", "drools-core", "300.222.761"); + KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(releaseId); assertThat(kieModuleMetaData.getPackages().size()).isEqualTo(0); } @Test public void testKieModuleMetaDataInMemoryWithJavaClass() throws Exception { - testKieModuleMetaDataInMemory( false ); + testKieModuleMetaDataInMemory(false); } @Test public void testKieModuleMetaDataInMemoryWithTypeDeclaration() throws Exception { - testKieModuleMetaDataInMemory( true ); + testKieModuleMetaDataInMemory(true); } @Test public void testKieModuleMetaDataInMemoryUsingPOMWithTypeDeclaration() throws Exception { - testKieModuleMetaDataInMemoryUsingPOM( true ); + testKieModuleMetaDataInMemoryUsingPOM(true); } @Test public void testKieModuleMetaDataForDependenciesInMemory() throws Exception { - testKieModuleMetaDataForDependenciesInMemory( false ); + testKieModuleMetaDataForDependenciesInMemory(false); } @Test public void testKieModuleMetaDataInMemoryWithJavaClassDefaultPackage() throws Exception { final KieServices ks = KieServices.Factory.get(); - final ReleaseId releaseId = ks.newReleaseId( "org.kie", "javaDefaultPackage", "1.0-SNAPSHOT" ); + final ReleaseId releaseId = ks.newReleaseId("org.kie", "javaDefaultPackage", "1.0-SNAPSHOT"); final KieModuleModel kproj = ks.newKieModuleModel(); final KieFileSystem kfs = ks.newKieFileSystem(); - kfs.writeKModuleXML( kproj.toXML() ) - .writePomXML( generatePomXml( releaseId ) ) - .write( "src/main/java/test/Bean.java", createJavaSource() ); + kfs.writeKModuleXML(kproj.toXML()) + .writePomXML(generatePomXml(releaseId)) + .write("src/main/java/test/Bean.java", createJavaSource()); - final KieBuilder kieBuilder = ks.newKieBuilder( kfs ); + final KieBuilder kieBuilder = ks.newKieBuilder(kfs); final List messages = kieBuilder.buildAll().getResults().getMessages(); assertThat(messages.isEmpty()).isTrue(); final KieModule kieModule = kieBuilder.getKieModule(); - final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( kieModule ); + final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(kieModule); //The call to kieModuleMetaData.getClass() assumes a Java file has an explicit package - final Class beanClass = kieModuleMetaData.getClass( "", "test.Bean" ); + final Class beanClass = kieModuleMetaData.getClass("", "test.Bean"); assertThat(beanClass).isNotNull(); - final TypeMetaInfo beanMetaInfo = kieModuleMetaData.getTypeMetaInfo( beanClass ); + final TypeMetaInfo beanMetaInfo = kieModuleMetaData.getTypeMetaInfo(beanClass); assertThat(beanMetaInfo).isNotNull(); } @@ -117,63 +134,63 @@ public void testGetPackageNames() { final KieServices ks = KieServices.Factory.get(); final KieFileSystem kfs = ks.newKieFileSystem(); - kfs.write( "src/main/resources/test.drl", - "package org.test declare Bean end" ); + kfs.write("src/main/resources/test.drl", + "package org.test declare Bean end"); - final KieBuilder kieBuilder = ks.newKieBuilder( kfs ); + final KieBuilder kieBuilder = ks.newKieBuilder(kfs); final List messages = kieBuilder.buildAll().getResults().getMessages(); assertThat(messages.isEmpty()).isTrue(); final KieModule kieModule = kieBuilder.getKieModule(); - final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( kieModule ); + final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(kieModule); assertThat(kieModuleMetaData.getPackages()).isNotEmpty(); assertThat(kieModuleMetaData.getPackages().contains("org.test")).isTrue(); } @Test - public void testIncludeAllDeps() { + public void testIncludeAllDeps() throws IOException { final KieServices ks = KieServices.Factory.get(); final KieFileSystem kfs = ks.newKieFileSystem(); - kfs.writePomXML( getPomWithTestDependency() ); + kfs.writePomXML(getPomWithTestDependency()); - final KieModule kieModule = ks.newKieBuilder( kfs ).getKieModule(); - final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( kieModule ); + final KieModule kieModule = ks.newKieBuilder(kfs).getKieModule(); + final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(kieModule); assertThat(("" + kieModuleMetaData.getPackages()).contains("junit")).isTrue(); } @Test - public void testExcludeTestDeps() { + public void testExcludeTestDeps() throws IOException { final KieServices ks = KieServices.Factory.get(); final KieFileSystem kfs = ks.newKieFileSystem(); - kfs.writePomXML( getPomWithTestDependency() ); + kfs.writePomXML(getPomWithTestDependency()); - final KieModule kieModule = ks.newKieBuilder( kfs ).getKieModule(); - final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( kieModule, new DependencyFilter.ExcludeScopeFilter("test") ); - assertThat("" + kieModuleMetaData.getPackages() ).doesNotContain("junit"); + final KieModule kieModule = ks.newKieBuilder(kfs).getKieModule(); + final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(kieModule, new DependencyFilter.ExcludeScopeFilter("test")); + assertThat(kieModuleMetaData.getPackages()).doesNotContain("junit"); } - private String getPomWithTestDependency() { + private String getPomWithTestDependency() throws IOException { return "\n" + - "\n" + - " 4.0.0\n" + - "\n" + - " org.kie\n" + - " test\n" + - " 1.0\n" + - "\n" + - " \n" + - " \n" + - " junit\n" + - " junit\n" + - " 4.11\n" + - " test\n" + - " \n" + - " \n" + - ""; + "\n" + + " 4.0.0\n" + + "\n" + + " org.kie\n" + + " test\n" + + " 1.0\n" + + "\n" + + " \n" + + " \n" + + " junit\n" + + " junit\n" + + " " + getJunitVersion() + "\n" + + " test\n" + + " \n" + + " \n" + + ""; } @Test @@ -181,31 +198,31 @@ public void testGetRuleNames() { final KieServices ks = KieServices.Factory.get(); final KieFileSystem kfs = ks.newKieFileSystem(); - kfs.write( "src/main/resources/test1.drl", - "package org.test\n" + - "rule A\n" + - " when\n" + - "then\n" + - "end\n" + - "rule B\n" + - " when\n" + - "then\n" + - "end\n" ); - kfs.write( "src/main/resources/test2.drl", - "package org.test\n" + - "rule C\n" + - " when\n" + - "then\n" + - "end\n" ); - - final KieBuilder kieBuilder = ks.newKieBuilder( kfs ); + kfs.write("src/main/resources/test1.drl", + "package org.test\n" + + "rule A\n" + + " when\n" + + "then\n" + + "end\n" + + "rule B\n" + + " when\n" + + "then\n" + + "end\n"); + kfs.write("src/main/resources/test2.drl", + "package org.test\n" + + "rule C\n" + + " when\n" + + "then\n" + + "end\n"); + + final KieBuilder kieBuilder = ks.newKieBuilder(kfs); final List messages = kieBuilder.buildAll().getResults().getMessages(); assertThat(messages.isEmpty()).isTrue(); final KieModule kieModule = kieBuilder.getKieModule(); - final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( kieModule ); + final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(kieModule); - Collection rules = kieModuleMetaData.getRuleNamesInPackage( "org.test" ); + Collection rules = kieModuleMetaData.getRuleNamesInPackage("org.test"); assertThat(rules.size()).isEqualTo(3); assertThat(rules.containsAll(asList("A", "B", "C"))).isTrue(); } @@ -220,103 +237,100 @@ private String createJavaSource() { "}"; } - private void testKieModuleMetaDataInMemory( boolean useTypeDeclaration ) throws Exception { + private void testKieModuleMetaDataInMemory(boolean useTypeDeclaration) throws Exception { KieServices ks = KieServices.Factory.get(); - ReleaseId dependency = ks.newReleaseId( "org.drools", "drools-core", "5.5.0.Final" ); - ReleaseId releaseId = ks.newReleaseId( "org.kie", "metadata-test", "1.0-SNAPSHOT" ); + ReleaseId releaseId = ks.newReleaseId("org.kie", "metadata-test", "1.0-SNAPSHOT"); - InternalKieModule kieModule = createKieJarWithClass( ks, releaseId, useTypeDeclaration, 2, 7, dependency ); - KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( kieModule ); - checkDroolsCoreDep( kieModuleMetaData ); + InternalKieModule kieModule = createKieJarWithClass(ks, releaseId, useTypeDeclaration, 2, 7, getTestDependencyJarReleaseId()); + KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(kieModule); + checkDependency(kieModuleMetaData); - Collection testClasses = kieModuleMetaData.getClasses( "org.kie.test" ); + Collection testClasses = kieModuleMetaData.getClasses("org.kie.test"); assertThat(testClasses.size()).isEqualTo(1); assertThat(testClasses.iterator().next()).isEqualTo("Bean"); - Class beanClass = kieModuleMetaData.getClass( "org.kie.test", "Bean" ); - assertThat(beanClass.getMethod( "getValue")).isNotNull(); + Class beanClass = kieModuleMetaData.getClass("org.kie.test", "Bean"); + assertThat(beanClass.getMethod("getValue")).isNotNull(); - TypeMetaInfo beanTypeInfo = kieModuleMetaData.getTypeMetaInfo( beanClass ); + TypeMetaInfo beanTypeInfo = kieModuleMetaData.getTypeMetaInfo(beanClass); assertThat(beanTypeInfo).isNotNull(); assertThat(beanTypeInfo.isEvent()).isTrue(); - Role role = beanClass.getAnnotation( Role.class ); + Role role = beanClass.getAnnotation(Role.class); assertThat(role).isNotNull(); assertThat(role.value()).isEqualTo(Role.Type.EVENT); assertThat(beanTypeInfo.isDeclaredType()).isEqualTo(useTypeDeclaration); } - private void testKieModuleMetaDataInMemoryUsingPOM( boolean useTypeDeclaration ) throws Exception { + private void testKieModuleMetaDataInMemoryUsingPOM(boolean useTypeDeclaration) throws Exception { //Build a KieModule jar, deploy it into local Maven repository KieServices ks = KieServices.Factory.get(); - ReleaseId dependency = ks.newReleaseId( "org.drools", "drools-core", "5.5.0.Final" ); - ReleaseId releaseId = ks.newReleaseId( "org.kie", "metadata-test", "1.0-SNAPSHOT" ); - InternalKieModule kieModule = createKieJarWithClass( ks, releaseId, useTypeDeclaration, 2, 7, dependency ); - String pomText = getPom( dependency ); - File pomFile = new File( System.getProperty( "java.io.tmpdir" ), MavenRepository.toFileName( releaseId, null ) + ".pom" ); + ReleaseId dependency = getTestDependencyJarReleaseId(); + ReleaseId releaseId = ks.newReleaseId("org.kie", "metadata-test", "1.0-SNAPSHOT"); + InternalKieModule kieModule = createKieJarWithClass(ks, releaseId, useTypeDeclaration, 2, 7, dependency); + String pomText = getPom(dependency); + File pomFile = new File(System.getProperty("java.io.tmpdir"), MavenRepository.toFileName(releaseId, null) + ".pom"); try { - FileOutputStream fos = new FileOutputStream( pomFile ); - fos.write( pomText.getBytes() ); + FileOutputStream fos = new FileOutputStream(pomFile); + fos.write(pomText.getBytes()); fos.flush(); fos.close(); - } catch ( IOException e ) { - throw new RuntimeException( e ); + } catch (IOException e) { + throw new RuntimeException(e); } - KieMavenRepository.getKieMavenRepository().installArtifact( releaseId, kieModule, pomFile ); + KieMavenRepository.getKieMavenRepository().installArtifact(releaseId, kieModule, pomFile); //Build a second KieModule, depends on the first KieModule jar which we have deployed into Maven - ReleaseId releaseId2 = ks.newReleaseId( "org.kie", "metadata-test-using-pom", "1.0-SNAPSHOT" ); - String pomText2 = getPom( releaseId2, releaseId ); - File pomFile2 = new File( System.getProperty( "java.io.tmpdir" ), MavenRepository.toFileName( releaseId2, null ) + ".pom" ); + ReleaseId releaseId2 = ks.newReleaseId("org.kie", "metadata-test-using-pom", "1.0-SNAPSHOT"); + String pomText2 = getPom(releaseId2, releaseId); + File pomFile2 = new File(System.getProperty("java.io.tmpdir"), MavenRepository.toFileName(releaseId2, null) + ".pom"); try { - FileOutputStream fos = new FileOutputStream( pomFile2 ); - fos.write( pomText2.getBytes() ); + FileOutputStream fos = new FileOutputStream(pomFile2); + fos.write(pomText2.getBytes()); fos.flush(); fos.close(); - } catch ( IOException e ) { - throw new RuntimeException( e ); + } catch (IOException e) { + throw new RuntimeException(e); } - KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( pomFile2 ); + KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(pomFile2); //checkDroolsCoreDep(kieModuleMetaData); - Collection testClasses = kieModuleMetaData.getClasses( "org.kie.test" ); + Collection testClasses = kieModuleMetaData.getClasses("org.kie.test"); assertThat(testClasses.size()).isEqualTo(1); assertThat(testClasses.iterator().next()).isEqualTo("Bean"); - Class beanClass = kieModuleMetaData.getClass( "org.kie.test", "Bean" ); + Class beanClass = kieModuleMetaData.getClass("org.kie.test", "Bean"); assertThat(beanClass.getMethod("getValue")).isNotNull(); - if ( useTypeDeclaration ) { + if (useTypeDeclaration) { assertThat(kieModuleMetaData.getTypeMetaInfo(beanClass).isEvent()).isTrue(); } } - private void checkDroolsCoreDep( KieModuleMetaData kieModuleMetaData ) { - assertThat(kieModuleMetaData.getClasses("org.drools.runtime").size()).isEqualTo(17); - Class statefulKnowledgeSessionClass = kieModuleMetaData.getClass( "org.drools.runtime", "StatefulKnowledgeSession" ); - assertThat(statefulKnowledgeSessionClass.isInterface()).isTrue(); - assertThat(statefulKnowledgeSessionClass.getDeclaredMethods().length).isEqualTo(2); + private void checkDependency(KieModuleMetaData kieModuleMetaData) throws NoSuchMethodException { + assertThat(kieModuleMetaData.getClasses("org.kie.ci.test.dep").size()).isEqualTo(1); + Class mainClass = kieModuleMetaData.getClass("org.kie.ci.test.dep", "Main"); + assertThat(mainClass).hasDeclaredMethods("someCustomMethod"); } - private void testKieModuleMetaDataForDependenciesInMemory( boolean useTypeDeclaration ) throws Exception { + private void testKieModuleMetaDataForDependenciesInMemory(boolean useTypeDeclaration) throws Exception { KieServices ks = KieServices.Factory.get(); - ReleaseId dependency = ks.newReleaseId( "org.drools", "drools-core", "5.5.0.Final" ); - ReleaseId releaseId = ks.newReleaseId( "org.kie", "metadata-test", "1.0-SNAPSHOT" ); + ReleaseId releaseId = ks.newReleaseId("org.kie", "metadata-test", "1.0-SNAPSHOT"); - InternalKieModule kieModule = createKieJarWithClass( ks, releaseId, useTypeDeclaration, 2, 7, dependency ); - KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( kieModule ); - checkDroolsCoreDep( kieModuleMetaData ); + InternalKieModule kieModule = createKieJarWithClass(ks, releaseId, useTypeDeclaration, 2, 7, getTestDependencyJarReleaseId()); + KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(kieModule); + checkDependency(kieModuleMetaData); - Collection testClasses = kieModuleMetaData.getClasses( "org.drools" ); - assertThat(testClasses.size()).isEqualTo(55); - Class beanClass = kieModuleMetaData.getClass( "org.drools", "QueryResult" ); + Collection classes = kieModuleMetaData.getClasses("org.kie.ci.test.dep"); + assertThat(classes.size()).isEqualTo(1); + Class beanClass = kieModuleMetaData.getClass("org.kie.ci.test.dep", "Main"); assertThat(beanClass).isNotNull(); //Classes in dependencies should have TypeMetaInfo - TypeMetaInfo beanTypeInfo = kieModuleMetaData.getTypeMetaInfo( beanClass ); + TypeMetaInfo beanTypeInfo = kieModuleMetaData.getTypeMetaInfo(beanClass); assertThat(beanTypeInfo).isNotNull(); - if ( useTypeDeclaration ) { + if (useTypeDeclaration) { assertThat(beanTypeInfo.isEvent()).isTrue(); } @@ -329,50 +343,57 @@ public void testKieMavenPluginEmptyProject() { final KieServices ks = KieServices.Factory.get(); final KieFileSystem kfs = ks.newKieFileSystem(); - kfs.write( "pom.xml", - "" - + "" - + " 4.0.0" - + " org.kie" - + " plugin-test" - + " 1.0" - + " kjar" - + " " - + " " - + " " - + " org.kie" - + " kie-maven-plugin" - + " the-test-does-not-need-proper-version-here" - + " true" - + " " - + " " - + " " - + "" ); + kfs.write("pom.xml", + "" + + "" + + " 4.0.0" + + " org.kie" + + " plugin-test" + + " 1.0" + + " kjar" + + " " + + " " + + " " + + " org.kie" + + " kie-maven-plugin" + + " the-test-does-not-need-proper-version-here" + + " true" + + " " + + " " + + " " + + ""); kfs.write("/src/main/resources/META-INF/kmodule.xml", - ""); + ""); - final KieBuilder kieBuilder = ks.newKieBuilder( kfs ); + final KieBuilder kieBuilder = ks.newKieBuilder(kfs); final List messages = kieBuilder.buildAll().getResults().getMessages(); assertThat(messages.isEmpty()).isTrue(); final KieModule kieModule = kieBuilder.getKieModule(); - final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData( kieModule ); + final KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newKieModuleMetaData(kieModule); boolean fail = false; - for ( final String packageName : kieModuleMetaData.getPackages() ) { - for ( final String className : kieModuleMetaData.getClasses( packageName ) ) { + for (final String packageName : kieModuleMetaData.getPackages()) { + for (final String className : kieModuleMetaData.getClasses(packageName)) { try { - kieModuleMetaData.getClass( packageName, className ); - } catch ( Throwable e ) { + kieModuleMetaData.getClass(packageName, className); + } catch (Throwable e) { fail = true; - System.out.println( e ); + System.out.println(e); } } } - if ( fail ) { - fail( "See console for details." ); + if (fail) { + fail("See console for details."); } } + @Test + public void loadClassInJarKieModuleMetaData() { + ReleaseId releaseId = KieServices.Factory.get().newReleaseId("org.kie.ci.test", "kie-ci-test-jar", "1.2.3.Final"); + KieModuleMetaData kieModuleMetaData = KieModuleMetaData.Factory.newInJarKieModuleMetaData(releaseId, DependencyFilter.COMPILE_FILTER); + Class sessionClockClass = kieModuleMetaData.getClass("org.kie.ci.test", "Main"); + assertThat(sessionClockClass).isNotNull(); + } } diff --git a/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerNexusTest.java b/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerNexusTest.java index 0bb30212e2d..6855bb248b8 100644 --- a/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerNexusTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerNexusTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; diff --git a/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerTest.java b/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerTest.java index 9efc2dab988..b06a6228339 100644 --- a/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/KieRepositoryScannerTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; diff --git a/kie-ci/src/test/java/org/kie/scanner/KieScannerIncrementalCompilationTest.java b/kie-ci/src/test/java/org/kie/scanner/KieScannerIncrementalCompilationTest.java index c1782b4532e..8b48b8f57af 100644 --- a/kie-ci/src/test/java/org/kie/scanner/KieScannerIncrementalCompilationTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/KieScannerIncrementalCompilationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner; import java.io.File; diff --git a/kie-ci/src/test/java/org/kie/scanner/embedder/MavenDeployTest.java b/kie-ci/src/test/java/org/kie/scanner/embedder/MavenDeployTest.java index dcd2eb3d2e9..3323901be35 100644 --- a/kie-ci/src/test/java/org/kie/scanner/embedder/MavenDeployTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/embedder/MavenDeployTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.scanner.embedder; import java.io.IOException; diff --git a/kie-ci/src/test/java/org/kie/scanner/management/KieScannerMBeanTest.java b/kie-ci/src/test/java/org/kie/scanner/management/KieScannerMBeanTest.java index 59e22ee719c..bffab7438d3 100644 --- a/kie-ci/src/test/java/org/kie/scanner/management/KieScannerMBeanTest.java +++ b/kie-ci/src/test/java/org/kie/scanner/management/KieScannerMBeanTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.scanner.management; import java.util.ArrayList; diff --git a/kie-ci/src/test/resources/kjar/pom-kjar.xml b/kie-ci/src/test/resources/kjar/pom-kjar.xml index 803c0f22b81..c4885aa7dfc 100644 --- a/kie-ci/src/test/resources/kjar/pom-kjar.xml +++ b/kie-ci/src/test/resources/kjar/pom-kjar.xml @@ -1,3 +1,23 @@ + 4.0.0 org.kie.test diff --git a/kie-ci/src/test/resources/logback-test.xml b/kie-ci/src/test/resources/logback-test.xml index 746ec95fc75..9444605a1e6 100644 --- a/kie-ci/src/test/resources/logback-test.xml +++ b/kie-ci/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/kie-ci/src/test/resources/org/kie/scanner/settings_nexus.xml b/kie-ci/src/test/resources/org/kie/scanner/settings_nexus.xml index f9d82e6b127..5567ae6fcea 100644 --- a/kie-ci/src/test/resources/org/kie/scanner/settings_nexus.xml +++ b/kie-ci/src/test/resources/org/kie/scanner/settings_nexus.xml @@ -1,3 +1,23 @@ + diff --git a/kie-dmn/kie-dmn-api/pom.xml b/kie-dmn/kie-dmn-api/pom.xml index 57ace413eaf..23f4e95a2cd 100644 --- a/kie-dmn/kie-dmn-api/pom.xml +++ b/kie-dmn/kie-dmn-api/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-api diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/AfterGeneratingSourcesListener.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/AfterGeneratingSourcesListener.java index a9df2e21635..dfb062abe3d 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/AfterGeneratingSourcesListener.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/AfterGeneratingSourcesListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.List; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNCompiler.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNCompiler.java index 8d136d9e50e..4fd50712238 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNCompiler.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; import java.io.Reader; @@ -22,9 +24,7 @@ import org.kie.api.io.Resource; import org.kie.dmn.model.api.Definitions; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public interface DMNCompiler { default DMNModel compile(Resource resource) { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNCompilerConfiguration.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNCompilerConfiguration.java index 44607d1078b..797255fd5ff 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNCompilerConfiguration.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNCompilerConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.List; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNContext.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNContext.java index 8298488c41b..62cd44a2887 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNContext.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.Map; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNDecisionResult.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNDecisionResult.java index 5282127ec45..f5f213983f9 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNDecisionResult.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNDecisionResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.List; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessage.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessage.java index b7ce5788ff7..8efa2a7ec90 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessage.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessage.java @@ -1,31 +1,31 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.api.core; import org.kie.api.builder.Message; import org.kie.dmn.api.feel.runtime.events.FEELEvent; -import org.kie.dmn.model.api.GwtIncompatible; import org.kie.internal.builder.InternalMessage; /** * A general message interface for all DMN related messages * raised during compilation and execution. */ -@GwtIncompatible public interface DMNMessage extends InternalMessage { enum Severity { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessageContainer.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessageContainer.java index 78025a59b1f..e3467ed96d1 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessageContainer.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessageContainer.java @@ -1,14 +1,29 @@ +/** + * 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. + */ package org.kie.dmn.api.core; import java.util.List; -import org.kie.dmn.model.api.GwtIncompatible; - /** * An interface for message container objects like * DMNResults and DMNModel */ -@GwtIncompatible public interface DMNMessageContainer { /** * Returns a list of all the messages produced diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessageType.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessageType.java index 4222a12a278..70a25813d1a 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessageType.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMessageType.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.api.core; public enum DMNMessageType { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMetadata.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMetadata.java index 20f4cd2aeea..d28091c2911 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMetadata.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNMetadata.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.Map; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNModel.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNModel.java index e07221cad7c..416af9537e3 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNModel.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.Collection; @@ -26,7 +28,6 @@ import org.kie.dmn.api.core.ast.InputDataNode; import org.kie.dmn.api.core.ast.ItemDefNode; import org.kie.dmn.model.api.Definitions; -import org.kie.dmn.model.api.GwtIncompatible; public interface DMNModel extends DMNMessageContainer { @@ -67,7 +68,6 @@ public interface DMNModel extends DMNMessageContainer { /** * If the model was created from a {@link Resource}, provide the original resource; null otherwise. */ - @GwtIncompatible Resource getResource(); Collection getDecisionServices(); diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNPackage.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNPackage.java index f1c1ef5f59d..946e70b3887 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNPackage.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNPackage.java @@ -1,28 +1,28 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.Map; import org.kie.api.internal.io.ResourceTypePackage; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public interface DMNPackage extends ResourceTypePackage { String getNamespace(); diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNResult.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNResult.java index e8a48a54621..347776b5e89 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNResult.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.List; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNRuntime.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNRuntime.java index 39158b64d05..7f5c2e5e20d 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNRuntime.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNRuntime.java @@ -1,25 +1,26 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.List; import org.kie.dmn.api.core.event.DMNRuntimeEventManager; -import org.kie.dmn.model.api.GwtIncompatible; public interface DMNRuntime extends DMNRuntimeEventManager { @@ -133,7 +134,6 @@ public interface DMNRuntime extends DMNRuntimeEventManager { /** * Returns the ClassLoader used by this DMNRuntime */ - @GwtIncompatible ClassLoader getRootClassLoader(); /** diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNType.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNType.java index b593298a3b5..6bc053ec491 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNType.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.api.core; import java.util.List; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNUnaryTest.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNUnaryTest.java index e91abf18e28..cdd5f3b6059 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNUnaryTest.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/DMNUnaryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; public interface DMNUnaryTest { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/FEELPropertyAccessible.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/FEELPropertyAccessible.java index de7c4b70a03..5df4f019b89 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/FEELPropertyAccessible.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/FEELPropertyAccessible.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.api.core; import java.util.Map; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/GeneratedSource.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/GeneratedSource.java index e23087e81de..569d68bb547 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/GeneratedSource.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/GeneratedSource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core; public class GeneratedSource { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/BusinessKnowledgeModelNode.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/BusinessKnowledgeModelNode.java index ad0020f1da4..2b0425829fe 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/BusinessKnowledgeModelNode.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/BusinessKnowledgeModelNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.ast; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DMNNode.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DMNNode.java index 230088effe4..7b9584fc367 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DMNNode.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DMNNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.ast; import java.util.Optional; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DecisionNode.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DecisionNode.java index 6816326ae92..c3be0566fc9 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DecisionNode.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DecisionNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.ast; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DecisionServiceNode.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DecisionServiceNode.java index 0a0449a0d7c..6500ac8ca7e 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DecisionServiceNode.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/DecisionServiceNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.ast; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/InputDataNode.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/InputDataNode.java index d51cdfa7cb1..3a127a7f5ec 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/InputDataNode.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/InputDataNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.ast; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/ItemDefNode.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/ItemDefNode.java index 6745996b9df..e56e18c6b82 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/ItemDefNode.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/ast/ItemDefNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.ast; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateAllEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateAllEvent.java index 965267fe392..cd3a65977b5 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateAllEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateAllEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; public interface AfterEvaluateAllEvent extends DMNEvent { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateBKMEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateBKMEvent.java index 0bee54b303e..8b016d7cfea 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateBKMEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateBKMEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.ast.BusinessKnowledgeModelNode; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateContextEntryEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateContextEntryEvent.java index f6b018e04c8..83b27ebffcc 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateContextEntryEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateContextEntryEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; public interface AfterEvaluateContextEntryEvent extends DMNEvent { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionEvent.java index ae37561b8f2..e11ac5f2bc4 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.ast.DecisionNode; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionServiceEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionServiceEvent.java index 745c2cee6c6..3edbdaa135a 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionServiceEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionServiceEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.ast.DecisionServiceNode; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionTableEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionTableEvent.java index 7a6fb935e66..3fac12be823 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionTableEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterEvaluateDecisionTableEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import java.util.List; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterInvokeBKMEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterInvokeBKMEvent.java index fb03897627e..a7a8e1dedab 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterInvokeBKMEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/AfterInvokeBKMEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.ast.BusinessKnowledgeModelNode; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateAllEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateAllEvent.java index e1bdc8b1e1d..5dfd9d0d99d 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateAllEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateAllEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; public interface BeforeEvaluateAllEvent extends DMNEvent { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateBKMEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateBKMEvent.java index b059a22c5a7..bf1c05db26b 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateBKMEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateBKMEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.ast.BusinessKnowledgeModelNode; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateContextEntryEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateContextEntryEvent.java index 3adce36eddd..62d6abbbcb6 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateContextEntryEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateContextEntryEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; public interface BeforeEvaluateContextEntryEvent extends DMNEvent { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionEvent.java index 6b72cf67d24..f65602905c9 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.ast.DecisionNode; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionServiceEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionServiceEvent.java index bf3039ebaf7..f5748b7e8b2 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionServiceEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionServiceEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.ast.DecisionServiceNode; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionTableEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionTableEvent.java index 29781b9601b..959a9d238f9 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionTableEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeEvaluateDecisionTableEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; public interface BeforeEvaluateDecisionTableEvent extends DMNEvent { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeInvokeBKMEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeInvokeBKMEvent.java index 284188e6a3a..be9155b8fff 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeInvokeBKMEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/BeforeInvokeBKMEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import java.util.List; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNEvent.java index d98369d88af..330f846e300 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNRuntimeEventListener.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNRuntimeEventListener.java index c66e913fe79..ddb6e890938 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNRuntimeEventListener.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNRuntimeEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.core.event; public interface DMNRuntimeEventListener { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNRuntimeEventManager.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNRuntimeEventManager.java index 6ddb5a24250..da17afd0ab6 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNRuntimeEventManager.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/core/event/DMNRuntimeEventManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.api.core.event; import org.kie.dmn.api.core.DMNRuntime; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/feel/runtime/events/FEELEvent.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/feel/runtime/events/FEELEvent.java index ccd0d31afd3..e065fdc1f5b 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/feel/runtime/events/FEELEvent.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/feel/runtime/events/FEELEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.api.feel.runtime.events; /** diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/feel/runtime/events/FEELEventListener.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/feel/runtime/events/FEELEventListener.java index d11831ff115..8161af1311b 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/feel/runtime/events/FEELEventListener.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/feel/runtime/events/FEELEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.api.feel.runtime.events; /** diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/DecisionIds.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/DecisionIds.java index f8f2817823b..77478cc9e4e 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/DecisionIds.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/DecisionIds.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.identifiers; import org.kie.efesto.common.api.identifiers.ComponentRoot; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/DecisionServiceIds.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/DecisionServiceIds.java index 80e1163b7bd..5014dadd229 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/DecisionServiceIds.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/DecisionServiceIds.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.identifiers; public class DecisionServiceIds { diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/LocalDecisionId.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/LocalDecisionId.java index 9b6c83f1896..12c03f34a72 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/LocalDecisionId.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/LocalDecisionId.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.api.identifiers; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/LocalDecisionServiceId.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/LocalDecisionServiceId.java index 963fce35675..41e8e670c3b 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/LocalDecisionServiceId.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/identifiers/LocalDecisionServiceId.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.identifiers; import org.kie.efesto.common.api.identifiers.Id; diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/marshalling/DMNExtensionRegister.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/marshalling/DMNExtensionRegister.java index 1dda261d9b7..f9b3183578b 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/marshalling/DMNExtensionRegister.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/marshalling/DMNExtensionRegister.java @@ -1,26 +1,26 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.marshalling; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.QNameMap; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public interface DMNExtensionRegister { public void registerExtensionConverters(XStream xstream); diff --git a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/marshalling/DMNMarshaller.java b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/marshalling/DMNMarshaller.java index 7aa48ddb7bd..4fe3f5de7a3 100644 --- a/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/marshalling/DMNMarshaller.java +++ b/kie-dmn/kie-dmn-api/src/main/java/org/kie/dmn/api/marshalling/DMNMarshaller.java @@ -1,28 +1,28 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.api.marshalling; import java.io.Reader; import java.io.Writer; import org.kie.dmn.model.api.Definitions; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public interface DMNMarshaller { Definitions unmarshal(final Reader isr); diff --git a/kie-dmn/kie-dmn-api/src/main/resources/org/kie/dmn/api/DMNApi.gwt.xml b/kie-dmn/kie-dmn-api/src/main/resources/org/kie/dmn/api/DMNApi.gwt.xml deleted file mode 100644 index 73c723f92bc..00000000000 --- a/kie-dmn/kie-dmn-api/src/main/resources/org/kie/dmn/api/DMNApi.gwt.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - diff --git a/kie-dmn/kie-dmn-backend/pom.xml b/kie-dmn/kie-dmn-backend/pom.xml index bd812a1fd11..6726a681cef 100644 --- a/kie-dmn/kie-dmn-backend/pom.xml +++ b/kie-dmn/kie-dmn-backend/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-backend diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/CustomStaxReader.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/CustomStaxReader.java index d52cec1a426..e127ce70d3d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/CustomStaxReader.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/CustomStaxReader.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.backend.marshalling; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/CustomStaxWriter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/CustomStaxWriter.java index bf351af4e3c..1a5d0f7ad7c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/CustomStaxWriter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/CustomStaxWriter.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.backend.marshalling; import javax.xml.stream.XMLStreamException; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ArtifactConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ArtifactConverter.java index 9b5b25006e1..e03038cf986 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ArtifactConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ArtifactConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/AssociationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/AssociationConverter.java index c4b1ce1fc7a..92a9efec84d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/AssociationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/AssociationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/AuthorityRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/AuthorityRequirementConverter.java index d6fbc594fb9..85419c3c812 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/AuthorityRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/AuthorityRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BindingConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BindingConverter.java index 96907a7cefd..911e8c77539 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BindingConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BindingConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BusinessContextElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BusinessContextElementConverter.java index ae3019aff0d..f778972e252 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BusinessContextElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BusinessContextElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BusinessKnowledgeModelConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BusinessKnowledgeModelConverter.java index 55ce46c8d6e..5c2ac262ceb 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BusinessKnowledgeModelConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/BusinessKnowledgeModelConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ContextConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ContextConverter.java index f0f739700b7..106061333da 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ContextConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ContextConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ContextEntryConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ContextEntryConverter.java index 9d8a2a7370f..fc7ba7b5022 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ContextEntryConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ContextEntryConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNBaseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNBaseConverter.java index b304f4e4a28..4afab0bae4f 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNBaseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNBaseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.converters.MarshallingContext; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNElementConverter.java index 63a89755a21..ba51d2819aa 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNElementReferenceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNElementReferenceConverter.java index 2d6350649a4..5cb20dd5e92 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNElementReferenceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNElementReferenceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNListConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNListConverter.java index 3321f73b03e..e80d47de6e5 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNListConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNListConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNModelInstrumentedBaseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNModelInstrumentedBaseConverter.java index 6f70acef696..10724717b6c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNModelInstrumentedBaseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DMNModelInstrumentedBaseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import java.util.Map; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DRGElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DRGElementConverter.java index 8c5976037a4..0d4d9348985 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DRGElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DRGElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionConverter.java index a5514414251..d719eeeee57 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionRuleConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionRuleConverter.java index a252a577e3d..a664465f434 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionRuleConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionRuleConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionServiceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionServiceConverter.java index 84a77b299a7..b6dc29bfcff 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionServiceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionServiceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionTableConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionTableConverter.java index fd3dfbffee2..b178be7f724 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionTableConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DecisionTableConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DefinitionsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DefinitionsConverter.java index 497da873949..0a491c97e41 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DefinitionsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/DefinitionsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ElementCollectionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ElementCollectionConverter.java index 40a86d3309b..23c2bbbab95 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ElementCollectionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ElementCollectionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ExpressionConverter.java index 982ee59b9fe..49e47b80eca 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ExtensionElementsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ExtensionElementsConverter.java index 7d43ad90690..d258b08490c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ExtensionElementsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ExtensionElementsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/FunctionDefinitionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/FunctionDefinitionConverter.java index b9ccdb76372..7c140924cb6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/FunctionDefinitionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/FunctionDefinitionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ImportConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ImportConverter.java index 36fb08cb6a3..24f0858cb5d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ImportConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ImportConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ImportedValuesConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ImportedValuesConverter.java index a4f2dcf2ea5..bb0952eb6fc 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ImportedValuesConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ImportedValuesConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InformationItemConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InformationItemConverter.java index b604fe9d858..cd61ecaaed2 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InformationItemConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InformationItemConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InformationRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InformationRequirementConverter.java index 8346aa43fed..6ce1fb0649c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InformationRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InformationRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InputClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InputClauseConverter.java index 5f305ad51b0..a869bb08e92 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InputClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InputClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InputDataConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InputDataConverter.java index 80b93b755b1..80eb7ad7198 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InputDataConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InputDataConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InvocationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InvocationConverter.java index 5f8f0f4beb2..111b1ef11a5 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InvocationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/InvocationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ItemDefinitionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ItemDefinitionConverter.java index d2cfdf1bb1d..3847e7befc6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ItemDefinitionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/ItemDefinitionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/KnowledgeRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/KnowledgeRequirementConverter.java index 2786763427f..f4ce1d51e22 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/KnowledgeRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/KnowledgeRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/KnowledgeSourceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/KnowledgeSourceConverter.java index 663b8682b23..529b1a6eff3 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/KnowledgeSourceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/KnowledgeSourceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/LiteralExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/LiteralExpressionConverter.java index 5d97c491b95..2d79cf51469 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/LiteralExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/LiteralExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/MarshallingUtils.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/MarshallingUtils.java index 1fd3cc5de45..f3ddc7078c4 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/MarshallingUtils.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/MarshallingUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import java.util.regex.Matcher; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/NamedElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/NamedElementConverter.java index 3e8af92a253..d855c3f497c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/NamedElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/NamedElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/OrganizationUnitConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/OrganizationUnitConverter.java index 8d12b67a9c8..dbd9d83b77d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/OrganizationUnitConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/OrganizationUnitConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/OutputClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/OutputClauseConverter.java index 83ac8d1fc4a..96715125a00 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/OutputClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/OutputClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/PerformanceIndicatorConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/PerformanceIndicatorConverter.java index 53a4fcd5677..7ae7d57d288 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/PerformanceIndicatorConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/PerformanceIndicatorConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/QNameConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/QNameConverter.java index 35d2ed3983e..3835c481b89 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/QNameConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/QNameConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import java.util.Map; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/RelationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/RelationConverter.java index db2aa8bccb2..27d63d3a07c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/RelationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/RelationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/TextAnnotationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/TextAnnotationConverter.java index deceb6d891c..544d383b437 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/TextAnnotationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/TextAnnotationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/UnaryTestsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/UnaryTestsConverter.java index 33e010bb0c4..a2b2c2ef624 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/UnaryTestsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/UnaryTestsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/XStreamMarshaller.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/XStreamMarshaller.java index 79524a7ffee..d8281318ed7 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/XStreamMarshaller.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/XStreamMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream; import java.io.OutputStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/extensions/DecisionServicesConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/extensions/DecisionServicesConverter.java index 5a6f0f6eb43..14690f84af9 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/extensions/DecisionServicesConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/extensions/DecisionServicesConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream.extensions; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/extensions/DecisionServicesExtensionRegister.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/extensions/DecisionServicesExtensionRegister.java index fbb14581451..0052d8aead4 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/extensions/DecisionServicesExtensionRegister.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_1/xstream/extensions/DecisionServicesExtensionRegister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.xstream.extensions; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ArtifactConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ArtifactConverter.java index c25558ad838..f79387b099f 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ArtifactConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ArtifactConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/AssociationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/AssociationConverter.java index 3e6d1c3a83b..8748097b2c7 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/AssociationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/AssociationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/AuthorityRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/AuthorityRequirementConverter.java index 7619b092022..a1062490ae7 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/AuthorityRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/AuthorityRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BindingConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BindingConverter.java index 702c328034c..e012fda863b 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BindingConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BindingConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BoundsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BoundsConverter.java index 53b78c210ed..70e766a0c9d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BoundsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BoundsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BusinessContextElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BusinessContextElementConverter.java index 931603aa28a..2849b90bd59 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BusinessContextElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BusinessContextElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BusinessKnowledgeModelConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BusinessKnowledgeModelConverter.java index f4003e9f404..9cc10fe5cb0 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BusinessKnowledgeModelConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/BusinessKnowledgeModelConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ColorConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ColorConverter.java index 980cc204b48..d24954841a4 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ColorConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ColorConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ContextConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ContextConverter.java index 1865d37f73d..43efc64b4ad 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ContextConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ContextConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ContextEntryConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ContextEntryConverter.java index 1d5aa851440..b2579f65be7 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ContextEntryConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ContextEntryConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNBaseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNBaseConverter.java index 03504ac958c..d395dd44e5e 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNBaseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNBaseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.converters.MarshallingContext; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDIConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDIConverter.java index 280de30ce73..dfb17a12f55 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDIConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDIConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDecisionServiceDividerLineConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDecisionServiceDividerLineConverter.java index a1a081fb607..a1bce9cb8c7 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDecisionServiceDividerLineConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDecisionServiceDividerLineConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDiagramConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDiagramConverter.java index 482066292c0..99ff12bf085 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDiagramConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNDiagramConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNEdgeConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNEdgeConverter.java index 2ae00fe811c..90076dbb28a 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNEdgeConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNEdgeConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNElementConverter.java index 47549d231f0..663f72230de 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import org.kie.dmn.model.api.*; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNElementReferenceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNElementReferenceConverter.java index 5e7557d2117..c7795328a17 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNElementReferenceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNElementReferenceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNLabelConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNLabelConverter.java index 3544cf2991c..a7cc34098ac 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNLabelConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNLabelConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNListConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNListConverter.java index 511c597cf69..1dc484d2fd9 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNListConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNListConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNModelInstrumentedBaseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNModelInstrumentedBaseConverter.java index 34c712cf55e..f44053e0252 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNModelInstrumentedBaseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNModelInstrumentedBaseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import java.util.Map; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNShapeConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNShapeConverter.java index cabb78f1086..32850b4757d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNShapeConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNShapeConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNStyleConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNStyleConverter.java index 536780db05b..3bd161f54a5 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNStyleConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DMNStyleConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DRGElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DRGElementConverter.java index 2537a97c21d..9675c198b9b 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DRGElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DRGElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionConverter.java index 9754c76b3cd..3e6f574c606 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionRuleConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionRuleConverter.java index e2aefe2322a..d4cc57ec595 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionRuleConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionRuleConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionServiceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionServiceConverter.java index a66a3eddab6..41e125750c7 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionServiceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionServiceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionTableConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionTableConverter.java index 37eb1677038..4f0be35406a 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionTableConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DecisionTableConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DefinitionsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DefinitionsConverter.java index ce94ebb10f1..fefd4431872 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DefinitionsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DefinitionsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramConverter.java index e2b61179b10..b49836833f6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramElementConverter.java index c331a54ea94..55cd511977c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramElementExtensionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramElementExtensionConverter.java index dcb20133d97..4663dc57855 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramElementExtensionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DiagramElementExtensionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DimensionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DimensionConverter.java index 3faa4da2d77..fe928152fee 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DimensionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/DimensionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/EdgeConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/EdgeConverter.java index 7773c71bbc7..c1917f75378 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/EdgeConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/EdgeConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ElementCollectionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ElementCollectionConverter.java index b49d1abce16..0c0e03eba5e 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ElementCollectionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ElementCollectionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ExpressionConverter.java index 856ea3b4863..98b4ddad03f 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ExtensionElementsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ExtensionElementsConverter.java index 1073d967a6d..077e5f2e1ec 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ExtensionElementsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ExtensionElementsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/FormatUtils.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/FormatUtils.java index aec8688acb9..b5552e091b0 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/FormatUtils.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/FormatUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import java.util.Objects; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/FunctionDefinitionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/FunctionDefinitionConverter.java index 2c7ee56ed4c..8db3398adc3 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/FunctionDefinitionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/FunctionDefinitionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ImportConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ImportConverter.java index bb01a52ab90..717908fa313 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ImportConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ImportConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ImportedValuesConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ImportedValuesConverter.java index 9bc5995ce4a..58a9eb8f216 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ImportedValuesConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ImportedValuesConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InformationItemConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InformationItemConverter.java index da49f465432..64f45620a59 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InformationItemConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InformationItemConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InformationRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InformationRequirementConverter.java index 37a21f8f2f4..db7b2b4b975 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InformationRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InformationRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InputClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InputClauseConverter.java index 45188a1ccb3..910cf748c04 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InputClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InputClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InputDataConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InputDataConverter.java index 7969e6746c3..3b108a7d142 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InputDataConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InputDataConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InvocableConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InvocableConverter.java index ceac19cd407..4b268654f63 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InvocableConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InvocableConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InvocationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InvocationConverter.java index c0f357cda45..777c4550481 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InvocationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/InvocationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ItemDefinitionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ItemDefinitionConverter.java index e775281a912..b03dd369e83 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ItemDefinitionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ItemDefinitionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/KnowledgeRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/KnowledgeRequirementConverter.java index d73c2e86b76..d035f2f9c27 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/KnowledgeRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/KnowledgeRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/KnowledgeSourceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/KnowledgeSourceConverter.java index 5777a66b08e..ffc1c360c41 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/KnowledgeSourceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/KnowledgeSourceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/LiteralExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/LiteralExpressionConverter.java index d45a5e117e2..accb4a2a221 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/LiteralExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/LiteralExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/MarshallingUtils.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/MarshallingUtils.java index aea9a61bb9b..131117db9b3 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/MarshallingUtils.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/MarshallingUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import java.util.regex.Matcher; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/NamedElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/NamedElementConverter.java index 8c6bbf04800..7e27dab1d6c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/NamedElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/NamedElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import org.kie.dmn.model.api.*; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/OrganizationUnitConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/OrganizationUnitConverter.java index 8a0d7b80d6e..063d14b3727 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/OrganizationUnitConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/OrganizationUnitConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/OutputClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/OutputClauseConverter.java index c03aeddfa1b..5e5090ca121 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/OutputClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/OutputClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/PerformanceIndicatorConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/PerformanceIndicatorConverter.java index 5e4ae4a718c..d4fd06e0010 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/PerformanceIndicatorConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/PerformanceIndicatorConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/PointConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/PointConverter.java index 35d7a1ddc77..f168fd8035c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/PointConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/PointConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/QNameConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/QNameConverter.java index 9e8064e3575..5c1b14089a8 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/QNameConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/QNameConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RelationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RelationConverter.java index 91c48ac6f77..01ca74297c7 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RelationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RelationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RuleAnnotationClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RuleAnnotationClauseConverter.java index b1b93ca0692..95c9aa9e8ce 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RuleAnnotationClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RuleAnnotationClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RuleAnnotationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RuleAnnotationConverter.java index 3de67660862..79594e66225 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RuleAnnotationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/RuleAnnotationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ShapeConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ShapeConverter.java index 36a05e3d6ab..8d6d171e2c6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ShapeConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/ShapeConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/StyleConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/StyleConverter.java index d0cfd245966..b4fa3ccca2c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/StyleConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/StyleConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/TextAnnotationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/TextAnnotationConverter.java index 89a6e6c202c..00c062ecd62 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/TextAnnotationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/TextAnnotationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/UnaryTestsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/UnaryTestsConverter.java index c49e772bfb7..9e933997ddb 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/UnaryTestsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/UnaryTestsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/XStreamMarshaller.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/XStreamMarshaller.java index 979da40bc9d..2837c0ab5e0 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/XStreamMarshaller.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_2/xstream/XStreamMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.xstream; import java.io.Reader; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ArtifactConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ArtifactConverter.java index c0d74e2bf62..6828841a4a1 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ArtifactConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ArtifactConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/AssociationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/AssociationConverter.java index 666fa9eb585..e808f96adf5 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/AssociationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/AssociationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/AuthorityRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/AuthorityRequirementConverter.java index 760ef7d96d4..1fa762782ee 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/AuthorityRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/AuthorityRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BindingConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BindingConverter.java index b0e2a04ae5b..822a3bb8694 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BindingConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BindingConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BoundsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BoundsConverter.java index 6680b69eb6b..b7d4830e8f3 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BoundsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BoundsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BusinessContextElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BusinessContextElementConverter.java index 63e9a02e75c..95a3b7e1c1b 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BusinessContextElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BusinessContextElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BusinessKnowledgeModelConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BusinessKnowledgeModelConverter.java index 551664794a6..014dbf66631 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BusinessKnowledgeModelConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/BusinessKnowledgeModelConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ColorConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ColorConverter.java index e7d88f96726..b1579ac98fc 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ColorConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ColorConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ContextConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ContextConverter.java index 4d16534affb..9508908e6bf 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ContextConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ContextConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ContextEntryConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ContextEntryConverter.java index a15169b8d9a..d16521a967a 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ContextEntryConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ContextEntryConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNBaseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNBaseConverter.java index ae64b6abbd4..570fd02c5c1 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNBaseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNBaseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.converters.MarshallingContext; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDIConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDIConverter.java index d1658e62c79..f6ca18777b5 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDIConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDIConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDecisionServiceDividerLineConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDecisionServiceDividerLineConverter.java index c87cdc7e031..13dfeac4302 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDecisionServiceDividerLineConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDecisionServiceDividerLineConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDiagramConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDiagramConverter.java index 2f3ecd5736c..7d461d151e8 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDiagramConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNDiagramConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNEdgeConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNEdgeConverter.java index 8ea00201be1..32a46508e54 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNEdgeConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNEdgeConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNElementConverter.java index 35ada672886..443fc8280cd 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import org.kie.dmn.model.api.*; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNElementReferenceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNElementReferenceConverter.java index e93527360a1..4052c44e66c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNElementReferenceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNElementReferenceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNLabelConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNLabelConverter.java index 191fe16553b..4973f8fe4a6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNLabelConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNLabelConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNListConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNListConverter.java index e4c68bfd58e..babc710272d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNListConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNListConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNModelInstrumentedBaseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNModelInstrumentedBaseConverter.java index 3769aa96384..0b586339fd0 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNModelInstrumentedBaseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNModelInstrumentedBaseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import java.util.Map; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNShapeConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNShapeConverter.java index 332f05b0a00..43383018a05 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNShapeConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNShapeConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNStyleConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNStyleConverter.java index 3ef2a15d76d..acfbcebc076 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNStyleConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DMNStyleConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DRGElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DRGElementConverter.java index b82259bae66..25729064528 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DRGElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DRGElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionConverter.java index 8a845c08751..ef6b73275f2 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import org.kie.dmn.model.api.AuthorityRequirement; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionRuleConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionRuleConverter.java index 0cd65adc782..959ca9d14d3 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionRuleConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionRuleConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionServiceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionServiceConverter.java index f98c8ffc7a7..8a4c4673fcc 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionServiceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionServiceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionTableConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionTableConverter.java index ab142e1cddf..402d9617ae2 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionTableConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DecisionTableConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DefinitionsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DefinitionsConverter.java index ca53242320b..f948f47b717 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DefinitionsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DefinitionsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import javax.xml.XMLConstants; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramConverter.java index ee8c06bc356..0618678a68e 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramElementConverter.java index 703532d78ac..9337914ae8a 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramElementExtensionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramElementExtensionConverter.java index 5484bb890b9..c62366e64d2 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramElementExtensionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DiagramElementExtensionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DimensionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DimensionConverter.java index 6a802538544..ddb010d39b8 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DimensionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/DimensionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/EdgeConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/EdgeConverter.java index 937130742c0..7a2233daefc 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/EdgeConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/EdgeConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ElementCollectionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ElementCollectionConverter.java index def7411348d..0c68246bd02 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ElementCollectionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ElementCollectionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ExpressionConverter.java index d21be03255f..ca0170f538e 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ExtensionElementsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ExtensionElementsConverter.java index 52272134aa5..afff9504526 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ExtensionElementsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ExtensionElementsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FormatUtils.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FormatUtils.java index 96850189c75..54606009a74 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FormatUtils.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FormatUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import java.util.Objects; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FunctionDefinitionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FunctionDefinitionConverter.java index 80926d70444..ab6eb9a8b9a 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FunctionDefinitionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FunctionDefinitionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FunctionItemConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FunctionItemConverter.java index cf508c7570b..c7a08c9d4b6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FunctionItemConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/FunctionItemConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/GroupConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/GroupConverter.java index 4bdb79c6ea6..f804cfc67d3 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/GroupConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/GroupConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ImportConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ImportConverter.java index 7db4e4a224f..2f48c05257e 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ImportConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ImportConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ImportedValuesConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ImportedValuesConverter.java index f293fcad36c..572da43f081 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ImportedValuesConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ImportedValuesConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InformationItemConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InformationItemConverter.java index d050897c845..5466ec37a85 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InformationItemConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InformationItemConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InformationRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InformationRequirementConverter.java index 352d558b93e..6db2e3cec01 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InformationRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InformationRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InputClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InputClauseConverter.java index 4f630395a08..04c0c09bfc6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InputClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InputClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InputDataConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InputDataConverter.java index 28ef0f3cf80..98607ad08d1 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InputDataConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InputDataConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InvocableConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InvocableConverter.java index bf84f0a12e2..ed08b85cdc8 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InvocableConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InvocableConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InvocationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InvocationConverter.java index a5bbb74f85e..3119d8d8a0b 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InvocationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/InvocationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ItemDefinitionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ItemDefinitionConverter.java index 5ee258aa556..4d139922d7a 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ItemDefinitionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ItemDefinitionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/KnowledgeRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/KnowledgeRequirementConverter.java index 6f5aba444a9..410ce827296 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/KnowledgeRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/KnowledgeRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/KnowledgeSourceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/KnowledgeSourceConverter.java index 3363815a341..a94d4ef3644 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/KnowledgeSourceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/KnowledgeSourceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/LiteralExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/LiteralExpressionConverter.java index 5f7cb1e1516..835ac468c90 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/LiteralExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/LiteralExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/MarshallingUtils.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/MarshallingUtils.java index 2761d2413af..830d472c9b1 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/MarshallingUtils.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/MarshallingUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import java.util.regex.Matcher; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/NamedElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/NamedElementConverter.java index 1f9260b0ce2..94e90c4bae0 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/NamedElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/NamedElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import org.kie.dmn.model.api.*; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/OrganizationUnitConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/OrganizationUnitConverter.java index ed891c9f47d..15a89fbf9d4 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/OrganizationUnitConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/OrganizationUnitConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/OutputClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/OutputClauseConverter.java index 0f2aba0068f..9d9515202cf 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/OutputClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/OutputClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/PerformanceIndicatorConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/PerformanceIndicatorConverter.java index b3b6699f945..fe68bd001cf 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/PerformanceIndicatorConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/PerformanceIndicatorConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/PointConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/PointConverter.java index d8000e4a5dc..fd99f826c99 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/PointConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/PointConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/QNameConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/QNameConverter.java index 89f8a7e01ba..58809df762b 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/QNameConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/QNameConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RelationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RelationConverter.java index 60892e7a7c0..74bcd1d64c3 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RelationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RelationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RuleAnnotationClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RuleAnnotationClauseConverter.java index db25d629bf7..fc19585d406 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RuleAnnotationClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RuleAnnotationClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RuleAnnotationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RuleAnnotationConverter.java index bb553aae11e..56c9c1cdc03 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RuleAnnotationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/RuleAnnotationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ShapeConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ShapeConverter.java index df72aee8693..b1dd9efa4de 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ShapeConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/ShapeConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/StyleConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/StyleConverter.java index 7cf6408f9a9..6e16cf5fca5 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/StyleConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/StyleConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/TextAnnotationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/TextAnnotationConverter.java index 024db476b8c..705d6ef27aa 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/TextAnnotationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/TextAnnotationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/UnaryTestsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/UnaryTestsConverter.java index 4ab898c40f9..1efe1e7e606 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/UnaryTestsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/UnaryTestsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/XStreamMarshaller.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/XStreamMarshaller.java index 8623b88b4b0..684b3d9c03a 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/XStreamMarshaller.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_3/xstream/XStreamMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.xstream; import java.io.Reader; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ArtifactConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ArtifactConverter.java index 83490bc437e..991760eadb6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ArtifactConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ArtifactConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/AssociationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/AssociationConverter.java index 416ef5fdaf2..8b76c2b493d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/AssociationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/AssociationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/AuthorityRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/AuthorityRequirementConverter.java index 5ef7fb5c605..f7991d7b7d6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/AuthorityRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/AuthorityRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BindingConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BindingConverter.java index b943b940fc6..70c595d176d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BindingConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BindingConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BusinessContextElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BusinessContextElementConverter.java index 0f2231b81bd..41765df278d 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BusinessContextElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BusinessContextElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BusinessKnowledgeModelConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BusinessKnowledgeModelConverter.java index a86c852d357..8b3df565073 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BusinessKnowledgeModelConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/BusinessKnowledgeModelConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ChildExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ChildExpressionConverter.java index 0ce9df70c4f..49fe69534a0 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ChildExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ChildExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ConditionalConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ConditionalConverter.java index 624f900e502..0a06b4150cc 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ConditionalConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ConditionalConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ContextConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ContextConverter.java index 50842545ec3..0f9add7c174 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ContextConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ContextConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ContextEntryConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ContextEntryConverter.java index 48fa48d0b0f..54dda93c4bd 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ContextEntryConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ContextEntryConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNBaseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNBaseConverter.java index c99e8053eb2..814aa7f7e2c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNBaseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNBaseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.converters.MarshallingContext; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNElementConverter.java index 63d8e665d8d..729f767da9f 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.*; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNElementReferenceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNElementReferenceConverter.java index 5f31c8196fb..205b81ca53f 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNElementReferenceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNElementReferenceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNListConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNListConverter.java index b0c7a07c8fa..913c1b0a4c5 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNListConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNListConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNModelInstrumentedBaseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNModelInstrumentedBaseConverter.java index 288a0d1b547..b52fb13fe75 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNModelInstrumentedBaseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DMNModelInstrumentedBaseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import java.util.Map; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DRGElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DRGElementConverter.java index e50c46379da..6ffcea250b4 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DRGElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DRGElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionConverter.java index 27de5cde47e..0b5a0efbc7f 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.AuthorityRequirement; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionRuleConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionRuleConverter.java index 12a8158a781..abb4dbb3bb4 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionRuleConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionRuleConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionServiceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionServiceConverter.java index 2674bbd48fb..f3ac5a07863 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionServiceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionServiceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionTableConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionTableConverter.java index 260015bba0b..b81fd16af0c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionTableConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DecisionTableConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DefinitionsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DefinitionsConverter.java index c974fe889b8..59304c62f18 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DefinitionsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/DefinitionsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import javax.xml.XMLConstants; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ElementCollectionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ElementCollectionConverter.java index 579c1254ef1..84b703a7061 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ElementCollectionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ElementCollectionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/EveryConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/EveryConverter.java index 8671aab2bfa..5e8baee2578 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/EveryConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/EveryConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.DMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ExpressionConverter.java index ccbbf0c4a5f..d2cad1b3656 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ExtensionElementsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ExtensionElementsConverter.java index 2068deb85f2..4faf5bfc518 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ExtensionElementsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ExtensionElementsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FilterConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FilterConverter.java index 9cda1d2d140..53f345dee10 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FilterConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FilterConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ForConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ForConverter.java index fadc36c4e67..7dd9f82df95 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ForConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ForConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FormatUtils.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FormatUtils.java index 92fbc7c2196..dcdd9fc623e 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FormatUtils.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FormatUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import java.util.Objects; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FunctionDefinitionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FunctionDefinitionConverter.java index 1e66831d0a3..2e5c2d5f736 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FunctionDefinitionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FunctionDefinitionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FunctionItemConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FunctionItemConverter.java index 83f0b8807e4..fc937b1a1b7 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FunctionItemConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/FunctionItemConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/GroupConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/GroupConverter.java index a889a34598b..2b56b6aee6a 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/GroupConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/GroupConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ImportConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ImportConverter.java index bfa98c59058..53863af4968 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ImportConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ImportConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ImportedValuesConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ImportedValuesConverter.java index 9c8541af1c8..bd7f7761704 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ImportedValuesConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ImportedValuesConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InformationItemConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InformationItemConverter.java index 6814a28bb3c..1288373a3fb 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InformationItemConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InformationItemConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InformationRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InformationRequirementConverter.java index 934a7878c3e..02a2087fafc 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InformationRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InformationRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InputClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InputClauseConverter.java index 240ce2676c3..38f0843ebd9 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InputClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InputClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InputDataConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InputDataConverter.java index 30a4e9a6df4..71170f8ece0 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InputDataConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InputDataConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InvocableConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InvocableConverter.java index f30e5e26853..1b312395517 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InvocableConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InvocableConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InvocationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InvocationConverter.java index 7e7decccdfe..dd1a15ba58f 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InvocationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/InvocationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ItemDefinitionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ItemDefinitionConverter.java index e7a1a0e0a9f..72d18ff7739 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ItemDefinitionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/ItemDefinitionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/IteratorConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/IteratorConverter.java index a4a046ac729..91040d4fd76 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/IteratorConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/IteratorConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.Iterator; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/KnowledgeRequirementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/KnowledgeRequirementConverter.java index 45add2deb74..a688fd042b1 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/KnowledgeRequirementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/KnowledgeRequirementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/KnowledgeSourceConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/KnowledgeSourceConverter.java index 0eebba4f39b..b75821be166 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/KnowledgeSourceConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/KnowledgeSourceConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/LiteralExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/LiteralExpressionConverter.java index 98daa6769a9..f5762526196 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/LiteralExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/LiteralExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/MarshallingUtils.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/MarshallingUtils.java index 735e2b6ce9f..1996d116523 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/MarshallingUtils.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/MarshallingUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import java.util.regex.Matcher; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/NamedElementConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/NamedElementConverter.java index 22804bf45f1..a68898516f6 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/NamedElementConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/NamedElementConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.*; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/OrganizationUnitConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/OrganizationUnitConverter.java index 34d7c4a45c7..bffcb62f3e7 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/OrganizationUnitConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/OrganizationUnitConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/OutputClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/OutputClauseConverter.java index 6e17df86053..49181d4f149 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/OutputClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/OutputClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/PerformanceIndicatorConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/PerformanceIndicatorConverter.java index 2fb847ef1f5..1912554c55a 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/PerformanceIndicatorConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/PerformanceIndicatorConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/QNameConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/QNameConverter.java index dc9b4f581af..afb4dacef72 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/QNameConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/QNameConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/QuantifiedConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/QuantifiedConverter.java index 737c74f43a0..5585a4113d3 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/QuantifiedConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/QuantifiedConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RelationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RelationConverter.java index 6190409b845..ef686b21ee5 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RelationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RelationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RuleAnnotationClauseConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RuleAnnotationClauseConverter.java index 3b12d67e788..712bb021fb4 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RuleAnnotationClauseConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RuleAnnotationClauseConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RuleAnnotationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RuleAnnotationConverter.java index 01d4359d386..b69b9eebc8c 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RuleAnnotationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/RuleAnnotationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/SomeConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/SomeConverter.java index bd3076b5874..1ca4d82ca72 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/SomeConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/SomeConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import org.kie.dmn.model.api.DMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/TextAnnotationConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/TextAnnotationConverter.java index 07ee5b696ba..746e15d0688 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/TextAnnotationConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/TextAnnotationConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/TypedChildExpressionConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/TypedChildExpressionConverter.java index 613f86a85b7..00d05b14778 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/TypedChildExpressionConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/TypedChildExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/UnaryTestsConverter.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/UnaryTestsConverter.java index 3d346391014..53f07289b9e 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/UnaryTestsConverter.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/UnaryTestsConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/XStreamMarshaller.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/XStreamMarshaller.java index 58167373ec6..f6f3264cd56 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/XStreamMarshaller.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1_4/xstream/XStreamMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4.xstream; import java.io.Reader; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/ConverterDefinesExpressionNodeName.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/ConverterDefinesExpressionNodeName.java index ec55d70e628..3d76aceb58b 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/ConverterDefinesExpressionNodeName.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/ConverterDefinesExpressionNodeName.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1x; import org.kie.dmn.model.api.Expression; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/DMNMarshallerFactory.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/DMNMarshallerFactory.java index a4b3dece9a8..8bdf73549d1 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/DMNMarshallerFactory.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/DMNMarshallerFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1x; import java.util.List; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/DMNXStream.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/DMNXStream.java index 5e5bb6b1a3d..88dc428a250 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/DMNXStream.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/DMNXStream.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1x; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/XStreamMarshaller.java b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/XStreamMarshaller.java index 25d9e64e0d5..5e7f65c8527 100644 --- a/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/XStreamMarshaller.java +++ b/kie-dmn/kie-dmn-backend/src/main/java/org/kie/dmn/backend/marshalling/v1x/XStreamMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1x; import java.io.BufferedReader; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/DMNXMLLoaderTest.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/DMNXMLLoaderTest.java index e0baf95c5d1..4528dace133 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/DMNXMLLoaderTest.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/DMNXMLLoaderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1; import java.io.InputStream; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/MarshallingUtilsTest.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/MarshallingUtilsTest.java index 02c292fb1d4..af054ae7d2e 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/MarshallingUtilsTest.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/MarshallingUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1; import javax.xml.XMLConstants; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/UnmarshalMarshalTest.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/UnmarshalMarshalTest.java index cda8efcdf8c..4ba4abd2176 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/UnmarshalMarshalTest.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/UnmarshalMarshalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1; import java.io.File; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyDroolsExt.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyDroolsExt.java index e322da2425e..3a64819ab40 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyDroolsExt.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyDroolsExt.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.extensions; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyKieExt.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyKieExt.java index 1a2af10b90c..412c3a484fa 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyKieExt.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyKieExt.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.extensions; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyTestRegister.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyTestRegister.java index 1cb08abe9b8..e8cd5c19489 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyTestRegister.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_1/extensions/MyTestRegister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_1.extensions; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/UnmarshalMarshalTest.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/UnmarshalMarshalTest.java index f0c615be21e..9d6979b25d8 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/UnmarshalMarshalTest.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/UnmarshalMarshalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2; import java.io.File; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyDroolsExt.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyDroolsExt.java index cda503ca7d5..212fa9c8a51 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyDroolsExt.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyDroolsExt.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.extensions; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyKieExt.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyKieExt.java index cba87eed7ce..46c535944f3 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyKieExt.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyKieExt.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.extensions; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyTestRegister.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyTestRegister.java index f127f9f6f1c..8706b7fafb5 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyTestRegister.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_2/extensions/MyTestRegister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_2.extensions; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/UnmarshalMarshalTest.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/UnmarshalMarshalTest.java index 66ea6ecf10a..ba2c5e37005 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/UnmarshalMarshalTest.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/UnmarshalMarshalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3; import java.io.File; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/extensions/ProjectCharter.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/extensions/ProjectCharter.java index 6e1a0d81a5b..df2cdac5abd 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/extensions/ProjectCharter.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/extensions/ProjectCharter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.extensions; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/extensions/TrisoExtensionRegister.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/extensions/TrisoExtensionRegister.java index d52841537c1..63a06cfa3f4 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/extensions/TrisoExtensionRegister.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_3/extensions/TrisoExtensionRegister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_3.extensions; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_4/UnmarshalMarshalTest.java b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_4/UnmarshalMarshalTest.java index e111bfb2e98..214c1f0d566 100644 --- a/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_4/UnmarshalMarshalTest.java +++ b/kie-dmn/kie-dmn-backend/src/test/java/org/kie/dmn/backend/marshalling/v1_4/UnmarshalMarshalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.backend.marshalling.v1_4; import java.io.File; diff --git a/kie-dmn/kie-dmn-backend/src/test/resources/logback.xml b/kie-dmn/kie-dmn-backend/src/test/resources/logback.xml index 46df82e1a2c..503ac6fcdd3 100644 --- a/kie-dmn/kie-dmn-backend/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-backend/src/test/resources/logback.xml @@ -1,20 +1,4 @@ - - diff --git a/kie-dmn/kie-dmn-backend/src/test/resources/org/kie/dmn/backend/marshalling/v1_1/semantic-namespace.xml b/kie-dmn/kie-dmn-backend/src/test/resources/org/kie/dmn/backend/marshalling/v1_1/semantic-namespace.xml index dc768bd67e7..65f4e7f49d4 100644 --- a/kie-dmn/kie-dmn-backend/src/test/resources/org/kie/dmn/backend/marshalling/v1_1/semantic-namespace.xml +++ b/kie-dmn/kie-dmn-backend/src/test/resources/org/kie/dmn/backend/marshalling/v1_1/semantic-namespace.xml @@ -1,5 +1,5 @@ - - 4.0.0 org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-core-jsr223-jq KIE :: Decision Model Notation :: JSR-223 JQ ScriptEngine diff --git a/kie-dmn/kie-dmn-core-jsr223-jq/src/main/java/org/kie/dmn/core/jsr223/jq/JQScriptEngine.java b/kie-dmn/kie-dmn-core-jsr223-jq/src/main/java/org/kie/dmn/core/jsr223/jq/JQScriptEngine.java index dd928bc193b..d53339335c8 100644 --- a/kie-dmn/kie-dmn-core-jsr223-jq/src/main/java/org/kie/dmn/core/jsr223/jq/JQScriptEngine.java +++ b/kie-dmn/kie-dmn-core-jsr223-jq/src/main/java/org/kie/dmn/core/jsr223/jq/JQScriptEngine.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223.jq; import java.io.Reader; diff --git a/kie-dmn/kie-dmn-core-jsr223-jq/src/main/java/org/kie/dmn/core/jsr223/jq/JQScriptEngineFactory.java b/kie-dmn/kie-dmn-core-jsr223-jq/src/main/java/org/kie/dmn/core/jsr223/jq/JQScriptEngineFactory.java index 716b81aaa7e..e143bafe89a 100644 --- a/kie-dmn/kie-dmn-core-jsr223-jq/src/main/java/org/kie/dmn/core/jsr223/jq/JQScriptEngineFactory.java +++ b/kie-dmn/kie-dmn-core-jsr223-jq/src/main/java/org/kie/dmn/core/jsr223/jq/JQScriptEngineFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223.jq; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-core-jsr223-jq/src/test/java/org/kie/dmn/core/jsr223/jq/BasicTest.java b/kie-dmn/kie-dmn-core-jsr223-jq/src/test/java/org/kie/dmn/core/jsr223/jq/BasicTest.java index abde9751b13..1748472b97e 100644 --- a/kie-dmn/kie-dmn-core-jsr223-jq/src/test/java/org/kie/dmn/core/jsr223/jq/BasicTest.java +++ b/kie-dmn/kie-dmn-core-jsr223-jq/src/test/java/org/kie/dmn/core/jsr223/jq/BasicTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223.jq; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core-jsr223-jq/src/test/resources/logback.xml b/kie-dmn/kie-dmn-core-jsr223-jq/src/test/resources/logback.xml index 0c0b3e37b47..9d4a1022220 100644 --- a/kie-dmn/kie-dmn-core-jsr223-jq/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-core-jsr223-jq/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-core-jsr223/pom.xml b/kie-dmn/kie-dmn-core-jsr223/pom.xml index 00bbd95ec00..a7dc14441f4 100644 --- a/kie-dmn/kie-dmn-core-jsr223/pom.xml +++ b/kie-dmn/kie-dmn-core-jsr223/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-core-jsr223 KIE :: Decision Model Notation :: Core JSR-223 diff --git a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223DTExpressionEvaluator.java b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223DTExpressionEvaluator.java index 5820ed2c722..59d9b38cbab 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223DTExpressionEvaluator.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223DTExpressionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223EvaluatorCompiler.java b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223EvaluatorCompiler.java index 25bce5e57f1..367fc7a58ce 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223EvaluatorCompiler.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223EvaluatorCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223EvaluatorCompilerFactory.java b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223EvaluatorCompilerFactory.java index 1eb24d1eea0..c4b35abb503 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223EvaluatorCompilerFactory.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223EvaluatorCompilerFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import org.kie.dmn.core.compiler.DMNCompilerConfigurationImpl; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223LiteralExpressionEvaluator.java b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223LiteralExpressionEvaluator.java index 91b9b10eda0..5b3a5302298 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223LiteralExpressionEvaluator.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223LiteralExpressionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223ScriptEngineEvaluator.java b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223ScriptEngineEvaluator.java index 131e049dbc4..950526a97bc 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223ScriptEngineEvaluator.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223ScriptEngineEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223Utils.java b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223Utils.java index d2dad8a0cac..328e66b76e3 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223Utils.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/main/java/org/kie/dmn/core/jsr223/JSR223Utils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/EscapeTest.java b/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/EscapeTest.java index d6893c07e3a..694522bcb11 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/EscapeTest.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/EscapeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import org.junit.jupiter.api.Test; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/GraalJSTest.java b/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/GraalJSTest.java index c52c5a7aa41..05be4d764d7 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/GraalJSTest.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/GraalJSTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import org.junit.jupiter.api.AfterEach; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/JQTest.java b/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/JQTest.java index 129212b1070..e7d9ad0622b 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/JQTest.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/JQTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import org.junit.jupiter.api.Test; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/NashornTest.java b/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/NashornTest.java index 6d29c1ee408..6c6a04ae731 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/NashornTest.java +++ b/kie-dmn/kie-dmn-core-jsr223/src/test/java/org/kie/dmn/core/jsr223/NashornTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jsr223; import org.junit.jupiter.api.AfterEach; diff --git a/kie-dmn/kie-dmn-core-jsr223/src/test/resources/logback.xml b/kie-dmn/kie-dmn-core-jsr223/src/test/resources/logback.xml index 0c0b3e37b47..9d4a1022220 100644 --- a/kie-dmn/kie-dmn-core-jsr223/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-core-jsr223/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-core/pom.xml b/kie-dmn/kie-dmn-core/pom.xml index 45e62588a7d..e55daeaceba 100644 --- a/kie-dmn/kie-dmn-core/pom.xml +++ b/kie-dmn/kie-dmn-core/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ kie-dmn org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-core diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNExpressionEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNExpressionEvaluator.java index 08c6758c6d5..c40ebcb323d 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNExpressionEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNExpressionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.api; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNFactory.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNFactory.java index 64b78d619d9..ef529c1e0e2 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNFactory.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.api; import org.kie.dmn.api.core.DMNCompiler; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNMessageManager.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNMessageManager.java index e26c644994b..e9cbaf7d5df 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNMessageManager.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/DMNMessageManager.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/EvaluatorResult.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/EvaluatorResult.java index fb454d3d93f..7ef00e8ac0b 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/EvaluatorResult.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/EvaluatorResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.api; public interface EvaluatorResult { diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/event/DefaultDMNRuntimeEventListener.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/event/DefaultDMNRuntimeEventListener.java index b75968cec3d..1e591a31c77 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/event/DefaultDMNRuntimeEventListener.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/api/event/DefaultDMNRuntimeEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.api.event; import org.kie.dmn.api.core.event.AfterEvaluateBKMEvent; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNAssemblerService.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNAssemblerService.java index d9d50cbfdb4..77e1421b4c1 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNAssemblerService.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNAssemblerService.java @@ -1,23 +1,24 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.assembler; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; @@ -29,8 +30,8 @@ import org.drools.compiler.builder.impl.KnowledgeBuilderImpl; import org.drools.compiler.compiler.PackageRegistry; import org.drools.drl.ast.descr.PackageDescr; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.ResourceTypePackageRegistry; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.ResourceTypePackageRegistry; import org.kie.api.internal.assembler.KieAssemblerService; import org.kie.api.internal.io.ResourceTypePackage; import org.kie.api.io.Resource; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNResource.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNResource.java index 02ed408ca01..d69ce0f96e0 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNResource.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNResource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.assembler; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNResourceDependenciesSorter.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNResourceDependenciesSorter.java index d6fc88b014e..b780a4d31b5 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNResourceDependenciesSorter.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/assembler/DMNResourceDependenciesSorter.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core.assembler; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/BusinessKnowledgeModelNodeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/BusinessKnowledgeModelNodeImpl.java index c9ecf761814..d81edea4fa0 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/BusinessKnowledgeModelNodeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/BusinessKnowledgeModelNodeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNBaseNode.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNBaseNode.java index b21daa4eee6..3ceb7742deb 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNBaseNode.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNBaseNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNConditionalEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNConditionalEvaluator.java index 865185e79a7..7da9445a81a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNConditionalEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNConditionalEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import org.kie.dmn.api.core.DMNMessage; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNContextEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNContextEvaluator.java index 5d293715888..9e710d761f6 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNContextEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNContextEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDTExpressionEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDTExpressionEvaluator.java index 531fb6482d7..7432b3114c6 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDTExpressionEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDTExpressionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDecisionServiceEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDecisionServiceEvaluator.java index 7aef5581d28..63a6faf1a74 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDecisionServiceEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDecisionServiceEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDecisionServiceFunctionDefinitionEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDecisionServiceFunctionDefinitionEvaluator.java index 136ab5f2867..21ee7e0af6a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDecisionServiceFunctionDefinitionEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNDecisionServiceFunctionDefinitionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFilterEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFilterEvaluator.java index 12ca15c7b1e..750c671e0c2 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFilterEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFilterEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFunctionDefinitionEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFunctionDefinitionEvaluator.java index 125420b457d..ebb45e7e288 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFunctionDefinitionEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFunctionDefinitionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFunctionWithReturnType.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFunctionWithReturnType.java index d8303e0138f..78e09d4b342 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFunctionWithReturnType.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNFunctionWithReturnType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.List; @@ -29,7 +31,6 @@ import org.kie.dmn.feel.lang.Symbol; import org.kie.dmn.feel.runtime.FEELFunction; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; -import org.kie.dmn.model.api.GwtIncompatible; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -56,7 +57,6 @@ public DMNFunctionWithReturnType(FEELFunction wrapped, DMNType returnType, DMNMe } @Override - @GwtIncompatible public Object invokeReflectively(EvaluationContext ctx, Object[] params) { Object result = wrapped.invokeReflectively(ctx, params); result = DMNRuntimeImpl.coerceUsingType(result, diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNInvocationEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNInvocationEvaluator.java index f086107fa39..fc57ee4468a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNInvocationEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNInvocationEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNIteratorEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNIteratorEvaluator.java index 052b88ab774..63a8f05b3f6 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNIteratorEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNIteratorEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNListEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNListEvaluator.java index 674d2cfc2e4..f0156ddfa9c 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNListEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNListEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNLiteralExpressionEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNLiteralExpressionEvaluator.java index afc27b59e44..5e42fbc420d 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNLiteralExpressionEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNLiteralExpressionEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNRelationEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNRelationEvaluator.java index 401c83c36ff..1bb21d824b7 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNRelationEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DMNRelationEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DecisionNodeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DecisionNodeImpl.java index 0293b3a2f15..793e0b99974 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DecisionNodeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DecisionNodeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.Objects; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DecisionServiceNodeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DecisionServiceNodeImpl.java index d2913960a46..7b553da835b 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DecisionServiceNodeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/DecisionServiceNodeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/EvaluatorResultImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/EvaluatorResultImpl.java index ed55b41fffa..73b25ca012b 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/EvaluatorResultImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/EvaluatorResultImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import org.kie.dmn.core.api.EvaluatorResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/InputDataNodeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/InputDataNodeImpl.java index 64bed510276..44707756ab1 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/InputDataNodeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/InputDataNodeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/ItemDefNodeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/ItemDefNodeImpl.java index 7e182f4f637..05fcddb2d16 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/ItemDefNodeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/ast/ItemDefNodeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.ast; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/AlphaNetworkOption.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/AlphaNetworkOption.java index 2b6f851ecc5..9e08a6cff67 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/AlphaNetworkOption.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/AlphaNetworkOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.dmn.core.assembler.DMNAssemblerService; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/BusinessKnowledgeModelCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/BusinessKnowledgeModelCompiler.java index 2c8f198dc5c..cb7c97dde13 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/BusinessKnowledgeModelCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/BusinessKnowledgeModelCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/CoerceDecisionServiceSingletonOutputOption.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/CoerceDecisionServiceSingletonOutputOption.java index 7984e5957bc..03e0ca5fb3a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/CoerceDecisionServiceSingletonOutputOption.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/CoerceDecisionServiceSingletonOutputOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.dmn.core.assembler.DMNAssemblerService; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerConfigurationImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerConfigurationImpl.java index a06b813f7bb..d3ad9217f02 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerConfigurationImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerConfigurationImpl.java @@ -1,20 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - - package org.kie.dmn.core.compiler; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerContext.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerContext.java index d25fcd63a83..a608ccd683f 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerContext.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.io.Reader; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerHelper.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerHelper.java index bb45cc123ee..a885c315144 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerHelper.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerHelper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.core.compiler; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerImpl.java index dbd0b3212af..364b5933f85 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNCompilerImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNDecisionLogicCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNDecisionLogicCompiler.java index 82de7ffd715..3dc937c7829 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNDecisionLogicCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNDecisionLogicCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.dmn.core.api.DMNExpressionEvaluator; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNDecisionLogicCompilerFactory.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNDecisionLogicCompilerFactory.java index 079285687a9..306e83b56df 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNDecisionLogicCompilerFactory.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNDecisionLogicCompilerFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.compiler; /** diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNEvaluatorCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNEvaluatorCompiler.java index 1c3b0c1628f..ef0940f036d 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNEvaluatorCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNEvaluatorCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import static java.util.stream.Collectors.toList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNFEELHelper.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNFEELHelper.java index 7199ec6eb7a..c66a673a779 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNFEELHelper.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNFEELHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNOption.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNOption.java index 9477a90c084..a64219ef8e6 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNOption.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.api.conf.Option; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNProfile.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNProfile.java index e9756d01f47..5971be75fe6 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNProfile.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNProfile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNScope.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNScope.java index a63a36b462d..f7a966348d3 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNScope.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNScope.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistry.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistry.java index 55f9d4ee911..b422f984897 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistry.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryAbstract.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryAbstract.java index 163a578efee..18eeda7118b 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryAbstract.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryAbstract.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV11.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV11.java index 6fc3a48ef9c..c70b10c67e5 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV11.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV11.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.Map; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV12.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV12.java index 2f0d0ce7930..e3c8dbdc62d 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV12.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV12.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV13.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV13.java index 7cf135739fd..efc927bd0dd 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV13.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV13.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.Map; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV14.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV14.java index adbfe96ac28..ba7d655b222 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV14.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNTypeRegistryV14.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.Map; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DRGElementCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DRGElementCompiler.java index 4ecbfcd9014..31b6086c459 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DRGElementCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DRGElementCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.dmn.api.core.ast.DMNNode; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DecisionCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DecisionCompiler.java index f058850c1f5..26bfc58b0bd 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DecisionCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DecisionCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DecisionServiceCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DecisionServiceCompiler.java index 013574c4e11..be0e2d9fec1 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DecisionServiceCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DecisionServiceCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ExecModelCompilerOption.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ExecModelCompilerOption.java index 19a0dd2141a..76f83c0c60f 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ExecModelCompilerOption.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ExecModelCompilerOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.dmn.core.assembler.DMNAssemblerService; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ImportDMNResolverUtil.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ImportDMNResolverUtil.java index e9eafed7fea..4a30c066419 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ImportDMNResolverUtil.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ImportDMNResolverUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/InputDataCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/InputDataCompiler.java index 9e9cfe5371c..a6af29cca0b 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/InputDataCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/InputDataCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesSorter.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesSorter.java index 6a6a4930fa2..3d13c5777fb 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesSorter.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesSorter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/KnowledgeSourceCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/KnowledgeSourceCompiler.java index 9f690a15dc1..3333a8d057f 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/KnowledgeSourceCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/KnowledgeSourceCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.dmn.core.impl.DMNModelImpl; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/RuntimeTypeCheckOption.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/RuntimeTypeCheckOption.java index 7285835b6e4..88bb41144dc 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/RuntimeTypeCheckOption.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/RuntimeTypeCheckOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import org.kie.dmn.core.assembler.DMNAssemblerService; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/AlphaNetworkCreation.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/AlphaNetworkCreation.java index 2d0d9dd7410..5af512c404d 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/AlphaNetworkCreation.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/AlphaNetworkCreation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import org.drools.core.reteoo.ObjectSource; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/AlphaNetworkEvaluationContext.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/AlphaNetworkEvaluationContext.java index a74126be59f..fac4442dcec 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/AlphaNetworkEvaluationContext.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/AlphaNetworkEvaluationContext.java @@ -1,24 +1,26 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; -import org.drools.core.base.ClassObjectType; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; +import org.drools.base.base.ClassObjectType; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; import org.drools.model.Variable; import static org.drools.model.DSL.declarationOf; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/CanBeInlinedAlphaNode.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/CanBeInlinedAlphaNode.java index ce2e6fd2dcd..a56529f9276 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/CanBeInlinedAlphaNode.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/CanBeInlinedAlphaNode.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.core.compiler.alphanetbased; @@ -28,9 +31,9 @@ import org.drools.core.reteoo.AlphaNode; import org.drools.core.reteoo.ObjectSource; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.constraint.AlphaNodeFieldConstraint; -import org.drools.core.rule.constraint.Constraint; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.constraint.AlphaNodeFieldConstraint; +import org.drools.base.rule.constraint.Constraint; import org.drools.model.Index; import org.drools.model.Variable; import org.drools.model.constraints.SingleConstraint1; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/ColumnDefinition.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/ColumnDefinition.java index d8cd1e8d65c..f7aa4ea5bb0 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/ColumnDefinition.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/ColumnDefinition.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.dmn.core.compiler.alphanetbased; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkCompiler.java index 2cc1e1ce073..888d1a5ab05 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluator.java index 5fa1d31b086..773234ee25e 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.Optional; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluatorCompiler.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluatorCompiler.java index 6a7e8c51369..8c0eb9a96fb 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluatorCompiler.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluatorCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluatorImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluatorImpl.java index 935542aef48..522eb377438 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluatorImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNAlphaNetworkEvaluatorImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNResultCollector.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNResultCollector.java index 80d64a9643d..ae715343d3a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNResultCollector.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNResultCollector.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import org.drools.ancompiler.ResultCollectorSink; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNResultCollectorAlphaSink.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNResultCollectorAlphaSink.java index fee074d4b83..503ceaf1b63 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNResultCollectorAlphaSink.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DMNResultCollectorAlphaSink.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import com.github.javaparser.StaticJavaParser; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DTQNameToTypeResolver.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DTQNameToTypeResolver.java index fa3d8878a06..224aa03d444 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DTQNameToTypeResolver.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/DTQNameToTypeResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/FeelDecisionTable.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/FeelDecisionTable.java index a6e7d6709ad..53235c8c222 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/FeelDecisionTable.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/FeelDecisionTable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/GeneratedSources.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/GeneratedSources.java index c10c274ce9c..efd4700c2d4 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/GeneratedSources.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/GeneratedSources.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/PropertyEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/PropertyEvaluator.java index 7568dd84626..cce17933874 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/PropertyEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/PropertyEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/Results.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/Results.java index f3f0748b424..ec7de3836cc 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/Results.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/Results.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/ReteBuilderContext.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/ReteBuilderContext.java index 1242142c5e9..bcf9a4f11f8 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/ReteBuilderContext.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/ReteBuilderContext.java @@ -1,30 +1,32 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.Collections; -import org.drools.core.base.ClassObjectType; +import org.drools.base.base.ClassObjectType; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.drools.core.reteoo.EntryPointNode; import org.drools.core.reteoo.ObjectTypeNode; import org.drools.core.reteoo.builder.BuildContext; -import org.drools.core.rule.Declaration; -import org.drools.core.rule.Pattern; +import org.drools.base.rule.Declaration; +import org.drools.base.rule.Pattern; import org.drools.kiesession.rulebase.KnowledgeBaseFactory; import org.drools.model.Variable; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCell.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCell.java index 3d9e3b755e1..c7bc37386dc 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCell.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCell.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCellParser.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCellParser.java index 90f41bf3b37..c63100a6956 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCellParser.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCellParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCells.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCells.java index b032359ffe7..565207b1003 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCells.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableCells.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableIndex.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableIndex.java index 06bd15c0dfe..1a0ae91929e 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableIndex.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/TableIndex.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.alphanetbased; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/UnaryTestClass.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/UnaryTestClass.java index 24678c6636d..0e7572c0489 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/UnaryTestClass.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/UnaryTestClass.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.core.compiler.alphanetbased; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/ColumnValidator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/ColumnValidator.java index f29c42ada78..b1be36de9b3 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/ColumnValidator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/ColumnValidator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.core.compiler.alphanetbased.evaluator; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/OutputClausesWithType.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/OutputClausesWithType.java index 5b215ccdbc3..ad7a1b05069 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/OutputClausesWithType.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/OutputClausesWithType.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core.compiler.alphanetbased.evaluator; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/TestEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/TestEvaluator.java index eb817e716c4..797390ae361 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/TestEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/alphanetbased/evaluator/TestEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.core.compiler.alphanetbased.evaluator; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/profiles/ExtendedDMNProfile.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/profiles/ExtendedDMNProfile.java index eb14e8b4bf6..09a21a28c77 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/profiles/ExtendedDMNProfile.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/profiles/ExtendedDMNProfile.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core.compiler.profiles; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateAllEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateAllEventImpl.java index 4539b6b8832..ca07a860c10 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateAllEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateAllEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateBKMEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateBKMEventImpl.java index 1c92c980f56..98896a45edf 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateBKMEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateBKMEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateContextEntryEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateContextEntryEventImpl.java index c1da0da1cc2..2c536261c7f 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateContextEntryEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateContextEntryEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionEventImpl.java index 8c1fb9fda76..7f905555811 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionServiceEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionServiceEventImpl.java index 63f42fe0146..17fbd6b7064 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionServiceEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionServiceEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionTableEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionTableEventImpl.java index 159562d8b07..edfb392bc06 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionTableEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterEvaluateDecisionTableEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterInvokeBKMEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterInvokeBKMEventImpl.java index 92e2dfb79ae..d99abf73e79 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterInvokeBKMEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/AfterInvokeBKMEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BaseDMNTypeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BaseDMNTypeImpl.java index be6b887639f..2484eaef81a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BaseDMNTypeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BaseDMNTypeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateAllEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateAllEventImpl.java index 3da0859c6c5..4ec45dcd389 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateAllEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateAllEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateBKMEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateBKMEventImpl.java index 2e2f81dbcda..4002f27583e 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateBKMEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateBKMEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateContextEntryEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateContextEntryEventImpl.java index 42a2930d42a..6945831698e 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateContextEntryEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateContextEntryEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionEventImpl.java index f53561e4e22..d5c3cca07c9 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionServiceEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionServiceEventImpl.java index b1926d92788..b64fdacd4c5 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionServiceEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionServiceEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionTableEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionTableEventImpl.java index 79f74603cbb..c08b6f471c5 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionTableEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeEvaluateDecisionTableEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNResult; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeInvokeBKMEventImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeInvokeBKMEventImpl.java index 3ead816217b..470f68c28c7 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeInvokeBKMEventImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/BeforeInvokeBKMEventImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/CompositeTypeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/CompositeTypeImpl.java index 447d8ea365b..491e7676dc3 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/CompositeTypeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/CompositeTypeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.lang.reflect.InvocationTargetException; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextFEELCtxWrapper.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextFEELCtxWrapper.java index c91c0810771..0e9e3ed0b54 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextFEELCtxWrapper.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextFEELCtxWrapper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.Map; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextFPAImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextFPAImpl.java index 761427807a0..838e6e8c7c2 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextFPAImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextFPAImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.Deque; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextImpl.java index 9281e42adf1..94f1fb6b731 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.Deque; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNDecisionResultImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNDecisionResultImpl.java index c994f869420..434089816ad 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNDecisionResultImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNDecisionResultImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNEventUtils.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNEventUtils.java index c0f41af3150..ec52a6fb829 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNEventUtils.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNEventUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.LinkedHashMap; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNKnowledgeBuilderError.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNKnowledgeBuilderError.java index 2da176250b1..2ea40e55cfe 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNKnowledgeBuilderError.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNKnowledgeBuilderError.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core.impl; import org.drools.drl.parser.DroolsError; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNMessageImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNMessageImpl.java index ba28664db41..71dbc146f51 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNMessageImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNMessageImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import javax.xml.stream.Location; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNMetadataImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNMetadataImpl.java index 4c188218183..325e329e57b 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNMetadataImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNMetadataImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNModelImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNModelImpl.java index d97f96b218b..d16dc55d9f4 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNModelImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNModelImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.io.Externalizable; @@ -21,7 +23,6 @@ import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; @@ -38,8 +39,8 @@ import javax.xml.namespace.QName; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.kie.api.io.Resource; import org.kie.dmn.api.core.DMNMessage; import org.kie.dmn.api.core.DMNMessageType; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNPackageImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNPackageImpl.java index 9efc8818eb1..4e1ad3d62b7 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNPackageImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNPackageImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.io.Externalizable; @@ -27,8 +29,8 @@ import java.util.List; import java.util.Map; -import org.drools.core.common.DroolsObjectInputStream; -import org.drools.core.common.DroolsObjectOutputStream; +import org.drools.base.common.DroolsObjectInputStream; +import org.drools.base.common.DroolsObjectOutputStream; import org.kie.api.io.Resource; import org.kie.api.io.ResourceType; import org.kie.dmn.api.core.DMNModel; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNResultImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNResultImpl.java index 25ae5c26442..fd979bedab6 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNResultImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNResultImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNResultImplFactory.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNResultImplFactory.java index 9a013cc8013..8c12243e7ad 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNResultImplFactory.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNResultImplFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.impl; import org.kie.dmn.api.core.DMNModel; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeEventManagerImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeEventManagerImpl.java index 115ef29e4a2..6a8b5731e3b 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeEventManagerImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeEventManagerImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.HashSet; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeEventManagerUtils.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeEventManagerUtils.java index 631b4a4b5f1..23879b1c7af 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeEventManagerUtils.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeEventManagerUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeImpl.java index 332393134d2..a0dc822fc77 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeKB.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeKB.java index 74116e6e97a..d804329b0e2 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeKB.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeKB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeKBWrappingIKB.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeKBWrappingIKB.java index 2d89fb83c97..82e156b95df 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeKBWrappingIKB.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeKBWrappingIKB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.ArrayList; @@ -25,12 +27,11 @@ import java.util.Optional; import java.util.Properties; import java.util.stream.Collectors; -import java.util.stream.Stream; import org.drools.compiler.kie.builder.impl.KieContainerImpl; import org.drools.compiler.kproject.models.KieBaseModelImpl; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.ResourceTypePackageRegistry; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.ResourceTypePackageRegistry; import org.drools.kiesession.rulebase.InternalKnowledgeBase; import org.kie.api.io.ResourceType; import org.kie.dmn.api.core.DMNModel; @@ -48,7 +49,7 @@ public class DMNRuntimeKBWrappingIKB implements DMNRuntimeKB { private static final Logger logger = LoggerFactory.getLogger( DMNRuntimeKBWrappingIKB.class ); - private final InternalKnowledgeBase knowledgeBase; + private final InternalKnowledgeBase knowledgeBase; public DMNRuntimeKBWrappingIKB(InternalKnowledgeBase knowledgeBase) { this.knowledgeBase = knowledgeBase; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/SimpleFnTypeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/SimpleFnTypeImpl.java index f9f9fbe5699..203210547c8 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/SimpleFnTypeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/SimpleFnTypeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/SimpleTypeImpl.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/SimpleTypeImpl.java index da7c6d5af51..42a2473550a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/SimpleTypeImpl.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/SimpleTypeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/VoidDMNRuntimeKB.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/VoidDMNRuntimeKB.java index 6bb2fcce530..125b47bc77b 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/VoidDMNRuntimeKB.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/VoidDMNRuntimeKB.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DMNEvaluationUtils.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DMNEvaluationUtils.java index d1bf2d9bf04..cca6880dfa4 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DMNEvaluationUtils.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DMNEvaluationUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DMNRuntimeBuilder.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DMNRuntimeBuilder.java index b90aefd7c21..8a0d3850272 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DMNRuntimeBuilder.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DMNRuntimeBuilder.java @@ -1,25 +1,26 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.io.IOException; import java.io.Reader; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DRGAnalysisUtils.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DRGAnalysisUtils.java index 9a6b08d9487..72bf22951ef 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DRGAnalysisUtils.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DRGAnalysisUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DynamicDMNContextBuilder.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DynamicDMNContextBuilder.java index c046a9771c0..de44fc053bd 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DynamicDMNContextBuilder.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DynamicDMNContextBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.util.ArrayDeque; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/FailedConversionException.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/FailedConversionException.java index 903dde3e3c4..f5eb9e6a6cc 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/FailedConversionException.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/FailedConversionException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import org.kie.dmn.api.feel.runtime.events.FEELEvent; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/MapBackedDMNContext.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/MapBackedDMNContext.java index 0efec83faa6..4ef29d2729c 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/MapBackedDMNContext.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/MapBackedDMNContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.util.Deque; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/MarshallingStubUtils.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/MarshallingStubUtils.java index 4e6ddfe9cc3..ad84b2108f7 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/MarshallingStubUtils.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/MarshallingStubUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/AbstractDMNKiePMMLInvocationEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/AbstractDMNKiePMMLInvocationEvaluator.java index 5cc5d418913..584005239ce 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/AbstractDMNKiePMMLInvocationEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/AbstractDMNKiePMMLInvocationEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.pmml; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/AbstractPMMLInvocationEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/AbstractPMMLInvocationEvaluator.java index a9c4344cb85..25f6b18a963 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/AbstractPMMLInvocationEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/AbstractPMMLInvocationEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.pmml; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java index 7c3bb1c1979..cf32659cdcc 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNImportPMMLInfo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.pmml; import java.io.InputStream; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNKiePMMLTrustyInvocationEvaluator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNKiePMMLTrustyInvocationEvaluator.java index 1795dc87286..b7b15c9a130 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNKiePMMLTrustyInvocationEvaluator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNKiePMMLTrustyInvocationEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.pmml; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNPMMLModelInfo.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNPMMLModelInfo.java index a050db742e2..1b2fbfb352a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNPMMLModelInfo.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/DMNPMMLModelInfo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.pmml; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java index e272189c007..e51f9a16ce8 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLInfo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.pmml; import java.io.InputStream; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLModelInfo.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLModelInfo.java index edb99abbe79..fcbd522ac1e 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLModelInfo.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/pmml/PMMLModelInfo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.pmml; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/runtime/DMNRuntimeService.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/runtime/DMNRuntimeService.java index 15326f728e3..7ce509d852e 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/runtime/DMNRuntimeService.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/runtime/DMNRuntimeService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.runtime; import org.drools.kiesession.rulebase.InternalKnowledgeBase; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/DefaultDMNMessagesManager.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/DefaultDMNMessagesManager.java index 0c30dfaed30..8420b2bf89c 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/DefaultDMNMessagesManager.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/DefaultDMNMessagesManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.util; import java.util.ArrayList; @@ -71,11 +73,6 @@ public void addAllUnfiltered(List messages) { @Override public DMNMessage addMessage(DMNMessage newMessage) { - for( DMNMessage existingMessage : messages ) { - if( isDuplicate( existingMessage, newMessage ) ) { - return existingMessage; - } - } this.messages.add( newMessage ); return newMessage; } @@ -98,9 +95,4 @@ public DMNMessage addMessage(DMNMessage.Severity severity, String message, DMNMe return addMessage( msg ); } - private boolean isDuplicate(DMNMessage existingMsg, DMNMessage newMessage) { - return existingMsg.getMessageType().equals( newMessage.getMessageType() ) && - existingMsg.getSourceReference() == newMessage.getSourceReference(); - } - } diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/IterableRange.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/IterableRange.java index 1912575be76..c712be5a601 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/IterableRange.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/IterableRange.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.util; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/KieHelper.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/KieHelper.java index 45a65dca06c..0994a94aeb3 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/KieHelper.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/KieHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.util; import org.drools.compiler.kie.builder.impl.InternalKieModule; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/Msg.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/Msg.java index 80ba0d15f84..0ef042ee872 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/Msg.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/Msg.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.util; import org.kie.dmn.api.core.DMNMessageType; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/MsgUtil.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/MsgUtil.java index 13538827643..fc4bb6f2565 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/MsgUtil.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/util/MsgUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.util; import org.kie.dmn.api.core.DMNMessage; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/weaver/DMNWeaverService.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/weaver/DMNWeaverService.java index 85a10f09282..32772966781 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/weaver/DMNWeaverService.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/weaver/DMNWeaverService.java @@ -1,25 +1,27 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.weaver; import java.util.Map; -import org.drools.core.definitions.InternalKnowledgePackage; -import org.drools.core.definitions.ResourceTypePackageRegistry; +import org.drools.base.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.ResourceTypePackageRegistry; import org.kie.api.definition.KiePackage; import org.kie.api.internal.weaver.KieWeaverService; import org.kie.api.io.ResourceType; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/AbstractDMNSetType.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/AbstractDMNSetType.java index b68b268b996..1fc33fbd7cf 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/AbstractDMNSetType.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/AbstractDMNSetType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNAllTypesIndex.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNAllTypesIndex.java index c38a37501ef..a5023944ad4 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNAllTypesIndex.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNAllTypesIndex.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import java.time.Duration; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNDeclaredField.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNDeclaredField.java index 0fa95a291c7..928dc217ca6 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNDeclaredField.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNDeclaredField.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNDeclaredType.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNDeclaredType.java index 2d875b80979..328bc02546e 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNDeclaredType.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNDeclaredType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNInputSetType.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNInputSetType.java index baaa443ff68..cd35e4fcc03 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNInputSetType.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNInputSetType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; class DMNInputSetType extends AbstractDMNSetType { diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNModelTypesIndex.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNModelTypesIndex.java index 9a2150ab11d..e064925036a 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNModelTypesIndex.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNModelTypesIndex.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNOutputSetType.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNOutputSetType.java index 20d32c6002e..81296fefa21 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNOutputSetType.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNOutputSetType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; class DMNOutputSetType extends AbstractDMNSetType { diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNStronglyCodeGenConfig.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNStronglyCodeGenConfig.java index afd5cfb40db..366bcd22a82 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNStronglyCodeGenConfig.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNStronglyCodeGenConfig.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafeException.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafeException.java index 5df20b9222b..6f090b8cfed 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafeException.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafeException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; public class DMNTypeSafeException extends RuntimeException { diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafePackageName.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafePackageName.java index fa5d7c25503..bb48935f90d 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafePackageName.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafePackageName.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import org.kie.dmn.api.core.DMNModel; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafeTypeGenerator.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafeTypeGenerator.java index afc2c7fdc8d..ed71f0dec54 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafeTypeGenerator.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafeTypeGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import java.time.ZonedDateTime; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeUtils.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeUtils.java index 11bffe566a5..e04f2a4dd34 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeUtils.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.typesafe; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/FEELPropertyAccessibleImplementation.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/FEELPropertyAccessibleImplementation.java index 0aefa8f2e1e..7c502210691 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/FEELPropertyAccessibleImplementation.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/FEELPropertyAccessibleImplementation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import java.io.InputStream; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/FieldGenStrategy.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/FieldGenStrategy.java index 742137324d2..2cd98f2896c 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/FieldGenStrategy.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/FieldGenStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import java.util.HashSet; diff --git a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/IndexKey.java b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/IndexKey.java index 304e7bc0382..a06398cbea6 100644 --- a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/IndexKey.java +++ b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/IndexKey.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.typesafe; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/alphasupport/ColumnValidatorTemplate.java b/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/alphasupport/ColumnValidatorTemplate.java index c49d9f56cd0..96f31a580dd 100644 --- a/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/alphasupport/ColumnValidatorTemplate.java +++ b/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/alphasupport/ColumnValidatorTemplate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.core.alphasupport; diff --git a/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/alphasupport/DMNAlphaNetworkTemplate.java b/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/alphasupport/DMNAlphaNetworkTemplate.java index 66ad8b2a297..4ed533461f0 100644 --- a/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/alphasupport/DMNAlphaNetworkTemplate.java +++ b/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/alphasupport/DMNAlphaNetworkTemplate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.core.alphasupport; diff --git a/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/impl/DMNTypeSafeTypeTemplate.java b/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/impl/DMNTypeSafeTypeTemplate.java index 8173da0f831..ce46a08fcbf 100644 --- a/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/impl/DMNTypeSafeTypeTemplate.java +++ b/kie-dmn/kie-dmn-core/src/main/resources/org/kie/dmn/core/impl/DMNTypeSafeTypeTemplate.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core.impl; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseDMNContextTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseDMNContextTest.java index c0baf2b5c80..5d35c46194a 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseDMNContextTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseDMNContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsAlphaNetworkTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsAlphaNetworkTest.java index 6f30ad7bee6..2bf656bc0e2 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsAlphaNetworkTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsAlphaNetworkTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import org.junit.After; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsCompiledTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsCompiledTest.java index 32ec8581a46..345ab0f38a8 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsCompiledTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsCompiledTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import org.junit.After; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsCompiledTestCanonicalKieModule.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsCompiledTestCanonicalKieModule.java index 32e72d8ba1f..c35fb4e07d6 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsCompiledTestCanonicalKieModule.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseInterpretedVsCompiledTestCanonicalKieModule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantNonTypeSafeTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantNonTypeSafeTest.java index 6017e3d7ea4..3e69ddaffbb 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantNonTypeSafeTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantNonTypeSafeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import org.junit.runners.Parameterized; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantTest.java index bdd69773db8..227a8cd6135 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNAndCanonicalModelTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNAndCanonicalModelTest.java index 6995931087b..e23afdf1066 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNAndCanonicalModelTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNAndCanonicalModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNAssemblerTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNAssemblerTest.java index 99e766916b3..55b1f59f245 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNAssemblerTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNAssemblerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core; import java.time.OffsetTime; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNBuildFromReaderTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNBuildFromReaderTest.java index fdb93c22527..42e3631090c 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNBuildFromReaderTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNBuildFromReaderTest.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core; import java.io.StringReader; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNCompilerTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNCompilerTest.java index 95140bda8c7..71e63c9d837 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNCompilerTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableHitPolicyTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableHitPolicyTest.java index 51636cd0881..2972ec3b46e 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableHitPolicyTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableHitPolicyTest.java @@ -1,19 +1,21 @@ -/* -* Copyright 2017 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ - +/** + * 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. + */ package org.kie.dmn.core; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableRuntimeTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableRuntimeTest.java index c4bb632a806..e5960b6fda2 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableRuntimeTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableRuntimeTest.java @@ -1,19 +1,21 @@ -/* -* Copyright 2016 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ - +/** + * 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. + */ package org.kie.dmn.core; import java.io.InputStreamReader; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableWithSymbolsTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableWithSymbolsTest.java index 9b5a1724631..faac733058e 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableWithSymbolsTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNDecisionTableWithSymbolsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNInputRuntimeTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNInputRuntimeTest.java index ca0c411ebfe..fc4344da9f3 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNInputRuntimeTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNInputRuntimeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNMessagesAPITest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNMessagesAPITest.java index d1c46a804d0..7900c830c0b 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNMessagesAPITest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNMessagesAPITest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTest.java index fe302231d7f..d8ea2622212 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.math.BigDecimal; @@ -3172,4 +3174,19 @@ public void testSoundLevelAllowNullItemDef() { assertThat(dmnResult.hasErrors()).as(DMNRuntimeUtil.formatMessages(dmnResult.getMessages())).isFalse(); assertThat(dmnResult.getDecisionResultByName("Evaluation").getResult()).isEqualTo("Unknown"); } + + @Test + public void testKieIssue270() { + final DMNRuntime runtime = DMNRuntimeUtil.createRuntime("habitability.dmn", this.getClass() ); + final DMNModel dmnModel = runtime.getModel("https://kiegroup.org/dmn/_93836704-04E9-45B6-8D10-51409FEBDF25", "habitability" ); + assertThat(dmnModel).isNotNull(); + assertThat(dmnModel.hasErrors()).as(DMNRuntimeUtil.formatMessages(dmnModel.getMessages())).isFalse(); + + final DMNContext context = DMNFactory.newContext(); + + final DMNResult dmnResult = runtime.evaluateAll(dmnModel, context); + assertThat(dmnResult.hasErrors()).as(DMNRuntimeUtil.formatMessages(dmnResult.getMessages())).isTrue(); + assertThat(dmnResult.getMessages()).hasSize(2); + assertThat(dmnResult.getMessages()).extracting(DMNMessage::getText).contains("DMN: Required dependency 'temperature' not found on node 'habitability' (DMN id: _0699341C-A1BE-4B6D-B8D5-3972D67FCA45, The referenced node was not found) ", "DMN: Required dependency 'oxygene' not found on node 'habitability' (DMN id: _0699341C-A1BE-4B6D-B8D5-3972D67FCA45, The referenced node was not found) "); + } } diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTypeCheckTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTypeCheckTest.java index 5a6eeb10635..27b622d47a9 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTypeCheckTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNRuntimeTypeCheckTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNStronglyTypedSupportTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNStronglyTypedSupportTest.java index 95bad3fc018..61df43f1f47 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNStronglyTypedSupportTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNStronglyTypedSupportTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNTwoValueLogicTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNTwoValueLogicTest.java index 913902805c0..6069727f5f4 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNTwoValueLogicTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNTwoValueLogicTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core; import org.junit.BeforeClass; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNTypeTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNTypeTest.java index 68a40feac4d..c14427732cd 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNTypeTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNTypeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNUpdateTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNUpdateTest.java index 783484a4f8c..78bc32e7143 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNUpdateTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/DMNUpdateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.io.ByteArrayInputStream; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/FlightRebookingTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/FlightRebookingTest.java index c59b242ab16..2b3d8ac51b1 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/FlightRebookingTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/FlightRebookingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/OnlineDatingTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/OnlineDatingTest.java index 165b9124811..476ef924eed 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/OnlineDatingTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/OnlineDatingTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/VacationDaysTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/VacationDaysTest.java index e77247debc5..a00637c17ef 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/VacationDaysTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/VacationDaysTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/WBCommonServicesBackendTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/WBCommonServicesBackendTest.java index 8b1cfa956c5..5f04bca3e72 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/WBCommonServicesBackendTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/WBCommonServicesBackendTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/alphanetwork/AlphaNetworkSupportInLargeDecisionTableTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/alphanetwork/AlphaNetworkSupportInLargeDecisionTableTest.java index ab9d12fb06d..258c7b04e52 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/alphanetwork/AlphaNetworkSupportInLargeDecisionTableTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/alphanetwork/AlphaNetworkSupportInLargeDecisionTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.alphanetwork; import java.io.StringReader; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/alphanetwork/DMNDecisionTableAlphaSupportingTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/alphanetwork/DMNDecisionTableAlphaSupportingTest.java index 31d18351df8..9e26402a705 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/alphanetwork/DMNDecisionTableAlphaSupportingTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/alphanetwork/DMNDecisionTableAlphaSupportingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.alphanetwork; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNClassloaderTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNClassloaderTest.java index 677320350bd..f9a88dc7884 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNClassloaderTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNClassloaderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.classloader; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNEvalHelperAccessorCacheTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNEvalHelperAccessorCacheTest.java index 08b5a006109..b9211467954 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNEvalHelperAccessorCacheTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNEvalHelperAccessorCacheTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.classloader; import java.util.UUID; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerBKMTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerBKMTest.java index 88cf5e187a9..80d113bd80b 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerBKMTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerBKMTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.classloader; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerDSTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerDSTest.java index 6b809955edc..f150112e903 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerDSTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerDSTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.classloader; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerPropertyTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerPropertyTest.java index efc619e2461..a11d494c8fe 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerPropertyTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerPropertyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.classloader; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerTest.java index 48a593c9cca..9e607d75b5f 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DMNRuntimeListenerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.classloader; import java.util.ArrayList; @@ -22,7 +24,7 @@ import java.util.Map; import java.util.UUID; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import org.junit.Test; import org.kie.api.KieServices; import org.kie.api.builder.KieBuilder; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DTAnnotationListenerTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DTAnnotationListenerTest.java index f6e649ab6f4..fb465a1a98a 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DTAnnotationListenerTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/classloader/DTAnnotationListenerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.classloader; import static org.assertj.core.api.Assertions.assertThat; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ImportDMNResolverUtilTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ImportDMNResolverUtilTest.java index 3b4757369e4..dbaec33b325 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ImportDMNResolverUtilTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ImportDMNResolverUtilTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core.compiler; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesGeneratedTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesGeneratedTest.java index c09088b0167..ebc8f93cc55 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesGeneratedTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesGeneratedTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesTest.java index 8c2321ece2f..4123beab6c0 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/ItemDefinitionDependenciesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/DMNExtensionRegisterTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/DMNExtensionRegisterTest.java index 1d927208320..c25ab09234b 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/DMNExtensionRegisterTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/DMNExtensionRegisterTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.extensions; import java.util.List; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameDescription.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameDescription.java index 40389c6392c..79bbd11606b 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameDescription.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameDescription.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.extensions; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameDescriptionRegister.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameDescriptionRegister.java index 12e73f07a71..63d3c75feab 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameDescriptionRegister.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameDescriptionRegister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.extensions; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameLastNameProfile.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameLastNameProfile.java index 5e9c8f824fa..8283d3f57cc 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameLastNameProfile.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/FirstNameLastNameProfile.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core.compiler.extensions; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/LastNameDescription.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/LastNameDescription.java index 9d2a5f9e461..9a8a3d07e36 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/LastNameDescription.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/LastNameDescription.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.extensions; import com.thoughtworks.xstream.annotations.XStreamAlias; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/LastNameDescriptionRegister.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/LastNameDescriptionRegister.java index 56df16f2667..de6bdbc2553 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/LastNameDescriptionRegister.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/extensions/LastNameDescriptionRegister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.extensions; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/CustomModelCountDMNProfile.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/CustomModelCountDMNProfile.java index 883e4e5df88..c8b50b5e245 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/CustomModelCountDMNProfile.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/CustomModelCountDMNProfile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.profiles; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/CustomModelCountFunction.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/CustomModelCountFunction.java index 84b0b213841..5e916aa65a2 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/CustomModelCountFunction.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/CustomModelCountFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.profiles; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/DMNProfilesTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/DMNProfilesTest.java index 207b1524bff..63717eb85e4 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/DMNProfilesTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/DMNProfilesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.profiles; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/ExtendedDMNProfileTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/ExtendedDMNProfileTest.java index ec862b83cb7..1002cf1bdd8 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/ExtendedDMNProfileTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/ExtendedDMNProfileTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.profiles; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/Just47DMNProfile.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/Just47DMNProfile.java index 17e8138a3e4..482ad90a052 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/Just47DMNProfile.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/Just47DMNProfile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.profiles; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/Just47Function.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/Just47Function.java index f5dd0dca369..2ab2e453717 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/Just47Function.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/compiler/profiles/Just47Function.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.compiler.profiles; import org.kie.dmn.feel.lang.EvaluationContext; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisionservices/DMNDecisionServicesTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisionservices/DMNDecisionServicesTest.java index 9c9edc43a93..e4706403be4 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisionservices/DMNDecisionServicesTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisionservices/DMNDecisionServicesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.decisionservices; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisionservices/DMNDecisionServicesTypecheckDSxyTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisionservices/DMNDecisionServicesTypecheckDSxyTest.java index f96a92f54f5..75359cea754 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisionservices/DMNDecisionServicesTypecheckDSxyTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisionservices/DMNDecisionServicesTypecheckDSxyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.decisionservices; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisiontable/DTListenerTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisiontable/DTListenerTest.java index 7682d115d81..a7ceecc85bc 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisiontable/DTListenerTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/decisiontable/DTListenerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.decisiontable; import static org.assertj.core.api.Assertions.assertThat; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/extra/DMNRecursionTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/extra/DMNRecursionTest.java index 73f16dd323a..d29f0227ff8 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/extra/DMNRecursionTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/extra/DMNRecursionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.extra; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/extra/YCombinatorTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/extra/YCombinatorTest.java index 4ad21f02063..883ca518ab4 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/extra/YCombinatorTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/extra/YCombinatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.extra; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/impl/DMNContextFEELCtxWrapperTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/impl/DMNContextFEELCtxWrapperTest.java index 799339b5c0a..9bfef517881 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/impl/DMNContextFEELCtxWrapperTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/impl/DMNContextFEELCtxWrapperTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/impl/DMNContextImplTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/impl/DMNContextImplTest.java index d2bcd09b09a..92cc885fa8b 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/impl/DMNContextImplTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/impl/DMNContextImplTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.impl; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/imports/ImportsTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/imports/ImportsTest.java index 54ec3f7a7e2..002a77781ff 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/imports/ImportsTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/imports/ImportsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.imports; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/incrementalcompilation/DMNIncrementalCompilationTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/incrementalcompilation/DMNIncrementalCompilationTest.java index 746421f1a84..1a76c87c455 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/incrementalcompilation/DMNIncrementalCompilationTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/incrementalcompilation/DMNIncrementalCompilationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.incrementalcompilation; import java.lang.reflect.Method; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/incrementalcompilation/WBCompilationTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/incrementalcompilation/WBCompilationTest.java index daa2ff0453e..c98f39803d6 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/incrementalcompilation/WBCompilationTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/incrementalcompilation/WBCompilationTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.dmn.core.incrementalcompilation; import org.drools.compiler.kie.builder.impl.DrlProject; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DMNRuntimeBuilderTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DMNRuntimeBuilderTest.java index a10eda79151..e5e71412263 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DMNRuntimeBuilderTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DMNRuntimeBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DRGAnalysisUtilsTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DRGAnalysisUtilsTest.java index f7e171f12d3..9687c9ad47a 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DRGAnalysisUtilsTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DRGAnalysisUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DynamicDMNContextBuilderTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DynamicDMNContextBuilderTest.java index f9dc8e4e664..2eb2b21f77c 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DynamicDMNContextBuilderTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/DynamicDMNContextBuilderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/MapBackedDMNContextTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/MapBackedDMNContextTest.java index bc788b32419..0511554ccbe 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/MapBackedDMNContextTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/MapBackedDMNContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/MarshallingStubUtilsTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/MarshallingStubUtilsTest.java index 4f011a6ce39..d05098f7465 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/MarshallingStubUtilsTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/internal/utils/MarshallingStubUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.internal.utils; import java.util.Map; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/jandex/KieDMNCoreJandexTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/jandex/KieDMNCoreJandexTest.java index 8cfe810d2e2..1a787275135 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/jandex/KieDMNCoreJandexTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/jandex/KieDMNCoreJandexTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.jandex; import org.kie.dmn.feel.jandex.AbstractJandexTest; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/model/Person.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/model/Person.java index e20b5d924b1..8b51338a4f0 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/model/Person.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/model/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.model; import org.kie.dmn.feel.lang.FEELProperty; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/pmml/DMNKiePMMLTrustyInvocationEvaluatorTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/pmml/DMNKiePMMLTrustyInvocationEvaluatorTest.java index 86290706d68..4105cc1a412 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/pmml/DMNKiePMMLTrustyInvocationEvaluatorTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/pmml/DMNKiePMMLTrustyInvocationEvaluatorTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.core.pmml; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/AnnotationsTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/AnnotationsTest.java index c1686c3e03e..240ea7fa1b2 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/AnnotationsTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/AnnotationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.stronglytyped; import java.lang.reflect.Field; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/DMNRuntimeTypesTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/DMNRuntimeTypesTest.java index a9e3c1b7415..ae3c16546f8 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/DMNRuntimeTypesTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/DMNRuntimeTypesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.stronglytyped; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/DMNTypeSafeTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/DMNTypeSafeTest.java index 805b75db75a..85585bd56e8 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/DMNTypeSafeTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/DMNTypeSafeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.stronglytyped; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/JavadocTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/JavadocTest.java index b350f9dc1e1..b6274a70165 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/JavadocTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/stronglytyped/JavadocTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.stronglytyped; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/typeref/DMNTyperefTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/typeref/DMNTyperefTest.java index 1b998cac5c4..2050c2a9938 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/typeref/DMNTyperefTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/typeref/DMNTyperefTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.typeref; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DMNRuntimeUtil.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DMNRuntimeUtil.java index eb252629f37..93624b4e078 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DMNRuntimeUtil.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DMNRuntimeUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.util; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DMNTestUtil.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DMNTestUtil.java index 8fad8feaa0f..0ebca7a8e11 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DMNTestUtil.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DMNTestUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.util; import org.kie.dmn.api.core.DMNModel; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DynamicTypeUtils.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DynamicTypeUtils.java index efa337a4153..c05a4fce87e 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DynamicTypeUtils.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/util/DynamicTypeUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.util; import java.util.AbstractMap; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_2/DMN12specificTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_2/DMN12specificTest.java index 7a08db9c7be..72f196e0a05 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_2/DMN12specificTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_2/DMN12specificTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.v1_2; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_2/DMNDecisionServicesTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_2/DMNDecisionServicesTest.java index 9bb0ff8db8c..3303c49537e 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_2/DMNDecisionServicesTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_2/DMNDecisionServicesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.v1_2; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMN13specificTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMN13specificTest.java index 07be2cdfa91..3d3f4a227f0 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMN13specificTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMN13specificTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.v1_3; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMN13specificTestNonTypesafe.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMN13specificTestNonTypesafe.java index fb987b4883c..83da10019b5 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMN13specificTestNonTypesafe.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMN13specificTestNonTypesafe.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.v1_3; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14ExpressionsTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14ExpressionsTest.java index d41508d1a51..f5566dd6e4a 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14ExpressionsTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14ExpressionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.v1_4; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14GenericSynthTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14GenericSynthTest.java index 6ae718451b2..beacc0e039f 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14GenericSynthTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14GenericSynthTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.core.v1_4; diff --git a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14specificTest.java b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14specificTest.java index 47884bc7024..6cc366635f7 100644 --- a/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14specificTest.java +++ b/kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_4/DMN14specificTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.core.v1_4; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-core/src/test/resources/logback.xml b/kie-dmn/kie-dmn-core/src/test/resources/logback.xml index dc15e73f803..3717be48ed9 100644 --- a/kie-dmn/kie-dmn-core/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-core/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/habitability.dmn b/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/habitability.dmn new file mode 100644 index 00000000000..c60143d047f --- /dev/null +++ b/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/habitability.dmn @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + oxygene + + + + + temperature + + + + + + + [10..100] + + + < 40 + + + "somehow doable" + + + + + + + + <10 + + + < 40 + + + "hardly doable" + + + + + + + + - + + + >= 40 + + + "too hot" + + + + + + + + + + + + + 50 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/incrementalcompilation/v1/Person.java b/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/incrementalcompilation/v1/Person.java index 95cc7b5ba74..11dfee6267f 100644 --- a/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/incrementalcompilation/v1/Person.java +++ b/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/incrementalcompilation/v1/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package acme; import org.kie.dmn.feel.lang.FEELProperty; diff --git a/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/incrementalcompilation/v2/Person.java b/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/incrementalcompilation/v2/Person.java index 59e674ed93f..ce96f198a2a 100644 --- a/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/incrementalcompilation/v2/Person.java +++ b/kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/incrementalcompilation/v2/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package acme; import org.kie.dmn.feel.lang.FEELProperty; diff --git a/kie-dmn/kie-dmn-feel/pom.xml b/kie-dmn/kie-dmn-feel/pom.xml index eebf25e23b6..ab7e6244b04 100644 --- a/kie-dmn/kie-dmn-feel/pom.xml +++ b/kie-dmn/kie-dmn-feel/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-feel diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/FEEL.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/FEEL.java index 26a29d81ec3..33207446fc6 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/FEEL.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/FEEL.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel; import java.util.List; @@ -28,7 +30,6 @@ import org.kie.dmn.feel.lang.Type; import org.kie.dmn.feel.lang.impl.FEELImpl; import org.kie.dmn.feel.runtime.UnaryTest; -import org.kie.dmn.model.api.GwtIncompatible; /** * FEEL expression language engine interface @@ -51,7 +52,6 @@ static FEEL newInstance() { * * @return a newly instantiated FEEL engine instance */ - @GwtIncompatible static FEEL newInstance(ClassLoader cl) { return new FEELImpl(cl); } @@ -70,7 +70,6 @@ static FEEL newInstance(List profiles) { * * @return a newly instantiated FEEL engine instance */ - @GwtIncompatible static FEEL newInstance(ClassLoader cl, List profiles) { return new FEELImpl(cl, profiles); } diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ASTCompilerVisitor.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ASTCompilerVisitor.java index 09b58afca61..7a6824a116a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ASTCompilerVisitor.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ASTCompilerVisitor.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.time.Duration; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ASTUnaryTestTransform.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ASTUnaryTestTransform.java index dbcc8d880a4..133531034e8 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ASTUnaryTestTransform.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ASTUnaryTestTransform.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CodegenStringUtil.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CodegenStringUtil.java index 8ab1eb5a3ff..93cbbf20537 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CodegenStringUtil.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CodegenStringUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.io.InputStream; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledCustomFEELFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledCustomFEELFunction.java index ed7a27e3950..5f954e0199a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledCustomFEELFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledCustomFEELFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELExpression.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELExpression.java index b98c74a7670..9e4cc60654b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELExpression.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.function.Function; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELSemanticMappings.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELSemanticMappings.java index 43aecad4015..9768f448f99 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELSemanticMappings.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELSemanticMappings.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.math.MathContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELSupport.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELSupport.java index 9c652a8d00c..9761b6d6732 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELSupport.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELSupport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELUnaryTests.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELUnaryTests.java index 951d7eecfc1..33a09ebc27d 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELUnaryTests.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompiledFEELUnaryTests.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompilerBytecodeLoader.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompilerBytecodeLoader.java index 2308016def2..211388f3784 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompilerBytecodeLoader.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/CompilerBytecodeLoader.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Constants.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Constants.java index d712ed4583f..411934f4dca 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Constants.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Constants.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Contexts.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Contexts.java index 16718b41e38..047b897b15f 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Contexts.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Contexts.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.lang.reflect.Method; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerResult.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerResult.java index 6961b777a16..1a957017fb3 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerResult.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Expressions.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Expressions.java index 559dc926eb6..80d354626dc 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Expressions.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Expressions.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FEELCompilationError.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FEELCompilationError.java index 58e0e535021..dcea31b79f1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FEELCompilationError.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FEELCompilationError.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.codegen.feel11; public class FEELCompilationError extends Error { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FeelCtx.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FeelCtx.java index bdc7485fce3..f37fdcc88db 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FeelCtx.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FeelCtx.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import com.github.javaparser.ast.NodeList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FunctionDefs.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FunctionDefs.java index df3f5f5e8c2..179cf641b46 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FunctionDefs.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/FunctionDefs.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.ArrayList; @@ -27,14 +29,11 @@ import com.github.javaparser.ast.expr.NameExpr; import com.github.javaparser.ast.expr.StringLiteralExpr; import com.github.javaparser.ast.type.Type; -import org.kie.dmn.feel.codegen.feel11.FEELCompilationError; import org.kie.dmn.feel.lang.ast.FunctionDefNode; import org.kie.dmn.feel.util.Msg; -import org.kie.dmn.model.api.GwtIncompatible; import static com.github.javaparser.StaticJavaParser.parseType; -@GwtIncompatible public class FunctionDefs { public static Expression asMethodCall( diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Functions.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Functions.java index 1838222d2fd..da0e1e14438 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Functions.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/Functions.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedExpression.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedExpression.java index 063c79ef931..e1bd64b0055 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedExpression.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedExpression.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.codegen.feel11; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedFEELUnit.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedFEELUnit.java index 66e4738d900..ce3bf377830 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedFEELUnit.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedFEELUnit.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.codegen.feel11; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedUnaryTest.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedUnaryTest.java index 4e3133652eb..9777748933f 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedUnaryTest.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ProcessedUnaryTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.codegen.feel11; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompiledExpression.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompiledExpression.java index b8a968a8e45..d777e2d5ba3 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompiledExpression.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompiledExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang; import java.io.Serializable; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompilerContext.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompilerContext.java index 3e2ac5fdf38..9157d3e1b19 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompilerContext.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompilerContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompositeType.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompositeType.java index 72734aada0d..bb2e9e74195 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompositeType.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/CompositeType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang; import java.util.Map; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/EvaluationContext.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/EvaluationContext.java index 7237b39c281..6322ea83f70 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/EvaluationContext.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/EvaluationContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang; import java.util.Collection; @@ -23,7 +25,6 @@ import org.kie.dmn.api.core.DMNRuntime; import org.kie.dmn.api.feel.runtime.events.FEELEvent; import org.kie.dmn.api.feel.runtime.events.FEELEventListener; -import org.kie.dmn.model.api.GwtIncompatible; public interface EvaluationContext { @@ -47,7 +48,6 @@ public interface EvaluationContext { DMNRuntime getDMNRuntime(); - @GwtIncompatible ClassLoader getRootClassLoader(); void notifyEvt(Supplier event); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELProfile.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELProfile.java index 3f22525f14b..fa95375d005 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELProfile.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELProfile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELProperty.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELProperty.java index b31fd56c37c..f9584ed8fd0 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELProperty.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELProperty.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELType.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELType.java index cecf8cf3a15..68e7886c0d6 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELType.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/FEELType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang; import static java.lang.annotation.ElementType.TYPE; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Scope.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Scope.java index 7126e57f087..7b48afcc159 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Scope.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Scope.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang; import java.util.Map; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/SimpleType.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/SimpleType.java index 871fa64a4fa..7e3827dc32b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/SimpleType.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/SimpleType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang; /** diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Symbol.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Symbol.java index 28477f27ab7..1f28c5679b7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Symbol.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Symbol.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang; public interface Symbol { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Type.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Type.java index 4aa662df027..3a8343e6442 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Type.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/Type.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang; /** diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ASTBuilderFactory.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ASTBuilderFactory.java index f3f27fec141..95a1f5c54a3 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ASTBuilderFactory.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ASTBuilderFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ASTNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ASTNode.java index 3d91c0dec1f..4cae05eddf5 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ASTNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ASTNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.kie.dmn.feel.lang.EvaluationContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/AtLiteralNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/AtLiteralNode.java index ad29cbb3582..72c0874b9f6 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/AtLiteralNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/AtLiteralNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BaseNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BaseNode.java index 2146acb421e..05a116b26c4 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BaseNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BaseNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.function.Supplier; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BetweenNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BetweenNode.java index 60f4d6adf68..feb773f5957 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BetweenNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BetweenNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BooleanNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BooleanNode.java index 84c713232b8..6d5c9471a8d 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BooleanNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/BooleanNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/CTypeNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/CTypeNode.java index 256eff83d33..f321217dd8e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/CTypeNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/CTypeNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextEntryNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextEntryNode.java index 342aa187d2e..ebf84267f69 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextEntryNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextEntryNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextNode.java index 5e7ae0ed3f7..b344841fc27 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextTypeNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextTypeNode.java index f9bd3eb63d0..a4c3e277a4f 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextTypeNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ContextTypeNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/DashNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/DashNode.java index e4fd5bdb672..7b567525a7b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/DashNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/DashNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FilterExpressionNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FilterExpressionNode.java index 299c70dd8ce..36f39c859c3 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FilterExpressionNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FilterExpressionNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ForExpressionNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ForExpressionNode.java index b04e27fbd44..f588362a0e4 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ForExpressionNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ForExpressionNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FormalParameterNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FormalParameterNode.java index a721fc13384..9c835c9744c 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FormalParameterNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FormalParameterNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionDefNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionDefNode.java index 2c9f038bf09..c2cbc763ae4 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionDefNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionDefNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.lang.reflect.Method; @@ -35,9 +37,7 @@ import org.kie.dmn.feel.runtime.functions.CustomFEELFunction; import org.kie.dmn.feel.runtime.functions.JavaFunction; import org.kie.dmn.feel.util.Msg; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class FunctionDefNode extends BaseNode { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionInvocationNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionInvocationNode.java index 5738d641b84..af632d97d9b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionInvocationNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionInvocationNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionTypeNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionTypeNode.java index f07e54ae42d..b6f35624eb0 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionTypeNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/FunctionTypeNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/IfExpressionNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/IfExpressionNode.java index 853fc530035..82f171b5d83 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/IfExpressionNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/IfExpressionNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InNode.java index d030489b5b1..f105463d582 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InfixOpNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InfixOpNode.java index c193bfc1d01..5c4cc05df7b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InfixOpNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InfixOpNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InstanceOfNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InstanceOfNode.java index db71a694550..29cea47a2bc 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InstanceOfNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/InstanceOfNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.time.Duration; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/IterationContextNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/IterationContextNode.java index ff556d5d10c..2d14fb1301e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/IterationContextNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/IterationContextNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ListNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ListNode.java index 2f0f2066fee..808508cf0b5 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ListNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ListNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ListTypeNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ListTypeNode.java index c1a81804121..8a9c77f864a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ListTypeNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/ListTypeNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NameDefNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NameDefNode.java index a1711ba320a..d16e9ef6c93 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NameDefNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NameDefNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NameRefNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NameRefNode.java index f8c9b6cae86..4d79ee526eb 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NameRefNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NameRefNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NamedParameterNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NamedParameterNode.java index 6cd46c5e677..f68935e96dd 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NamedParameterNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NamedParameterNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NullNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NullNode.java index cd61df8aae3..863ca724402 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NullNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NullNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NumberNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NumberNode.java index 28f5657a703..83be6d4e3aa 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NumberNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/NumberNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/PathExpressionNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/PathExpressionNode.java index 48f2988c4c0..b16ce347580 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/PathExpressionNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/PathExpressionNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/QualifiedNameNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/QualifiedNameNode.java index dc2ee0f36c9..79a12fb0e70 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/QualifiedNameNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/QualifiedNameNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/QuantifiedExpressionNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/QuantifiedExpressionNode.java index 1b1e71d54f1..cf411cb4fd1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/QuantifiedExpressionNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/QuantifiedExpressionNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/RangeNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/RangeNode.java index a3bb8682905..52fcc5c43b7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/RangeNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/RangeNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.time.Period; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/SignedUnaryNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/SignedUnaryNode.java index 808a78e3a0b..3ff34deaaff 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/SignedUnaryNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/SignedUnaryNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/StringNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/StringNode.java index 470538e103e..c179d203c58 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/StringNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/StringNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; @@ -22,11 +24,12 @@ import org.kie.dmn.feel.lang.types.BuiltInType; import org.kie.dmn.feel.util.EvalHelper; -public class StringNode - extends BaseNode { +public class StringNode extends BaseNode { + private final String value; public StringNode(ParserRuleContext ctx) { super( ctx ); + this.value = EvalHelper.unescapeString(getText()); } @Override @@ -35,7 +38,7 @@ public Object evaluate(EvaluationContext ctx) { } public String getValue() { - return EvalHelper.unescapeString(getText()); + return value; } @Override diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/TemporalConstantNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/TemporalConstantNode.java index a15162eeb37..6a9af22c6bf 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/TemporalConstantNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/TemporalConstantNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/TypeNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/TypeNode.java index 4866b707ecc..aa1bb125905 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/TypeNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/TypeNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import org.antlr.v4.runtime.ParserRuleContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/UnaryTestListNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/UnaryTestListNode.java index 22db4f0aa13..5bf6c392ded 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/UnaryTestListNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/UnaryTestListNode.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/UnaryTestNode.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/UnaryTestNode.java index 880dc1020cd..58b0ae473d5 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/UnaryTestNode.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/UnaryTestNode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/Visitor.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/Visitor.java index 37a0a784ec3..09ab2fc3cc1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/Visitor.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/Visitor.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.lang.ast; public interface Visitor { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/ASTHeuristicCheckerVisitor.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/ASTHeuristicCheckerVisitor.java index 4eb7711a27a..2d39b7d19da 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/ASTHeuristicCheckerVisitor.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/ASTHeuristicCheckerVisitor.java @@ -1,21 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.lang.ast.visitor; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/ASTTemporalConstantVisitor.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/ASTTemporalConstantVisitor.java index 9129d23800c..ae251e78326 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/ASTTemporalConstantVisitor.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/ASTTemporalConstantVisitor.java @@ -1,21 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.lang.ast.visitor; import java.time.temporal.TemporalAccessor; @@ -55,14 +55,12 @@ import org.kie.dmn.feel.runtime.functions.FEELFnResult; import org.kie.dmn.feel.runtime.functions.TimeFunction; import org.kie.dmn.feel.util.EvalHelper; -import org.kie.dmn.model.api.GwtIncompatible; import static org.kie.dmn.feel.runtime.functions.FEELConversionFunctionNames.DATE; import static org.kie.dmn.feel.runtime.functions.FEELConversionFunctionNames.DATE_AND_TIME; import static org.kie.dmn.feel.runtime.functions.FEELConversionFunctionNames.DURATION; import static org.kie.dmn.feel.runtime.functions.FEELConversionFunctionNames.TIME; -@GwtIncompatible public class ASTTemporalConstantVisitor extends DefaultedVisitor { private final ScopeHelper scopeHelper = new ScopeHelper<>(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/DefaultedVisitor.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/DefaultedVisitor.java index d8597fd1a42..68d5baaa16a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/DefaultedVisitor.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/DefaultedVisitor.java @@ -1,21 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. +/** + * 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. */ - package org.kie.dmn.feel.lang.ast.visitor; import org.kie.dmn.feel.lang.ast.ASTNode; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompiledExecutableExpression.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompiledExecutableExpression.java index fcfa6d56588..c815d40848c 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompiledExecutableExpression.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompiledExecutableExpression.java @@ -1,26 +1,26 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression; import org.kie.dmn.feel.lang.EvaluationContext; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class CompiledExecutableExpression implements CompiledFEELExpression { private final CompiledFEELExpression expr; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompiledExpressionImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompiledExpressionImpl.java index d98959a45fb..184ab0143e2 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompiledExpressionImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompiledExpressionImpl.java @@ -1,28 +1,28 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression; import org.kie.dmn.feel.lang.EvaluationContext; import org.kie.dmn.feel.lang.ast.ASTNode; import org.kie.dmn.feel.lang.ast.FunctionDefNode; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class CompiledExpressionImpl implements CompiledFEELExpression { private ASTNode expression; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompilerContextImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompilerContextImpl.java index 8e616f28a4b..cdc3fa42b23 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompilerContextImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/CompilerContextImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/EvaluationContextImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/EvaluationContextImpl.java index a794be96ab8..4c7f9b0b215 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/EvaluationContextImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/EvaluationContextImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.ArrayDeque; @@ -29,9 +31,7 @@ import org.kie.dmn.api.feel.runtime.events.FEELEventListener; import org.kie.dmn.feel.lang.EvaluationContext; import org.kie.dmn.feel.util.EvalHelper; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class EvaluationContextImpl implements EvaluationContext { private final FEELEventListenersManager eventsManager; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/ExecutionFrame.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/ExecutionFrame.java index 9ff8d59c412..cd3af55b8a1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/ExecutionFrame.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/ExecutionFrame.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.Map; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/ExecutionFrameImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/ExecutionFrameImpl.java index a3a4142e918..654a9f99700 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/ExecutionFrameImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/ExecutionFrameImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/FEELEventListenersManager.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/FEELEventListenersManager.java index c6b0ac76baf..c880d0d7885 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/FEELEventListenersManager.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/FEELEventListenersManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/FEELImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/FEELImpl.java index 572d9a6af09..d9630b220a7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/FEELImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/FEELImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.Collection; @@ -40,12 +42,10 @@ import org.kie.dmn.feel.runtime.FEELFunction; import org.kie.dmn.feel.runtime.UnaryTest; import org.kie.dmn.feel.util.ClassLoaderUtil; -import org.kie.dmn.model.api.GwtIncompatible; /** * Language runtime entry point */ -@GwtIncompatible public class FEELImpl implements FEEL { @@ -64,7 +64,6 @@ public FEELImpl() { this(ClassLoaderUtil.findDefaultClassLoader(), Collections.emptyList()); } - @GwtIncompatible public FEELImpl(ClassLoader cl) { this(cl, Collections.emptyList()); } @@ -73,7 +72,6 @@ public FEELImpl(List profiles) { this(ClassLoaderUtil.findDefaultClassLoader(), profiles); } - @GwtIncompatible public FEELImpl(ClassLoader cl, List profiles) { this.classLoader = cl; this.profiles = Collections.unmodifiableList(profiles); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/InterpretedExecutableExpression.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/InterpretedExecutableExpression.java index 042ca85db1c..167b5b79203 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/InterpretedExecutableExpression.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/InterpretedExecutableExpression.java @@ -1,28 +1,28 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import org.kie.dmn.feel.codegen.feel11.CompiledFEELExpression; import org.kie.dmn.feel.lang.EvaluationContext; import org.kie.dmn.feel.lang.ast.ASTNode; import org.kie.dmn.feel.lang.ast.FunctionDefNode; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class InterpretedExecutableExpression implements CompiledFEELExpression { private final CompiledExpressionImpl expr; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/JavaBackedType.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/JavaBackedType.java index 1aded83111c..a7cb4b0b9b2 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/JavaBackedType.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/JavaBackedType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.lang.reflect.Method; @@ -47,11 +49,9 @@ import org.kie.dmn.feel.runtime.Range; import org.kie.dmn.feel.runtime.UnaryTest; import org.kie.dmn.feel.util.EvalHelper; -import org.kie.dmn.model.api.GwtIncompatible; import static java.util.stream.Collectors.toMap; -@GwtIncompatible public class JavaBackedType implements CompositeType { private static Map, JavaBackedType> cache = new ConcurrentHashMap<>(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/MapBackedType.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/MapBackedType.java index dadccf09c75..c398dd43ab0 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/MapBackedType.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/MapBackedType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.LinkedHashMap; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/NamedParameter.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/NamedParameter.java index 6b48c97a6f9..153b330864e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/NamedParameter.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/NamedParameter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; public class NamedParameter { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/RootExecutionFrame.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/RootExecutionFrame.java index 4b6f662b726..902d7f06d60 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/RootExecutionFrame.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/RootExecutionFrame.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/SilentWrappingEvaluationContextImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/SilentWrappingEvaluationContextImpl.java index aab5c64fa39..98b16582488 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/SilentWrappingEvaluationContextImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/SilentWrappingEvaluationContextImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.Collection; @@ -25,7 +27,6 @@ import org.kie.dmn.api.feel.runtime.events.FEELEvent; import org.kie.dmn.api.feel.runtime.events.FEELEventListener; import org.kie.dmn.feel.lang.EvaluationContext; -import org.kie.dmn.model.api.GwtIncompatible; /** * This EvaluationContext should only be used to "try" evaluations @@ -112,7 +113,6 @@ public DMNRuntime getDMNRuntime() { } @Override - @GwtIncompatible public ClassLoader getRootClassLoader() { return wrapped.getRootClassLoader(); } diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/UnaryTestCompiledExecutableExpression.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/UnaryTestCompiledExecutableExpression.java index 93e12e91f20..d8d3115b37c 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/UnaryTestCompiledExecutableExpression.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/UnaryTestCompiledExecutableExpression.java @@ -1,28 +1,28 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.List; import org.kie.dmn.feel.codegen.feel11.CompiledFEELUnaryTests; import org.kie.dmn.feel.runtime.UnaryTest; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class UnaryTestCompiledExecutableExpression { private final CompiledFEELUnaryTests expr; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/UnaryTestInterpretedExecutableExpression.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/UnaryTestInterpretedExecutableExpression.java index 24a8142a601..42e9410b0e0 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/UnaryTestInterpretedExecutableExpression.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/impl/UnaryTestInterpretedExecutableExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.Collections; @@ -23,9 +25,7 @@ import org.kie.dmn.feel.lang.EvaluationContext; import org.kie.dmn.feel.lang.ast.ASTNode; import org.kie.dmn.feel.runtime.UnaryTest; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class UnaryTestInterpretedExecutableExpression implements CompiledFEELExpression { public static final UnaryTestInterpretedExecutableExpression EMPTY = new UnaryTestInterpretedExecutableExpression(null) { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/AliasFEELType.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/AliasFEELType.java index d4698aff506..a2856480a4a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/AliasFEELType.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/AliasFEELType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import org.kie.dmn.feel.lang.SimpleType; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BaseSymbol.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BaseSymbol.java index d75d2457ffd..89de645f747 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BaseSymbol.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BaseSymbol.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import org.kie.dmn.feel.lang.Scope; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BuiltInType.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BuiltInType.java index 7905fa5583f..cec0f953b78 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BuiltInType.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BuiltInType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import java.time.Duration; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BuiltInTypeSymbol.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BuiltInTypeSymbol.java index 9e9ed957006..db7554f3957 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BuiltInTypeSymbol.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/BuiltInTypeSymbol.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import org.kie.dmn.feel.lang.Scope; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/DefaultBuiltinFEELTypeRegistry.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/DefaultBuiltinFEELTypeRegistry.java index 366593963cc..7168eadf0ae 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/DefaultBuiltinFEELTypeRegistry.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/DefaultBuiltinFEELTypeRegistry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/FEELTypeRegistry.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/FEELTypeRegistry.java index bf228b095e0..580714b9616 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/FEELTypeRegistry.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/FEELTypeRegistry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/FunctionSymbol.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/FunctionSymbol.java index ff62e8a5ddc..6343be9bad1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/FunctionSymbol.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/FunctionSymbol.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import org.kie.dmn.feel.lang.Scope; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/GenFnType.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/GenFnType.java index 6f6e30a84cc..fa14a9b8b22 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/GenFnType.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/GenFnType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/GenListType.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/GenListType.java index 64e236a743a..78f577fae08 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/GenListType.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/GenListType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/ScopeImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/ScopeImpl.java index de43f26554b..321786eedb3 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/ScopeImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/ScopeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/SymbolTable.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/SymbolTable.java index 062fe526b6f..f1642609bb6 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/SymbolTable.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/SymbolTable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import java.util.stream.Stream; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/TypeSymbol.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/TypeSymbol.java index 8facea33083..5d370da24ff 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/TypeSymbol.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/TypeSymbol.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import org.kie.dmn.feel.lang.Type; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/VariableSymbol.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/VariableSymbol.java index 5a246926243..7043cbbd01b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/VariableSymbol.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/VariableSymbol.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import org.kie.dmn.feel.lang.Scope; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/WrappingScopeImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/WrappingScopeImpl.java index c1281bebbd3..a5ac5eecb37 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/WrappingScopeImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/WrappingScopeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types; import java.util.Map; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/ComparablePeriod.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/ComparablePeriod.java index 05c828dcb5a..be71a2fac36 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/ComparablePeriod.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/ComparablePeriod.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types.impl; import java.io.Serializable; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/ImmutableFPAWrappingPOJO.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/ImmutableFPAWrappingPOJO.java index 97c47012328..103b6c84633 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/ImmutableFPAWrappingPOJO.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/ImmutableFPAWrappingPOJO.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.lang.types.impl; import java.beans.BeanInfo; @@ -28,12 +30,10 @@ import org.kie.dmn.api.core.FEELPropertyAccessible; import org.kie.dmn.feel.lang.FEELProperty; import org.kie.dmn.feel.util.EvalHelper.PropertyValueResult; -import org.kie.dmn.model.api.GwtIncompatible; /** * Internal class for an immutable DTO, implementing FEELPropertyAccessible interface, and wrapping a generic POJO. */ -@GwtIncompatible public class ImmutableFPAWrappingPOJO implements FEELPropertyAccessible { private final Object wrapping; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/InterceptNotComparableComparator.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/InterceptNotComparableComparator.java index a9ea850c209..59085107685 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/InterceptNotComparableComparator.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/types/impl/InterceptNotComparableComparator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types.impl; import java.time.Period; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELCodeMarshaller.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELCodeMarshaller.java index 25d3fb040be..68e0597e589 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELCodeMarshaller.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELCodeMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.marshaller; import java.util.function.Function; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELMarshaller.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELMarshaller.java index 7c27351164f..1b22187010b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELMarshaller.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.marshaller; import org.kie.dmn.feel.lang.Type; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELStringMarshaller.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELStringMarshaller.java index af3255f09c7..6af18382599 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELStringMarshaller.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/marshaller/FEELStringMarshaller.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.marshaller; import java.util.function.Function; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ASTBuilderVisitor.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ASTBuilderVisitor.java index ad05ca4fbf3..a7f7b51c29b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ASTBuilderVisitor.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ASTBuilderVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/FEELParser.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/FEELParser.java index c75477739c0..ace7bcb3bd9 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/FEELParser.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/FEELParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11; import java.util.ArrayList; @@ -48,9 +50,7 @@ import org.kie.dmn.feel.runtime.FEELFunction; import org.kie.dmn.feel.runtime.events.SyntaxErrorEvent; import org.kie.dmn.feel.util.Msg; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class FEELParser { private static final List REUSABLE_KEYWORDS = Arrays.asList( diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ParserHelper.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ParserHelper.java index 9b796b2e253..012f2f0c84b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ParserHelper.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ParserHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11; import java.util.ArrayDeque; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ScopeHelper.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ScopeHelper.java index 18a3729ba4f..7387b32947e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ScopeHelper.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/ScopeHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11; import java.util.ArrayDeque; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/DoCompileFEELProfile.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/DoCompileFEELProfile.java index 06a4eee0e4e..0cbd58402e8 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/DoCompileFEELProfile.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/DoCompileFEELProfile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11.profiles; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/FEELv12Profile.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/FEELv12Profile.java index 561d4e186a9..17e389029e0 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/FEELv12Profile.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/FEELv12Profile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11.profiles; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/KieExtendedFEELProfile.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/KieExtendedFEELProfile.java index 6f48f9c331c..e2ed9f046fa 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/KieExtendedFEELProfile.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/parser/feel11/profiles/KieExtendedFEELProfile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11.profiles; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/FEELFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/FEELFunction.java index 4347ad9d33d..15941675c02 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/FEELFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/FEELFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/Range.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/Range.java index b3b6c8be398..a334beaeb9e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/Range.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/Range.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; public interface Range { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/UnaryTest.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/UnaryTest.java index 0c440d6aae7..93084d5638e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/UnaryTest.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/UnaryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.util.function.BiFunction; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/UnaryTestImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/UnaryTestImpl.java index 7913baa622e..06640254911 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/UnaryTestImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/UnaryTestImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import org.kie.dmn.feel.lang.EvaluationContext; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTDecisionRule.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTDecisionRule.java index 00c82b7765f..dd08d9f8314 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTDecisionRule.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTDecisionRule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.decisiontables; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTInputClause.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTInputClause.java index c87285cc0f9..41f76757c6b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTInputClause.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTInputClause.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.decisiontables; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTOutputClause.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTOutputClause.java index 84e8bbd8ee0..131b651ee3d 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTOutputClause.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DTOutputClause.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.decisiontables; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DecisionTable.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DecisionTable.java index 0e3d3f4d791..27ed34e3ef4 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DecisionTable.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DecisionTable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.decisiontables; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DecisionTableImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DecisionTableImpl.java index 22bb8b73594..362e1100873 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DecisionTableImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/DecisionTableImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.decisiontables; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/HitPolicy.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/HitPolicy.java index 21155f94659..21acca05f1c 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/HitPolicy.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/HitPolicy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.decisiontables; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/Indexed.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/Indexed.java index 54c2d33aca0..a0dabbd251a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/Indexed.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/Indexed.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.decisiontables; @FunctionalInterface diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/SingleValueOrContextCollector.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/SingleValueOrContextCollector.java index d8e2a149ff0..9dc35437547 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/SingleValueOrContextCollector.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/decisiontables/SingleValueOrContextCollector.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.decisiontables; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/ASTEventBase.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/ASTEventBase.java index 7211e561c14..2b5b70814b7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/ASTEventBase.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/ASTEventBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import org.kie.dmn.api.feel.runtime.events.FEELEvent; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/ASTHeuristicCheckEvent.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/ASTHeuristicCheckEvent.java index 7dee342bae8..fee303de2b9 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/ASTHeuristicCheckEvent.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/ASTHeuristicCheckEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import org.kie.dmn.feel.lang.ast.ASTNode; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/DecisionTableRulesMatchedEvent.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/DecisionTableRulesMatchedEvent.java index 6b5fadfd994..60d4ee04f02 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/DecisionTableRulesMatchedEvent.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/DecisionTableRulesMatchedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/DecisionTableRulesSelectedEvent.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/DecisionTableRulesSelectedEvent.java index 1bcb27b6325..4adb80d220a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/DecisionTableRulesSelectedEvent.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/DecisionTableRulesSelectedEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/FEELEventBase.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/FEELEventBase.java index 1c0d1fcaf90..2183b181423 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/FEELEventBase.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/FEELEventBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import org.kie.dmn.api.feel.runtime.events.FEELEvent; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/HitPolicyViolationEvent.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/HitPolicyViolationEvent.java index 735405fa7e1..8aac7957ea0 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/HitPolicyViolationEvent.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/HitPolicyViolationEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/InvalidInputEvent.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/InvalidInputEvent.java index 985eb208a51..b264599684d 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/InvalidInputEvent.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/InvalidInputEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import org.kie.dmn.api.feel.runtime.events.FEELEvent; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/InvalidParametersEvent.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/InvalidParametersEvent.java index ec47098bcff..6fb02e084da 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/InvalidParametersEvent.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/InvalidParametersEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/SyntaxErrorEvent.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/SyntaxErrorEvent.java index d57de273efd..4762216fb1c 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/SyntaxErrorEvent.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/SyntaxErrorEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import org.antlr.v4.runtime.RecognitionException; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/UnknownVariableErrorEvent.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/UnknownVariableErrorEvent.java index 82442b526c2..e6bd5c54fa7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/UnknownVariableErrorEvent.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/UnknownVariableErrorEvent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.events; import org.kie.dmn.api.feel.runtime.events.FEELEvent; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AbsFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AbsFunction.java index 80ca60425fb..a26dca7d032 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AbsFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AbsFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AbstractCustomFEELFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AbstractCustomFEELFunction.java index b10070f0c5b..220bbf6876a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AbstractCustomFEELFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AbstractCustomFEELFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AllFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AllFunction.java index 37f7d3097ae..12a3905b151 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AllFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AllFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AnyFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AnyFunction.java index 158e922c3ab..6f36b533bd8 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AnyFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AnyFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AppendFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AppendFunction.java index 168fd1709cc..b5a1e3809e0 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AppendFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/AppendFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BaseFEELFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BaseFEELFunction.java index dcfc32ffd86..64c76d89bbd 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BaseFEELFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BaseFEELFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.lang.annotation.Annotation; @@ -41,7 +43,6 @@ import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; import org.kie.dmn.feel.util.Either; import org.kie.dmn.feel.util.EvalHelper; -import org.kie.dmn.model.api.GwtIncompatible; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -74,7 +75,6 @@ public Symbol getSymbol() { } @Override - @GwtIncompatible public Object invokeReflectively(EvaluationContext ctx, Object[] params) { // use reflection to call the appropriate invoke method try { @@ -187,7 +187,6 @@ private Object[] rearrangeParameters(Object[] params, List pnames) { return params; } - @GwtIncompatible private CandidateMethod getCandidateMethod(EvaluationContext ctx, Object[] params, boolean isNamedParams, List available) { CandidateMethod candidate = null; // first, look for exact matches @@ -299,7 +298,6 @@ public List> getParameters() { /** * Adjust CandidateMethod considering var args signature. */ - @GwtIncompatible private void adjustForVariableParameters(CandidateMethod cm, Class[] parameterTypes) { if ( parameterTypes.length > 0 && parameterTypes[parameterTypes.length - 1].isArray() ) { // then it is a variable parameters function call @@ -314,7 +312,6 @@ private void adjustForVariableParameters(CandidateMethod cm, Class[] paramete } } - @GwtIncompatible private Object[] calculateActualParams(EvaluationContext ctx, Method m, Object[] params, List available) { Annotation[][] pas = m.getParameterAnnotations(); List names = new ArrayList<>( m.getParameterCount() ); @@ -384,7 +381,6 @@ protected boolean isCustomFunction() { return false; } - @GwtIncompatible private static class CandidateMethod { private Method apply = null; private Object[] actualParams; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BuiltInFunctions.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BuiltInFunctions.java index 29699b5093f..9595d13caba 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BuiltInFunctions.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/BuiltInFunctions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.stream.Stream; @@ -33,9 +35,7 @@ import org.kie.dmn.feel.runtime.functions.interval.OverlapsFunction; import org.kie.dmn.feel.runtime.functions.interval.StartedByFunction; import org.kie.dmn.feel.runtime.functions.interval.StartsFunction; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class BuiltInFunctions { protected static final FEELFunction[] FUNCTIONS = new FEELFunction[]{ @@ -125,7 +125,6 @@ public static FEELFunction[] getFunctions() { return FUNCTIONS; } - @GwtIncompatible public static T getFunction(Class functionClazz) { return (T) Stream.of(FUNCTIONS) .filter(f -> functionClazz.isAssignableFrom(f.getClass())) diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CeilingFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CeilingFunction.java index f7b39615f7a..ec7d396395e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CeilingFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CeilingFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ConcatenateFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ConcatenateFunction.java index cd1fe0df250..4f3cdf2b039 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ConcatenateFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ConcatenateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ContainsFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ContainsFunction.java index 6c0c7232a75..4ff86f1cd6f 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ContainsFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ContainsFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CountFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CountFunction.java index f0ab6050a3f..717ce5d38f9 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CountFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CountFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CustomFEELFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CustomFEELFunction.java index 62f2ba80c2f..8ca827e93be 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CustomFEELFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/CustomFEELFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DTInvokerFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DTInvokerFunction.java index 86c04067137..16f125896ac 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DTInvokerFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DTInvokerFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DateAndTimeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DateAndTimeFunction.java index 462e91cdb53..28de9b41c91 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DateAndTimeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DateAndTimeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.DateTimeException; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DateFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DateFunction.java index a976d594abb..37cd0b3bf29 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DateFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.DateTimeException; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DayOfWeekFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DayOfWeekFunction.java index f25a8c0342c..becac394fe5 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DayOfWeekFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DayOfWeekFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.DayOfWeek; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DayOfYearFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DayOfYearFunction.java index f768b30644d..50bd273a6d8 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DayOfYearFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DayOfYearFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DecimalFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DecimalFunction.java index 12e25a51a62..ca82db66c17 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DecimalFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DecimalFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DecisionTableFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DecisionTableFunction.java index 38977d69539..2acefa9f890 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DecisionTableFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DecisionTableFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.ArrayList; @@ -37,11 +39,9 @@ import org.kie.dmn.feel.runtime.decisiontables.HitPolicy; import org.kie.dmn.feel.runtime.events.FEELEventBase; import org.kie.dmn.feel.util.Msg; -import org.kie.dmn.model.api.GwtIncompatible; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@GwtIncompatible public class DecisionTableFunction extends BaseFEELFunction { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DistinctValuesFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DistinctValuesFunction.java index 02850859a35..b70861c47ec 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DistinctValuesFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DistinctValuesFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DurationFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DurationFunction.java index 754feda418d..acf5d8ab587 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DurationFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DurationFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.Duration; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/EndsWithFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/EndsWithFunction.java index dba1c8cd5b6..f079f3b76a7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/EndsWithFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/EndsWithFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/EvenFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/EvenFunction.java index 6c535c2af66..259455ebe0e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/EvenFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/EvenFunction.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ExpFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ExpFunction.java index b45323e6f2e..4b17ef39a27 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ExpFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ExpFunction.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; @@ -6,9 +24,7 @@ import ch.obermuhlner.math.big.BigDecimalMath; import org.kie.dmn.api.feel.runtime.events.FEELEvent; import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class ExpFunction extends BaseFEELFunction { public static final ExpFunction INSTANCE = new ExpFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FEELConversionFunctionNames.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FEELConversionFunctionNames.java index 01cb4d10b10..df7db00413c 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FEELConversionFunctionNames.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FEELConversionFunctionNames.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; /** diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FEELFnResult.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FEELFnResult.java index e0f62024085..deefab44e7a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FEELFnResult.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FEELFnResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Optional; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FlattenFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FlattenFunction.java index f7dad6c32d2..d159d0224b1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FlattenFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FlattenFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FloorFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FloorFunction.java index 3989878268e..e3c0cd906f8 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FloorFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/FloorFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/GetEntriesFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/GetEntriesFunction.java index 463e5c54131..23b8a2343f1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/GetEntriesFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/GetEntriesFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/GetValueFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/GetValueFunction.java index 79714c096eb..7b37aeedd35 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/GetValueFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/GetValueFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Map; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/IndexOfFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/IndexOfFunction.java index 3bcb769308a..4d9925f0019 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/IndexOfFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/IndexOfFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/InsertBeforeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/InsertBeforeFunction.java index 9968f340dac..0d0b415aa8e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/InsertBeforeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/InsertBeforeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/IsFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/IsFunction.java index f27e33d5a5c..84bf087c020 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/IsFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/IsFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.chrono.ChronoPeriod; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/JavaFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/JavaFunction.java index 2f681c220ae..095b2119c1f 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/JavaFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/JavaFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.lang.reflect.InvocationTargetException; @@ -28,11 +30,9 @@ import org.kie.dmn.feel.lang.EvaluationContext; import org.kie.dmn.feel.runtime.events.FEELEventBase; import org.kie.dmn.feel.runtime.events.InvalidInputEvent; -import org.kie.dmn.model.api.GwtIncompatible; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -@GwtIncompatible public class JavaFunction extends BaseFEELFunction { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ListContainsFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ListContainsFunction.java index 3b494cb013d..87aaf19d0a8 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ListContainsFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ListContainsFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/LogFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/LogFunction.java index a81905fe643..7c98cc99542 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/LogFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/LogFunction.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; @@ -6,9 +24,7 @@ import ch.obermuhlner.math.big.BigDecimalMath; import org.kie.dmn.api.feel.runtime.events.FEELEvent; import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class LogFunction extends BaseFEELFunction { public static final LogFunction INSTANCE = new LogFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MatchesFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MatchesFunction.java index f98fb862c75..aed9fcb77e2 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MatchesFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MatchesFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MaxFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MaxFunction.java index 6b3d83e72da..4e1ea61b9f7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MaxFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MaxFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Arrays; @@ -23,9 +25,7 @@ import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; import org.kie.dmn.feel.lang.types.impl.InterceptNotComparableComparator; import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class MaxFunction extends BaseFEELFunction { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MeanFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MeanFunction.java index 31ca3a57052..780e13e3e72 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MeanFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MeanFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MedianFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MedianFunction.java index 721dd69cdb3..e2a6a6c7092 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MedianFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MedianFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MinFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MinFunction.java index bf1966df9af..af17411dfff 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MinFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MinFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ModeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ModeFunction.java index cbdff5f37a5..547654c0b5d 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ModeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ModeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ModuloFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ModuloFunction.java index 1fab4db39ba..ad0aa35b170 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ModuloFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ModuloFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MonthOfYearFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MonthOfYearFunction.java index a25fd80cce1..8aa7c197fc3 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MonthOfYearFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/MonthOfYearFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.Month; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/NotFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/NotFunction.java index 862ffaec115..4348cc6a62f 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/NotFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/NotFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/NumberFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/NumberFunction.java index 62c5a4c07e3..921c819c7b2 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/NumberFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/NumberFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/OddFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/OddFunction.java index 54682ac0df8..e4eec63f036 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/OddFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/OddFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ParameterName.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ParameterName.java index 63bac1eb2fb..c0fe1dc4835 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ParameterName.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ParameterName.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.lang.annotation.ElementType; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ProductFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ProductFunction.java index b51022fbacf..665b582d7cf 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ProductFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ProductFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/RemoveFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/RemoveFunction.java index 3db0d9feadb..bf3f32c8d16 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/RemoveFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/RemoveFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ReplaceFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ReplaceFunction.java index 3cf9df77c3a..63118d98aa7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ReplaceFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ReplaceFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ReverseFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ReverseFunction.java index 98eec6f3eaa..20f9676f02d 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ReverseFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/ReverseFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SortFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SortFunction.java index 4abda5ab3ff..86c799261f1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SortFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SortFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.ArrayList; @@ -23,9 +25,7 @@ import org.kie.dmn.feel.lang.EvaluationContext; import org.kie.dmn.feel.runtime.FEELFunction; import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class SortFunction extends BaseFEELFunction { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SplitFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SplitFunction.java index e77119374f2..ba633d17eee 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SplitFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SplitFunction.java @@ -1,31 +1,30 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Arrays; import java.util.List; -import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class SplitFunction extends BaseFEELFunction { public static final SplitFunction INSTANCE = new SplitFunction(); @@ -35,10 +34,6 @@ public class SplitFunction } public FEELFnResult> invoke(@ParameterName("string") String string, @ParameterName("delimiter") String delimiter) { - return invoke(string, delimiter, null); - } - - public FEELFnResult> invoke(@ParameterName("string") String string, @ParameterName("delimiter") String delimiter, @ParameterName("flags") String flags) { if (string == null) { return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "string", "cannot be null" ) ); } @@ -46,33 +41,12 @@ public FEELFnResult> invoke(@ParameterName("string") String string, return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "delimiter", "cannot be null" ) ); } try { - int f = processFlags( flags ); - Pattern p = Pattern.compile( delimiter, f ); - String[] split = p.split(string, -1); + String[] split = string.split(delimiter, -1); return FEELFnResult.ofResult( Arrays.asList( split ) ); } catch ( PatternSyntaxException e ) { return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "delimiter", "is invalid and can not be compiled", e ) ); - } catch ( IllegalArgumentException t ) { - return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "flags", "contains unknown flags", t ) ); } catch ( Throwable t) { return FEELFnResult.ofError( new InvalidParametersEvent( Severity.ERROR, "delimiter", "is invalid and can not be compiled", t ) ); } } - - private int processFlags(String flags) { - int f = 0; - if( flags != null ) { - if( flags.contains( "s" ) ) { - f |= Pattern.DOTALL; - } - if( flags.contains( "m" ) ) { - f |= Pattern.MULTILINE; - } - if( flags.contains( "i" ) ) { - f |= Pattern.CASE_INSENSITIVE; - } - } - return f; - } - } diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SqrtFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SqrtFunction.java index 06891f5f6d3..c8cd47e98cb 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SqrtFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SqrtFunction.java @@ -1,31 +1,31 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import ch.obermuhlner.math.big.BigDecimalMath; import org.kie.dmn.api.feel.runtime.events.FEELEvent; import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; import org.kie.dmn.feel.util.EvalHelper; -import org.kie.dmn.model.api.GwtIncompatible; import java.math.BigDecimal; import java.math.MathContext; -@GwtIncompatible public class SqrtFunction extends BaseFEELFunction { public static final SqrtFunction INSTANCE = new SqrtFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StartsWithFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StartsWithFunction.java index 0c582ec5537..630710df2f7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StartsWithFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StartsWithFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StddevFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StddevFunction.java index 2cfc06dd33d..9982d8b94f4 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StddevFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StddevFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; @@ -24,10 +26,8 @@ import org.kie.dmn.api.feel.runtime.events.FEELEvent; import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; import org.kie.dmn.feel.util.EvalHelper; -import org.kie.dmn.model.api.GwtIncompatible; // based on the examples of calculations, stddev is supposed to return sample standard deviation, not population standard deviation -@GwtIncompatible public class StddevFunction extends BaseFEELFunction { public static final StddevFunction INSTANCE = new StddevFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringFunction.java index 612cb4cbb29..a5b5629360b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringLengthFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringLengthFunction.java index 27d34c9842a..a70b431c572 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringLengthFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringLengthFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringLowerCaseFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringLowerCaseFunction.java index 7ff16a48540..c3ee83c4994 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringLowerCaseFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringLowerCaseFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringUpperCaseFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringUpperCaseFunction.java index 804a7bf83e5..cb21b5cbc58 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringUpperCaseFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/StringUpperCaseFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SublistFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SublistFunction.java index 2a7eebc8f4a..2ab672f7cf4 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SublistFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SublistFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringAfterFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringAfterFunction.java index 9c34738e048..18f5d97108c 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringAfterFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringAfterFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringBeforeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringBeforeFunction.java index 01ef1532628..a1d30c46428 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringBeforeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringBeforeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringFunction.java index 79638fd4b8b..07409f7027a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SubstringFunction.java @@ -1,28 +1,28 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.stream.IntStream; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class SubstringFunction extends BaseFEELFunction { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SumFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SumFunction.java index a6dd7eae82d..b5e2011601b 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SumFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/SumFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/TimeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/TimeFunction.java index c1c294dfa85..93564f637d0 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/TimeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/TimeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/UnionFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/UnionFunction.java index a8820f55f32..02e4f1b4d6d 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/UnionFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/UnionFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/WeekOfYearFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/WeekOfYearFunction.java index acc75f88a8d..829482de7ab 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/WeekOfYearFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/WeekOfYearFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; @@ -23,9 +25,7 @@ import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; import org.kie.dmn.feel.util.EvalHelper; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class WeekOfYearFunction extends BaseFEELFunction { public static final WeekOfYearFunction INSTANCE = new WeekOfYearFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/YearsAndMonthsFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/YearsAndMonthsFunction.java index aa2178fdc0b..fad88161e98 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/YearsAndMonthsFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/YearsAndMonthsFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.DateTimeException; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/CeilingFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/CeilingFunction.java index 92b2c13d941..a406a26bc1e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/CeilingFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/CeilingFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/CodeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/CodeFunction.java index ef76deb3423..d353251de84 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/CodeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/CodeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextFunction.java index 252901da68f..21a01a1bf62 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextMergeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextMergeFunction.java index 72ccecd0696..5571b75efdf 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextMergeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextMergeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextPutFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextPutFunction.java index 0897e175924..3c7a7216126 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextPutFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/ContextPutFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/DateFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/DateFunction.java index 0013d3c001a..e40fd3a77b4 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/DateFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/DateFunction.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.functions.extended; import java.time.DateTimeException; @@ -17,13 +35,11 @@ import org.kie.dmn.feel.runtime.functions.FEELConversionFunctionNames; import org.kie.dmn.feel.runtime.functions.FEELFnResult; import org.kie.dmn.feel.runtime.functions.ParameterName; -import org.kie.dmn.model.api.GwtIncompatible; import static java.time.temporal.ChronoField.DAY_OF_MONTH; import static java.time.temporal.ChronoField.MONTH_OF_YEAR; import static java.time.temporal.ChronoField.YEAR; -@GwtIncompatible public class DateFunction extends BaseFEELFunction { public static final DateFunction INSTANCE = new DateFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/DurationFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/DurationFunction.java index 55453a7a874..869efea0035 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/DurationFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/DurationFunction.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.functions.extended; import java.time.Duration; @@ -13,9 +31,7 @@ import org.kie.dmn.feel.runtime.functions.FEELConversionFunctionNames; import org.kie.dmn.feel.runtime.functions.FEELFnResult; import org.kie.dmn.feel.runtime.functions.ParameterName; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class DurationFunction extends BaseFEELFunction { public static final DurationFunction INSTANCE = new DurationFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/FloorFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/FloorFunction.java index 17060ae88cb..3fefcca6788 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/FloorFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/FloorFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/InvokeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/InvokeFunction.java index 0dd53e9afc6..f6c005ae5c7 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/InvokeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/InvokeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.util.Map; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/KieExtendedDMNFunctions.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/KieExtendedDMNFunctions.java index 90ae0937793..e6ab02e2993 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/KieExtendedDMNFunctions.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/KieExtendedDMNFunctions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.util.stream.Stream; @@ -29,7 +31,6 @@ import org.kie.dmn.feel.runtime.functions.twovaluelogic.NNModeFunction; import org.kie.dmn.feel.runtime.functions.twovaluelogic.NNStddevFunction; import org.kie.dmn.feel.runtime.functions.twovaluelogic.NNSumFunction; -import org.kie.dmn.model.api.GwtIncompatible; /** * additional functions not part of the spec version 1.x, or not incorporated in the spec yet. @@ -78,7 +79,6 @@ public static FEELFunction[] getFunctions() { return FUNCTIONS; } - @GwtIncompatible public static T getFunction(Class functionClazz) { return (T) Stream.of(FUNCTIONS) .filter(f -> functionClazz.isAssignableFrom(f.getClass())) diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/NowFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/NowFunction.java index cde6cd3357a..c9a2bd61a9d 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/NowFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/NowFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.time.ZonedDateTime; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RangeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RangeFunction.java index d790aa9703b..8e65dbf6b1d 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RangeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RangeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import org.antlr.v4.runtime.tree.ParseTree; @@ -32,7 +34,6 @@ import org.kie.dmn.feel.runtime.functions.FEELFnResult; import org.kie.dmn.feel.runtime.functions.ParameterName; import org.kie.dmn.feel.runtime.impl.RangeImpl; -import org.kie.dmn.model.api.GwtIncompatible; import java.time.*; import java.time.chrono.ChronoPeriod; @@ -42,7 +43,6 @@ import java.util.Objects; import java.util.function.Predicate; -@GwtIncompatible public class RangeFunction extends BaseFEELFunction { public static final RangeFunction INSTANCE = new RangeFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundDownFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundDownFunction.java index ce04fe374c9..9178dcb6b72 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundDownFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundDownFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundHalfDownFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundHalfDownFunction.java index f80ea60f0c5..266ec0935fd 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundHalfDownFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundHalfDownFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundHalfUpFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundHalfUpFunction.java index 491c9a55955..c18f71b35dc 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundHalfUpFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundHalfUpFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundUpFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundUpFunction.java index db8ab2d4947..1a3388724e2 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundUpFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/RoundUpFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/StringJoinFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/StringJoinFunction.java index 90508af0f0b..3ee399fc18e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/StringJoinFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/StringJoinFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.util.List; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/TimeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/TimeFunction.java index 0e6da0bd684..6433dcdb836 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/TimeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/TimeFunction.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.functions.extended; import java.math.BigDecimal; @@ -23,9 +41,7 @@ import org.kie.dmn.feel.runtime.functions.FEELConversionFunctionNames; import org.kie.dmn.feel.runtime.functions.FEELFnResult; import org.kie.dmn.feel.runtime.functions.ParameterName; -import org.kie.dmn.model.api.GwtIncompatible; -@GwtIncompatible public class TimeFunction extends BaseFEELFunction { public static final TimeFunction INSTANCE = new TimeFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/TodayFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/TodayFunction.java index f1c437e6786..d392ec6803e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/TodayFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/TodayFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.extended; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/AfterFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/AfterFunction.java index 3e8cc5f6f77..007250f1687 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/AfterFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/AfterFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/BeforeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/BeforeFunction.java index 3a4a8a55171..4ae46d43ad1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/BeforeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/BeforeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/CoincidesFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/CoincidesFunction.java index 45aec191142..9247aa69fec 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/CoincidesFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/CoincidesFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/DuringFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/DuringFunction.java index 74301c9f94c..9adf8a3a936 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/DuringFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/DuringFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/FinishedByFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/FinishedByFunction.java index 96e64ba72d8..c64b697a9d4 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/FinishedByFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/FinishedByFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/FinishesFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/FinishesFunction.java index 1ad90511a89..bc03b1ef1ba 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/FinishesFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/FinishesFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/IncludesFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/IncludesFunction.java index 5f3dc76fc1b..1445053d516 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/IncludesFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/IncludesFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/MeetsFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/MeetsFunction.java index b914e67aa66..7c33d183022 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/MeetsFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/MeetsFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/MetByFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/MetByFunction.java index 73dc90a0f33..125867ebc3e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/MetByFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/MetByFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsAfterFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsAfterFunction.java index c59b7576fbf..7924bd1c026 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsAfterFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsAfterFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.feel.runtime.Range; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsBeforeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsBeforeFunction.java index cf0c0f5d99d..c20a7643646 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsBeforeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsBeforeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsFunction.java index 0c339d5ffeb..49afd62753e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/StartedByFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/StartedByFunction.java index b165517eeb6..54aaa2ac7b2 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/StartedByFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/StartedByFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/StartsFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/StartsFunction.java index 357a29fb357..900bfb4852a 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/StartsFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/interval/StartsFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAllFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAllFunction.java index bb45e502adb..40384f66b30 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAllFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAllFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAnyFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAnyFunction.java index fff559c142c..fd826ddbabd 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAnyFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAnyFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNCountFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNCountFunction.java index 4c1a1b4acb2..14ee16efd35 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNCountFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNCountFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMaxFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMaxFunction.java index 47db9d1304a..57af28511df 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMaxFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMaxFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMeanFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMeanFunction.java index 7c202296043..310f028c035 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMeanFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMeanFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMedianFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMedianFunction.java index 5bd0bdfbcb7..f310f18e0d8 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMedianFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMedianFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; @@ -22,7 +24,6 @@ import org.kie.dmn.feel.runtime.functions.FEELFnResult; import org.kie.dmn.feel.runtime.functions.ParameterName; import org.kie.dmn.feel.util.EvalHelper; -import org.kie.dmn.model.api.GwtIncompatible; import java.math.BigDecimal; import java.math.MathContext; @@ -31,7 +32,6 @@ import java.util.Collections; import java.util.List; -@GwtIncompatible public class NNMedianFunction extends BaseFEELFunction { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMinFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMinFunction.java index d012960c9a4..e50ced74450 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMinFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNMinFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNModeFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNModeFunction.java index 736b4f9cd72..c11a0e86e6c 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNModeFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNModeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.kie.dmn.api.feel.runtime.events.FEELEvent; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNStddevFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNStddevFunction.java index 087c3c6f237..0d36ef65a9f 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNStddevFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNStddevFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import java.math.BigDecimal; @@ -29,10 +31,8 @@ import org.kie.dmn.feel.runtime.functions.ParameterName; import org.kie.dmn.feel.runtime.functions.SqrtFunction; import org.kie.dmn.feel.util.EvalHelper; -import org.kie.dmn.model.api.GwtIncompatible; // based on the examples of calculations, stddev is supposed to return sample standard deviation, not population standard deviation -@GwtIncompatible public class NNStddevFunction extends BaseFEELFunction { public static final NNStddevFunction INSTANCE = new NNStddevFunction(); diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNSumFunction.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNSumFunction.java index 110f44ce3bd..7560f10f6a3 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNSumFunction.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNSumFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/TwoValueLogicFunctions.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/TwoValueLogicFunctions.java index 9ba2fbce1f9..c990b8d80c3 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/TwoValueLogicFunctions.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/TwoValueLogicFunctions.java @@ -1,11 +1,26 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.functions.twovaluelogic; import java.util.List; import java.util.function.Function; -import org.kie.dmn.model.api.GwtIncompatible; - -@GwtIncompatible public class TwoValueLogicFunctions { private static NNAllFunction allFunction = NNAllFunction.INSTANCE; private static NNAnyFunction anyFunction = NNAnyFunction.INSTANCE; @@ -17,7 +32,6 @@ public class TwoValueLogicFunctions { private static NNMedianFunction medianFunction = NNMedianFunction.INSTANCE; private static NNModeFunction modeFunction = NNModeFunction.INSTANCE; - @GwtIncompatible private static NNStddevFunction stddevFunction = NNStddevFunction.INSTANCE; public static Boolean all(List list) { @@ -56,7 +70,6 @@ public static List mode(List list) { return modeFunction.invoke(list).cata(e -> null, Function.identity()); } - @GwtIncompatible public static Number stddev(List list) { return stddevFunction.invoke(list).cata(e -> null, Function.identity()); } diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/impl/RangeImpl.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/impl/RangeImpl.java index 3f221e083f8..3aa123b45f5 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/impl/RangeImpl.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/impl/RangeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.impl; import java.util.function.BiPredicate; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/ClassLoaderUtil.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/ClassLoaderUtil.java index 74a1d10ae82..01bfdf39d2e 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/ClassLoaderUtil.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/ClassLoaderUtil.java @@ -1,24 +1,23 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.util; -import org.kie.dmn.model.api.GwtIncompatible; - -@GwtIncompatible public class ClassLoaderUtil { public static final boolean CAN_PLATFORM_CLASSLOAD = System.getProperty("org.graalvm.nativeimage.imagecode") == null; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Either.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Either.java index bbc7ea10af7..93fc86d37e1 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Either.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Either.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.util; import java.util.Optional; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/EvalHelper.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/EvalHelper.java index dba57f6cb8b..5b57a19b0b0 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/EvalHelper.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/EvalHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.util; import java.lang.reflect.InvocationTargetException; @@ -51,7 +53,6 @@ import org.kie.dmn.feel.lang.types.impl.ComparablePeriod; import org.kie.dmn.feel.runtime.Range; import org.kie.dmn.feel.runtime.Range.RangeBoundary; -import org.kie.dmn.model.api.GwtIncompatible; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -450,7 +451,6 @@ public static Object getValue(final Object current, final String property) { * @param field * @return */ - @GwtIncompatible public static Method getGenericAccessor(Class clazz, String field) { LOG.trace( "getGenericAccessor({}, {})", clazz, field ); @@ -477,7 +477,6 @@ public static void clearGenericAccessorCache() { * @param field * @return */ - @GwtIncompatible public static Method getAccessor(Class clazz, String field) { LOG.trace( "getAccessor({}, {})", clazz, field ); try { diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Generated.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Generated.java index 52451035983..d81ed31e148 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Generated.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Generated.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.util; import java.lang.annotation.Retention; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Msg.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Msg.java index ec6fd053033..3630110d435 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Msg.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Msg.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.util; /** diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/MsgUtil.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/MsgUtil.java index 56da5358fa3..ef3600871ad 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/MsgUtil.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/MsgUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.util; /** diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Pair.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Pair.java index 98ab9f95087..7f9411ad682 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Pair.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/Pair.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.util; /** diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/TokenTree.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/TokenTree.java index 3598b49b0f8..75b867c2ca9 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/TokenTree.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/TokenTree.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.util; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/TypeUtil.java b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/TypeUtil.java index a5e2a54f9fc..e53a4924574 100644 --- a/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/TypeUtil.java +++ b/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/TypeUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.util; import java.time.Duration; diff --git a/kie-dmn/kie-dmn-feel/src/main/resources/TemplateCompiledFEELExpression.java b/kie-dmn/kie-dmn-feel/src/main/resources/TemplateCompiledFEELExpression.java index d86422208e6..07d1bc45435 100644 --- a/kie-dmn/kie-dmn-feel/src/main/resources/TemplateCompiledFEELExpression.java +++ b/kie-dmn/kie-dmn-feel/src/main/resources/TemplateCompiledFEELExpression.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.codegen.feel11; import static org.kie.dmn.feel.codegen.feel11.CompiledFEELSemanticMappings.*; diff --git a/kie-dmn/kie-dmn-feel/src/main/resources/TemplateCompiledFEELUnaryTests.java b/kie-dmn/kie-dmn-feel/src/main/resources/TemplateCompiledFEELUnaryTests.java index c0ddea82cc9..8e3c90b2aef 100644 --- a/kie-dmn/kie-dmn-feel/src/main/resources/TemplateCompiledFEELUnaryTests.java +++ b/kie-dmn/kie-dmn-feel/src/main/resources/TemplateCompiledFEELUnaryTests.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.codegen.feel11; import org.kie.dmn.feel.codegen.feel11.CompiledCustomFEELFunction; diff --git a/kie-dmn/kie-dmn-feel/src/main/resources/org/kie/dmn/feel/DMNFeel.gwt.xml b/kie-dmn/kie-dmn-feel/src/main/resources/org/kie/dmn/feel/DMNFeel.gwt.xml deleted file mode 100644 index 98063150e66..00000000000 --- a/kie-dmn/kie-dmn-feel/src/main/resources/org/kie/dmn/feel/DMNFeel.gwt.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/CodegenTestUtil.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/CodegenTestUtil.java index 770eb401b3d..997b04f41db 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/CodegenTestUtil.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/CodegenTestUtil.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.codegen.feel11; import org.kie.dmn.feel.lang.EvaluationContext; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerTest.java index ab56019964d..32de44e2d99 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerUnaryTestsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerUnaryTestsTest.java index f15bb45070e..54a8778aa98 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerUnaryTestsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/DirectCompilerUnaryTestsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualBasicFunctionInvocationTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualBasicFunctionInvocationTest.java index a275a248e06..630951a775e 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualBasicFunctionInvocationTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualBasicFunctionInvocationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualContextTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualContextTest.java index ff4dedbb284..9588fb487ef 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualContextTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.Map; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualFilterTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualFilterTest.java index b0813e85f90..0841dfdc1f0 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualFilterTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualFilterTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualForTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualForTest.java index b5c33911cb0..bce9de2f59a 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualForTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualForTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualNamedFunctionInvocationTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualNamedFunctionInvocationTest.java index 625290ec626..ed6a1a3bb43 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualNamedFunctionInvocationTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualNamedFunctionInvocationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualQuantTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualQuantTest.java index 00f4801507d..f21d8e55744 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualQuantTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualQuantTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualUnaryTestsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualUnaryTestsTest.java index 1446b477994..bddfb273c13 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualUnaryTestsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/codegen/feel11/ManualUnaryTestsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.codegen.feel11; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/documentation/ADocFEELExamplesTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/documentation/ADocFEELExamplesTest.java index be50a2f54ee..167057b6bd1 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/documentation/ADocFEELExamplesTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/documentation/ADocFEELExamplesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.documentation; import java.io.File; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/documentation/FromSpecificationNotInAdocTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/documentation/FromSpecificationNotInAdocTest.java index b9dc392f296..0b76097c8c4 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/documentation/FromSpecificationNotInAdocTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/documentation/FromSpecificationNotInAdocTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.feel.documentation; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java index 1e4a002044e..d5bc785f513 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/AbstractJandexTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.jandex; import java.io.File; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/KieDMNFEELJandexTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/KieDMNFEELJandexTest.java index 3f86fe05348..4f866b4ef24 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/KieDMNFEELJandexTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/jandex/KieDMNFEELJandexTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.jandex; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/ast/InfixOpNodeTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/ast/InfixOpNodeTest.java index effafa87631..0d38ae29bc0 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/ast/InfixOpNodeTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/ast/InfixOpNodeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.ast; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/CompileEvaluateTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/CompileEvaluateTest.java index 1aa2fb8ce9d..d4826902590 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/CompileEvaluateTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/CompileEvaluateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.examples; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/ExamplesBaseTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/ExamplesBaseTest.java index 24e6958c5cd..9965e21cec1 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/ExamplesBaseTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/ExamplesBaseTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.examples; import org.slf4j.Logger; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/ExamplesTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/ExamplesTest.java index fbcf1d5ffb8..d70d13998a8 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/ExamplesTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/ExamplesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.examples; import org.junit.BeforeClass; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/SomeTestUtilClass.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/SomeTestUtilClass.java index eb3180d85f2..86e3eae953d 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/SomeTestUtilClass.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/examples/SomeTestUtilClass.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.examples; public class SomeTestUtilClass { diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/FEELProfileTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/FEELProfileTest.java index 8a798eb4f1e..e4685eb7cf8 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/FEELProfileTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/FEELProfileTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.lang.impl; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/JavaBackedTypeTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/JavaBackedTypeTest.java index 12f32251a6c..473b5a93aea 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/JavaBackedTypeTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/JavaBackedTypeTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.lang.impl; import java.util.Set; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/MapBackedTypeTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/MapBackedTypeTest.java index d79f9b5288e..b5500bc7295 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/MapBackedTypeTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/MapBackedTypeTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.lang.impl; import static org.kie.dmn.feel.util.DynamicTypeUtils.*; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/TemporalConstantFoldingParserTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/TemporalConstantFoldingParserTest.java index cfa8829297e..ef705a4f550 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/TemporalConstantFoldingParserTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/impl/TemporalConstantFoldingParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.impl; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/types/impl/ImmutableFPAWrappingPOJOTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/types/impl/ImmutableFPAWrappingPOJOTest.java index 1f08bf65992..02d807d4096 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/types/impl/ImmutableFPAWrappingPOJOTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/lang/types/impl/ImmutableFPAWrappingPOJOTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.lang.types.impl; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELCodeMarshallerTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELCodeMarshallerTest.java index 65e0e1fce64..c77a873b737 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELCodeMarshallerTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELCodeMarshallerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.marshaller; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELCodeMarshallerUnmarshallTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELCodeMarshallerUnmarshallTest.java index b6b7f105624..884fc43a663 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELCodeMarshallerUnmarshallTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELCodeMarshallerUnmarshallTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.marshaller; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELStringMarshallerTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELStringMarshallerTest.java index e210d802fb8..746890ec8c6 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELStringMarshallerTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELStringMarshallerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.marshaller; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELStringMarshallerUnmarshallTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELStringMarshallerUnmarshallTest.java index 609d6be430d..bd03420773b 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELStringMarshallerUnmarshallTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/marshaller/FEELStringMarshallerUnmarshallTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.marshaller; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/Address.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/Address.java index 8114a3d995d..40b55fdb275 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/Address.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/Address.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.model; import org.kie.dmn.feel.lang.FEELProperty; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/Person.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/Person.java index dc9238033fa..824fd15c0a2 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/Person.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/Person.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.model; import org.kie.dmn.feel.lang.FEELProperty; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/SupportRequest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/SupportRequest.java index 835de620014..aa6b717dce9 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/SupportRequest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/model/SupportRequest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.model; public class SupportRequest implements java.io.Serializable { diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELParserSeverityTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELParserSeverityTest.java index 5bf7900cfd7..b2327d905d2 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELParserSeverityTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELParserSeverityTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELParserTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELParserTest.java index a9a3051779f..1b65990a72c 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELParserTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELTestRig.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELTestRig.java index 7942e38b416..6a764c9f740 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELTestRig.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELTestRig.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11; import java.io.ByteArrayInputStream; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELTestRigExample.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELTestRigExample.java index 1fb5841175c..745e6039345 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELTestRigExample.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/parser/feel11/FEELTestRigExample.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.parser.feel11; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/BaseFEELCompilerTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/BaseFEELCompilerTest.java index 98e86668fbd..9dfdc8ace40 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/BaseFEELCompilerTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/BaseFEELCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/BaseFEELTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/BaseFEELTest.java index 7e1c8ceb887..505939f0da8 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/BaseFEELTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/BaseFEELTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEEL12ExtendedForLoopTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEEL12ExtendedForLoopTest.java index e79a8f3f536..5c7c37852ff 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEEL12ExtendedForLoopTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEEL12ExtendedForLoopTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEEL12ExtendedFunctionsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEEL12ExtendedFunctionsTest.java index 398f01b086a..f7b54c6c212 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEEL12ExtendedFunctionsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEEL12ExtendedFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELConditionsAndLoopsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELConditionsAndLoopsTest.java index 25e00a2c0e3..a3d210b1d18 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELConditionsAndLoopsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELConditionsAndLoopsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELContextsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELContextsTest.java index ae31cb9b9da..55173c859d6 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELContextsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELContextsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELDateTimeDurationTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELDateTimeDurationTest.java index 7d7b11c74af..42028a5b085 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELDateTimeDurationTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELDateTimeDurationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELErrorMessagesTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELErrorMessagesTest.java index c274a9a5dec..755d614f610 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELErrorMessagesTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELErrorMessagesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELEventListenerTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELEventListenerTest.java index e736199c877..4d6e6fea335 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELEventListenerTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELEventListenerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELExpressionsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELExpressionsTest.java index 1e32bc34da0..d7eaf253b76 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELExpressionsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELExpressionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELFunctionDefinitionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELFunctionDefinitionTest.java index 9cb00be951c..d2dbdf18c2c 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELFunctionDefinitionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELFunctionDefinitionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELFunctionsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELFunctionsTest.java index 84691842e82..bb709bbdb40 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELFunctionsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELListsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELListsTest.java index 99e6052b228..e8b6951fb0e 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELListsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELListsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELMathOperationsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELMathOperationsTest.java index cdb77cce9ad..0baec2d7de1 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELMathOperationsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELMathOperationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELNumberCoercionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELNumberCoercionTest.java index a6965d0cc48..6647149ac06 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELNumberCoercionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELNumberCoercionTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.feel.runtime; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELOperatorsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELOperatorsTest.java index c5cdf70dece..e609b9978ef 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELOperatorsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELOperatorsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELRangesTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELRangesTest.java index 74b20406f33..f2d533e37cb 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELRangesTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELRangesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELStaticTypeTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELStaticTypeTest.java index 980fdfaca67..d1007cb0d1a 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELStaticTypeTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELStaticTypeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELStringOperationsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELStringOperationsTest.java index 35fa15f5da4..bbbdf9891e5 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELStringOperationsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELStringOperationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELTernaryLogicTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELTernaryLogicTest.java index dbead37ebaf..c1e48175d7c 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELTernaryLogicTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELTernaryLogicTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELValuesComparisonTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELValuesComparisonTest.java index 69315af378e..706d93bd04b 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELValuesComparisonTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELValuesComparisonTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELValuesConstantsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELValuesConstantsTest.java index c81c8f57083..8d53f03cb0f 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELValuesConstantsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/FEELValuesConstantsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/KieFEELExtendedFunctionsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/KieFEELExtendedFunctionsTest.java index 89ebd6f10df..f9eaf317a49 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/KieFEELExtendedFunctionsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/KieFEELExtendedFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/TCFoldNotTCFoldTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/TCFoldNotTCFoldTest.java index 085f2ac68e7..2e369cc1313 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/TCFoldNotTCFoldTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/TCFoldNotTCFoldTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AbsFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AbsFunctionTest.java index 0f2efdc1ff7..101037556d9 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AbsFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AbsFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AllFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AllFunctionTest.java index a280b846bdf..a3fcd336f9f 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AllFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AllFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AnyFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AnyFunctionTest.java index e01a235c94d..c1dd0664653 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AnyFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AnyFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AppendFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AppendFunctionTest.java index 5ccec2dd615..1367018a23d 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AppendFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/AppendFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CeilingFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CeilingFunctionTest.java index 40e311ab6a9..0d8390cf87d 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CeilingFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CeilingFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CodeFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CodeFunctionTest.java index a7d51df2ea2..aab5d35d0e8 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CodeFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CodeFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ComposingDifferentFunctionsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ComposingDifferentFunctionsTest.java index 48670ca335b..7f6846a051e 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ComposingDifferentFunctionsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ComposingDifferentFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ConcatenateFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ConcatenateFunctionTest.java index 1d5314c7d62..f91d5427db4 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ConcatenateFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ConcatenateFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ContainsFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ContainsFunctionTest.java index 82864260857..329fd7acc15 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ContainsFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ContainsFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CountFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CountFunctionTest.java index c2199a3378e..e154ff925ef 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CountFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/CountFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DateFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DateFunctionTest.java index 4acc0f87d2a..e53b81f0187 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DateFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DateFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.DayOfWeek; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DateTimeFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DateTimeFunctionTest.java index 227891a317a..c208530e954 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DateTimeFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DateTimeFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DayOfWeekTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DayOfWeekTest.java index 6a9784b6f5a..3d81b1bfd00 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DayOfWeekTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DayOfWeekTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DayOfYearTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DayOfYearTest.java index 741d0a3643a..2dd4fba44c1 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DayOfYearTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DayOfYearTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DecimalFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DecimalFunctionTest.java index f7d511989a7..ab3b9382be3 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DecimalFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DecimalFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DistinctValuesFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DistinctValuesFunctionTest.java index 7ab4ac64780..0027c7dc13b 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DistinctValuesFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DistinctValuesFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DurationFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DurationFunctionTest.java index 2d29c250006..1dc3e5869b5 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DurationFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/DurationFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.Duration; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/EndsWithFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/EndsWithFunctionTest.java index 1e1fba8850c..9b170b168a6 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/EndsWithFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/EndsWithFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FlattenFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FlattenFunctionTest.java index 08116bd8a6a..49bd5a1fd55 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FlattenFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FlattenFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FloorFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FloorFunctionTest.java index 8707c393112..1cc3c198bd8 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FloorFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FloorFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FunctionTestUtil.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FunctionTestUtil.java index 81b08ba31e2..51281366720 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FunctionTestUtil.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/FunctionTestUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.assertj.core.api.AbstractBooleanAssert; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/IndexOfFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/IndexOfFunctionTest.java index 8da555e5d52..0154530e55e 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/IndexOfFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/IndexOfFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/InsertBeforeFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/InsertBeforeFunctionTest.java index f6a7d6d78f5..f217e0783e1 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/InsertBeforeFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/InsertBeforeFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ListContainsFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ListContainsFunctionTest.java index 7d2b8bad451..74ca0e60300 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ListContainsFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ListContainsFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MatchesFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MatchesFunctionTest.java index 4d1fb4eea86..47f8de845aa 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MatchesFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MatchesFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MaxFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MaxFunctionTest.java index 1899ef4e409..30f922aca82 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MaxFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MaxFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MeanFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MeanFunctionTest.java index d0ce887e605..ec1f1cd299b 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MeanFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MeanFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MinFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MinFunctionTest.java index 0f6fee260e5..fb177da227d 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MinFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MinFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MonthOfYearTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MonthOfYearTest.java index f7e8539851f..d8a6939e64e 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MonthOfYearTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MonthOfYearTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NotFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NotFunctionTest.java index f32e3a30576..4b9b80dc02d 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NotFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NotFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NowFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NowFunctionTest.java index b686f78577b..acbc8fdd534 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NowFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NowFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.ZonedDateTime; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NumberFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NumberFunctionTest.java index 27a4f6048b4..cceb444263c 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NumberFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/NumberFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/RemoveFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/RemoveFunctionTest.java index 4b89dc2422b..5b7fccf78f6 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/RemoveFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/RemoveFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ReplaceFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ReplaceFunctionTest.java index 6c5018dda42..c4cfe15ea04 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ReplaceFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ReplaceFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ReverseFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ReverseFunctionTest.java index 362a490a7da..4c1bf3084b8 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ReverseFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ReverseFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SortFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SortFunctionTest.java index 39f42d1c9cc..50ad57f9744 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SortFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SortFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StartsWithFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StartsWithFunctionTest.java index 0dfbc264e87..27635fc039d 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StartsWithFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StartsWithFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringFunctionTest.java index df319a095b2..dce9041aeea 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringLengthFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringLengthFunctionTest.java index 1ac92e29481..47a2202334c 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringLengthFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringLengthFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringLowerCaseFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringLowerCaseFunctionTest.java index 489f87efdc5..c5889439eb0 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringLowerCaseFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringLowerCaseFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringUpperCaseFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringUpperCaseFunctionTest.java index 0e96fb5051a..ac70a911b87 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringUpperCaseFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/StringUpperCaseFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SublistFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SublistFunctionTest.java index 588c3a311b1..7df6f65a374 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SublistFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SublistFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringAfterFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringAfterFunctionTest.java index 9a3a1969b54..7abae3f499e 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringAfterFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringAfterFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringBeforeFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringBeforeFunctionTest.java index c1346b70772..d47c8ed8877 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringBeforeFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringBeforeFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringFunctionTest.java index 09df2afb785..81f8f1aba37 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SubstringFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SumFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SumFunctionTest.java index c1af3e3721e..fc146814ccd 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SumFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/SumFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/TimeFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/TimeFunctionTest.java index 8c79cc39479..9efa20d4105 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/TimeFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/TimeFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/TodayFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/TodayFunctionTest.java index 146feb8581e..ff1624f3d38 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/TodayFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/TodayFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/UnionFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/UnionFunctionTest.java index 22a093ebeda..e04edb6866b 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/UnionFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/UnionFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/WeekOfYearTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/WeekOfYearTest.java index 042716aef1b..97489485097 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/WeekOfYearTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/WeekOfYearTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/YearsAndMonthsFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/YearsAndMonthsFunctionTest.java index e4c500785ee..abfd318aeff 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/YearsAndMonthsFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/YearsAndMonthsFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions; import java.time.Instant; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/extended/RangeFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/extended/RangeFunctionTest.java index 82b69cc1a32..f3b6c0df873 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/extended/RangeFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/extended/RangeFunctionTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.runtime.functions.extended; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/AfterFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/AfterFunctionTest.java index 1fca8f07c76..9944383934b 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/AfterFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/AfterFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/BeforeFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/BeforeFunctionTest.java index ff1c42d94d6..388889028a5 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/BeforeFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/BeforeFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/CoincidesFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/CoincidesFunctionTest.java index 0a97ff10df1..2bdb9c29276 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/CoincidesFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/CoincidesFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/DuringFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/DuringFunctionTest.java index 950f68236ae..be65116e078 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/DuringFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/DuringFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FEELTemporalFunctionsTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FEELTemporalFunctionsTest.java index 4eed2c3607b..5c38f18c79a 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FEELTemporalFunctionsTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FEELTemporalFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FinishedByFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FinishedByFunctionTest.java index 35fb969e664..13495ad48b1 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FinishedByFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FinishedByFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FinishesFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FinishesFunctionTest.java index e20642a4d07..45a980cd46b 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FinishesFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FinishesFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FormulasTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FormulasTest.java index ce3bbc096a6..624bf252e27 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FormulasTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/FormulasTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/IncludesFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/IncludesFunctionTest.java index 60af1ec8ffb..b238e0d816d 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/IncludesFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/IncludesFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/MeetsFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/MeetsFunctionTest.java index 35dc2b6d480..8e4b894f1e1 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/MeetsFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/MeetsFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/MetByFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/MetByFunctionTest.java index 00401d9fbdd..ae09d233914 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/MetByFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/MetByFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsFunctionTest.java index 14d49dc0e86..d9eca7f6345 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/OverlapsFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/StartedByFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/StartedByFunctionTest.java index 7b010a493ae..9286ea0b0c9 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/StartedByFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/StartedByFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/StartsFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/StartsFunctionTest.java index dce6b4a830c..984558963e9 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/StartsFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/interval/StartsFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.interval; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/CountFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/CountFunctionTest.java index 0a3e458d49c..f3e930b57c3 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/CountFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/CountFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MaxFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MaxFunctionTest.java index bae55ddb1dc..5465582c733 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MaxFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MaxFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MeanFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MeanFunctionTest.java index 421712a95ab..fa077a37f80 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MeanFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MeanFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MedianFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MedianFunctionTest.java index 6c20de6113a..1a2e1519e07 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MedianFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MedianFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MinFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MinFunctionTest.java index 0f103f4e7cd..383a642d848 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MinFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/MinFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/ModeFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/ModeFunctionTest.java index 442405b17ff..b09c36617c2 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/ModeFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/ModeFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAllFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAllFunctionTest.java index a36da6f990a..294bb9f4ec6 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAllFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAllFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAnyFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAnyFunctionTest.java index 217b19c70d5..59f3d1aa95c 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAnyFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/NNAnyFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/StddevFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/StddevFunctionTest.java index a17dba29384..3685c065b7a 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/StddevFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/StddevFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/SumFunctionTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/SumFunctionTest.java index e40cec94953..19197b15e5d 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/SumFunctionTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/twovaluelogic/SumFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.functions.twovaluelogic; import org.junit.Before; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/impl/RangeImplTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/impl/RangeImplTest.java index ea19f90e541..3e4e252ecf9 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/impl/RangeImplTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/impl/RangeImplTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.runtime.impl; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/util/DynamicTypeUtils.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/util/DynamicTypeUtils.java index 88f814f86db..c0f568e14e0 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/util/DynamicTypeUtils.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/util/DynamicTypeUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.feel.util; import java.util.AbstractMap; diff --git a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/util/EvalHelperTest.java b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/util/EvalHelperTest.java index b027cb4cace..259e9c32c23 100644 --- a/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/util/EvalHelperTest.java +++ b/kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/util/EvalHelperTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.feel.util; import java.lang.reflect.Method; diff --git a/kie-dmn/kie-dmn-feel/src/test/resources/logback.xml b/kie-dmn/kie-dmn-feel/src/test/resources/logback.xml index 5bf4a43528b..3d747c98aa0 100644 --- a/kie-dmn/kie-dmn-feel/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-feel/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-legacy-tests/pom.xml b/kie-dmn/kie-dmn-legacy-tests/pom.xml index e525713c19d..9b630cd5d81 100644 --- a/kie-dmn/kie-dmn-legacy-tests/pom.xml +++ b/kie-dmn/kie-dmn-legacy-tests/pom.xml @@ -1,13 +1,37 @@ + 4.0.0 org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-legacy-tests KIE :: Decision Model Notation :: Legacy tests (previous DMN versions) + + + org.kie.dmn.legacytests + diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/BaseDMN1_1VariantTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/BaseDMN1_1VariantTest.java index 7725bdb9cbd..d15906127ea 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/BaseDMN1_1VariantTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/BaseDMN1_1VariantTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1; import org.junit.runners.Parameterized; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNAssemblerTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNAssemblerTest.java index c8fd95995c1..8b67e940040 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNAssemblerTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNAssemblerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1; import java.time.OffsetTime; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNCompilerTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNCompilerTest.java index 19eaf0d7ac2..d816a7b840b 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNCompilerTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNCompilerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableHitPolicyTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableHitPolicyTest.java index de6f67557e5..87f98e5b3aa 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableHitPolicyTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableHitPolicyTest.java @@ -1,19 +1,21 @@ -/* -* Copyright 2017 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ - +/** + * 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. + */ package org.kie.dmn.legacy.tests.core.v1_1; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableRuntimeTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableRuntimeTest.java index 5c91ab692b7..ebed0c95e4b 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableRuntimeTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableRuntimeTest.java @@ -1,19 +1,21 @@ -/* -* Copyright 2016 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ - +/** + * 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. + */ package org.kie.dmn.legacy.tests.core.v1_1; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableWithSymbolsTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableWithSymbolsTest.java index 271811c1875..60c55d04f4c 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableWithSymbolsTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNDecisionTableWithSymbolsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNInputRuntimeTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNInputRuntimeTest.java index 74a6c90a681..b1417867aab 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNInputRuntimeTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNInputRuntimeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNRuntimeTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNRuntimeTest.java index 0ea3c2f681e..62177cdb051 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNRuntimeTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/DMNRuntimeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/FlightRebookingTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/FlightRebookingTest.java index 2bf82a6634b..fd5488c19f0 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/FlightRebookingTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/FlightRebookingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/OnlineDatingTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/OnlineDatingTest.java index f31637f4b27..072df26ce6b 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/OnlineDatingTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/OnlineDatingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/VacationDaysTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/VacationDaysTest.java index 0a2f4bb7127..96362b9bd57 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/VacationDaysTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/VacationDaysTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/decisionservices/DMNDecisionServicesTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/decisionservices/DMNDecisionServicesTest.java index 2ae53af6f75..2832ad4c96b 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/decisionservices/DMNDecisionServicesTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/decisionservices/DMNDecisionServicesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1.decisionservices; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/imports/ImportsTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/imports/ImportsTest.java index 269581b5af6..389b13e27c9 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/imports/ImportsTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/core/v1_1/imports/ImportsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.core.v1_1.imports; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorArtifactTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorArtifactTest.java index daade336e7e..4a620c6e467 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorArtifactTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorArtifactTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorAuthorityRequirementTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorAuthorityRequirementTest.java index edf7964d8b5..7cb72203669 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorAuthorityRequirementTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorAuthorityRequirementTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -39,7 +41,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_AUTH_ReaderInput() throws IOExce final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -49,7 +51,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_AUTH_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_MISSING_DEPENDENCY_REQ_AUTH.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -60,7 +62,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_AUTH_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_MISSING_DEPENDENCY_REQ_AUTH"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -70,7 +72,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_DEC_ReaderInput() throws IOExcep final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -80,7 +82,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_DEC_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_MISSING_DEPENDENCY_REQ_DEC.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -91,7 +93,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_DEC_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_MISSING_DEPENDENCY_REQ_DEC"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -101,7 +103,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_INPUT_ReaderInput() throws IOExc final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -111,7 +113,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_INPUT_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_MISSING_DEPENDENCY_REQ_INPUT.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -122,7 +124,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_INPUT_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_MISSING_DEPENDENCY_REQ_INPUT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -132,7 +134,7 @@ public void testAUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE_ReaderInput() throws IO final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -142,7 +144,7 @@ public void testAUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -153,7 +155,7 @@ public void testAUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -163,7 +165,7 @@ public void testAUTHREQ_DEP_REQ_DEC_NOT_DECISION_ReaderInput() throws IOExceptio final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -173,7 +175,7 @@ public void testAUTHREQ_DEP_REQ_DEC_NOT_DECISION_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_DEP_REQ_DEC_NOT_DECISION.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -184,7 +186,7 @@ public void testAUTHREQ_DEP_REQ_DEC_NOT_DECISION_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_DEP_REQ_DEC_NOT_DECISION"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -194,7 +196,7 @@ public void testAUTHREQ_DEP_REQ_INPUT_NOT_INPUT_ReaderInput() throws IOException final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -204,7 +206,7 @@ public void testAUTHREQ_DEP_REQ_INPUT_NOT_INPUT_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_DEP_REQ_INPUT_NOT_INPUT.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -215,7 +217,7 @@ public void testAUTHREQ_DEP_REQ_INPUT_NOT_INPUT_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_DEP_REQ_INPUT_NOT_INPUT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorBusinessContextTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorBusinessContextTest.java index b6602f28192..d54b05fb05e 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorBusinessContextTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorBusinessContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorBusinessKnowledgeModelTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorBusinessKnowledgeModelTest.java index 0c8622f4378..f79f6366535 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorBusinessKnowledgeModelTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorBusinessKnowledgeModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -39,7 +41,7 @@ public void testBKM_MISSING_VAR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } } @@ -49,7 +51,7 @@ public void testBKM_MISSING_VAR_FileInput() { final List validate = validator.validate( getFile("businessknowledgemodel/BKM_MISSING_VAR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -60,7 +62,7 @@ public void testBKM_MISSING_VAR_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "BKM_MISSING_VAR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -101,7 +103,7 @@ public void testBKM_MISSING_EXPR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).as(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } } @@ -111,7 +113,7 @@ public void testBKM_MISSING_EXPR_FileInput() { final List validate = validator.validate( getFile("businessknowledgemodel/BKM_MISSING_EXPR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).as(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } @@ -122,7 +124,7 @@ public void testBKM_MISSING_EXPR_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "BKM_MISSING_EXPR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).as(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } } diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorContextTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorContextTest.java index 068bcb333a3..77af5a0e498 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorContextTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDMNElementReferenceTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDMNElementReferenceTest.java index 7cfb6740362..8b8dbedb961 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDMNElementReferenceTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDMNElementReferenceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -62,7 +64,7 @@ public void testELEMREF_NOHASH_DefinitionsInput() { } private void assertValiadationResult(List validationMessages) { - assertThat(validationMessages).as(ValidatorUtil.formatMessages(validationMessages)).hasSize(3); + assertThat(validationMessages).as(ValidatorUtil.formatMessages(validationMessages)).hasSize(4); assertThat(validationMessages.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validationMessages.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_HREF_SYNTAX))).isTrue(); assertThat(validationMessages.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDecisionTableTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDecisionTableTest.java index 45b5faab367..e30c8b73bbe 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDecisionTableTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDecisionTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -40,7 +42,7 @@ public void testDTABLE_EMPTY_ENTRY_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); } } @@ -50,7 +52,7 @@ public void testDTABLE_EMPTY_ENTRY_FileInput() { final List validate = validator.validate( getFile("DTABLE_EMPTY_ENTRY.dmn"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); } @@ -61,7 +63,7 @@ public void testDTABLE_EMPTY_ENTRY_DefintionsInput() { "https://github.com/kiegroup/kie-dmn", "DTABLE_PRIORITY_MISSING_OUTVALS"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); } @@ -69,7 +71,7 @@ public void testDTABLE_EMPTY_ENTRY_DefintionsInput() { public void testDTABLE_MULTIPLEOUT_NAME_ReaderInput() throws IOException { try (final Reader reader = getReader( "DTABLE_MULTIPLEOUTPUT_WRONG_OUTPUT.dmn" )) { List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(5); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(6); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); @@ -79,7 +81,7 @@ public void testDTABLE_MULTIPLEOUT_NAME_ReaderInput() throws IOException { @Test public void testDTABLE_MULTIPLEOUT_NAME_FileInput() { List validate = validator.validate( getFile( "DTABLE_MULTIPLEOUTPUT_WRONG_OUTPUT.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(5); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(6); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); @@ -92,7 +94,7 @@ public void testDTABLE_MULTIPLEOUT_NAME_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "DTABLE_MULTIPLEOUTPUT_WRONG_OUTPUT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(5); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(6); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDecisionTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDecisionTest.java index 528cff7cc77..6962e40fdd7 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDecisionTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorDecisionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -39,7 +41,7 @@ public void testDECISION_MISSING_EXPR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).as(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } } @@ -49,7 +51,7 @@ public void testDECISION_MISSING_EXPR_FileInput() { final List validate = validator.validate( getFile("decision/DECISION_MISSING_EXPR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).as(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } @@ -60,7 +62,7 @@ public void testDECISION_MISSING_EXPR_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "DECISION_MISSING_EXPR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).as(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } @@ -70,7 +72,7 @@ public void testDECISION_MISSING_VAR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } } @@ -80,7 +82,7 @@ public void testDECISION_MISSING_VAR_FileInput() { final List validate = validator.validate( getFile("decision/DECISION_MISSING_VAR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -91,7 +93,7 @@ public void testDECISION_MISSING_VAR_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "DECISION_MISSING_VAR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -99,7 +101,7 @@ public void testDECISION_MISSING_VAR_DefinitionsInput() { public void testDECISION_MISSING_VARbis_ReaderInput() throws IOException { try (final Reader reader = getReader("decision/DECISION_MISSING_VARbis.dmn")) { final List validate = validator.validate(reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } } @@ -108,7 +110,7 @@ public void testDECISION_MISSING_VARbis_ReaderInput() throws IOException { public void testDECISION_MISSING_VARbis_FileInput() { final List validate = validator.validate( getFile("decision/DECISION_MISSING_VARbis.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -119,7 +121,7 @@ public void testDECISION_MISSING_VARbis_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "DECISION_MISSING_VARbis"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorImportTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorImportTest.java index 043a3d6896c..b518b9e5db1 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorImportTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorImportTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorInformationRequirementTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorInformationRequirementTest.java index 6dde5b9f776..82f4c0b7397 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorInformationRequirementTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorInformationRequirementTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -39,7 +41,7 @@ public void testINFOREQ_MISSING_INPUT_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -50,7 +52,7 @@ public void testINFOREQ_MISSING_INPUT_FileInput() { final List validate = validator.validate( getFile( "informationrequirement/INFOREQ_MISSING_INPUT.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -62,7 +64,7 @@ public void testINFOREQ_MISSING_INPUT_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "INFOREQ_MISSING_INPUT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -73,7 +75,7 @@ public void testINFOREQ_INPUT_NOT_INPUTDATA_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -84,7 +86,7 @@ public void testINFOREQ_INPUT_NOT_INPUTDATA_FileInput() { final List validate = validator.validate( getFile( "informationrequirement/INFOREQ_INPUT_NOT_INPUTDATA.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -96,7 +98,7 @@ public void testINFOREQ_INPUT_NOT_INPUTDATA_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "INFOREQ_INPUT_NOT_INPUTDATA"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -107,7 +109,7 @@ public void testINFOREQ_MISSING_DECISION_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -118,7 +120,7 @@ public void testINFOREQ_MISSING_DECISION_FileInput() { final List validate = validator.validate( getFile( "informationrequirement/INFOREQ_MISSING_DECISION.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -130,7 +132,7 @@ public void testINFOREQ_MISSING_DECISION_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "INFOREQ_MISSING_DECISION"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -141,7 +143,7 @@ public void testINFOREQ_DECISION_NOT_DECISION_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -152,7 +154,7 @@ public void testINFOREQ_DECISION_NOT_DECISION_FileInput() { final List validate = validator.validate( getFile( "informationrequirement/INFOREQ_DECISION_NOT_DECISION.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -164,7 +166,7 @@ public void testINFOREQ_DECISION_NOT_DECISION_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "INFOREQ_DECISION_NOT_DECISION"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorInputDataTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorInputDataTest.java index b90c7ea2634..1ff99e6bfc4 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorInputDataTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorInputDataTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -39,7 +41,7 @@ public void testINPUT_MISSING_VAR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } } @@ -49,7 +51,7 @@ public void testINPUT_MISSING_VAR_FileInput() { final List validate = validator.validate( getFile("inputdata/INPUTDATA_MISSING_VAR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -60,7 +62,7 @@ public void testINPUT_MISSING_VAR_DefintionsInput() { "https://github.com/kiegroup/kie-dmn", "INPUTDATA_MISSING_VAR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorKnowledgeRequirementTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorKnowledgeRequirementTest.java index a6d9fdb5a13..ba6409c8153 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorKnowledgeRequirementTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorKnowledgeRequirementTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -39,7 +41,7 @@ public void testKNOWREQ_MISSING_BKM_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -50,7 +52,7 @@ public void testKNOWREQ_MISSING_BKM_FileInput() { final List validate = validator.validate( getFile( "knowledgerequirement/KNOWREQ_MISSING_BKM.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -62,7 +64,7 @@ public void testKNOWREQ_MISSING_BKM_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "KNOWREQ_MISSING_BKM"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -73,7 +75,7 @@ public void testKNOWREQ_REQ_DECISION_NOT_BKM_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -84,7 +86,7 @@ public void testKNOWREQ_REQ_DECISION_NOT_BKM_FileInput() { final List validate = validator.validate( getFile( "knowledgerequirement/KNOWREQ_REQ_DECISION_NOT_BKM.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -96,7 +98,7 @@ public void testKNOWREQ_REQ_DECISION_NOT_BKM_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "KNOWREQ_REQ_DECISION_NOT_BKM"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorKnowledgeSourceTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorKnowledgeSourceTest.java index 45bfd498c42..7e96e2a0640 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorKnowledgeSourceTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorKnowledgeSourceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -70,7 +72,7 @@ public void testKNOW_SOURCE_OWNER_NOT_ORG_UNIT_ReaderInput() throws IOException final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -80,7 +82,7 @@ public void testKNOW_SOURCE_OWNER_NOT_ORG_UNIT_FileInput() { final List validate = validator.validate( getFile( "knowledgesource/KNOW_SOURCE_OWNER_NOT_ORG_UNIT.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -91,7 +93,7 @@ public void testKNOW_SOURCE_OWNER_NOT_ORG_UNIT_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "KNOW_SOURCE_OWNER_NOT_ORG_UNIT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorTest.java index ed6f7eb859d..c03b440479f 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.File; @@ -127,7 +129,7 @@ public void testNAME_IS_VALID() { @Test public void testNAME_INVALID_empty_name() { List validate = validator.validate( getReader( "DROOLS-1447.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(5); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.FAILED_XML_VALIDATION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.VARIABLE_NAME_MISMATCH))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME) && p.getSourceId().equals("_5e43b55c-888e-443c-b1b9-80e4aa6746bd"))).isTrue(); @@ -189,7 +191,7 @@ public void testITEMCOMP_DUPLICATED() { @Test public void testITEMDEF_NOT_UNIQUE() { List validate = validator.validate( getReader( "ITEMDEF_NOT_UNIQUE.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.DUPLICATED_ITEM_DEF))).isTrue(); } @@ -261,7 +263,7 @@ public void testUNKNOWN_VARIABLE() { @Test public void testVALIDATION() { List validate = validator.validate( getReader( "validation.dmn" ), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(5); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(7); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorTypeRefTest.java b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorTypeRefTest.java index e45d0810bb4..38e9f322478 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorTypeRefTest.java +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/java/org/kie/dmn/legacy/tests/validation/v1_1/ValidatorTypeRefTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.legacy.tests.validation.v1_1; import java.io.IOException; @@ -68,7 +70,7 @@ public void testTYPEREF_NO_NS_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.FAILED_XML_VALIDATION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -79,7 +81,7 @@ public void testTYPEREF_NO_NS_FileInput() { final List validate = validator.validate( getFile("typeref/TYPEREF_NO_NS.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.FAILED_XML_VALIDATION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -89,7 +91,7 @@ public void testTYPEREF_NO_NS_DefinitionsInput() { final List validate = validator.validate( getDefinitions("typeref/TYPEREF_NO_NS.dmn", "https://github.com/kiegroup/kie-dmn", "TYPEREF_NO_NS"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -99,7 +101,7 @@ public void testTYPEREF_NOT_FEEL_NOT_DEF_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -110,7 +112,7 @@ public void testTYPEREF_NOT_FEEL_NOT_DEF_FileInput() { final List validate = validator.validate( getFile("typeref/TYPEREF_NOT_FEEL_NOT_DEF.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -120,7 +122,7 @@ public void testTYPEREF_NOT_FEEL_NOT_DEF_DefinitionsInput() { final List validate = validator.validate( getDefinitions("typeref/TYPEREF_NOT_FEEL_NOT_DEF.dmn", "https://github.com/kiegroup/kie-dmn", "TYPEREF_NOT_FEEL_NOT_DEF"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } diff --git a/kie-dmn/kie-dmn-legacy-tests/src/test/resources/logback.xml b/kie-dmn/kie-dmn-legacy-tests/src/test/resources/logback.xml index 61a7461ddff..1cb5be620eb 100644 --- a/kie-dmn/kie-dmn-legacy-tests/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-legacy-tests/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-model/pom.xml b/kie-dmn/kie-dmn-model/pom.xml index 524d16d569d..82cc8414c1e 100644 --- a/kie-dmn/kie-dmn-model/pom.xml +++ b/kie-dmn/kie-dmn-model/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ kie-dmn org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-model diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Artifact.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Artifact.java index bc00ee2c069..340072989f6 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Artifact.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Artifact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Association.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Association.java index 63f4045993b..36de5140d01 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Association.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Association.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Association extends Artifact { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/AssociationDirection.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/AssociationDirection.java index 922ef3a89af..9705922a8fd 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/AssociationDirection.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/AssociationDirection.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.api; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/AuthorityRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/AuthorityRequirement.java index 1a24f5c7487..b48dd7d95b8 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/AuthorityRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/AuthorityRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface AuthorityRequirement extends DMNElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Binding.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Binding.java index 416b26d8602..da1b5973ced 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Binding.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Binding.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Binding extends DMNModelInstrumentedBase { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BuiltinAggregator.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BuiltinAggregator.java index 3e4d76d4daf..1acabed2ae4 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BuiltinAggregator.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BuiltinAggregator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.api; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BusinessContextElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BusinessContextElement.java index 35717d573f7..323c1fee8bc 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BusinessContextElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BusinessContextElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface BusinessContextElement extends NamedElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BusinessKnowledgeModel.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BusinessKnowledgeModel.java index 8332ef21b6a..7955fa5d0ec 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BusinessKnowledgeModel.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/BusinessKnowledgeModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ChildExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ChildExpression.java index 208f1503982..59f1f817bb2 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ChildExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ChildExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface ChildExpression { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Conditional.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Conditional.java index f5e9365abe5..98a3bfc8c48 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Conditional.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Conditional.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Conditional extends Expression { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Context.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Context.java index 23bc57b7382..da9e2d81844 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Context.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Context.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ContextEntry.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ContextEntry.java index 5298e140639..9c5fbdbe151 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ContextEntry.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ContextEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface ContextEntry extends DMNElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNElement.java index eed9df6fade..5d32a168465 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNElementReference.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNElementReference.java index ae3045f2dad..2939e9ff8ea 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNElementReference.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNElementReference.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface DMNElementReference extends DMNModelInstrumentedBase { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNModelInstrumentedBase.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNModelInstrumentedBase.java index ce7ceec64a1..48893120657 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNModelInstrumentedBase.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DMNModelInstrumentedBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.HashSet; @@ -34,10 +36,8 @@ public interface DMNModelInstrumentedBase { Optional getPrefixForNamespaceURI(String namespaceURI); - @GwtIncompatible void setAdditionalAttributes(Map additionalAttributes); - @GwtIncompatible Map getAdditionalAttributes(); DMNModelInstrumentedBase getParent(); @@ -54,10 +54,8 @@ public interface DMNModelInstrumentedBase { String getURIFEEL(); - @GwtIncompatible void setLocation(Location location); - @GwtIncompatible Location getLocation(); /** diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DRGElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DRGElement.java index 367461467b7..7b1011effe3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DRGElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DRGElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface DRGElement extends NamedElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Decision.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Decision.java index 60c2d3029d2..53726d72e5c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Decision.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Decision.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionRule.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionRule.java index 734373991c8..7f56f5470d7 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionRule.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionRule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionService.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionService.java index fe96bf2a4a4..28ac16f06be 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionService.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionTable.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionTable.java index f8ae0463471..9635ea7b555 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionTable.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionTable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionTableOrientation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionTableOrientation.java index eead2544589..864ed75b211 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionTableOrientation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/DecisionTableOrientation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public enum DecisionTableOrientation { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Definitions.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Definitions.java index 3d64ece1e8b..6da01eb9e6b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Definitions.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Definitions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ElementCollection.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ElementCollection.java index f304559cca6..f018a786850 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ElementCollection.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ElementCollection.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Every.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Every.java index 29fb624f865..41923ff19eb 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Every.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Every.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Every extends Quantified { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Expression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Expression.java index 51bee7553eb..5b904f733af 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Expression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Expression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import javax.xml.namespace.QName; @@ -24,14 +26,12 @@ public interface Expression extends DMNElement { * Internal Model: this is using QName as per DMN v1.1 in order to maintain internal compatibility with the engine * DMN13-140/DMN13-168: this is optional attribute. */ - @GwtIncompatible QName getTypeRef(); /** * Internal Model: this is using QName as per DMN v1.1 in order to maintain internal compatibility with the engine * DMN13-140/DMN13-168: this is optional attribute. */ - @GwtIncompatible void setTypeRef(QName value); } diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Filter.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Filter.java index f0937d349c7..fc256f4c239 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Filter.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Filter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Filter extends Expression { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/For.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/For.java index 7be93505683..c2a876f3729 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/For.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/For.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface For extends Iterator { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionDefinition.java index 17c2d8dc247..c73f4a284e6 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionItem.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionItem.java index 51b67a1cccb..1fc34c41be8 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionItem.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; @@ -30,10 +32,8 @@ public interface FunctionItem extends DMNElement { /** * for consistency in the modeling, use QName */ - @GwtIncompatible QName getOutputTypeRef(); - @GwtIncompatible void setOutputTypeRef(QName value); } diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionKind.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionKind.java index 0829e36a94b..8860b250e83 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionKind.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/FunctionKind.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public enum FunctionKind { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Group.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Group.java index 51861bea284..ac9226b456c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Group.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Group.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.model.api; /** diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/GwtIncompatible.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/GwtIncompatible.java deleted file mode 100644 index 8ee7c389c93..00000000000 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/GwtIncompatible.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ -package org.kie.dmn.model.api; - -import java.lang.annotation.Documented; -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * For internal use for marking DMN classes that are not compatible with GWT. - */ -@Retention(RetentionPolicy.CLASS) -@Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD}) -@Documented -public @interface GwtIncompatible { - String value() default ""; -} diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/HitPolicy.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/HitPolicy.java index cab11b2774b..cba3b0bf326 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/HitPolicy.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/HitPolicy.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.api; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Import.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Import.java index 998723a9696..011a9748c5e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Import.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Import.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Import extends NamedElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ImportedValues.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ImportedValues.java index 333ccd745b9..c1c4aeab961 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ImportedValues.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ImportedValues.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface ImportedValues extends Import { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InformationItem.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InformationItem.java index 5f1aa6d3e00..1241fbab6f5 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InformationItem.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InformationItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import javax.xml.namespace.QName; @@ -23,13 +25,11 @@ public interface InformationItem extends NamedElement { /** * Internal Model: this is using QName as per DMN v1.1 in order to maintain internal compatibility with the engine */ - @GwtIncompatible QName getTypeRef(); /** * Internal Model: this is using QName as per DMN v1.1 in order to maintain internal compatibility with the engine */ - @GwtIncompatible void setTypeRef(QName value); } diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InformationRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InformationRequirement.java index bf3c607036c..c06123826f4 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InformationRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InformationRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface InformationRequirement extends DMNElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InputClause.java index 02aeaac5ea2..006f462a154 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface InputClause extends DMNElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InputData.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InputData.java index ebbe6604af0..6e2cf03da02 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InputData.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/InputData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface InputData extends DRGElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Invocable.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Invocable.java index 54460721796..b5a1cd62f8d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Invocable.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Invocable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.model.api; /** diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Invocation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Invocation.java index 14d227281fa..6c58b987f63 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Invocation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Invocation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ItemDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ItemDefinition.java index 69c6f7a0fc4..6c8774399e2 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ItemDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/ItemDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; @@ -25,13 +27,11 @@ public interface ItemDefinition extends NamedElement { /** * Internal Model: this is using QName as per DMN v1.1 in order to maintain internal compatibility with the engine */ - @GwtIncompatible QName getTypeRef(); /** * Internal Model: this is using QName as per DMN v1.1 in order to maintain internal compatibility with the engine */ - @GwtIncompatible void setTypeRef(QName value); UnaryTests getAllowedValues(); diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Iterator.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Iterator.java index c4f7990dd1d..0dca08080c6 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Iterator.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Iterator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Iterator extends Expression { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/KnowledgeRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/KnowledgeRequirement.java index 0bcc3539325..6198ebd5a6f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/KnowledgeRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/KnowledgeRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface KnowledgeRequirement extends DMNElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/KnowledgeSource.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/KnowledgeSource.java index eeb386c4c7f..5a58990a739 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/KnowledgeSource.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/KnowledgeSource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/List.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/List.java index d2119c9998b..47241a4ac89 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/List.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/List.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface List extends Expression { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/LiteralExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/LiteralExpression.java index 930f113c6b3..0696ff1bc7e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/LiteralExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/LiteralExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface LiteralExpression extends Expression { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/NamedElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/NamedElement.java index a093b7ce3d0..ac455130ace 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/NamedElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/NamedElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface NamedElement extends DMNElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/NamespaceConsts.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/NamespaceConsts.java index e55afdf3030..e7f2f022d27 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/NamespaceConsts.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/NamespaceConsts.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/OrganizationUnit.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/OrganizationUnit.java index 2ea333c02af..13753a1f4fa 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/OrganizationUnit.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/OrganizationUnit.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/OutputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/OutputClause.java index e47677213bf..17bb638aff2 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/OutputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/OutputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import javax.xml.namespace.QName; @@ -32,10 +34,8 @@ public interface OutputClause extends DMNElement { void setName(String value); - @GwtIncompatible QName getTypeRef(); - @GwtIncompatible void setTypeRef(QName value); } diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/PerformanceIndicator.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/PerformanceIndicator.java index 0d0f9f8220a..abb152de4d8 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/PerformanceIndicator.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/PerformanceIndicator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Quantified.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Quantified.java index fe879d58259..75cd211a0a3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Quantified.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Quantified.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Quantified extends Iterator { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Relation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Relation.java index ec9781ba095..29dcde81311 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Relation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Relation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Relation extends Expression { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RowLocation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RowLocation.java index 3d7e3d78f18..5cb5f2ce4a3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RowLocation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RowLocation.java @@ -1,24 +1,25 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import javax.xml.stream.Location; -@GwtIncompatible public class RowLocation implements Location { private int lineNumber; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RuleAnnotation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RuleAnnotation.java index 6acc60d3c40..302074bf553 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RuleAnnotation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RuleAnnotation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface RuleAnnotation extends DMNModelInstrumentedBase { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RuleAnnotationClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RuleAnnotationClause.java index 2c47ba1ab8a..404e6231305 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RuleAnnotationClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/RuleAnnotationClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface RuleAnnotationClause extends DMNModelInstrumentedBase { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Some.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Some.java index 4353ccc2768..4de1dc9fb0d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Some.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Some.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface Some extends Quantified { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/TextAnnotation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/TextAnnotation.java index 9935cd07f38..41dcc1044b3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/TextAnnotation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/TextAnnotation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface TextAnnotation extends Artifact { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/TypedChildExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/TypedChildExpression.java index 658dc4b8aca..f1f06f19737 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/TypedChildExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/TypedChildExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; public interface TypedChildExpression extends ChildExpression { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/UnaryTests.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/UnaryTests.java index 9a3d124abdd..d4006ecbf7b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/UnaryTests.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/UnaryTests.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import javax.xml.namespace.QName; @@ -29,13 +31,11 @@ public interface UnaryTests extends Expression { void setExpressionLanguage(String value); @Override - @GwtIncompatible default QName getTypeRef() { throw new UnsupportedOperationException("An instance of UnaryTests inherits an optional typeRef from Expression, which must not be used"); } @Override - @GwtIncompatible default void setTypeRef(QName value) { throw new UnsupportedOperationException("An instance of UnaryTests inherits an optional typeRef from Expression, which must not be used"); } diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/AlignmentKind.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/AlignmentKind.java index 17e884478af..ed0ae5e1069 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/AlignmentKind.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/AlignmentKind.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; public enum AlignmentKind { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Bounds.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Bounds.java index a5ee597e684..dd86c52290d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Bounds.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Bounds.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import org.kie.dmn.model.api.DMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Color.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Color.java index 050a2413824..039d951c5b0 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Color.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Color.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import org.kie.dmn.model.api.DMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDI.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDI.java index 7a94df7f6fd..c27e58e8c35 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDI.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDI.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDecisionServiceDividerLine.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDecisionServiceDividerLine.java index 88ecd5bd295..9ad5b87f337 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDecisionServiceDividerLine.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDecisionServiceDividerLine.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; public interface DMNDecisionServiceDividerLine extends Edge { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDiagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDiagram.java index e70f011bd4f..c6072e5a397 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDiagram.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNDiagram.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNEdge.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNEdge.java index 264a899dd2b..1769f6deb68 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNEdge.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNEdge.java @@ -1,26 +1,25 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import javax.xml.namespace.QName; -import org.kie.dmn.model.api.GwtIncompatible; - -@GwtIncompatible public interface DMNEdge extends Edge { public DMNLabel getDMNLabel(); diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNLabel.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNLabel.java index bb81c322768..e578abd1104 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNLabel.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNLabel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; public interface DMNLabel extends Shape { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNShape.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNShape.java index 1f8225cc99a..0df7f66298b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNShape.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNShape.java @@ -1,26 +1,25 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import javax.xml.namespace.QName; -import org.kie.dmn.model.api.GwtIncompatible; - -@GwtIncompatible public interface DMNShape extends Shape { public DMNLabel getDMNLabel(); diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNStyle.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNStyle.java index fbe89eb535d..92351298d16 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNStyle.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DMNStyle.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; public interface DMNStyle extends Style { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Diagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Diagram.java index 94d73baeeb2..0279c36148a 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Diagram.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Diagram.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; public interface Diagram extends DiagramElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DiagramElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DiagramElement.java index e75d640376d..ea4bd078853 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DiagramElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/DiagramElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Dimension.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Dimension.java index 077273a9573..a6d9a65e795 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Dimension.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Dimension.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import org.kie.dmn.model.api.DMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Edge.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Edge.java index bf5a3b1ddb5..b474f515843 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Edge.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Edge.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/KnownColor.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/KnownColor.java index 495d6bfc1f9..7c0fa564b6a 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/KnownColor.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/KnownColor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; public enum KnownColor { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Point.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Point.java index edcc66fb3ca..8467de3fb2c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Point.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Point.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import org.kie.dmn.model.api.DMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Shape.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Shape.java index 41b11f55943..f755d76b3df 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Shape.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Shape.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; public interface Shape extends DiagramElement { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Style.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Style.java index 2fe4135a7e9..8dbbbf32840 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Style.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/dmndi/Style.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import java.util.List; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/KieDMNModelInstrumentedBase.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/KieDMNModelInstrumentedBase.java index 3de8084e320..e5efe472dda 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/KieDMNModelInstrumentedBase.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/KieDMNModelInstrumentedBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_1; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/NotADMNElementInV11.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/NotADMNElementInV11.java index dae52544fed..2422c4a927e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/NotADMNElementInV11.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/NotADMNElementInV11.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_1; import org.kie.dmn.model.api.DMNElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TArtifact.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TArtifact.java index 31923c00b16..e6ee51543a3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TArtifact.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TArtifact.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TAssociation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TAssociation.java index 80f3053c8dd..c4eca092d37 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TAssociation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TAssociation.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TAuthorityRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TAuthorityRequirement.java index 41fcecb645d..e54e31ea552 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TAuthorityRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TAuthorityRequirement.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBinding.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBinding.java index b3c5eea78fc..57d8677a258 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBinding.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBinding.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBusinessContextElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBusinessContextElement.java index e8960fca6fb..a1a02fd9669 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBusinessContextElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBusinessContextElement.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBusinessKnowledgeModel.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBusinessKnowledgeModel.java index f2d2ce556d8..e295b3978f2 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBusinessKnowledgeModel.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TBusinessKnowledgeModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TContext.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TContext.java index 49efc1615e0..4132066064b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TContext.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TContextEntry.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TContextEntry.java index 026731236c5..2880375c69b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TContextEntry.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TContextEntry.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDMNElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDMNElement.java index 3ec6c09e528..1bf86c630a7 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDMNElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDMNElement.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDMNElementReference.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDMNElementReference.java index 2880c009108..64edb049cd2 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDMNElementReference.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDMNElementReference.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDRGElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDRGElement.java index c96ac08bb9b..5910f808fed 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDRGElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDRGElement.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecision.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecision.java index 7e52b0e395f..3b6f403c6d9 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecision.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecision.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionRule.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionRule.java index 6468ea93465..8ff4166478e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionRule.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionRule.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionService.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionService.java index cd7f3f8d27e..3b7d7bc1745 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionService.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionTable.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionTable.java index b3575e18c94..45f0a88da77 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionTable.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDecisionTable.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDefinitions.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDefinitions.java index 78d9758371f..98228288357 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDefinitions.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TDefinitions.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TElementCollection.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TElementCollection.java index 605677dc017..d256f790d1e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TElementCollection.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TElementCollection.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TExpression.java index 567a2a7d475..17e1ab9e773 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TExpression.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TFunctionDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TFunctionDefinition.java index 57339d4d31b..c4e0acffd6f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TFunctionDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TFunctionDefinition.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TImport.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TImport.java index 8ea10f52b17..b1e3b0bc7d0 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TImport.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TImport.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TImportedValues.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TImportedValues.java index d95c3883800..78e35d627f7 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TImportedValues.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TImportedValues.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInformationItem.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInformationItem.java index b4c1303f745..188cc103b11 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInformationItem.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInformationItem.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInformationRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInformationRequirement.java index 700328474f1..22779f54d2a 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInformationRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInformationRequirement.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInputClause.java index 037a6292a29..ed038c3a1fd 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInputClause.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInputData.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInputData.java index cc550d14052..6b0dac0e0db 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInputData.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInputData.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInvocation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInvocation.java index 83c2e3a3b81..a059511b056 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInvocation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TInvocation.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TItemDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TItemDefinition.java index bd4bcecdb75..9ca8d6664a0 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TItemDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TItemDefinition.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TKnowledgeRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TKnowledgeRequirement.java index a7da622bada..a9804e1516b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TKnowledgeRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TKnowledgeRequirement.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TKnowledgeSource.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TKnowledgeSource.java index 2b812cd4f9e..c043b32f12c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TKnowledgeSource.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TKnowledgeSource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TList.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TList.java index 7caf16f5782..30d66c04128 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TList.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TList.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TLiteralExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TLiteralExpression.java index a537b2d63f2..be2aef73de3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TLiteralExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TLiteralExpression.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TNamedElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TNamedElement.java index a92e66f60dc..3c2ebef5b69 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TNamedElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TNamedElement.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TOrganizationUnit.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TOrganizationUnit.java index a3956663dbc..a4173f314fa 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TOrganizationUnit.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TOrganizationUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TOutputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TOutputClause.java index b463c599167..3319ddf978b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TOutputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TOutputClause.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TPerformanceIndicator.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TPerformanceIndicator.java index 4842b5eb5e8..fbb996c4141 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TPerformanceIndicator.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TPerformanceIndicator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TRelation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TRelation.java index ffb1ec423ad..18245587d33 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TRelation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TRelation.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TTextAnnotation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TTextAnnotation.java index 8154efdb9a6..03bcf237ced 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TTextAnnotation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TTextAnnotation.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TUnaryTests.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TUnaryTests.java index c4d93f3a148..3c01df53d12 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TUnaryTests.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/TUnaryTests.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/extensions/DecisionServices.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/extensions/DecisionServices.java index eaf5f29bd24..3cebb084b49 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/extensions/DecisionServices.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_1/extensions/DecisionServices.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.dmn.model.v1_1.extensions; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/KieDMNModelInstrumentedBase.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/KieDMNModelInstrumentedBase.java index cf8a34e3cf1..7d31a3cac0c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/KieDMNModelInstrumentedBase.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/KieDMNModelInstrumentedBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TArtifact.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TArtifact.java index c2f954b32e3..8b81c209bb8 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TArtifact.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TArtifact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.Artifact; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TAssociation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TAssociation.java index 3d4907e2cd6..9afa646f708 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TAssociation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TAssociation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.Association; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TAuthorityRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TAuthorityRequirement.java index b1b2f0c8478..b87293d4a42 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TAuthorityRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TAuthorityRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.AuthorityRequirement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBinding.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBinding.java index eff0ada2e70..14fd0d10164 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBinding.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBinding.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.Binding; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBusinessContextElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBusinessContextElement.java index 108a3ae7d3f..8bc4dbb7412 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBusinessContextElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBusinessContextElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.BusinessContextElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBusinessKnowledgeModel.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBusinessKnowledgeModel.java index a1e11932c23..782647844aa 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBusinessKnowledgeModel.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TBusinessKnowledgeModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TContext.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TContext.java index 356f7129527..0eae582256a 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TContext.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TContextEntry.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TContextEntry.java index 2c38b78c93c..493f0f42ddf 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TContextEntry.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TContextEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.ContextEntry; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDMNElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDMNElement.java index 03bb13354b2..0fde266f6b9 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDMNElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDMNElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDMNElementReference.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDMNElementReference.java index 9e9ae3fdf3e..86547578f0c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDMNElementReference.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDMNElementReference.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.DMNElementReference; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDRGElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDRGElement.java index d256b6c3c96..9685eda43e9 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDRGElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDRGElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.DRGElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecision.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecision.java index 1f12881c580..950cb43a1df 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecision.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecision.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionRule.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionRule.java index 1957555f648..0c3aeb456af 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionRule.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionRule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionService.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionService.java index 3c7c82152f5..0ba3a45a9a8 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionService.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionTable.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionTable.java index 535026d3bff..2cc2607fbaa 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionTable.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionTable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionTableOrientation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionTableOrientation.java index 37a7427d05b..dc36fe56345 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionTableOrientation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDecisionTableOrientation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; public enum TDecisionTableOrientation { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDefinitions.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDefinitions.java index e2ad37817d5..b37704bbc45 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDefinitions.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TDefinitions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TElementCollection.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TElementCollection.java index 5c8d2a7186f..2c72b2320af 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TElementCollection.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TElementCollection.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TExpression.java index 2fc999e78ef..be243e745dc 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TFunctionDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TFunctionDefinition.java index bd6f00d9c3d..8f451d01917 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TFunctionDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TFunctionDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TImport.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TImport.java index 992daf6948b..f970b48d58f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TImport.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TImport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.Import; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TImportedValues.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TImportedValues.java index d22168e6d1a..b99995a493b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TImportedValues.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TImportedValues.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.ImportedValues; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInformationItem.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInformationItem.java index 880eb1f6d5f..cc38ee208fe 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInformationItem.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInformationItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInformationRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInformationRequirement.java index 4bba5551f16..33dc0496eb4 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInformationRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInformationRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.DMNElementReference; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInputClause.java index ea499e57935..eb569d53ee1 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.InputClause; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInputData.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInputData.java index 37d39ef11ac..ded1a867078 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInputData.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInputData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.InformationItem; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInvocable.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInvocable.java index 26067217936..e016ae912f2 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInvocable.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInvocable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.InformationItem; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInvocation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInvocation.java index 436cf8bc379..f67fccb3b9d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInvocation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TInvocation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TItemDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TItemDefinition.java index 55f60550e64..2f584fda419 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TItemDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TItemDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TKnowledgeRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TKnowledgeRequirement.java index 87e832a04b8..3e77a703834 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TKnowledgeRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TKnowledgeRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.DMNElementReference; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TKnowledgeSource.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TKnowledgeSource.java index 377b523e089..4dc8b19391b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TKnowledgeSource.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TKnowledgeSource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TList.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TList.java index 818199d40bf..367dc0d771c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TList.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TLiteralExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TLiteralExpression.java index 89b0b2f6fab..35fc9a73086 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TLiteralExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TLiteralExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.ImportedValues; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TNamedElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TNamedElement.java index 99f3e905000..a3018178197 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TNamedElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TNamedElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.NamedElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TOrganizationUnit.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TOrganizationUnit.java index a6468dfc706..961e9bd2575 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TOrganizationUnit.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TOrganizationUnit.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TOutputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TOutputClause.java index 58152dca311..65ccc3938e1 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TOutputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TOutputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TPerformanceIndicator.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TPerformanceIndicator.java index bbb60fdd88d..4c2713c0d29 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TPerformanceIndicator.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TPerformanceIndicator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRelation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRelation.java index b81c68a1b23..9400faca63e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRelation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRelation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRuleAnnotation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRuleAnnotation.java index 087dcf15ab5..14c4ce068d5 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRuleAnnotation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRuleAnnotation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.RuleAnnotation; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRuleAnnotationClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRuleAnnotationClause.java index 7a355f82db1..1ff0935c259 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRuleAnnotationClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TRuleAnnotationClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.RuleAnnotationClause; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TTextAnnotation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TTextAnnotation.java index 44d78c22214..66af67be581 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TTextAnnotation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TTextAnnotation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import org.kie.dmn.model.api.TextAnnotation; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TUnaryTests.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TUnaryTests.java index 18d9c9ea636..9bcb6ce6497 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TUnaryTests.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/TUnaryTests.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Bounds.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Bounds.java index c0e43de9566..a7195570634 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Bounds.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Bounds.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import org.kie.dmn.model.v1_2.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Color.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Color.java index 6ddbc035a46..b42b170a280 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Color.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Color.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import org.kie.dmn.model.v1_2.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDI.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDI.java index 6846bed0163..8e0e8bc9fcc 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDI.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDI.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDecisionServiceDividerLine.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDecisionServiceDividerLine.java index ad473084d93..0e9e5bf4688 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDecisionServiceDividerLine.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDecisionServiceDividerLine.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; public class DMNDecisionServiceDividerLine extends Edge implements org.kie.dmn.model.api.dmndi.DMNDecisionServiceDividerLine { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java index 0667ee8e9ec..73c6e9a0dcc 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNDiagram.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNEdge.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNEdge.java index f742f21bf4d..df497e70055 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNEdge.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNEdge.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNLabel.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNLabel.java index a0c198fe82a..894b5c0622a 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNLabel.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNLabel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; public class DMNLabel extends Shape implements org.kie.dmn.model.api.dmndi.DMNLabel { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNShape.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNShape.java index 8b9640b82cf..d5199f7b836 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNShape.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNShape.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNStyle.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNStyle.java index 3ec6d09f88f..20fa6795d84 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNStyle.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DMNStyle.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import org.kie.dmn.model.api.dmndi.AlignmentKind; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Diagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Diagram.java index 5be9ed0117b..34893f809aa 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Diagram.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Diagram.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; public abstract class Diagram extends DiagramElement implements org.kie.dmn.model.api.dmndi.Diagram { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java index f13fcb52750..6c7d93324b3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/DiagramElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Dimension.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Dimension.java index ff7c14f9f05..eb25dab62aa 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Dimension.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Dimension.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import org.kie.dmn.model.v1_2.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Edge.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Edge.java index 5542bb363f5..04f1aaf8886 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Edge.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Edge.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Point.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Point.java index 1eb1ce03675..e2fb9876261 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Point.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Point.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import org.kie.dmn.model.v1_2.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Shape.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Shape.java index 9ccb685fc86..e717f01a2ae 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Shape.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Shape.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; public abstract class Shape extends DiagramElement implements org.kie.dmn.model.api.dmndi.Shape { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Style.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Style.java index 055c4535779..1d4e2cead57 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Style.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_2/dmndi/Style.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_2.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/KieDMNModelInstrumentedBase.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/KieDMNModelInstrumentedBase.java index 33b4cafb4ad..347d396f60c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/KieDMNModelInstrumentedBase.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/KieDMNModelInstrumentedBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TArtifact.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TArtifact.java index 8a311703949..935875fc986 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TArtifact.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TArtifact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.Artifact; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TAssociation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TAssociation.java index f98eb7bf1b9..0e2fb22b70f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TAssociation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TAssociation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.Association; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TAuthorityRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TAuthorityRequirement.java index 630c79c352b..0d7e72cf960 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TAuthorityRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TAuthorityRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.AuthorityRequirement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBinding.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBinding.java index d6fd383c1ca..a03e66924ad 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBinding.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBinding.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.Binding; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBusinessContextElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBusinessContextElement.java index b438e53ae47..f2370fba6ea 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBusinessContextElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBusinessContextElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.BusinessContextElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBusinessKnowledgeModel.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBusinessKnowledgeModel.java index 693648af465..a2d98ab14a4 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBusinessKnowledgeModel.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TBusinessKnowledgeModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TContext.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TContext.java index 9374149d787..1e46ed5f922 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TContext.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TContextEntry.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TContextEntry.java index e00abda0971..b08c67e89ac 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TContextEntry.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TContextEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.ContextEntry; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDMNElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDMNElement.java index 4221eec28c8..fd89e5fa278 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDMNElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDMNElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDMNElementReference.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDMNElementReference.java index 1f9f78b48a0..fb64b0c2767 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDMNElementReference.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDMNElementReference.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.DMNElementReference; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDRGElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDRGElement.java index d69cc9e3494..9fdb939ea8d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDRGElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDRGElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.DRGElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecision.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecision.java index 5a3d9aada25..d6b243fd15a 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecision.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecision.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionRule.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionRule.java index faaf770e9d4..c2fa8c8540b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionRule.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionRule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionService.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionService.java index 718ad460dd3..4d44d8afe59 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionService.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionTable.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionTable.java index 4001dc4a81c..088f933355f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionTable.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionTable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionTableOrientation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionTableOrientation.java index 6e4e58a35e9..918a65910ee 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionTableOrientation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDecisionTableOrientation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; public enum TDecisionTableOrientation { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDefinitions.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDefinitions.java index 831be0ffb53..a618e8cf614 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDefinitions.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TDefinitions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TElementCollection.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TElementCollection.java index 310053fd86f..cd9148f5804 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TElementCollection.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TElementCollection.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TExpression.java index d45cb096d06..1d370c39959 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TFunctionDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TFunctionDefinition.java index ff5aced262b..07fc6517519 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TFunctionDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TFunctionDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TFunctionItem.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TFunctionItem.java index 6e4f20f0803..30e5ecd1d18 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TFunctionItem.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TFunctionItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TGroup.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TGroup.java index 45cdd453f46..b2cebda888e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TGroup.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.Group; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TImport.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TImport.java index e79c63a236e..b8dc84b5d08 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TImport.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TImport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.Import; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TImportedValues.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TImportedValues.java index f29c9571fb5..7b6ed7d61de 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TImportedValues.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TImportedValues.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.ImportedValues; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInformationItem.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInformationItem.java index c870199cf19..cc2fd2736df 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInformationItem.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInformationItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInformationRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInformationRequirement.java index 2745fcd6dbf..f36963b8749 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInformationRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInformationRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.DMNElementReference; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInputClause.java index cc32f7e6097..6f58d6b70d9 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.InputClause; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInputData.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInputData.java index dced62e0b2d..1cd4bfbe9d1 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInputData.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInputData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.InformationItem; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInvocable.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInvocable.java index 0deb92ed5c2..c82e1590f85 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInvocable.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInvocable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.InformationItem; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInvocation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInvocation.java index b9c86c12d51..869963c51a3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInvocation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TInvocation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TItemDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TItemDefinition.java index dc511599535..06c02feee28 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TItemDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TItemDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TKnowledgeRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TKnowledgeRequirement.java index 061af496f8a..770f320760d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TKnowledgeRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TKnowledgeRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.DMNElementReference; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TKnowledgeSource.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TKnowledgeSource.java index 31fec9ec580..b58051d454f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TKnowledgeSource.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TKnowledgeSource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TList.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TList.java index a4a1d110815..a82b691b156 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TList.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TLiteralExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TLiteralExpression.java index a8133d83261..43b8192963c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TLiteralExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TLiteralExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.ImportedValues; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TNamedElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TNamedElement.java index 9e0b74a078d..3de74fb9218 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TNamedElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TNamedElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.NamedElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TOrganizationUnit.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TOrganizationUnit.java index e0c61fcda9e..ed25df01efd 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TOrganizationUnit.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TOrganizationUnit.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TOutputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TOutputClause.java index e4f9313768b..4cda375a6db 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TOutputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TOutputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TPerformanceIndicator.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TPerformanceIndicator.java index f82d5369fe9..b0f78545eaf 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TPerformanceIndicator.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TPerformanceIndicator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRelation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRelation.java index 77fbfc44ac6..28d43a2989b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRelation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRelation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRuleAnnotation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRuleAnnotation.java index 57f30ed4867..6b294e01194 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRuleAnnotation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRuleAnnotation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.RuleAnnotation; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRuleAnnotationClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRuleAnnotationClause.java index 61c872d5a2b..4b69488864f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRuleAnnotationClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TRuleAnnotationClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.RuleAnnotationClause; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TTextAnnotation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TTextAnnotation.java index 6c096bb83f2..caf2382516d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TTextAnnotation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TTextAnnotation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.TextAnnotation; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TUnaryTests.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TUnaryTests.java index ae1a08a4288..4dcc5691cc6 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TUnaryTests.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/TUnaryTests.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3; import org.kie.dmn.model.api.UnaryTests; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Bounds.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Bounds.java index 8d093fe63ac..ccbf83ceb68 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Bounds.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Bounds.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import org.kie.dmn.model.v1_3.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Color.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Color.java index 1fc36c984a8..0293c316fff 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Color.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Color.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import org.kie.dmn.model.v1_3.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDI.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDI.java index e31b700a6e0..65eeb057084 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDI.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDI.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDecisionServiceDividerLine.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDecisionServiceDividerLine.java index 357cdfa5661..93539ca8b9f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDecisionServiceDividerLine.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDecisionServiceDividerLine.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; public class DMNDecisionServiceDividerLine extends Edge implements org.kie.dmn.model.api.dmndi.DMNDecisionServiceDividerLine { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java index a1c3bda6f55..07d10ee3b74 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNDiagram.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNEdge.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNEdge.java index 29c4f785f9c..c7dd05a7a11 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNEdge.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNEdge.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNLabel.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNLabel.java index 9354c0d3cf8..16a4d83e17f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNLabel.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNLabel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; public class DMNLabel extends Shape implements org.kie.dmn.model.api.dmndi.DMNLabel { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNShape.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNShape.java index 7b85e0999ba..3fbfe90464c 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNShape.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNShape.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNStyle.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNStyle.java index 1af0ec0b692..133dbdfa4a4 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNStyle.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DMNStyle.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import org.kie.dmn.model.api.dmndi.AlignmentKind; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Diagram.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Diagram.java index beeb3fbd6a6..bf4ee684da6 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Diagram.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Diagram.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; public abstract class Diagram extends DiagramElement implements org.kie.dmn.model.api.dmndi.Diagram { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java index 37f68faf850..3a1d68e30e3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/DiagramElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Dimension.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Dimension.java index 7a5842c8845..17c9604c96a 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Dimension.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Dimension.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import org.kie.dmn.model.v1_3.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Edge.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Edge.java index a59456a4b01..3b2e0dd50ee 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Edge.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Edge.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Point.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Point.java index 4c0f05946a7..d6961b0800d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Point.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Point.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import org.kie.dmn.model.v1_3.KieDMNModelInstrumentedBase; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Shape.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Shape.java index cbcd8265221..e820d4957f8 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Shape.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Shape.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; public abstract class Shape extends DiagramElement implements org.kie.dmn.model.api.dmndi.Shape { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Style.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Style.java index 0d7d4c8cbfd..70213be1cfa 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Style.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_3/dmndi/Style.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_3.dmndi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/KieDMNModelInstrumentedBase.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/KieDMNModelInstrumentedBase.java index 23d8abce16c..52481584a9b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/KieDMNModelInstrumentedBase.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/KieDMNModelInstrumentedBase.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TArtifact.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TArtifact.java index a4c90c24962..7812ba5229b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TArtifact.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TArtifact.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.Artifact; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TAssociation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TAssociation.java index 4dbe73cdc53..d4bd1909333 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TAssociation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TAssociation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.Association; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TAuthorityRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TAuthorityRequirement.java index 969f7759477..f78524eec75 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TAuthorityRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TAuthorityRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.AuthorityRequirement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBinding.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBinding.java index bce994d4050..029ccad9e38 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBinding.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBinding.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.Binding; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBusinessContextElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBusinessContextElement.java index ebe014b1d6a..fcaf7544083 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBusinessContextElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBusinessContextElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.BusinessContextElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBusinessKnowledgeModel.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBusinessKnowledgeModel.java index 4c7b8419723..1dcca17d887 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBusinessKnowledgeModel.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TBusinessKnowledgeModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TChildExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TChildExpression.java index 8c71941be06..499ed9e813b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TChildExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TChildExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TConditional.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TConditional.java index c60e55e671c..e5b60d5e85e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TConditional.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TConditional.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TContext.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TContext.java index 66d72e4fc1d..45c7f896688 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TContext.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TContextEntry.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TContextEntry.java index 89176ac6ffe..0c9b180f3a0 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TContextEntry.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TContextEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.ContextEntry; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDMNElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDMNElement.java index 1eb71b17877..9be44222eb0 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDMNElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDMNElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDMNElementReference.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDMNElementReference.java index 278f9c79efe..28535bbc089 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDMNElementReference.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDMNElementReference.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.DMNElementReference; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDRGElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDRGElement.java index 15f82b3a6d3..c4d78ae8626 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDRGElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDRGElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.DRGElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecision.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecision.java index 23eb66462af..1772a4eff22 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecision.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecision.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionRule.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionRule.java index bc517dfa78e..89f770ed09e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionRule.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionRule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionService.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionService.java index ac4f88a3f18..87c85da80d3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionService.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionTable.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionTable.java index ac41ab00897..0914b67761a 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionTable.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionTable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionTableOrientation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionTableOrientation.java index cc02c5b9f80..4159650cc79 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionTableOrientation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDecisionTableOrientation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; public enum TDecisionTableOrientation { diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDefinitions.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDefinitions.java index 55270604e26..1b35c1c00e1 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDefinitions.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TDefinitions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TElementCollection.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TElementCollection.java index 3b720a12efa..f5621c112dc 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TElementCollection.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TElementCollection.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TEvery.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TEvery.java index 5b24538c385..abea8afe5ab 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TEvery.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TEvery.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.Every; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TExpression.java index c750c980f52..e3537783305 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFilter.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFilter.java index ef816005253..123c23bf360 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFilter.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFor.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFor.java index a3db17962fd..6f5b7f52c03 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFor.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFunctionDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFunctionDefinition.java index 6e731d239af..5e7e1c74e06 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFunctionDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFunctionDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFunctionItem.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFunctionItem.java index f84ca719818..ce3a104e039 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFunctionItem.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TFunctionItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TGroup.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TGroup.java index a7052d8bc64..b660f1aad54 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TGroup.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TGroup.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.Group; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TImport.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TImport.java index c691a834c34..a0c220a5fc6 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TImport.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TImport.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.Import; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TImportedValues.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TImportedValues.java index 47fd8e0b03d..7a7669b80cc 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TImportedValues.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TImportedValues.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.ImportedValues; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInformationItem.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInformationItem.java index 2cf1aa7e138..6ec08797c91 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInformationItem.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInformationItem.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInformationRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInformationRequirement.java index 209a596c71b..e171586c409 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInformationRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInformationRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.DMNElementReference; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInputClause.java index 4af71cb5644..7d6b2d4fb8a 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.InputClause; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInputData.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInputData.java index 315c85c1a4e..3e2908d2b71 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInputData.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInputData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.InformationItem; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInvocable.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInvocable.java index 7eee4b8a3bb..fab5cb5e99f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInvocable.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInvocable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.InformationItem; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInvocation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInvocation.java index 5a149569698..47d22a89f2e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInvocation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TInvocation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TItemDefinition.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TItemDefinition.java index 7fe6c743969..c3d11455279 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TItemDefinition.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TItemDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TIterator.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TIterator.java index 131a5b23ad6..b3f7c9aeca3 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TIterator.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TIterator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.Iterator; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TKnowledgeRequirement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TKnowledgeRequirement.java index b3ca8f8324a..8878a85ec10 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TKnowledgeRequirement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TKnowledgeRequirement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.DMNElementReference; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TKnowledgeSource.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TKnowledgeSource.java index 7fcb76cdf03..4bebd7ad74e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TKnowledgeSource.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TKnowledgeSource.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TList.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TList.java index 8b8b9ec1463..3ebe51d7119 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TList.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TList.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TLiteralExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TLiteralExpression.java index cb559040262..60efa7eeb5f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TLiteralExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TLiteralExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.ImportedValues; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TNamedElement.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TNamedElement.java index ed2ca6b8592..739fa57e99b 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TNamedElement.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TNamedElement.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.NamedElement; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TOrganizationUnit.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TOrganizationUnit.java index dad8db8192e..b530b0dd99e 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TOrganizationUnit.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TOrganizationUnit.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TOutputClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TOutputClause.java index 2d6ed345d1b..e673cf8cb93 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TOutputClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TOutputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TPerformanceIndicator.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TPerformanceIndicator.java index 4af590752e5..1e435316e84 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TPerformanceIndicator.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TPerformanceIndicator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TQuantified.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TQuantified.java index 809f4784168..943b3ca3209 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TQuantified.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TQuantified.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.ChildExpression; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRelation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRelation.java index 539e231dee0..0e88aa9305d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRelation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRelation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRuleAnnotation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRuleAnnotation.java index e8cc9498b97..3d80cc9809f 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRuleAnnotation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRuleAnnotation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.RuleAnnotation; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRuleAnnotationClause.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRuleAnnotationClause.java index 8451927c20c..65724fdf1a6 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRuleAnnotationClause.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TRuleAnnotationClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.RuleAnnotationClause; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TSome.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TSome.java index 1ae4c900050..95d52c3bd99 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TSome.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TSome.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.Some; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TTextAnnotation.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TTextAnnotation.java index 6a4502ba101..63343579f80 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TTextAnnotation.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TTextAnnotation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.TextAnnotation; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TTypedChildExpression.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TTypedChildExpression.java index 24b2c50d57b..da9244fcc3d 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TTypedChildExpression.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TTypedChildExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.TypedChildExpression; diff --git a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TUnaryTests.java b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TUnaryTests.java index 74d5579f601..081901be9a6 100644 --- a/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TUnaryTests.java +++ b/kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/v1_4/TUnaryTests.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.v1_4; import org.kie.dmn.model.api.UnaryTests; diff --git a/kie-dmn/kie-dmn-model/src/main/resources/org/kie/dmn/model/DMNModel.gwt.xml b/kie-dmn/kie-dmn-model/src/main/resources/org/kie/dmn/model/DMNModel.gwt.xml deleted file mode 100644 index ee12364f205..00000000000 --- a/kie-dmn/kie-dmn-model/src/main/resources/org/kie/dmn/model/DMNModel.gwt.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/AssociationDirectionTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/AssociationDirectionTest.java index c8a76e369ac..72072b7971b 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/AssociationDirectionTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/AssociationDirectionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/DecisionTableOrientationTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/DecisionTableOrientationTest.java index 0a06b19476b..faf4d6bb8f3 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/DecisionTableOrientationTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/DecisionTableOrientationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/FunctionKindTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/FunctionKindTest.java index 09c172bc762..21e162a12eb 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/FunctionKindTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/FunctionKindTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/HitPolicyTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/HitPolicyTest.java index cf31f12e3f3..eaa024820a4 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/HitPolicyTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/HitPolicyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/RowLocationTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/RowLocationTest.java index fb45f1c9dd3..8d8ec39283a 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/RowLocationTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/RowLocationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import javax.xml.stream.Location; diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/TUnaryTestsTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/TUnaryTestsTest.java index 6ecd2e4bf21..d6ae702d7dd 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/TUnaryTestsTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/TUnaryTestsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/dmndi/AlignmentKindTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/dmndi/AlignmentKindTest.java index a40f9e33cd0..f636eaf7c62 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/dmndi/AlignmentKindTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/dmndi/AlignmentKindTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/dmndi/KnownColorTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/dmndi/KnownColorTest.java index 56bb0aca1a3..ea923e97653 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/dmndi/KnownColorTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/api/dmndi/KnownColorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.api.dmndi; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java index 14c47f65e8a..fec094247e7 100644 --- a/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java +++ b/kie-dmn/kie-dmn-model/src/test/java/org/kie/dmn/model/jandex/KieDMNModelJandexTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.model.jandex; import java.io.File; diff --git a/kie-dmn/kie-dmn-model/src/test/resources/logback.xml b/kie-dmn/kie-dmn-model/src/test/resources/logback.xml index 46df82e1a2c..759ca5a5ad8 100644 --- a/kie-dmn/kie-dmn-model/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-model/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-openapi/pom.xml b/kie-dmn/kie-dmn-openapi/pom.xml index fa474375858..9f0f46d211d 100644 --- a/kie-dmn/kie-dmn-openapi/pom.xml +++ b/kie-dmn/kie-dmn-openapi/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-openapi diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/DMNOASGenerator.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/DMNOASGenerator.java index 0aa9a47a8be..654754f491b 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/DMNOASGenerator.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/DMNOASGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.openapi; import org.kie.dmn.openapi.model.DMNOASResult; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/DMNOASGeneratorFactory.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/DMNOASGeneratorFactory.java index 694630e2508..711dc64ad53 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/DMNOASGeneratorFactory.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/DMNOASGeneratorFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/NamingPolicy.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/NamingPolicy.java index a5c15773fd7..f7aac20fe19 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/NamingPolicy.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/NamingPolicy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import org.kie.dmn.api.core.DMNType; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNOASConstants.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNOASConstants.java index b6f60a362a0..cb36347900a 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNOASConstants.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNOASConstants.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi.impl; public class DMNOASConstants { diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNOASGeneratorImpl.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNOASGeneratorImpl.java index 7c7639112b2..bd006c1dfaf 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNOASGeneratorImpl.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNOASGeneratorImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi.impl; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNTypeSchemas.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNTypeSchemas.java index 8277e7bf88d..1e9ac0703f2 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNTypeSchemas.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNTypeSchemas.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi.impl; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DefaultNamingPolicy.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DefaultNamingPolicy.java index 3d8b3b5847e..2cf6717eb1e 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DefaultNamingPolicy.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DefaultNamingPolicy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi.impl; import java.net.URI; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/FEELBuiltinTypeSchemas.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/FEELBuiltinTypeSchemas.java index ca79bcd4d92..c0f4d908f4e 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/FEELBuiltinTypeSchemas.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/FEELBuiltinTypeSchemas.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi.impl; import org.eclipse.microprofile.openapi.OASFactory; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/FEELSchemaEnum.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/FEELSchemaEnum.java index 83dafe03be5..25b31042595 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/FEELSchemaEnum.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/FEELSchemaEnum.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi.impl; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/NamespaceAwareNamingPolicy.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/NamespaceAwareNamingPolicy.java index eea80aad31a..dcad1640093 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/NamespaceAwareNamingPolicy.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/NamespaceAwareNamingPolicy.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.openapi.impl; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/model/DMNModelIOSets.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/model/DMNModelIOSets.java index 07f2303c38e..f6842c33b82 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/model/DMNModelIOSets.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/model/DMNModelIOSets.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi.model; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/model/DMNOASResult.java b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/model/DMNOASResult.java index d1e02e7bb78..c21dc98255b 100644 --- a/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/model/DMNOASResult.java +++ b/kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/model/DMNOASResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi.model; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/AllowNullTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/AllowNullTest.java index beeb3034acb..231d4591fee 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/AllowNullTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/AllowNullTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/BaseDMNOASTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/BaseDMNOASTest.java index 0fbdac9ed33..877a7c6357f 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/BaseDMNOASTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/BaseDMNOASTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/CH11Test.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/CH11Test.java index dfe68437f6a..276e6dc1cae 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/CH11Test.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/CH11Test.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DMNDescriptionTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DMNDescriptionTest.java index 82053971a59..b78775f2587 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DMNDescriptionTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DMNDescriptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import java.util.Map; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DS004decisionservicesTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DS004decisionservicesTest.java index c0ff8b54daa..53d3c2c5209 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DS004decisionservicesTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DS004decisionservicesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DSMultipleOutputTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DSMultipleOutputTest.java index dfb1309b46d..59dc91c62f2 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DSMultipleOutputTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DSMultipleOutputTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DiscouragedTypesTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DiscouragedTypesTest.java index d5d74fc1a3c..966ea9d59a2 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DiscouragedTypesTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/DiscouragedTypesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/FEELSchemaEnumTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/FEELSchemaEnumTest.java index 4d21b65a729..6cfc24287b1 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/FEELSchemaEnumTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/FEELSchemaEnumTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/ImportingTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/ImportingTest.java index f9430eb47da..14a277f8f84 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/ImportingTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/ImportingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/JacksonUtils.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/JacksonUtils.java index fdcc9779a1d..6311a968e48 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/JacksonUtils.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/JacksonUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/MultipleModelsTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/MultipleModelsTest.java index cbc4a64a627..345ba02a708 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/MultipleModelsTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/MultipleModelsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/MyOrderTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/MyOrderTest.java index 51b453ae15f..b9252265b5b 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/MyOrderTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/MyOrderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/NumberAllowedValuesTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/NumberAllowedValuesTest.java index 3ac749cd80d..c94cead05dc 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/NumberAllowedValuesTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/NumberAllowedValuesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/OneOfEachTypeTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/OneOfEachTypeTest.java index aefc27966b1..51a03ff41e8 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/OneOfEachTypeTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/OneOfEachTypeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -41,10 +43,10 @@ public void test() throws Exception { assertThat(validateUsing(validator, "{ \"InputBoolean\": true,\n" + " \"InputDTDuration\": \"P1D\",\n" + " \"InputDate\": \"2020-04-02\",\n" + - " \"InputDateAndTime\": \"2020-04-02T09:00:00\",\n" + + " \"InputDateAndTime\": \"2020-04-02T09:00:00z\",\n" + " \"InputNumber\": 1,\n" + " \"InputString\": \"John Doe\",\n" + - " \"InputTime\": \"09:00:00\",\n" + + " \"InputTime\": \"09:00:00z\",\n" + " \"InputYMDuration\": \"P1M\"}")).isEmpty(); } } diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/PersonTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/PersonTest.java index 47edff0feb3..dfe7bb1fe29 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/PersonTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/PersonTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/PersonsTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/PersonsTest.java index e477cd1e950..627024851c3 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/PersonsTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/PersonsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/ProcessItemTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/ProcessItemTest.java index d425074a447..4ec4ab64f2a 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/ProcessItemTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/ProcessItemTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/TypeWithSpaceTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/TypeWithSpaceTest.java index a989c800cc7..8721d19272e 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/TypeWithSpaceTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/TypeWithSpaceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/UndefinedTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/UndefinedTest.java index 41c29ca7b2d..f64851f6dbc 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/UndefinedTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/UndefinedTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi; import com.fasterxml.jackson.databind.node.ObjectNode; diff --git a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/impl/DefaultNamingPolicyTest.java b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/impl/DefaultNamingPolicyTest.java index ab4b257639e..64293dc19a5 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/impl/DefaultNamingPolicyTest.java +++ b/kie-dmn/kie-dmn-openapi/src/test/java/org/kie/dmn/openapi/impl/DefaultNamingPolicyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.openapi.impl; import java.util.UUID; diff --git a/kie-dmn/kie-dmn-openapi/src/test/resources/logback.xml b/kie-dmn/kie-dmn-openapi/src/test/resources/logback.xml index 46df82e1a2c..759ca5a5ad8 100644 --- a/kie-dmn/kie-dmn-openapi/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-openapi/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/pom.xml b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/pom.xml index 34f084a11db..1a92672a977 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/pom.xml +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/pom.xml @@ -1,17 +1,41 @@ + kie-dmn-pmml-tests-parent org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 KiE :: Decision Model Notation - PMML Trusty Tests kie-dmn-pmml-tests-trusty + + org.kie.dmn.pmml.tests.trusty + + diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/DMNRegressionTrustyPMMLTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/DMNRegressionTrustyPMMLTest.java index 3d4d52327ad..1980447200d 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/DMNRegressionTrustyPMMLTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/DMNRegressionTrustyPMMLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml.trusty; import org.kie.dmn.pmml.DMNRegressionPMMLTest; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/DMNTreeTrustyPMMLTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/DMNTreeTrustyPMMLTest.java index da282607334..b46e7d2fad1 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/DMNTreeTrustyPMMLTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/DMNTreeTrustyPMMLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml.trusty; import org.kie.dmn.pmml.DMNTreePMMLTest; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/TrustyPMMLInfoTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/TrustyPMMLInfoTest.java index 6d6a6e5cdab..fb7e788151e 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/TrustyPMMLInfoTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/TrustyPMMLInfoTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml.trusty; import org.kie.dmn.pmml.PMMLInfoTest; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/TrustyPMMLValidatorImportTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/TrustyPMMLValidatorImportTest.java index 451e14f6825..82323bb41d1 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/TrustyPMMLValidatorImportTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests-trusty/src/test/java/org/kie/dmn/pmml/trusty/TrustyPMMLValidatorImportTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml.trusty; import org.kie.dmn.pmml.PMMLValidatorImportTest; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml index f5c60e5a89b..6751b8fa07e 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/pom.xml @@ -1,17 +1,41 @@ + kie-dmn-pmml-tests-parent org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 KiE :: Decision Model Notation - PMML Tests kie-dmn-pmml-tests + + org.kie.dmn.pmml.tests + + org.kie diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNKMeansModelPMMLTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNKMeansModelPMMLTest.java index 303ce5cd6b3..b6a123536c8 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNKMeansModelPMMLTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNKMeansModelPMMLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml; import java.util.Map; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNMiningModelPMMLTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNMiningModelPMMLTest.java index c8cf25ec7c4..2fa8c36829a 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNMiningModelPMMLTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNMiningModelPMMLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNNaiveBayesPMMLTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNNaiveBayesPMMLTest.java index 19f7878a9e5..b3ef0fbd9c9 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNNaiveBayesPMMLTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNNaiveBayesPMMLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml; import java.util.Map; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNNeuralNetworkPMMLTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNNeuralNetworkPMMLTest.java index dab86c5e533..2ab5e5a420c 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNNeuralNetworkPMMLTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNNeuralNetworkPMMLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml; import java.util.Map; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNRegressionPMMLTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNRegressionPMMLTest.java index a4fb964551d..67a4ec42963 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNRegressionPMMLTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNRegressionPMMLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNRuntimePMMLTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNRuntimePMMLTest.java index beb5e9bd89a..59b897d095d 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNRuntimePMMLTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNRuntimePMMLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml; import java.io.InputStreamReader; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNTreePMMLTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNTreePMMLTest.java index ca559aa8bc1..a8143199b72 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNTreePMMLTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/DMNTreePMMLTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/PMMLInfoTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/PMMLInfoTest.java index 470abf8acd3..4e0f2202d83 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/PMMLInfoTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/PMMLInfoTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/PMMLValidatorImportTest.java b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/PMMLValidatorImportTest.java index f7edf6dc108..806b6e880b8 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/PMMLValidatorImportTest.java +++ b/kie-dmn/kie-dmn-pmml-tests-parent/kie-dmn-pmml-tests/src/test/java/org/kie/dmn/pmml/PMMLValidatorImportTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.pmml; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-pmml-tests-parent/pom.xml b/kie-dmn/kie-dmn-pmml-tests-parent/pom.xml index 8f24900a1fc..366af61b419 100644 --- a/kie-dmn/kie-dmn-pmml-tests-parent/pom.xml +++ b/kie-dmn/kie-dmn-pmml-tests-parent/pom.xml @@ -1,11 +1,31 @@ + kie-dmn org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/pom.xml b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/pom.xml index a71d7878b81..814380c895e 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/pom.xml +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/pom.xml @@ -1,13 +1,37 @@ + 4.0.0 org.kie kie-dmn-ruleset2dmn-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-ruleset2dmn-cli KIE :: Decision Model Notation :: ruleset2dmn CLI + + + org.kie.dmn.ruleset2dmn.cli + @@ -64,6 +88,16 @@ shade + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + org.kie.dmn.ruleset2dmn.cli.App diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/java/org/kie/dmn/ruleset2dmn/cli/App.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/java/org/kie/dmn/ruleset2dmn/cli/App.java index aa1c528692d..dcd7b9ff980 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/java/org/kie/dmn/ruleset2dmn/cli/App.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/java/org/kie/dmn/ruleset2dmn/cli/App.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn.cli; import java.io.ByteArrayInputStream; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/java/org/kie/dmn/ruleset2dmn/cli/RuleSet2DMNVersionProvider.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/java/org/kie/dmn/ruleset2dmn/cli/RuleSet2DMNVersionProvider.java index 339946556db..caf240226b3 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/java/org/kie/dmn/ruleset2dmn/cli/RuleSet2DMNVersionProvider.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/java/org/kie/dmn/ruleset2dmn/cli/RuleSet2DMNVersionProvider.java @@ -1,22 +1,24 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn.cli; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import picocli.CommandLine.IVersionProvider; public class RuleSet2DMNVersionProvider implements IVersionProvider { diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/resources/logback.xml b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/resources/logback.xml index c0c2935cbfe..83be09e6561 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/resources/logback.xml +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn-cli/src/main/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/pom.xml b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/pom.xml index cd371439d1d..595ea5ce156 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/pom.xml +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.kie kie-dmn-ruleset2dmn-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-ruleset2dmn diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java index 17887354fff..fcfde77a26e 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/Converter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.io.InputStream; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java index f5b19f4e055..b5fd23ed65b 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/SimpleRuleRow.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/WeightComparator.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/WeightComparator.java index 8674e182f09..4f29c266bd5 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/WeightComparator.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/main/java/org/kie/dmn/ruleset2dmn/WeightComparator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.util.Comparator; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/AdultTest.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/AdultTest.java index 51a696f6c0f..3f3a25a2e03 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/AdultTest.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/AdultTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/ChurnRulesFromSPSSModelerTest.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/ChurnRulesFromSPSSModelerTest.java index 49015c07899..7799dbd8c03 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/ChurnRulesFromSPSSModelerTest.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/ChurnRulesFromSPSSModelerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/ChurnTest.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/ChurnTest.java index ab1f0d3c783..c2519b7a44c 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/ChurnTest.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/ChurnTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/IrisTest.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/IrisTest.java index 0cf827416e2..04229953688 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/IrisTest.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/IrisTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/MiniloanTest.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/MiniloanTest.java index 5566ed61164..0918d2bc4a3 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/MiniloanTest.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/MiniloanTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TestDMNRuntimeEventListener.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TestDMNRuntimeEventListener.java index 625312e23de..aa9325dfa6e 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TestDMNRuntimeEventListener.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TestDMNRuntimeEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import org.kie.dmn.api.core.event.AfterEvaluateAllEvent; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TestUtils.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TestUtils.java index f9e6b0f2d13..9182c5cc1b2 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TestUtils.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TestUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TotoTest.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TotoTest.java index f89debfee86..291432f6589 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TotoTest.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/TotoTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/WifiTest.java b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/WifiTest.java index 9e2dff97cde..ef023f7d46a 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/WifiTest.java +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/java/org/kie/dmn/ruleset2dmn/WifiTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.ruleset2dmn; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/resources/Churn Rules from SPSS Modeler.xml b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/resources/Churn Rules from SPSS Modeler.xml index 78f89bab80b..a346a9c6c30 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/resources/Churn Rules from SPSS Modeler.xml +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/resources/Churn Rules from SPSS Modeler.xml @@ -1,4 +1,24 @@ +

diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/resources/logback-test.xml b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/resources/logback-test.xml index 540f5ea292e..b197fa3b722 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/resources/logback-test.xml +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/kie-dmn-ruleset2dmn/src/test/resources/logback-test.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-ruleset2dmn-parent/pom.xml b/kie-dmn/kie-dmn-ruleset2dmn-parent/pom.xml index 556b765f9b4..a6a723eb8ab 100644 --- a/kie-dmn/kie-dmn-ruleset2dmn-parent/pom.xml +++ b/kie-dmn/kie-dmn-ruleset2dmn-parent/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-ruleset2dmn-parent pom diff --git a/kie-dmn/kie-dmn-signavio/pom.xml b/kie-dmn/kie-dmn-signavio/pom.xml index c77e07f8e9a..2439b7ddb9b 100644 --- a/kie-dmn/kie-dmn-signavio/pom.xml +++ b/kie-dmn/kie-dmn-signavio/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-signavio diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/KieDMNSignavioProfile.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/KieDMNSignavioProfile.java index dc8a683729b..c06a9b7f87d 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/KieDMNSignavioProfile.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/KieDMNSignavioProfile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/MultiInstanceDecisionLogic.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/MultiInstanceDecisionLogic.java index 566001f35c1..10802611ba2 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/MultiInstanceDecisionLogic.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/MultiInstanceDecisionLogic.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/MultiInstanceDecisionLogicRegister.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/MultiInstanceDecisionLogicRegister.java index f76f2d6a486..71a46558b68 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/MultiInstanceDecisionLogicRegister.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/MultiInstanceDecisionLogicRegister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio; import com.thoughtworks.xstream.XStream; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AbsFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AbsFunction.java index 46111b3c121..65ec2c074f7 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AbsFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AbsFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AppendAllFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AppendAllFunction.java index cf40c98edfb..d5527ab8408 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AppendAllFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AppendAllFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.List; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AreElementsOfFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AreElementsOfFunction.java index f320b3602f8..70a414b9575 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AreElementsOfFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AreElementsOfFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AvgFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AvgFunction.java index 1efe8e9dacd..3504e553390 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AvgFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/AvgFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ConcatFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ConcatFunction.java index 3107fd34a82..602c2b12ccd 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ConcatFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ConcatFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ContainsOnlyFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ContainsOnlyFunction.java index 097028d6480..8f14abd8a19 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ContainsOnlyFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ContainsOnlyFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.List; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DateTimeFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DateTimeFunction.java index fe6665027ff..3d52d515be1 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DateTimeFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DateTimeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.time.temporal.Temporal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayAddFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayAddFunction.java index 930fa2243ad..0206f46b3ef 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayAddFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayAddFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayDiffFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayDiffFunction.java index 0132b91d70d..54f44459f67 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayDiffFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayDiffFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayFunction.java index 57267e1288a..91548366573 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/DayFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/HourDiffFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/HourDiffFunction.java index ec36a422a5e..6fca0e4a404 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/HourDiffFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/HourDiffFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/HourFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/HourFunction.java index 6cac4c09bf5..0082985d3ff 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/HourFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/HourFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IntegerFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IntegerFunction.java index 16eec01427f..2d7204494cd 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IntegerFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IntegerFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsAlphaFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsAlphaFunction.java index eaa022f7e69..ac783e20070 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsAlphaFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsAlphaFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.regex.Pattern; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsAlphanumericFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsAlphanumericFunction.java index a0518744394..826e5373e0a 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsAlphanumericFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsAlphanumericFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.regex.Pattern; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsNumericFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsNumericFunction.java index 5ea540ddb7d..a6fb0c0d59d 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsNumericFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsNumericFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsSpacesFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsSpacesFunction.java index 3f4b928595e..ee25b0ce8e2 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsSpacesFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/IsSpacesFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.regex.Pattern; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LeftFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LeftFunction.java index 7a2fa2c2383..3c61a8439b9 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LeftFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LeftFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LenFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LenFunction.java index 143ce5220fb..2021c0ba3da 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LenFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LenFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LowerFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LowerFunction.java index 7e748b45959..b4a0d2229cc 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LowerFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/LowerFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MedianFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MedianFunction.java index 81f3fcffe92..e8a4570fb71 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MedianFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MedianFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MidFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MidFunction.java index 27b3eb2b82c..061ca7867ac 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MidFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MidFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MinuteFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MinuteFunction.java index 4907f352e53..e350685fea0 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MinuteFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MinuteFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MinutesDiffFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MinutesDiffFunction.java index 6e24bfa17ca..f78f324195a 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MinutesDiffFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MinutesDiffFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ModeFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ModeFunction.java index 22a3c9c3c57..fc8e8c58292 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ModeFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ModeFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.List; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ModuloFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ModuloFunction.java index 531324323fe..aed9ee659fd 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ModuloFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ModuloFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthAddFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthAddFunction.java index c011779b507..6740cff711d 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthAddFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthAddFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthDiffFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthDiffFunction.java index d0c09d5d5ec..85db0f1a7ec 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthDiffFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthDiffFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthFunction.java index adb912b7448..8f42f95a3d3 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/MonthFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/NotContainsAnyFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/NotContainsAnyFunction.java index d7d9f8a2ae7..153a166fd5c 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/NotContainsAnyFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/NotContainsAnyFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.List; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/NowFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/NowFunction.java index 287a2ac1c6b..0ff8fc148d3 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/NowFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/NowFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/PercentFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/PercentFunction.java index 4fb8f2fc516..821d181ccd3 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/PercentFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/PercentFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/PowerFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/PowerFunction.java index c4815db808e..a664590f29e 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/PowerFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/PowerFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ProductFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ProductFunction.java index 58464618c89..9b68dbbc69c 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ProductFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ProductFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RemoveAllFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RemoveAllFunction.java index eced45f9763..088909cb9eb 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RemoveAllFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RemoveAllFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RightFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RightFunction.java index f839452f511..c525291aee7 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RightFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RightFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundDownFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundDownFunction.java index a9c48677664..f04351ef3e9 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundDownFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundDownFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundFunction.java index 7163ad30f8b..37d5cefb045 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundUpFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundUpFunction.java index 75887f58d6a..6adceca7b89 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundUpFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/RoundUpFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SecondFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SecondFunction.java index 2ae2c26757d..fe36214fd53 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SecondFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SecondFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SecondsDiffFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SecondsDiffFunction.java index c17d0aa5a09..4cddad5056a 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SecondsDiffFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SecondsDiffFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioEndsWithFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioEndsWithFunction.java index 75dc3503251..ebd5a58678e 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioEndsWithFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioEndsWithFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioNumberFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioNumberFunction.java index ecfeaa4c45b..011d2067cfa 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioNumberFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioNumberFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioRemoveFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioRemoveFunction.java index 83921eb65cd..8ab33ae319e 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioRemoveFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioRemoveFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioStartsWithFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioStartsWithFunction.java index 1d61977c61d..698f2dea469 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioStartsWithFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/SignavioStartsWithFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TextFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TextFunction.java index b1cdddb499a..e1576764c6f 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TextFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TextFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TextOccurrencesFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TextOccurrencesFunction.java index 660de940522..4fc1b363d68 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TextOccurrencesFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TextOccurrencesFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TodayFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TodayFunction.java index 87818ec4b34..d6804d46f67 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TodayFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TodayFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TrimFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TrimFunction.java index 33693b45e4a..0936e3613b1 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TrimFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/TrimFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/UpperFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/UpperFunction.java index b59e8dd592c..070eb9fa56c 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/UpperFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/UpperFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/WeekdayFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/WeekdayFunction.java index 5c8bd2c4b00..141d1770623 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/WeekdayFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/WeekdayFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearAddFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearAddFunction.java index d32f8a38322..9ac28339ed7 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearAddFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearAddFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearDiffFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearDiffFunction.java index ae9665254aa..742ec7d7dba 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearDiffFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearDiffFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearFunction.java index c3efa95e215..6701c649ad6 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/YearFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; diff --git a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ZipFunction.java b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ZipFunction.java index e7f89220879..fc8b2112dc7 100644 --- a/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ZipFunction.java +++ b/kie-dmn/kie-dmn-signavio/src/main/java/org/kie/dmn/signavio/feel/runtime/functions/ZipFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime.functions; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/MultiInstanceDecisionLogicTest.java b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/MultiInstanceDecisionLogicTest.java index c5cc566877e..3e9bdf74af0 100644 --- a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/MultiInstanceDecisionLogicTest.java +++ b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/MultiInstanceDecisionLogicTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/SignavioTest.java b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/SignavioTest.java index 7807e3388ee..84e631875ab 100644 --- a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/SignavioTest.java +++ b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/SignavioTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/feel/runtime/ExtendedFunctionsBaseFEELTest.java b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/feel/runtime/ExtendedFunctionsBaseFEELTest.java index 8e29050c07f..718803696ec 100644 --- a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/feel/runtime/ExtendedFunctionsBaseFEELTest.java +++ b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/feel/runtime/ExtendedFunctionsBaseFEELTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/feel/runtime/FEELExtendedFunctionsTest.java b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/feel/runtime/FEELExtendedFunctionsTest.java index 2cb3ab3f81e..8413b5c7b5c 100644 --- a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/feel/runtime/FEELExtendedFunctionsTest.java +++ b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/feel/runtime/FEELExtendedFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.signavio.feel.runtime; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/util/DynamicTypeUtils.java b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/util/DynamicTypeUtils.java index b8bc097717e..9007a3afd91 100644 --- a/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/util/DynamicTypeUtils.java +++ b/kie-dmn/kie-dmn-signavio/src/test/java/org/kie/dmn/signavio/util/DynamicTypeUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.dmn.signavio.util; import java.util.AbstractMap; diff --git a/kie-dmn/kie-dmn-signavio/src/test/resources/logback.xml b/kie-dmn/kie-dmn-signavio/src/test/resources/logback.xml index 46df82e1a2c..759ca5a5ad8 100644 --- a/kie-dmn/kie-dmn-signavio/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-signavio/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-tck/pom.xml b/kie-dmn/kie-dmn-tck/pom.xml index be258f586f0..e6f4647b103 100644 --- a/kie-dmn/kie-dmn-tck/pom.xml +++ b/kie-dmn/kie-dmn-tck/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> kie-dmn org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-dmn/kie-dmn-trisotech/pom.xml b/kie-dmn/kie-dmn-trisotech/pom.xml index 6649e2d7edd..e6da98641d3 100644 --- a/kie-dmn/kie-dmn-trisotech/pom.xml +++ b/kie-dmn/kie-dmn-trisotech/pom.xml @@ -1,3 +1,23 @@ + @@ -5,7 +25,7 @@ org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-trisotech diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/TrisotechDMNProfile.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/TrisotechDMNProfile.java index 5e7a8862c34..9f01395b8d9 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/TrisotechDMNProfile.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/TrisotechDMNProfile.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/ConditionalConverter.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/ConditionalConverter.java index e661dc5a8f2..3a35879d4e1 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/ConditionalConverter.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/ConditionalConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.backend.marshalling.v1_3.xstream; import org.kie.dmn.backend.marshalling.v1_3.xstream.ExpressionConverter; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/FilterConverter.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/FilterConverter.java index 1dbc9a05a83..9382921cb7e 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/FilterConverter.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/FilterConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.backend.marshalling.v1_3.xstream; import org.kie.dmn.backend.marshalling.v1_3.xstream.ExpressionConverter; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/IteratorConverter.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/IteratorConverter.java index 15e33c43eee..b3b570393e7 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/IteratorConverter.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/IteratorConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.backend.marshalling.v1_3.xstream; import org.kie.dmn.backend.marshalling.v1_3.xstream.ExpressionConverter; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/NamedExpressionConverter.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/NamedExpressionConverter.java index 38cb720282a..07cda233142 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/NamedExpressionConverter.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/NamedExpressionConverter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.backend.marshalling.v1_3.xstream; import org.kie.dmn.backend.marshalling.v1_3.xstream.DMNModelInstrumentedBaseConverter; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/TrisotechBoxedExtensionRegister.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/TrisotechBoxedExtensionRegister.java index 8f0f38e1f28..67afc9215d0 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/TrisotechBoxedExtensionRegister.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/TrisotechBoxedExtensionRegister.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.backend.marshalling.v1_3.xstream; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNConditionalEvaluator.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNConditionalEvaluator.java index 511f7d8a3dd..4a2a1e15586 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNConditionalEvaluator.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNConditionalEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.core.ast; import org.kie.dmn.api.core.DMNMessage; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNFilterEvaluator.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNFilterEvaluator.java index ede1236fed2..167a6bd01ad 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNFilterEvaluator.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNFilterEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.core.ast; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNIteratorEvaluator.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNIteratorEvaluator.java index c09fe1eaabe..0c5a30c0eb7 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNIteratorEvaluator.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/ast/DMNIteratorEvaluator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.core.ast; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/compiler/TrisotechDMNEvaluatorCompiler.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/compiler/TrisotechDMNEvaluatorCompiler.java index 5e428e8a9db..4439f05d248 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/compiler/TrisotechDMNEvaluatorCompiler.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/compiler/TrisotechDMNEvaluatorCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.core.compiler; import java.util.UUID; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/compiler/TrisotechDMNEvaluatorCompilerFactory.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/compiler/TrisotechDMNEvaluatorCompilerFactory.java index 7dd927d2c31..d1be19c8dab 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/compiler/TrisotechDMNEvaluatorCompilerFactory.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/compiler/TrisotechDMNEvaluatorCompilerFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.core.compiler; import org.kie.dmn.core.compiler.DMNCompilerConfigurationImpl; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/util/IterableRange.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/util/IterableRange.java index 54de2d7b36c..d058024c466 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/util/IterableRange.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/util/IterableRange.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.core.util; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/util/Msg.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/util/Msg.java index 0f597afa045..ff848562558 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/util/Msg.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/core/util/Msg.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.core.util; import org.kie.dmn.api.core.DMNMessageType; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Conditional.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Conditional.java index e00cb7ef960..c4bb3a67ce5 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Conditional.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Conditional.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.model.api; import org.kie.dmn.model.api.Expression; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Filter.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Filter.java index b93b593660f..7d000ce2137 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Filter.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Filter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.model.api; import org.kie.dmn.model.api.Expression; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Iterator.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Iterator.java index d4da32108e6..bb590558e25 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Iterator.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/Iterator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.model.api; import org.kie.dmn.model.api.Expression; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/NamedExpression.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/NamedExpression.java index 3411ab22697..03b6736c475 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/NamedExpression.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/api/NamedExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.model.api; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TConditional.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TConditional.java index 46b42b879c1..6e87f542dc3 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TConditional.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TConditional.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.model.v1_3; import org.kie.dmn.model.api.Expression; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TFilter.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TFilter.java index efaab425079..4bd8de9d546 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TFilter.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.model.v1_3; import org.kie.dmn.model.api.Expression; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TIterator.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TIterator.java index ce28b4e72f0..2dfa5809d15 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TIterator.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TIterator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.model.v1_3; import org.kie.dmn.model.api.Expression; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TNamedExpression.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TNamedExpression.java index 8af94cdb6a1..bcfddbdbba2 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TNamedExpression.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/model/v1_3/TNamedExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.model.v1_3; import javax.xml.namespace.QName; diff --git a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/validation/TrisotechSchema.java b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/validation/TrisotechSchema.java index 7444736d69e..67fcef86bcb 100644 --- a/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/validation/TrisotechSchema.java +++ b/kie-dmn/kie-dmn-trisotech/src/main/java/org/kie/dmn/trisotech/validation/TrisotechSchema.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.validation; import javax.xml.XMLConstants; diff --git a/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/UnmarshalMarshalTest.java b/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/UnmarshalMarshalTest.java index 16ce59d64a4..a0b50aef48f 100644 --- a/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/UnmarshalMarshalTest.java +++ b/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/backend/marshalling/v1_3/xstream/UnmarshalMarshalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.backend.marshalling.v1_3.xstream; import java.io.File; diff --git a/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/core/DMN14ExpressionsTest.java b/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/core/DMN14ExpressionsTest.java index b794a55a69f..99c98f8fdeb 100644 --- a/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/core/DMN14ExpressionsTest.java +++ b/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/core/DMN14ExpressionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.core; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/core/DMN14GenericSynthTest.java b/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/core/DMN14GenericSynthTest.java index 0f5fcb61c2f..fbe0ea1d799 100644 --- a/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/core/DMN14GenericSynthTest.java +++ b/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/core/DMN14GenericSynthTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.core; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/validation/TrisotechValidationTest.java b/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/validation/TrisotechValidationTest.java index 7b27b6de4ee..d6abcc3ef08 100644 --- a/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/validation/TrisotechValidationTest.java +++ b/kie-dmn/kie-dmn-trisotech/src/test/java/org/kie/dmn/trisotech/validation/TrisotechValidationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.trisotech.validation; import java.io.InputStreamReader; diff --git a/kie-dmn/kie-dmn-trisotech/src/test/resources/logback.xml b/kie-dmn/kie-dmn-trisotech/src/test/resources/logback.xml index 0b9262386a9..bae15afa5bb 100644 --- a/kie-dmn/kie-dmn-trisotech/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-trisotech/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-validation-bootstrap/pom.xml b/kie-dmn/kie-dmn-validation-bootstrap/pom.xml index 3ef30083e2d..02b183f883a 100644 --- a/kie-dmn/kie-dmn-validation-bootstrap/pom.xml +++ b/kie-dmn/kie-dmn-validation-bootstrap/pom.xml @@ -1,3 +1,23 @@ + @@ -5,7 +25,7 @@ org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-validation-bootstrap diff --git a/kie-dmn/kie-dmn-validation-bootstrap/src/main/java/org/kie/dmn/validation/bootstrap/GenerateModel.java b/kie-dmn/kie-dmn-validation-bootstrap/src/main/java/org/kie/dmn/validation/bootstrap/GenerateModel.java index 97d005f0cc2..adf87fba50e 100644 --- a/kie-dmn/kie-dmn-validation-bootstrap/src/main/java/org/kie/dmn/validation/bootstrap/GenerateModel.java +++ b/kie-dmn/kie-dmn-validation-bootstrap/src/main/java/org/kie/dmn/validation/bootstrap/GenerateModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.bootstrap; import java.io.BufferedReader; diff --git a/kie-dmn/kie-dmn-validation-bootstrap/src/main/java/org/kie/dmn/validation/bootstrap/ValidationBootstrapMain.java b/kie-dmn/kie-dmn-validation-bootstrap/src/main/java/org/kie/dmn/validation/bootstrap/ValidationBootstrapMain.java index 0c0d082662b..00258746f67 100644 --- a/kie-dmn/kie-dmn-validation-bootstrap/src/main/java/org/kie/dmn/validation/bootstrap/ValidationBootstrapMain.java +++ b/kie-dmn/kie-dmn-validation-bootstrap/src/main/java/org/kie/dmn/validation/bootstrap/ValidationBootstrapMain.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.bootstrap; import java.io.File; diff --git a/kie-dmn/kie-dmn-validation-bootstrap/src/main/resources/org/kie/dmn/validation/bootstrap/ValidationBootstrapModels.java b/kie-dmn/kie-dmn-validation-bootstrap/src/main/resources/org/kie/dmn/validation/bootstrap/ValidationBootstrapModels.java index 8df539719c9..400312b2d1d 100644 --- a/kie-dmn/kie-dmn-validation-bootstrap/src/main/resources/org/kie/dmn/validation/bootstrap/ValidationBootstrapModels.java +++ b/kie-dmn/kie-dmn-validation-bootstrap/src/main/resources/org/kie/dmn/validation/bootstrap/ValidationBootstrapModels.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.bootstrap; import org.drools.model.Model; diff --git a/kie-dmn/kie-dmn-validation/pom.xml b/kie-dmn/kie-dmn-validation/pom.xml index ba0bcd040a1..f07f93f7977 100644 --- a/kie-dmn/kie-dmn-validation/pom.xml +++ b/kie-dmn/kie-dmn-validation/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-validation jar diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidator.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidator.java index 2ed8bd917c1..4dc5a637272 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidator.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.File; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidatorFactory.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidatorFactory.java index 6cb5014d760..7cb8f29b70b 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidatorFactory.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidatorFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidatorImpl.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidatorImpl.java index 700b5aff3fc..0a5df20a656 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidatorImpl.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/DMNValidatorImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.File; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/MessageReporter.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/MessageReporter.java index 0414515291d..de6ea3beba6 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/MessageReporter.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/MessageReporter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.validation; import org.kie.api.io.Resource; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/ValidatorUtil.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/ValidatorUtil.java index f630dd829dc..0ba53160bee 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/ValidatorUtil.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/ValidatorUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyser.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyser.java index 75cf432b387..7394fd67816 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyser.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyserValueFromNodeVisitor.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyserValueFromNodeVisitor.java index 52cdecfc8c7..ac2a56f9c48 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyserValueFromNodeVisitor.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyserValueFromNodeVisitor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisException.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisException.java index 7c6d3b69899..06296f0fe5f 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisException.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import org.kie.dmn.model.api.DecisionTable; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisMessage.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisMessage.java index 2892d14bbb7..5c1dd10b439 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisMessage.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisMessage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.Collection; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/InternalDMNDTAnalyser.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/InternalDMNDTAnalyser.java index a9be1ee538c..9774e717f74 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/InternalDMNDTAnalyser.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/InternalDMNDTAnalyser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/InternalDMNDTAnalyserFactory.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/InternalDMNDTAnalyserFactory.java index 5ae74c740bb..1c3417d1016 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/InternalDMNDTAnalyserFactory.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/InternalDMNDTAnalyserFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java index 17147f54a7f..c9ef7d523df 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDC2TCKGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.mcdc; import java.io.StringWriter; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDCAnalyser.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDCAnalyser.java index 357770bf577..ae749a0b0b3 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDCAnalyser.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/MCDCAnalyser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.mcdc; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java index 48a48628e42..2bf017df45a 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ObjectFactory.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // Copied under Apache License from https://github.com/dmn-tck/tck/blob/8c23dc13caa508a33d11b47cca318d7c3a3ca2fc/LICENSE-ASL-2.0.txt package org.kie.dmn.validation.dtanalysis.mcdc.dmntck; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java index b2006fd5a27..cbed707d7f4 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCaseType.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // Copied under Apache License from https://github.com/dmn-tck/tck/blob/8c23dc13caa508a33d11b47cca318d7c3a3ca2fc/LICENSE-ASL-2.0.txt package org.kie.dmn.validation.dtanalysis.mcdc.dmntck; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java index 45caf032e21..bad57fe70d5 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/TestCases.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // Copied under Apache License from https://github.com/dmn-tck/tck/blob/8c23dc13caa508a33d11b47cca318d7c3a3ca2fc/LICENSE-ASL-2.0.txt package org.kie.dmn.validation.dtanalysis.mcdc.dmntck; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java index 30254ad028a..4d9b58d9a1a 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/ValueType.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // Copied under Apache License from https://github.com/dmn-tck/tck/blob/8c23dc13caa508a33d11b47cca318d7c3a3ca2fc/LICENSE-ASL-2.0.txt package org.kie.dmn.validation.dtanalysis.mcdc.dmntck; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java index f6c8310e3a2..feed0d61962 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/mcdc/dmntck/package-info.java @@ -1,3 +1,21 @@ +/** + * 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. + */ // Copied under Apache License from https://github.com/dmn-tck/tck/blob/8c23dc13caa508a33d11b47cca318d7c3a3ca2fc/LICENSE-ASL-2.0.txt @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.omg.org/spec/DMN/20160719/testcase", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED, diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Bound.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Bound.java index e4149b244b4..62a4a64ffb3 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Bound.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Bound.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/BoundValueComparator.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/BoundValueComparator.java index 879259dadfe..99e9f0ef6e1 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/BoundValueComparator.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/BoundValueComparator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.Comparator; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Contraction.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Contraction.java index 40a4fa8ee43..364bd1fd2f7 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Contraction.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Contraction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAInputClause.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAInputClause.java index 94879174d0f..a7d8bfd1672 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAInputClause.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAInputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAInputEntry.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAInputEntry.java index bca00249fe0..c2bc3f6fb39 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAInputEntry.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAInputEntry.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAOutputClause.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAOutputClause.java index 2cb63dda2f3..8aad9667640 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAOutputClause.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAOutputClause.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAOutputEntryExpression.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAOutputEntryExpression.java index d5f4ad3e58b..bf634e1784f 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAOutputEntryExpression.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTAOutputEntryExpression.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.Objects; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTARule.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTARule.java index ddc067249dd..2db1bc95352 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTARule.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTARule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTATable.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTATable.java index 19ff7e40a9a..c8b62f4eeeb 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTATable.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DDTATable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DTAnalysis.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DTAnalysis.java index 40cbee8901a..84a7d1963df 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DTAnalysis.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/DTAnalysis.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Domain.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Domain.java index 65d7167b652..9900ab0b5c4 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Domain.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Domain.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Hyperrectangle.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Hyperrectangle.java index fd22a329fe6..8a2eaa92df1 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Hyperrectangle.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Hyperrectangle.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Interval.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Interval.java index dffc8203687..bb9c9ca09c4 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Interval.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Interval.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.ArrayDeque; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/MaskedRule.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/MaskedRule.java index ed457022eef..dde97f0a979 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/MaskedRule.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/MaskedRule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import org.kie.dmn.feel.util.Generated; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/MisleadingRule.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/MisleadingRule.java index b15a0ee5a06..c2eccc45445 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/MisleadingRule.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/MisleadingRule.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import org.kie.dmn.feel.util.Generated; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/NullBoundImpl.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/NullBoundImpl.java index 3872820249f..d3d50a1d213 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/NullBoundImpl.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/NullBoundImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import org.kie.dmn.feel.runtime.Range; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Overlap.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Overlap.java index de9b4b0b1f7..a9ad173a081 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Overlap.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Overlap.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/RuleColumnCoordinate.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/RuleColumnCoordinate.java index a881f10deb3..8df12570717 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/RuleColumnCoordinate.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/RuleColumnCoordinate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import org.kie.dmn.feel.util.Generated; diff --git a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Subsumption.java b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Subsumption.java index 3f54469725e..930dbe9f1cb 100644 --- a/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Subsumption.java +++ b/kie-dmn/kie-dmn-validation/src/main/java/org/kie/dmn/validation/dtanalysis/model/Subsumption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import org.kie.dmn.feel.util.Generated; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/AbstractValidatorTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/AbstractValidatorTest.java index ef81e79dc16..dd4ce3e44b7 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/AbstractValidatorTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/AbstractValidatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.File; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/MessageReporterTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/MessageReporterTest.java index b2e93cac39d..9c3c5de307b 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/MessageReporterTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/MessageReporterTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import static org.assertj.core.api.Assertions.assertThat; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/UsingResourceValidatorTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/UsingResourceValidatorTest.java index cc6184ca7a8..7c57466d41c 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/UsingResourceValidatorTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/UsingResourceValidatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorArtifactTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorArtifactTest.java index 536a5c7c056..e95ed660679 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorArtifactTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorArtifactTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorAuthorityRequirementTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorAuthorityRequirementTest.java index 4fa1667932a..5ae3761ee2d 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorAuthorityRequirementTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorAuthorityRequirementTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; @@ -37,7 +39,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_AUTH_ReaderInput() throws IOExce final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -47,7 +49,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_AUTH_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_MISSING_DEPENDENCY_REQ_AUTH.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -58,7 +60,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_AUTH_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_MISSING_DEPENDENCY_REQ_AUTH"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -68,7 +70,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_DEC_ReaderInput() throws IOExcep final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -78,7 +80,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_DEC_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_MISSING_DEPENDENCY_REQ_DEC.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -89,7 +91,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_DEC_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_MISSING_DEPENDENCY_REQ_DEC"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -99,7 +101,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_INPUT_ReaderInput() throws IOExc final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -109,7 +111,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_INPUT_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_MISSING_DEPENDENCY_REQ_INPUT.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -120,7 +122,7 @@ public void testAUTH_REQ_MISSING_DEPENDENCY_REQ_INPUT_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_MISSING_DEPENDENCY_REQ_INPUT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -130,7 +132,7 @@ public void testAUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE_ReaderInput() throws IO final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -140,7 +142,7 @@ public void testAUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -151,7 +153,7 @@ public void testAUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_DEP_REQ_AUTH_NOT_KNOWLEDGESOURCE"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -161,7 +163,7 @@ public void testAUTHREQ_DEP_REQ_DEC_NOT_DECISION_ReaderInput() throws IOExceptio final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -171,7 +173,7 @@ public void testAUTHREQ_DEP_REQ_DEC_NOT_DECISION_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_DEP_REQ_DEC_NOT_DECISION.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -182,7 +184,7 @@ public void testAUTHREQ_DEP_REQ_DEC_NOT_DECISION_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_DEP_REQ_DEC_NOT_DECISION"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -192,7 +194,7 @@ public void testAUTHREQ_DEP_REQ_INPUT_NOT_INPUT_ReaderInput() throws IOException final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -202,7 +204,7 @@ public void testAUTHREQ_DEP_REQ_INPUT_NOT_INPUT_FileInput() { final List validate = validator.validate( getFile("authorityrequirement/AUTHREQ_DEP_REQ_INPUT_NOT_INPUT.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -213,7 +215,7 @@ public void testAUTHREQ_DEP_REQ_INPUT_NOT_INPUT_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "AUTHREQ_DEP_REQ_INPUT_NOT_INPUT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorBusinessContextTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorBusinessContextTest.java index 5281fc70335..ee32923f99e 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorBusinessContextTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorBusinessContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorBusinessKnowledgeModelTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorBusinessKnowledgeModelTest.java index 1f7b9af60de..95232cfec6e 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorBusinessKnowledgeModelTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorBusinessKnowledgeModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import static org.kie.dmn.validation.DMNValidator.Validation.VALIDATE_COMPILATION; @@ -37,7 +39,7 @@ public void testBKM_MISSING_VAR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } } @@ -47,7 +49,7 @@ public void testBKM_MISSING_VAR_FileInput() { final List validate = validator.validate( getFile("businessknowledgemodel/BKM_MISSING_VAR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -58,7 +60,7 @@ public void testBKM_MISSING_VAR_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "BKM_MISSING_VAR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -99,7 +101,7 @@ public void testBKM_MISSING_EXPR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).withFailMessage(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } } @@ -109,7 +111,7 @@ public void testBKM_MISSING_EXPR_FileInput() { final List validate = validator.validate( getFile("businessknowledgemodel/BKM_MISSING_EXPR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).withFailMessage(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } @@ -120,7 +122,7 @@ public void testBKM_MISSING_EXPR_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "BKM_MISSING_EXPR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).withFailMessage(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } } diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorContextTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorContextTest.java index dc88a391dcd..045d793149d 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorContextTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorContextTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import static org.kie.dmn.validation.DMNValidator.Validation.VALIDATE_COMPILATION; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMN14Test.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMN14Test.java index f000f5681cf..200a18d7164 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMN14Test.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMN14Test.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMNDITest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMNDITest.java index 5018345d0b4..3179c005859 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMNDITest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMNDITest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMNElementReferenceTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMNElementReferenceTest.java index 4d7b9f386bc..027d12f1e5d 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMNElementReferenceTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDMNElementReferenceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; @@ -60,7 +62,7 @@ public void testELEMREF_NOHASH_DefinitionsInput() { } private void assertValiadationResult(List validationMessages) { - assertThat(validationMessages).as(ValidatorUtil.formatMessages(validationMessages)).hasSize(3); + assertThat(validationMessages).as(ValidatorUtil.formatMessages(validationMessages)).hasSize(4); assertThat(validationMessages.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validationMessages.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_HREF_SYNTAX))).isTrue(); assertThat(validationMessages.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionServiceTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionServiceTest.java index 6fa7709ef8b..acbd3773ba5 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionServiceTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionServiceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionTableTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionTableTest.java index 49d7ddced3a..c0e6440aca4 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionTableTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; @@ -38,7 +40,7 @@ public void testDTABLE_EMPTY_ENTRY_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); } } @@ -48,7 +50,7 @@ public void testDTABLE_EMPTY_ENTRY_FileInput() { final List validate = validator.validate( getFile("DTABLE_EMPTY_ENTRY.dmn"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); } @@ -59,7 +61,7 @@ public void testDTABLE_EMPTY_ENTRY_DefintionsInput() { "https://github.com/kiegroup/kie-dmn", "DTABLE_PRIORITY_MISSING_OUTVALS"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); } @@ -67,7 +69,7 @@ public void testDTABLE_EMPTY_ENTRY_DefintionsInput() { public void testDTABLE_MULTIPLEOUT_NAME_ReaderInput() throws IOException { try (final Reader reader = getReader( "DTABLE_MULTIPLEOUTPUT_WRONG_OUTPUT.dmn" )) { List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(5); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(6); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); @@ -77,7 +79,7 @@ public void testDTABLE_MULTIPLEOUT_NAME_ReaderInput() throws IOException { @Test public void testDTABLE_MULTIPLEOUT_NAME_FileInput() { List validate = validator.validate( getFile( "DTABLE_MULTIPLEOUTPUT_WRONG_OUTPUT.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(5); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(6); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); @@ -90,7 +92,7 @@ public void testDTABLE_MULTIPLEOUT_NAME_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "DTABLE_MULTIPLEOUTPUT_WRONG_OUTPUT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(5); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(6); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionTest.java index af706fae063..fa73842182d 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorDecisionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; @@ -43,7 +45,7 @@ public void testDECISION_MISSING_EXPR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).as(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } } @@ -53,7 +55,7 @@ public void testDECISION_MISSING_EXPR_FileInput() { final List validate = validator.validate( getFile("decision/DECISION_MISSING_EXPR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).as(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } @@ -64,7 +66,7 @@ public void testDECISION_MISSING_EXPR_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "DECISION_MISSING_EXPR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.get(0).getMessageType()).as(validate.get(0).toString()).isEqualTo(DMNMessageType.MISSING_EXPRESSION); } @@ -74,7 +76,7 @@ public void testDECISION_MISSING_VAR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } } @@ -84,7 +86,7 @@ public void testDECISION_MISSING_VAR_FileInput() { final List validate = validator.validate( getFile("decision/DECISION_MISSING_VAR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -95,7 +97,7 @@ public void testDECISION_MISSING_VAR_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "DECISION_MISSING_VAR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -103,7 +105,7 @@ public void testDECISION_MISSING_VAR_DefinitionsInput() { public void testDECISION_MISSING_VARbis_ReaderInput() throws IOException { try (final Reader reader = getReader("decision/DECISION_MISSING_VARbis.dmn")) { final List validate = validator.validate(reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } } @@ -112,7 +114,7 @@ public void testDECISION_MISSING_VARbis_ReaderInput() throws IOException { public void testDECISION_MISSING_VARbis_FileInput() { final List validate = validator.validate( getFile("decision/DECISION_MISSING_VARbis.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -123,7 +125,7 @@ public void testDECISION_MISSING_VARbis_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "DECISION_MISSING_VARbis"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorImportTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorImportTest.java index 44629c65f68..a2934945471 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorImportTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorImportTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorInformationRequirementTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorInformationRequirementTest.java index ce84fc583e2..3b6a32cebd7 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorInformationRequirementTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorInformationRequirementTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; @@ -37,7 +39,7 @@ public void testINFOREQ_MISSING_INPUT_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -48,7 +50,7 @@ public void testINFOREQ_MISSING_INPUT_FileInput() { final List validate = validator.validate( getFile( "informationrequirement/INFOREQ_MISSING_INPUT.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -60,7 +62,7 @@ public void testINFOREQ_MISSING_INPUT_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "INFOREQ_MISSING_INPUT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -71,7 +73,7 @@ public void testINFOREQ_INPUT_NOT_INPUTDATA_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -82,7 +84,7 @@ public void testINFOREQ_INPUT_NOT_INPUTDATA_FileInput() { final List validate = validator.validate( getFile( "informationrequirement/INFOREQ_INPUT_NOT_INPUTDATA.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -94,7 +96,7 @@ public void testINFOREQ_INPUT_NOT_INPUTDATA_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "INFOREQ_INPUT_NOT_INPUTDATA"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -105,7 +107,7 @@ public void testINFOREQ_MISSING_DECISION_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -116,7 +118,7 @@ public void testINFOREQ_MISSING_DECISION_FileInput() { final List validate = validator.validate( getFile( "informationrequirement/INFOREQ_MISSING_DECISION.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -128,7 +130,7 @@ public void testINFOREQ_MISSING_DECISION_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "INFOREQ_MISSING_DECISION"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -139,7 +141,7 @@ public void testINFOREQ_DECISION_NOT_DECISION_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -150,7 +152,7 @@ public void testINFOREQ_DECISION_NOT_DECISION_FileInput() { final List validate = validator.validate( getFile( "informationrequirement/INFOREQ_DECISION_NOT_DECISION.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -162,7 +164,7 @@ public void testINFOREQ_DECISION_NOT_DECISION_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "INFOREQ_DECISION_NOT_DECISION"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorInputDataTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorInputDataTest.java index c2ff2361bfd..79f04fb877a 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorInputDataTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorInputDataTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import static org.assertj.core.api.Assertions.assertThat; @@ -36,7 +38,7 @@ public void testINPUT_MISSING_VAR_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } } @@ -46,7 +48,7 @@ public void testINPUT_MISSING_VAR_FileInput() { final List validate = validator.validate( getFile("inputdata/INPUTDATA_MISSING_VAR.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } @@ -57,7 +59,7 @@ public void testINPUT_MISSING_VAR_DefintionsInput() { "https://github.com/kiegroup/kie-dmn", "INPUTDATA_MISSING_VAR"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_VARIABLE))).isTrue(); } diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorKnowledgeRequirementTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorKnowledgeRequirementTest.java index b2f2f87ad86..362e58f8a1b 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorKnowledgeRequirementTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorKnowledgeRequirementTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import static org.kie.dmn.validation.DMNValidator.Validation.VALIDATE_COMPILATION; @@ -37,7 +39,7 @@ public void testKNOWREQ_MISSING_BKM_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -48,7 +50,7 @@ public void testKNOWREQ_MISSING_BKM_FileInput() { final List validate = validator.validate( getFile( "knowledgerequirement/KNOWREQ_MISSING_BKM.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -60,7 +62,7 @@ public void testKNOWREQ_MISSING_BKM_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "KNOWREQ_MISSING_BKM"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -71,7 +73,7 @@ public void testKNOWREQ_REQ_DECISION_NOT_BKM_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -82,7 +84,7 @@ public void testKNOWREQ_REQ_DECISION_NOT_BKM_FileInput() { final List validate = validator.validate( getFile( "knowledgerequirement/KNOWREQ_REQ_DECISION_NOT_BKM.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -94,7 +96,7 @@ public void testKNOWREQ_REQ_DECISION_NOT_BKM_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "KNOWREQ_REQ_DECISION_NOT_BKM"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorKnowledgeSourceTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorKnowledgeSourceTest.java index fe4c6f83bce..5142971f21e 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorKnowledgeSourceTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorKnowledgeSourceTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; @@ -68,7 +70,7 @@ public void testKNOW_SOURCE_OWNER_NOT_ORG_UNIT_ReaderInput() throws IOException final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } @@ -78,7 +80,7 @@ public void testKNOW_SOURCE_OWNER_NOT_ORG_UNIT_FileInput() { final List validate = validator.validate( getFile( "knowledgesource/KNOW_SOURCE_OWNER_NOT_ORG_UNIT.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } @@ -89,7 +91,7 @@ public void testKNOW_SOURCE_OWNER_NOT_ORG_UNIT_DefinitionsInput() { "https://github.com/kiegroup/kie-dmn", "KNOW_SOURCE_OWNER_NOT_ORG_UNIT"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.REQ_NOT_FOUND))).isTrue(); } } diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorTest.java index 3918a611ccf..c3ce0937720 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.File; @@ -130,7 +132,7 @@ public void testNAME_IS_VALID() { @Test public void testNAME_INVALID_empty_name() { List validate = validator.validate( getReader( "DROOLS-1447.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(4); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(5); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.FAILED_XML_VALIDATION))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.VARIABLE_NAME_MISMATCH))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME) && p.getSourceId().equals("_5e43b55c-888e-443c-b1b9-80e4aa6746bd"))).isTrue(); @@ -192,7 +194,7 @@ public void testITEMCOMP_DUPLICATED() { @Test public void testITEMDEF_NOT_UNIQUE() { List validate = validator.validate( getReader( "ITEMDEF_NOT_UNIQUE.dmn" ), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.DUPLICATED_ITEM_DEF))).isTrue(); } @@ -287,7 +289,7 @@ public void testUNKNOWN_OPERATOR() { @Test public void testVALIDATION() { List validate = validator.validate( getReader( "validation.dmn" ), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(5); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(7); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_TYPE_REF))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION))).isTrue(); @@ -448,7 +450,7 @@ public void testDMNv1_3_ch11example1() { VALIDATE_COMPILATION) .theseModels(getReader("Financial.dmn", DMN13specificTest.class), getReader("Chapter 11 Example.dmn", DMN13specificTest.class)); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getLevel() == Level.WARNING && p.getMessageType().equals(DMNMessageType.MISSING_EXPRESSION) && p.getSourceId().equals("_4bd33d4a-741b-444a-968b-64e1841211e7"))).as(ValidatorUtil.formatMessages(validate)).isTrue(); @@ -497,7 +499,7 @@ public void testBkmAndBindingWarnLevel() { VALIDATE_MODEL, VALIDATE_COMPILATION); assertThat(validate.stream().allMatch(p -> p.getLevel() == Level.WARNING)).as(ValidatorUtil.formatMessages(validate)).isTrue(); - assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).withFailMessage(ValidatorUtil.formatMessages(validate)).hasSize(4); assertThat(validate.stream().anyMatch(p -> p.getLevel() == Level.WARNING && p.getSourceId() != null && p.getSourceId().equals("_3ce3c41a-450a-40d1-9e9c-09180cd29879"))).as(ValidatorUtil.formatMessages(validate)).isTrue(); diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorTypeRefTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorTypeRefTest.java index d1d03ea0d88..584625ccb64 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorTypeRefTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorTypeRefTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation; import java.io.IOException; @@ -37,7 +39,7 @@ public void testTYPEREF_NO_FEEL_TYPE_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } } @@ -47,7 +49,7 @@ public void testTYPEREF_NO_FEEL_TYPE_FileInput() { final List validate = validator.validate( getFile("typeref/TYPEREF_NO_FEEL_TYPE.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -56,7 +58,7 @@ public void testTYPEREF_NO_FEEL_TYPE_DefinitionsInput() { final List validate = validator.validate( getDefinitions("typeref/TYPEREF_NO_FEEL_TYPE.dmn", "https://github.com/kiegroup/kie-dmn", "TYPEREF_NO_FEEL_TYPE"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -66,7 +68,7 @@ public void testTYPEREF_NO_NS_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } } @@ -76,7 +78,7 @@ public void testTYPEREF_NO_NS_FileInput() { final List validate = validator.validate( getFile("typeref/TYPEREF_NO_NS.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -85,7 +87,7 @@ public void testTYPEREF_NO_NS_DefinitionsInput() { final List validate = validator.validate( getDefinitions("typeref/TYPEREF_NO_NS.dmn", "https://github.com/kiegroup/kie-dmn", "TYPEREF_NO_NS"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(1); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -95,7 +97,7 @@ public void testTYPEREF_NOT_FEEL_NOT_DEF_ReaderInput() throws IOException { final List validate = validator.validate( reader, VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -106,7 +108,7 @@ public void testTYPEREF_NOT_FEEL_NOT_DEF_FileInput() { final List validate = validator.validate( getFile("typeref/TYPEREF_NOT_FEEL_NOT_DEF.dmn"), VALIDATE_SCHEMA, VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } @@ -116,7 +118,7 @@ public void testTYPEREF_NOT_FEEL_NOT_DEF_DefinitionsInput() { final List validate = validator.validate( getDefinitions("typeref/TYPEREF_NOT_FEEL_NOT_DEF.dmn", "https://github.com/kiegroup/kie-dmn", "TYPEREF_NOT_FEEL_NOT_DEF"), VALIDATE_MODEL, VALIDATE_COMPILATION); - assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(2); + assertThat(validate).as(ValidatorUtil.formatMessages(validate)).hasSize(3); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.INVALID_NAME))).isTrue(); assertThat(validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.TYPE_DEF_NOT_FOUND))).isTrue(); } diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/classloader/ValidatorClassloaderTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/classloader/ValidatorClassloaderTest.java index b0d2f3c0b39..3e5e25696e6 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/classloader/ValidatorClassloaderTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/classloader/ValidatorClassloaderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.classloader; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AK0100domainOnTableTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AK0100domainOnTableTest.java index 8f9f9daa7e9..8e5515dd1ef 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AK0100domainOnTableTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AK0100domainOnTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AK0100v2domainOnTableTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AK0100v2domainOnTableTest.java index a9073d64160..c7773579247 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AK0100v2domainOnTableTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AK0100v2domainOnTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AbstractDTAnalysisTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AbstractDTAnalysisTest.java index ca0be3fa022..c2327c2703b 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AbstractDTAnalysisTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AbstractDTAnalysisTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.HashMap; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AgeKittenTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AgeKittenTest.java index a32012e020b..baa814b6d8a 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AgeKittenTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/AgeKittenTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/BuiltinAndOtherValuesTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/BuiltinAndOtherValuesTest.java index d7a6aa08606..e858328739c 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/BuiltinAndOtherValuesTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/BuiltinAndOtherValuesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Check1stNFViolationTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Check1stNFViolationTest.java index 87a7d0f2059..a14e3cfac09 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Check1stNFViolationTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Check1stNFViolationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Check2ndNFViolationTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Check2ndNFViolationTest.java index 92076fbe86d..d45a5a1c3fd 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Check2ndNFViolationTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Check2ndNFViolationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/ContractionRulesTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/ContractionRulesTest.java index f4da11038b8..e5a8b62460a 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/ContractionRulesTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/ContractionRulesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyserValueFromNodeVisitorTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyserValueFromNodeVisitorTest.java index f2f14102e8c..a527403ef99 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyserValueFromNodeVisitorTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalyserValueFromNodeVisitorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.Collections; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisExceptionTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisExceptionTest.java index 590efc909c1..9b3d056e583 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisExceptionTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DMNDTAnalysisExceptionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DTNestingTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DTNestingTest.java index 8bb6c720e2a..3469d91c330 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DTNestingTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DTNestingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DTinBKMTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DTinBKMTest.java index e8b391cbddf..798553ebab0 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DTinBKMTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/DTinBKMTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/EnumerationWithNullTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/EnumerationWithNullTest.java index 7980df35472..701e6c67740 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/EnumerationWithNullTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/EnumerationWithNullTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/FailingOutputConstraintsTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/FailingOutputConstraintsTest.java index 32627a0c6ff..0f3e2feeda8 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/FailingOutputConstraintsTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/FailingOutputConstraintsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Gaps0100domainOnTableTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Gaps0100domainOnTableTest.java index a9743fe35cd..9ff3fa4777b 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Gaps0100domainOnTableTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/Gaps0100domainOnTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsAndOverlaps1Test.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsAndOverlaps1Test.java index 19935886ea5..6c9d15aac09 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsAndOverlaps1Test.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsAndOverlaps1Test.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsAndOverlaps1domainOnTableTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsAndOverlaps1domainOnTableTest.java index 3e242ff0c40..7908a88a049 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsAndOverlaps1domainOnTableTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsAndOverlaps1domainOnTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsCube3Test.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsCube3Test.java index 8e40e366f97..85e2eed48ae 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsCube3Test.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsCube3Test.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsOverlapsBooleanTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsOverlapsBooleanTest.java index 6b50065df0b..79ff3ce0e25 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsOverlapsBooleanTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsOverlapsBooleanTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsXYTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsXYTest.java index 51cf19c483e..3fc440004e4 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsXYTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/GapsXYTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/HitPolicyFirstTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/HitPolicyFirstTest.java index 51971dd98db..00517f5a7c1 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/HitPolicyFirstTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/HitPolicyFirstTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/IntervalTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/IntervalTest.java index ffd02fa3249..12cc0ea1ad5 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/IntervalTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/IntervalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.time.LocalDate; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MaskTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MaskTest.java index 7908fda53ff..f0c4d7ee9e0 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MaskTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MaskTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MisleadingRulesTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MisleadingRulesTest.java index 64455448adf..fff41fe4fdf 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MisleadingRulesTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MisleadingRulesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MultipleModelsTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MultipleModelsTest.java index 9087f601b17..3c213842f50 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MultipleModelsTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/MultipleModelsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.io.IOException; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NoGapsDateAdjacentTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NoGapsDateAdjacentTest.java index 7018860ebaa..08faad7d03d 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NoGapsDateAdjacentTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NoGapsDateAdjacentTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NoGapsDomainOnTypeRefTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NoGapsDomainOnTypeRefTest.java index 5ba6e84ad9d..fec6d150256 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NoGapsDomainOnTypeRefTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NoGapsDomainOnTypeRefTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NotTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NotTest.java index e1594c792ff..15129996b43 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NotTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NotTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NullTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NullTest.java index 306087e2a94..90d27efa3b5 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NullTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/NullTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import org.junit.Test; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/OverlapHitPolicyTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/OverlapHitPolicyTest.java index fdb01720eb2..9aba69a94b1 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/OverlapHitPolicyTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/OverlapHitPolicyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/OverlapsMsgTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/OverlapsMsgTest.java index d04efe6dafe..206980f7504 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/OverlapsMsgTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/OverlapsMsgTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/PiTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/PiTest.java index 3f160951566..364c8de4bcf 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/PiTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/PiTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/PosDoubleNegHalfTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/PosDoubleNegHalfTest.java index 8fd5d2ace97..c1dcd2534ad 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/PosDoubleNegHalfTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/PosDoubleNegHalfTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/RecommenderHitPolicyTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/RecommenderHitPolicyTest.java index 6d51a66de57..cc260b0ab8c 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/RecommenderHitPolicyTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/RecommenderHitPolicyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.Arrays; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/RuleOrderDashTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/RuleOrderDashTest.java index 9e5ad919115..0c45ced3f8f 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/RuleOrderDashTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/RuleOrderDashTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SRGapsOverlapsSubsumption2Test.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SRGapsOverlapsSubsumption2Test.java index 1462d6ee9e8..25d4ff6c049 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SRGapsOverlapsSubsumption2Test.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SRGapsOverlapsSubsumption2Test.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SameMsgInAllAPITest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SameMsgInAllAPITest.java index 2ea587a6df9..4ac6c8e20a0 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SameMsgInAllAPITest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SameMsgInAllAPITest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SimpleStringNoGapTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SimpleStringNoGapTest.java index 36f4c7a6c48..00fd73c38b7 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SimpleStringNoGapTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SimpleStringNoGapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SomeProblemTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SomeProblemTest.java index d52e2c69f00..05bd341a607 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SomeProblemTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SomeProblemTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SomeProblemruleOutsideDomainTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SomeProblemruleOutsideDomainTest.java index b5ee04e0796..95b634258c3 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SomeProblemruleOutsideDomainTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SomeProblemruleOutsideDomainTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/StringWithoutEnumNoGapTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/StringWithoutEnumNoGapTest.java index 5d3d1b5706f..15fdb5e75dd 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/StringWithoutEnumNoGapTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/StringWithoutEnumNoGapTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SubsumptionRulesTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SubsumptionRulesTest.java index fabdf52cba1..993a46d674e 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SubsumptionRulesTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SubsumptionRulesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SymbolInDTTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SymbolInDTTest.java index ca90e866c13..18d72d8ed3a 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SymbolInDTTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/SymbolInDTTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis; import java.util.List; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/mcdc/ExampleMCDCTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/mcdc/ExampleMCDCTest.java index 22cb786ebe9..e104393316f 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/mcdc/ExampleMCDCTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/mcdc/ExampleMCDCTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.mcdc; import java.awt.Desktop; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/model/NullBoundImplTest.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/model/NullBoundImplTest.java index 3375a5837ba..e09f0932d80 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/model/NullBoundImplTest.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/model/NullBoundImplTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.model; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/utils/DTAnalysisMeta.java b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/utils/DTAnalysisMeta.java index 1e2603cb297..5d3e085a755 100644 --- a/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/utils/DTAnalysisMeta.java +++ b/kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/dtanalysis/utils/DTAnalysisMeta.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.validation.dtanalysis.utils; import java.math.BigDecimal; diff --git a/kie-dmn/kie-dmn-validation/src/test/resources/logback.xml b/kie-dmn/kie-dmn-validation/src/test/resources/logback.xml index 2884be7459f..547585c4226 100644 --- a/kie-dmn/kie-dmn-validation/src/test/resources/logback.xml +++ b/kie-dmn/kie-dmn-validation/src/test/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/pom.xml b/kie-dmn/kie-dmn-xls2dmn-cli/pom.xml index 5a5175b37a2..1f2bc4765c9 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/pom.xml +++ b/kie-dmn/kie-dmn-xls2dmn-cli/pom.xml @@ -1,9 +1,29 @@ + 4.0.0 org.kie kie-dmn - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT kie-dmn-xls2dmn-cli jar @@ -104,6 +124,16 @@ shade + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + org.kie.dmn.xls2dmn.cli.App diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/App.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/App.java index a11c22cc221..bf47c9e98e0 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/App.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/App.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; import java.io.File; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/DTHeaderInfo.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/DTHeaderInfo.java index c1f6ddf01df..40684fc33b5 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/DTHeaderInfo.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/DTHeaderInfo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/DTSheetListener.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/DTSheetListener.java index 66adc06000a..b62ddbb44dd 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/DTSheetListener.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/DTSheetListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; import java.util.ArrayList; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/SameVMApp.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/SameVMApp.java index 7a9954e417e..029c697df44 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/SameVMApp.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/SameVMApp.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; import picocli.CommandLine; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNException.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNException.java index 7f3b42ae299..5d147b8a901 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNException.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNParser.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNParser.java index 71f6baa0d79..5eb2700b624 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNParser.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; import java.io.File; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNVersionProvider.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNVersionProvider.java index 7b8668072e0..74bd078b547 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNVersionProvider.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/java/org/kie/dmn/xls2dmn/cli/XLS2DMNVersionProvider.java @@ -1,22 +1,24 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; -import org.drools.core.util.Drools; +import org.drools.base.util.Drools; import picocli.CommandLine.IVersionProvider; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/resources/logback.xml b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/resources/logback.xml index a9cc3a8950c..7c7766dd405 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/main/resources/logback.xml +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/main/resources/logback.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/CardApprovalTest.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/CardApprovalTest.java index 04ff92fe122..2bd761830f0 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/CardApprovalTest.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/CardApprovalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; import java.io.File; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/ChineseLunarYearsTest.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/ChineseLunarYearsTest.java index a25a5db7173..d05291acd55 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/ChineseLunarYearsTest.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/ChineseLunarYearsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; import java.io.File; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/TestUtils.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/TestUtils.java index 9cefb928850..ee88c768736 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/TestUtils.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/TestUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; import java.io.File; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/XLS2DMNParserTest.java b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/XLS2DMNParserTest.java index f01372705b0..7d91230bec7 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/XLS2DMNParserTest.java +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/java/org/kie/dmn/xls2dmn/cli/XLS2DMNParserTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.dmn.xls2dmn.cli; import java.io.File; diff --git a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/resources/logback-test.xml b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/resources/logback-test.xml index 1300bcc737f..cf17161325e 100644 --- a/kie-dmn/kie-dmn-xls2dmn-cli/src/test/resources/logback-test.xml +++ b/kie-dmn/kie-dmn-xls2dmn-cli/src/test/resources/logback-test.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-dmn/pom.xml b/kie-dmn/pom.xml index 58a69b8b8cc..f91e9a70725 100644 --- a/kie-dmn/pom.xml +++ b/kie-dmn/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-drl/kie-drl-api/pom.xml b/kie-drl/kie-drl-api/pom.xml index 3d174c091d0..9d6e47297fc 100644 --- a/kie-drl/kie-drl-api/pom.xml +++ b/kie-drl/kie-drl-api/pom.xml @@ -1,18 +1,42 @@ + - - kie-drl - org.kie - 8.40.0-SNAPSHOT - - 4.0.0 + + kie-drl + org.kie + 8.45.0-SNAPSHOT + + 4.0.0 + + kie-drl-api - kie-drl-api + KIE :: DRL :: API + Common API for DRL - KIE :: DRL :: API - Common API for DRL + + org.kie.drl.api + @@ -27,5 +51,4 @@ - \ No newline at end of file diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DataSourceIds.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DataSourceIds.java index d482518f6c7..3afa06d2d8f 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DataSourceIds.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DataSourceIds.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlComponentRoot.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlComponentRoot.java index 2d543bc5c68..6d1f2e1909a 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlComponentRoot.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlComponentRoot.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlIdFactory.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlIdFactory.java index 7efbf99e302..c84511cdc69 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlIdFactory.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlIdFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlSessionIdFactory.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlSessionIdFactory.java index eac543c062d..aed0c4fee22 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlSessionIdFactory.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/DrlSessionIdFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InstanceQueryId.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InstanceQueryId.java index 0c00d19eaf8..43206c5283b 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InstanceQueryId.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InstanceQueryId.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InstanceQueryIds.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InstanceQueryIds.java index a316b7c22d7..a1c24ee6ccb 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InstanceQueryIds.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InstanceQueryIds.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InvalidRuleUnitIdException.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InvalidRuleUnitIdException.java index 8747dc0c689..09fe90f2c98 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InvalidRuleUnitIdException.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/InvalidRuleUnitIdException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.drl.api.identifiers; import org.kie.efesto.common.api.identifiers.LocalId; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/KieDrlComponentRoot.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/KieDrlComponentRoot.java index a3c67082093..7a2202cc65a 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/KieDrlComponentRoot.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/KieDrlComponentRoot.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/LocalComponentIdDrl.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/LocalComponentIdDrl.java index 681f2cdfc11..8c73069d6ff 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/LocalComponentIdDrl.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/LocalComponentIdDrl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/LocalComponentIdDrlSession.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/LocalComponentIdDrlSession.java index 8719cdbfc73..e516410643c 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/LocalComponentIdDrlSession.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/LocalComponentIdDrlSession.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/QueryId.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/QueryId.java index 94b53dc4c61..71cad3cef23 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/QueryId.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/QueryId.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/QueryIds.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/QueryIds.java index ac318c9bb22..fa3c68f7dc3 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/QueryIds.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/QueryIds.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.drl.api.identifiers; public class QueryIds { diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitId.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitId.java index afb44e828b4..c96024729b8 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitId.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitId.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitIdParser.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitIdParser.java index 8cb3e94b1e6..1de5f01c96b 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitIdParser.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitIdParser.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitIds.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitIds.java index 2ecd4a68d41..935de111abe 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitIds.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitIds.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.drl.api.identifiers; import org.kie.efesto.common.api.identifiers.ComponentRoot; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitInstanceId.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitInstanceId.java index bf920f8b320..7ed3f0139cd 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitInstanceId.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitInstanceId.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitInstanceIds.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitInstanceIds.java index bc6936383c8..89c729b6131 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitInstanceIds.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/RuleUnitInstanceIds.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataId.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataId.java index c40d0c6ac73..3cccd57d4ab 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataId.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataId.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers.data; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataIds.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataIds.java index 77cd92aee51..7bf30b264a4 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataIds.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataIds.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers.data; diff --git a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataSourceId.java b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataSourceId.java index 6bc53fd9980..6daa0d2bf16 100644 --- a/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataSourceId.java +++ b/kie-drl/kie-drl-api/src/main/java/org/kie/drl/api/identifiers/data/DataSourceId.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers.data; diff --git a/kie-drl/kie-drl-api/src/test/java/org/kie/drl/api/identifiers/DrlSessionIdFactoryTest.java b/kie-drl/kie-drl-api/src/test/java/org/kie/drl/api/identifiers/DrlSessionIdFactoryTest.java index 2742f3ed37d..2089f51f0e7 100644 --- a/kie-drl/kie-drl-api/src/test/java/org/kie/drl/api/identifiers/DrlSessionIdFactoryTest.java +++ b/kie-drl/kie-drl-api/src/test/java/org/kie/drl/api/identifiers/DrlSessionIdFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/test/java/org/kie/drl/api/identifiers/LocalComponentIdDrlSessionTest.java b/kie-drl/kie-drl-api/src/test/java/org/kie/drl/api/identifiers/LocalComponentIdDrlSessionTest.java index ad412204f2b..4e78262bc7e 100644 --- a/kie-drl/kie-drl-api/src/test/java/org/kie/drl/api/identifiers/LocalComponentIdDrlSessionTest.java +++ b/kie-drl/kie-drl-api/src/test/java/org/kie/drl/api/identifiers/LocalComponentIdDrlSessionTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.api.identifiers; diff --git a/kie-drl/kie-drl-api/src/test/java/org/kie/kogito/incubation/rules/RuleUnitIdParserTest.java b/kie-drl/kie-drl-api/src/test/java/org/kie/kogito/incubation/rules/RuleUnitIdParserTest.java index 56ee08257f1..20a9f719348 100644 --- a/kie-drl/kie-drl-api/src/test/java/org/kie/kogito/incubation/rules/RuleUnitIdParserTest.java +++ b/kie-drl/kie-drl-api/src/test/java/org/kie/kogito/incubation/rules/RuleUnitIdParserTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.kogito.incubation.rules; diff --git a/kie-drl/kie-drl-compilation-common/pom.xml b/kie-drl/kie-drl-compilation-common/pom.xml index 51b01fa02f8..1e28ad9046a 100644 --- a/kie-drl/kie-drl-compilation-common/pom.xml +++ b/kie-drl/kie-drl-compilation-common/pom.xml @@ -1,48 +1,69 @@ + - - kie-drl - org.kie - 8.40.0-SNAPSHOT - - 4.0.0 - - kie-drl-compilation-common - - KIE :: DRL :: Compilation :: Common - Common code for DRL Compilation - - - false - - - - - org.kie - efesto-compilation-manager-core - - - org.drools - drools-model-codegen - - - org.drools - drools-ruleunits-api - - - org.drools - drools-ruleunits-impl - - - org.kie - kie-drl-api - - - org.assertj - assertj-core + + kie-drl + org.kie + 8.45.0-SNAPSHOT + + 4.0.0 + + kie-drl-compilation-common + + KIE :: DRL :: Compilation :: Common + Common code for DRL Compilation + + + org.kie.drl.compilationcommon + false + + + + + org.kie + efesto-compilation-manager-core + + + org.drools + drools-model-codegen + + + org.drools + drools-ruleunits-api + + + org.drools + drools-ruleunits-impl + + + org.kie + kie-drl-api + + + org.assertj + assertj-core test - + \ No newline at end of file diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/AbstractDrlFileSetResource.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/AbstractDrlFileSetResource.java index da775769465..d909a07c8d9 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/AbstractDrlFileSetResource.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/AbstractDrlFileSetResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.model; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DecisionTableFileSetResource.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DecisionTableFileSetResource.java index a81abb3ab0e..cd144634631 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DecisionTableFileSetResource.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DecisionTableFileSetResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.drl.engine.compilation.model; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlCompilationContext.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlCompilationContext.java index db9dc7e5818..0c0f1140d64 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlCompilationContext.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlCompilationContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.model; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlCompilationContextImpl.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlCompilationContextImpl.java index d522e123b7c..e48fa25dc7e 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlCompilationContextImpl.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlCompilationContextImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.model; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlFileSetResource.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlFileSetResource.java index 5bfe64721b7..3975cebf802 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlFileSetResource.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlFileSetResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.drl.engine.compilation.model; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlPackageDescrSetResource.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlPackageDescrSetResource.java index 05c262994d3..d5219a0e101 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlPackageDescrSetResource.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/DrlPackageDescrSetResource.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.model; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/ExecutableModelClassesContainer.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/ExecutableModelClassesContainer.java index 9db59c04df6..8f16979d52d 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/ExecutableModelClassesContainer.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/model/ExecutableModelClassesContainer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.model; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServiceDecisionTable.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServiceDecisionTable.java index 5154f6593c7..e2b5a86e537 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServiceDecisionTable.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServiceDecisionTable.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.service; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServiceDrl.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServiceDrl.java index 6fd4d358868..a7548262d1d 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServiceDrl.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServiceDrl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.service; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServicePackDesc.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServicePackDesc.java index d673d298c7d..3d4149ba16b 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServicePackDesc.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/service/KieCompilerServicePackDesc.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.service; diff --git a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/utils/DrlCompilerHelper.java b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/utils/DrlCompilerHelper.java index 922523d6072..46ac2ae8032 100644 --- a/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/utils/DrlCompilerHelper.java +++ b/kie-drl/kie-drl-compilation-common/src/main/java/org/kie/drl/engine/compilation/utils/DrlCompilerHelper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.utils; diff --git a/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/AllAmounts.java b/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/AllAmounts.java index 1fd8ecf5e59..657ae67a899 100644 --- a/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/AllAmounts.java +++ b/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/AllAmounts.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/Applicant.java b/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/Applicant.java index c1f77feb8ed..4030432c01f 100644 --- a/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/Applicant.java +++ b/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/Applicant.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/LoanApplication.java b/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/LoanApplication.java index 4c23773e145..3ee8c0e480d 100644 --- a/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/LoanApplication.java +++ b/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/LoanApplication.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/LoanUnit.java b/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/LoanUnit.java index 4c327d5f805..a635ab671df 100644 --- a/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/LoanUnit.java +++ b/kie-drl/kie-drl-compilation-common/src/test/java/org/drools/ruleunit/example/LoanUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-drl/kie-drl-compilation-common/src/test/java/org/kie/drl/engine/compilation/KieCompilerServiceDrlTest.java b/kie-drl/kie-drl-compilation-common/src/test/java/org/kie/drl/engine/compilation/KieCompilerServiceDrlTest.java index 217da94d0cc..fc2019781f1 100644 --- a/kie-drl/kie-drl-compilation-common/src/test/java/org/kie/drl/engine/compilation/KieCompilerServiceDrlTest.java +++ b/kie-drl/kie-drl-compilation-common/src/test/java/org/kie/drl/engine/compilation/KieCompilerServiceDrlTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation; diff --git a/kie-drl/kie-drl-compilation-common/src/test/java/org/kie/drl/engine/compilation/utils/DrlCompilerHelperTest.java b/kie-drl/kie-drl-compilation-common/src/test/java/org/kie/drl/engine/compilation/utils/DrlCompilerHelperTest.java index 2d425e03aa3..9c63d7f67d7 100644 --- a/kie-drl/kie-drl-compilation-common/src/test/java/org/kie/drl/engine/compilation/utils/DrlCompilerHelperTest.java +++ b/kie-drl/kie-drl-compilation-common/src/test/java/org/kie/drl/engine/compilation/utils/DrlCompilerHelperTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.compilation.utils; diff --git a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/pom.xml b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/pom.xml index b1fbeeedefe..038712c663e 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/pom.xml +++ b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/pom.xml @@ -1,38 +1,57 @@ + - - kie-drl-kiesession-local - org.kie - 8.40.0-SNAPSHOT - - 4.0.0 - - kie-drl-kiesession-local-runtime - - KIE :: DRL :: KieSession :: Local :: Runtime - DRL runtime for local-only usage of KieSession - - - - - org.kie - kie-drl-runtime-common - - - org.drools - drools-canonical-model - compile - - - org.kie - kie-drl-api - - - - - false - + + kie-drl-kiesession-local + org.kie + 8.45.0-SNAPSHOT + + 4.0.0 + + kie-drl-kiesession-local-runtime + + KIE :: DRL :: KieSession :: Local :: Runtime + DRL runtime for local-only usage of KieSession + + + org.kie.drl.implementations.kiesessionlocal.runtime + false + + + + org.kie + kie-drl-runtime-common + + + org.drools + drools-canonical-model + compile + + + org.kie + kie-drl-api + + \ No newline at end of file diff --git a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/model/EfestoInputDrlKieSessionLocal.java b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/model/EfestoInputDrlKieSessionLocal.java index e016876b499..2ce11cf5f81 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/model/EfestoInputDrlKieSessionLocal.java +++ b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/model/EfestoInputDrlKieSessionLocal.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.drl.engine.runtime.kiesession.local.model; diff --git a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/model/EfestoOutputDrlKieSessionLocal.java b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/model/EfestoOutputDrlKieSessionLocal.java index a99c667f42e..b149f96a051 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/model/EfestoOutputDrlKieSessionLocal.java +++ b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/model/EfestoOutputDrlKieSessionLocal.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.drl.engine.runtime.kiesession.local.model; diff --git a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/service/KieRuntimeServiceDrlKieSessionLocal.java b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/service/KieRuntimeServiceDrlKieSessionLocal.java index dd71b02a6c4..b9e420f5c7f 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/service/KieRuntimeServiceDrlKieSessionLocal.java +++ b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/service/KieRuntimeServiceDrlKieSessionLocal.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.runtime.kiesession.local.service; diff --git a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/utils/DrlRuntimeHelper.java b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/utils/DrlRuntimeHelper.java index b3829bdeed4..b3ef6a3ac3f 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/utils/DrlRuntimeHelper.java +++ b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/kie-drl-kiesession-local-runtime/src/main/java/org/kie/drl/engine/runtime/kiesession/local/utils/DrlRuntimeHelper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.runtime.kiesession.local.utils; diff --git a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/pom.xml b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/pom.xml index 8308c7e9aaa..37935844692 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/pom.xml +++ b/kie-drl/kie-drl-implementations/kie-drl-kiesession-local/pom.xml @@ -1,11 +1,31 @@ + kie-drl-implementations org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/pom.xml b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/pom.xml index f337c25ce31..6ac9940fb7b 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/pom.xml +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/pom.xml @@ -1,42 +1,63 @@ + - 4.0.0 - - kie-drl-map-input - org.kie - 8.40.0-SNAPSHOT - - - kie-drl-map-input-runtime - - KIE :: DRL :: MapInput :: Runtime - DRL runtime for sending maps as input. To be used for inter-engine communication (e.g. PMML -> Drl) - - - - org.kie - kie-drl-runtime-common - - - org.drools - drools-canonical-model - compile - - - org.kie - kie-drl-api - - - org.assertj - assertj-core - test - - - - - false - - + 4.0.0 + + kie-drl-map-input + org.kie + 8.45.0-SNAPSHOT + + + kie-drl-map-input-runtime + + KIE :: DRL :: MapInput :: Runtime + DRL runtime for sending maps as input. To be used for inter-engine communication (e.g. PMML -> Drl) + + + + org.kie.drl.implementations.drlmapinput.runtime + false + + + + + org.kie + kie-drl-runtime-common + + + org.drools + drools-canonical-model + compile + + + org.kie + kie-drl-api + + + org.assertj + assertj-core + test + + \ No newline at end of file diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/model/EfestoInputDrlMap.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/model/EfestoInputDrlMap.java index 57678f9999f..43cc63cb058 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/model/EfestoInputDrlMap.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/model/EfestoInputDrlMap.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.drl.engine.runtime.mapinput.model; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/model/EfestoOutputDrlMap.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/model/EfestoOutputDrlMap.java index ac2316ba226..6eebc8bea2c 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/model/EfestoOutputDrlMap.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/model/EfestoOutputDrlMap.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.drl.engine.runtime.mapinput.model; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/service/KieRuntimeServiceDrlMapInput.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/service/KieRuntimeServiceDrlMapInput.java index bd41f5ccdd3..35d13cd6f49 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/service/KieRuntimeServiceDrlMapInput.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/service/KieRuntimeServiceDrlMapInput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.runtime.mapinput.service; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/utils/DrlRuntimeHelper.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/utils/DrlRuntimeHelper.java index 4e7366f038d..7cc6fb3ea78 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/utils/DrlRuntimeHelper.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/utils/DrlRuntimeHelper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.runtime.mapinput.utils; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/utils/MapInputSessionUtils.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/utils/MapInputSessionUtils.java index d9c056e2296..d260487b06c 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/utils/MapInputSessionUtils.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/main/java/org/kie/drl/engine/runtime/mapinput/utils/MapInputSessionUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.drl.engine.runtime.mapinput.utils; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/Applicant.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/Applicant.java index 40f7b345517..ae183307d35 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/Applicant.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/Applicant.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.mapinput.compilation.model.test; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/DateUtils.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/DateUtils.java index 6247eff1743..bb668e9827a 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/DateUtils.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/DateUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.drl.engine.mapinput.compilation.model.test; import java.text.DateFormatSymbols; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/DomainClassesMetadataED2A293F9C55BB1943AA9A6A1A8BF64C.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/DomainClassesMetadataED2A293F9C55BB1943AA9A6A1A8BF64C.java index 7a4e9c733e8..b31e1f2d320 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/DomainClassesMetadataED2A293F9C55BB1943AA9A6A1A8BF64C.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/DomainClassesMetadataED2A293F9C55BB1943AA9A6A1A8BF64C.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test; public class DomainClassesMetadataED2A293F9C55BB1943AA9A6A1A8BF64C { diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanAppDto.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanAppDto.java index 431d1ff91d9..c1ebda77115 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanAppDto.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanAppDto.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test; import java.util.List; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanApplication.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanApplication.java index 5505eb5dd68..5d733a0372c 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanApplication.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanApplication.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.mapinput.compilation.model.test; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanDto.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanDto.java index da40f412c2b..bb9ef655f45 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanDto.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/LoanDto.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.mapinput.compilation.model.test; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P2F/LambdaPredicate2F3B4F1D1FFEB290777A54C8F3D34978.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P2F/LambdaPredicate2F3B4F1D1FFEB290777A54C8F3D34978.java index 0d7d09bf50a..584d6cddef0 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P2F/LambdaPredicate2F3B4F1D1FFEB290777A54C8F3D34978.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P2F/LambdaPredicate2F3B4F1D1FFEB290777A54C8F3D34978.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.P2F; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P33/LambdaPredicate3384BFD77A71291E75C8C73A492233E3.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P33/LambdaPredicate3384BFD77A71291E75C8C73A492233E3.java index 398b371f692..370d9eea929 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P33/LambdaPredicate3384BFD77A71291E75C8C73A492233E3.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P33/LambdaPredicate3384BFD77A71291E75C8C73A492233E3.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.P33; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P4C/LambdaPredicate4C9797236624848F80F1DAA0797F33AF.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P4C/LambdaPredicate4C9797236624848F80F1DAA0797F33AF.java index a24c9b3f628..664a8395dc6 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P4C/LambdaPredicate4C9797236624848F80F1DAA0797F33AF.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P4C/LambdaPredicate4C9797236624848F80F1DAA0797F33AF.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.P4C; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P57/LambdaConsequence5740B486CC8DAC375E93235CC2B0815D.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P57/LambdaConsequence5740B486CC8DAC375E93235CC2B0815D.java index d821039e3ca..76cdaf1b18c 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P57/LambdaConsequence5740B486CC8DAC375E93235CC2B0815D.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P57/LambdaConsequence5740B486CC8DAC375E93235CC2B0815D.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.P57; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P5F/LambdaConsequence5F2293C183CB858F420C12848B4E6D9C.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P5F/LambdaConsequence5F2293C183CB858F420C12848B4E6D9C.java index 174b9b2cbbe..21a5a3c0a4b 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P5F/LambdaConsequence5F2293C183CB858F420C12848B4E6D9C.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P5F/LambdaConsequence5F2293C183CB858F420C12848B4E6D9C.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.P5F; import org.kie.drl.engine.mapinput.compilation.model.test.*; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P89/LambdaPredicate896F205BB6DAC489283E534C8D4BF758.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P89/LambdaPredicate896F205BB6DAC489283E534C8D4BF758.java index d219a070ba9..56a97ec8204 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P89/LambdaPredicate896F205BB6DAC489283E534C8D4BF758.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/P89/LambdaPredicate896F205BB6DAC489283E534C8D4BF758.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.P89; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PA2/LambdaPredicateA2AD3A5DB0C892BF59F8EDAD4B47E88C.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PA2/LambdaPredicateA2AD3A5DB0C892BF59F8EDAD4B47E88C.java index 97ea9f020f5..e11ce446f57 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PA2/LambdaPredicateA2AD3A5DB0C892BF59F8EDAD4B47E88C.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PA2/LambdaPredicateA2AD3A5DB0C892BF59F8EDAD4B47E88C.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.PA2; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PA3/LambdaExtractorA32B8CB1183D0F49BCC4780851D79C38.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PA3/LambdaExtractorA32B8CB1183D0F49BCC4780851D79C38.java index c4c4a6c36c7..a1e088b5a26 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PA3/LambdaExtractorA32B8CB1183D0F49BCC4780851D79C38.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PA3/LambdaExtractorA32B8CB1183D0F49BCC4780851D79C38.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.PA3; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PB2/LambdaExtractorB2483B164D7AAF9439F4B88741DDDF9E.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PB2/LambdaExtractorB2483B164D7AAF9439F4B88741DDDF9E.java index 81f9d3affe3..20614b2be16 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PB2/LambdaExtractorB2483B164D7AAF9439F4B88741DDDF9E.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PB2/LambdaExtractorB2483B164D7AAF9439F4B88741DDDF9E.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.PB2; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PC9/LambdaPredicateC91E5C2471BC7923781356677C372303.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PC9/LambdaPredicateC91E5C2471BC7923781356677C372303.java index d1a48f7ea35..da36e30a880 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PC9/LambdaPredicateC91E5C2471BC7923781356677C372303.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PC9/LambdaPredicateC91E5C2471BC7923781356677C372303.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.PC9; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PD9/LambdaPredicateD9AE0C5DE12003E037A99BF48F72D864.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PD9/LambdaPredicateD9AE0C5DE12003E037A99BF48F72D864.java index 38ff5571b68..d4aac2f4c0c 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PD9/LambdaPredicateD9AE0C5DE12003E037A99BF48F72D864.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PD9/LambdaPredicateD9AE0C5DE12003E037A99BF48F72D864.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.PD9; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PE0/LambdaConsequenceE0E2A00590319D790395C8D009E4D36A.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PE0/LambdaConsequenceE0E2A00590319D790395C8D009E4D36A.java index 74ea1e53184..b298b8b8173 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PE0/LambdaConsequenceE0E2A00590319D790395C8D009E4D36A.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PE0/LambdaConsequenceE0E2A00590319D790395C8D009E4D36A.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.PE0; import org.kie.drl.engine.mapinput.compilation.model.test.*; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PE7/LambdaExtractorE7AC7861C0CAFC6F617FD43B3B32B4DC.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PE7/LambdaExtractorE7AC7861C0CAFC6F617FD43B3B32B4DC.java index 332605c5205..759d01bd812 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PE7/LambdaExtractorE7AC7861C0CAFC6F617FD43B3B32B4DC.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PE7/LambdaExtractorE7AC7861C0CAFC6F617FD43B3B32B4DC.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.PE7; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PF2/LambdaPredicateF2B64823F29DA45122941E0AD245653F.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PF2/LambdaPredicateF2B64823F29DA45122941E0AD245653F.java index f0949bb584f..eb8189093c3 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PF2/LambdaPredicateF2B64823F29DA45122941E0AD245653F.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PF2/LambdaPredicateF2B64823F29DA45122941E0AD245653F.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.PF2; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PF3/LambdaPredicateF388D9370A499303354D5F588D65FFF8.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PF3/LambdaPredicateF388D9370A499303354D5F588D65FFF8.java index e8aa1f106e6..ec82a7944e4 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PF3/LambdaPredicateF388D9370A499303354D5F588D65FFF8.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/PF3/LambdaPredicateF388D9370A499303354D5F588D65FFF8.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test.PF3; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/RulesED2A293F9C55BB1943AA9A6A1A8BF64C.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/RulesED2A293F9C55BB1943AA9A6A1A8BF64C.java index c35467a6843..ff9c32d91a8 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/RulesED2A293F9C55BB1943AA9A6A1A8BF64C.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/RulesED2A293F9C55BB1943AA9A6A1A8BF64C.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test; import org.drools.modelcompiler.dsl.pattern.D; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/RulesED2A293F9C55BB1943AA9A6A1A8BF64CRuleMethods0.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/RulesED2A293F9C55BB1943AA9A6A1A8BF64CRuleMethods0.java index 06a2f9e74e9..b839adf3a40 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/RulesED2A293F9C55BB1943AA9A6A1A8BF64CRuleMethods0.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/mapinput/compilation/model/test/RulesED2A293F9C55BB1943AA9A6A1A8BF64CRuleMethods0.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.mapinput.compilation.model.test; import org.drools.modelcompiler.dsl.pattern.D; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/runtime/mapinput/utils/DrlRuntimeHelperTest.java b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/runtime/mapinput/utils/DrlRuntimeHelperTest.java index 438b597f1c1..0d2a63171e3 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/runtime/mapinput/utils/DrlRuntimeHelperTest.java +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/kie-drl-map-input-runtime/src/test/java/org/kie/drl/engine/runtime/mapinput/utils/DrlRuntimeHelperTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.runtime.mapinput.utils; diff --git a/kie-drl/kie-drl-implementations/kie-drl-map-input/pom.xml b/kie-drl/kie-drl-implementations/kie-drl-map-input/pom.xml index 367fc5ca4af..94ad6154c72 100644 --- a/kie-drl/kie-drl-implementations/kie-drl-map-input/pom.xml +++ b/kie-drl/kie-drl-implementations/kie-drl-map-input/pom.xml @@ -1,11 +1,31 @@ + kie-drl-implementations org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-drl/kie-drl-implementations/pom.xml b/kie-drl/kie-drl-implementations/pom.xml index 0be80aae4d6..b8982276af6 100644 --- a/kie-drl/kie-drl-implementations/pom.xml +++ b/kie-drl/kie-drl-implementations/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ kie-drl org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT KIE :: DRL :: Implementations diff --git a/kie-drl/kie-drl-runtime-common/pom.xml b/kie-drl/kie-drl-runtime-common/pom.xml index d2cefb37991..dc1af215142 100644 --- a/kie-drl/kie-drl-runtime-common/pom.xml +++ b/kie-drl/kie-drl-runtime-common/pom.xml @@ -1,35 +1,59 @@ + - - kie-drl - org.kie - 8.40.0-SNAPSHOT - - 4.0.0 - - kie-drl-runtime-common - - KIE :: DRL :: Runtime :: Common - Common code for DRL Runtime - - - - org.kie - efesto-runtime-manager-core - - - org.drools - drools-model-compiler - compile - - - org.assertj - assertj-core - test - - + + kie-drl + org.kie + 8.45.0-SNAPSHOT + + 4.0.0 + + kie-drl-runtime-common + + KIE :: DRL :: Runtime :: Common + Common code for DRL Runtime + + + org.kie.drl.runtimecommon + + + + + org.kie + efesto-runtime-manager-core + + + org.drools + drools-model-compiler + compile + + + org.assertj + assertj-core + test + + \ No newline at end of file diff --git a/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/model/EfestoInputDrl.java b/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/model/EfestoInputDrl.java index 75f234af41f..19f20d7de17 100644 --- a/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/model/EfestoInputDrl.java +++ b/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/model/EfestoInputDrl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.drl.engine.runtime.model; diff --git a/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/model/EfestoOutputDrl.java b/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/model/EfestoOutputDrl.java index 5c94f6d36cd..9836518b383 100644 --- a/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/model/EfestoOutputDrl.java +++ b/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/model/EfestoOutputDrl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.drl.engine.runtime.model; diff --git a/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/utils/EfestoKieRuntimeDrlUtils.java b/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/utils/EfestoKieRuntimeDrlUtils.java index 0529e3d00b3..50aeda7386d 100644 --- a/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/utils/EfestoKieRuntimeDrlUtils.java +++ b/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/utils/EfestoKieRuntimeDrlUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.runtime.utils; diff --git a/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/utils/EfestoKieSessionUtil.java b/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/utils/EfestoKieSessionUtil.java index 7d3a350d2c1..56479c9e6de 100644 --- a/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/utils/EfestoKieSessionUtil.java +++ b/kie-drl/kie-drl-runtime-common/src/main/java/org/kie/drl/engine/runtime/utils/EfestoKieSessionUtil.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.runtime.utils; diff --git a/kie-drl/kie-drl-runtime-common/src/test/java/org/kie/drl/engine/compilation/model/test/Rulesefe9b92fdd254fbabc9e9002be0d51d6.java b/kie-drl/kie-drl-runtime-common/src/test/java/org/kie/drl/engine/compilation/model/test/Rulesefe9b92fdd254fbabc9e9002be0d51d6.java index 2113af8dec0..24ee2087143 100644 --- a/kie-drl/kie-drl-runtime-common/src/test/java/org/kie/drl/engine/compilation/model/test/Rulesefe9b92fdd254fbabc9e9002be0d51d6.java +++ b/kie-drl/kie-drl-runtime-common/src/test/java/org/kie/drl/engine/compilation/model/test/Rulesefe9b92fdd254fbabc9e9002be0d51d6.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.compilation.model.test; import java.util.List; diff --git a/kie-drl/kie-drl-runtime-common/src/test/java/org/kie/drl/engine/runtime/utils/EfestoKieSessionUtilTest.java b/kie-drl/kie-drl-runtime-common/src/test/java/org/kie/drl/engine/runtime/utils/EfestoKieSessionUtilTest.java index 06d36bd45b1..23fc88cba40 100644 --- a/kie-drl/kie-drl-runtime-common/src/test/java/org/kie/drl/engine/runtime/utils/EfestoKieSessionUtilTest.java +++ b/kie-drl/kie-drl-runtime-common/src/test/java/org/kie/drl/engine/runtime/utils/EfestoKieSessionUtilTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.runtime.utils; diff --git a/kie-drl/kie-drl-tests-without-index-file/pom.xml b/kie-drl/kie-drl-tests-without-index-file/pom.xml index 178978c4c14..da66e39b4da 100644 --- a/kie-drl/kie-drl-tests-without-index-file/pom.xml +++ b/kie-drl/kie-drl-tests-without-index-file/pom.xml @@ -1,11 +1,31 @@ + + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> kie-drl org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -15,6 +35,7 @@ DRL Tests not having a phisical IndexFile in classpath + org.kie.drl.testswithoutindexfile false diff --git a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/AllAmounts.java b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/AllAmounts.java index 1fd8ecf5e59..657ae67a899 100644 --- a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/AllAmounts.java +++ b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/AllAmounts.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/Applicant.java b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/Applicant.java index c1f77feb8ed..4030432c01f 100644 --- a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/Applicant.java +++ b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/Applicant.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/LoanApplication.java b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/LoanApplication.java index 4c23773e145..3ee8c0e480d 100644 --- a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/LoanApplication.java +++ b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/LoanApplication.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/LoanUnit.java b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/LoanUnit.java index 4c327d5f805..a635ab671df 100644 --- a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/LoanUnit.java +++ b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/drools/ruleunit/example/LoanUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/kie/drl/engine/testingmodule/OnTheFlyDrlTest.java b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/kie/drl/engine/testingmodule/OnTheFlyDrlTest.java index 962bf2f1add..77fc5038620 100644 --- a/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/kie/drl/engine/testingmodule/OnTheFlyDrlTest.java +++ b/kie-drl/kie-drl-tests-without-index-file/src/test/java/org/kie/drl/engine/testingmodule/OnTheFlyDrlTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.testingmodule; diff --git a/kie-drl/kie-drl-tests-without-index-file/src/test/resources/logback-test.xml b/kie-drl/kie-drl-tests-without-index-file/src/test/resources/logback-test.xml index 00dde63c0b6..805c66d04d7 100644 --- a/kie-drl/kie-drl-tests-without-index-file/src/test/resources/logback-test.xml +++ b/kie-drl/kie-drl-tests-without-index-file/src/test/resources/logback-test.xml @@ -1,12 +1,24 @@ - + diff --git a/kie-drl/kie-drl-tests/pom.xml b/kie-drl/kie-drl-tests/pom.xml index f8f89a9d167..bdf6c6d3795 100644 --- a/kie-drl/kie-drl-tests/pom.xml +++ b/kie-drl/kie-drl-tests/pom.xml @@ -1,11 +1,31 @@ + + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> kie-drl org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -15,6 +35,7 @@ DRL Tests + org.kie.drl.tests false @@ -77,10 +98,10 @@ test - org.assertj - assertj-core - test - + org.assertj + assertj-core + test + diff --git a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/DomainClassesMetadataefe9b92fdd254fbabc9e9002be0d51d6.java b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/DomainClassesMetadataefe9b92fdd254fbabc9e9002be0d51d6.java index f9b248259c8..4365416a5bd 100644 --- a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/DomainClassesMetadataefe9b92fdd254fbabc9e9002be0d51d6.java +++ b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/DomainClassesMetadataefe9b92fdd254fbabc9e9002be0d51d6.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.compilation.model; public class DomainClassesMetadataefe9b92fdd254fbabc9e9002be0d51d6 { diff --git a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/P70/LambdaConsequence7037A15B6FD94A0C410A07AD1B7BC897.java b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/P70/LambdaConsequence7037A15B6FD94A0C410A07AD1B7BC897.java index 00c9f771419..7a3d9fc7eeb 100644 --- a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/P70/LambdaConsequence7037A15B6FD94A0C410A07AD1B7BC897.java +++ b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/P70/LambdaConsequence7037A15B6FD94A0C410A07AD1B7BC897.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.compilation.model.P70; @org.drools.compiler.kie.builder.MaterializedLambda() diff --git a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6.java b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6.java index 6c650ba25d7..035dc6fe7ba 100644 --- a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6.java +++ b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.compilation.model; public class Rulesefe9b92fdd254fbabc9e9002be0d51d6 implements org.drools.model.Model { diff --git a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6_rule_first.java b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6_rule_first.java index 93660733c13..e19156941b8 100644 --- a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6_rule_first.java +++ b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6_rule_first.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.compilation.model; import org.drools.modelcompiler.dsl.pattern.D; diff --git a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6_rule_second.java b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6_rule_second.java index ed870ed9d49..d0c7f46a68b 100644 --- a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6_rule_second.java +++ b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/compilation/model/Rulesefe9b92fdd254fbabc9e9002be0d51d6_rule_second.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.compilation.model; import org.drools.modelcompiler.dsl.pattern.D; diff --git a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/testingmodule/utils/DrlTestUtils.java b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/testingmodule/utils/DrlTestUtils.java index 0264c06d62c..03414c1cf75 100644 --- a/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/testingmodule/utils/DrlTestUtils.java +++ b/kie-drl/kie-drl-tests/src/main/java/org/kie/drl/engine/testingmodule/utils/DrlTestUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.drl.engine.testingmodule.utils; import java.io.File; diff --git a/kie-drl/kie-drl-tests/src/test/java/org/kie/drl/engine/testingmodule/compilation/CompileDrlTest.java b/kie-drl/kie-drl-tests/src/test/java/org/kie/drl/engine/testingmodule/compilation/CompileDrlTest.java index a27b3a427cf..5ada74dd6ed 100644 --- a/kie-drl/kie-drl-tests/src/test/java/org/kie/drl/engine/testingmodule/compilation/CompileDrlTest.java +++ b/kie-drl/kie-drl-tests/src/test/java/org/kie/drl/engine/testingmodule/compilation/CompileDrlTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.testingmodule.compilation; diff --git a/kie-drl/kie-drl-tests/src/test/java/org/kie/drl/engine/testingmodule/runtime/RuntimeDrlTest.java b/kie-drl/kie-drl-tests/src/test/java/org/kie/drl/engine/testingmodule/runtime/RuntimeDrlTest.java index 2b938b50187..8f733170e23 100644 --- a/kie-drl/kie-drl-tests/src/test/java/org/kie/drl/engine/testingmodule/runtime/RuntimeDrlTest.java +++ b/kie-drl/kie-drl-tests/src/test/java/org/kie/drl/engine/testingmodule/runtime/RuntimeDrlTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.drl.engine.testingmodule.runtime; diff --git a/kie-drl/kie-drl-tests/src/test/resources/logback-test.xml b/kie-drl/kie-drl-tests/src/test/resources/logback-test.xml index 00dde63c0b6..805c66d04d7 100644 --- a/kie-drl/kie-drl-tests/src/test/resources/logback-test.xml +++ b/kie-drl/kie-drl-tests/src/test/resources/logback-test.xml @@ -1,12 +1,24 @@ - + diff --git a/kie-drl/pom.xml b/kie-drl/pom.xml index 273a1540a39..cb27a3fa8c6 100644 --- a/kie-drl/pom.xml +++ b/kie-drl/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-internal/pom.xml b/kie-internal/pom.xml index 3d950d6699c..b73b2477666 100644 --- a/kie-internal/pom.xml +++ b/kie-internal/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-internal/src/main/filtered-resources/org/kie/internal/utils/kieMeta.properties b/kie-internal/src/main/filtered-resources/org/kie/internal/utils/kieMeta.properties index ee5e7b94e29..2f9c57eab26 100644 --- a/kie-internal/src/main/filtered-resources/org/kie/internal/utils/kieMeta.properties +++ b/kie-internal/src/main/filtered-resources/org/kie/internal/utils/kieMeta.properties @@ -1,2 +1,21 @@ +# +# 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. +# + # There is a productizedProfile that is enabled if -Dproductized is specified on the command line productized=${org.kie.productized} diff --git a/kie-internal/src/main/java/org/kie/internal/KieInternalServices.java b/kie-internal/src/main/java/org/kie/internal/KieInternalServices.java index c9641460848..2173fdb322f 100644 --- a/kie-internal/src/main/java/org/kie/internal/KieInternalServices.java +++ b/kie-internal/src/main/java/org/kie/internal/KieInternalServices.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal; import org.kie.internal.process.CorrelationKeyFactory; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/AssemblerContext.java b/kie-internal/src/main/java/org/kie/internal/builder/AssemblerContext.java index 89e67556975..361fcb5259b 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/AssemblerContext.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/AssemblerContext.java @@ -1,20 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder; import java.util.function.Function; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/ChangeType.java b/kie-internal/src/main/java/org/kie/internal/builder/ChangeType.java index 1af74ca3e3f..257904758ad 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/ChangeType.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/ChangeType.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.builder; public enum ChangeType { diff --git a/kie-internal/src/main/java/org/kie/internal/builder/CompositeKnowledgeBuilder.java b/kie-internal/src/main/java/org/kie/internal/builder/CompositeKnowledgeBuilder.java index 5395b7bd79c..ee7e28a9e51 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/CompositeKnowledgeBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/CompositeKnowledgeBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; import org.kie.api.io.Resource; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/DecisionTableConfiguration.java b/kie-internal/src/main/java/org/kie/internal/builder/DecisionTableConfiguration.java index 06fa0ee5c61..137b80c890f 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/DecisionTableConfiguration.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/DecisionTableConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/DecisionTableInputType.java b/kie-internal/src/main/java/org/kie/internal/builder/DecisionTableInputType.java index f6a16fff162..1a400542923 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/DecisionTableInputType.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/DecisionTableInputType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; /** diff --git a/kie-internal/src/main/java/org/kie/internal/builder/IncrementalResults.java b/kie-internal/src/main/java/org/kie/internal/builder/IncrementalResults.java index 132baae17b6..3d7601c5a49 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/IncrementalResults.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/IncrementalResults.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/InternalKieBuilder.java b/kie-internal/src/main/java/org/kie/internal/builder/InternalKieBuilder.java index 06e09767d5f..26e5bdb5334 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/InternalKieBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/InternalKieBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder; import java.util.function.Predicate; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/InternalMessage.java b/kie-internal/src/main/java/org/kie/internal/builder/InternalMessage.java index f053bb7abc2..b9f439519e8 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/InternalMessage.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/InternalMessage.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.internal.builder; import org.kie.api.builder.Message; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/JaxbConfiguration.java b/kie-internal/src/main/java/org/kie/internal/builder/JaxbConfiguration.java index 979dbcfc649..5faeef74df5 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/JaxbConfiguration.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/JaxbConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/JaxbConfigurationFactoryService.java b/kie-internal/src/main/java/org/kie/internal/builder/JaxbConfigurationFactoryService.java index 26f04157230..d92a4ae3241 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/JaxbConfigurationFactoryService.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/JaxbConfigurationFactoryService.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; import com.sun.tools.xjc.Options; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KieBuilderSet.java b/kie-internal/src/main/java/org/kie/internal/builder/KieBuilderSet.java index eeb7d793612..7c3ffa94056 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KieBuilderSet.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KieBuilderSet.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder; public interface KieBuilderSet { diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilder.java b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilder.java index 204299b90ba..315e5eb2bca 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; import java.util.Collection; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderConfiguration.java b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderConfiguration.java index 28c8de44553..63aac7ffa43 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderConfiguration.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; import org.kie.internal.builder.conf.KnowledgeBuilderOptionsConfiguration; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderError.java b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderError.java index c83007712cc..881e619e827 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderError.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; /** diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderErrors.java b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderErrors.java index 46a77ba2209..c7ee9378963 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderErrors.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderErrors.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; import java.util.Collection; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderFactory.java b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderFactory.java index 9f41f41394d..54157abd112 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; import java.util.Properties; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderFactoryService.java b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderFactoryService.java index 423361d3721..59495367b12 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderFactoryService.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderFactoryService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; import java.util.Properties; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderResult.java b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderResult.java index 6ba550d0349..d1e3a6dd22f 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderResult.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderResult.java @@ -1,18 +1,21 @@ -/* -* Copyright 2011 Red Hat, Inc. and/or its affiliates -* -* Licensed 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. -*/ +/** + * 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. + */ package org.kie.internal.builder; import org.kie.api.io.Resource; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderResults.java b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderResults.java index 2c6d79265a8..51f1c82c23e 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderResults.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/KnowledgeBuilderResults.java @@ -1,18 +1,21 @@ -/* -* Copyright 2011 Red Hat, Inc. and/or its affiliates -* -* Licensed 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. -*/ +/** + * 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. + */ package org.kie.internal.builder; import java.util.Collection; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/ProcessBuilder.java b/kie-internal/src/main/java/org/kie/internal/builder/ProcessBuilder.java index f823138f059..0f4229f298d 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/ProcessBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/ProcessBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; /** diff --git a/kie-internal/src/main/java/org/kie/internal/builder/ResourceChange.java b/kie-internal/src/main/java/org/kie/internal/builder/ResourceChange.java index 8ad47447b40..3c5ff5f5d12 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/ResourceChange.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/ResourceChange.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.builder; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/ResourceChangeSet.java b/kie-internal/src/main/java/org/kie/internal/builder/ResourceChangeSet.java index 15cd9859ac4..311d5ec1050 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/ResourceChangeSet.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/ResourceChangeSet.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.builder; import java.util.ArrayList; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/ResultSeverity.java b/kie-internal/src/main/java/org/kie/internal/builder/ResultSeverity.java index 2be14cbcbb0..bf59aa9a34b 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/ResultSeverity.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/ResultSeverity.java @@ -1,18 +1,21 @@ -/* -* Copyright 2011 Red Hat, Inc. and/or its affiliates -* -* Licensed 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. -*/ +/** + * 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. + */ package org.kie.internal.builder; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/RuleBuilder.java b/kie-internal/src/main/java/org/kie/internal/builder/RuleBuilder.java index a3ad27b70d6..f57e58ac618 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/RuleBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/RuleBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder; /** diff --git a/kie-internal/src/main/java/org/kie/internal/builder/RuleTemplateConfiguration.java b/kie-internal/src/main/java/org/kie/internal/builder/RuleTemplateConfiguration.java index 8d7a617ea4d..443c8cf42d5 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/RuleTemplateConfiguration.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/RuleTemplateConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * 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. + * 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. */ - package org.kie.internal.builder; import org.kie.api.io.Resource; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/AccumulateFunctionOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/AccumulateFunctionOption.java index a6666c9836f..d6156a8520e 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/AccumulateFunctionOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/AccumulateFunctionOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/AlphaNetworkCompilerOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/AlphaNetworkCompilerOption.java index e872c476a6a..9f22dc0b173 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/AlphaNetworkCompilerOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/AlphaNetworkCompilerOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/DefaultDialectOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/DefaultDialectOption.java index b159fce8f08..c640b758fc7 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/DefaultDialectOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/DefaultDialectOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/DefaultPackageNameOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/DefaultPackageNameOption.java index 75a01c09f9a..10cef5110fe 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/DefaultPackageNameOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/DefaultPackageNameOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/DumpDirOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/DumpDirOption.java index e73328c4041..b70443952d8 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/DumpDirOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/DumpDirOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import java.io.File; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/EvaluatorOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/EvaluatorOption.java index d36025f4b1e..50494f10868 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/EvaluatorOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/EvaluatorOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/ExternaliseCanonicalModelLambdaOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/ExternaliseCanonicalModelLambdaOption.java index fc43b90eff9..db9938f2060 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/ExternaliseCanonicalModelLambdaOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/ExternaliseCanonicalModelLambdaOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/GroupDRLsInKieBasesByFolderOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/GroupDRLsInKieBasesByFolderOption.java index eb88c17efa2..61c10552bb4 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/GroupDRLsInKieBasesByFolderOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/GroupDRLsInKieBasesByFolderOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/KBuilderSeverityOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/KBuilderSeverityOption.java index cc3535e5d11..a2783032be8 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/KBuilderSeverityOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/KBuilderSeverityOption.java @@ -1,17 +1,20 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.builder.conf; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/KnowledgeBuilderOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/KnowledgeBuilderOption.java index 3038101223b..a41d749393d 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/KnowledgeBuilderOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/KnowledgeBuilderOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.Option; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/KnowledgeBuilderOptionsConfiguration.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/KnowledgeBuilderOptionsConfiguration.java index 55abb738902..260f4cdf8a5 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/KnowledgeBuilderOptionsConfiguration.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/KnowledgeBuilderOptionsConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionsConfiguration; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/LanguageLevelOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/LanguageLevelOption.java index d38e2def80a..ca8b96ee91a 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/LanguageLevelOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/LanguageLevelOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueKieBuilderOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueKieBuilderOption.java index 5994e9e2356..58a143e415b 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueKieBuilderOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueKieBuilderOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.MultiValueOption; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueKnowledgeBuilderOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueKnowledgeBuilderOption.java index 48418382517..f4dc32bf1ed 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueKnowledgeBuilderOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueKnowledgeBuilderOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueRuleBuilderOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueRuleBuilderOption.java index 774ffd00e3d..8aef52403be 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueRuleBuilderOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/MultiValueRuleBuilderOption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.internal.builder.conf; public interface MultiValueRuleBuilderOption extends MultiValueKieBuilderOption { diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/ParallelLambdaExternalizationOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/ParallelLambdaExternalizationOption.java index 79c13a86d9d..fa012da86e3 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/ParallelLambdaExternalizationOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/ParallelLambdaExternalizationOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/ParallelRulesBuildThresholdOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/ParallelRulesBuildThresholdOption.java index 05b1ca6f99f..383c33ebb95 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/ParallelRulesBuildThresholdOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/ParallelRulesBuildThresholdOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/ProcessStringEscapesOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/ProcessStringEscapesOption.java index afc9337dd71..2928643916c 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/ProcessStringEscapesOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/ProcessStringEscapesOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/PropertySpecificOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/PropertySpecificOption.java index af3fa0d60bb..a2b4053bdfd 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/PropertySpecificOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/PropertySpecificOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueKieBuilderOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueKieBuilderOption.java index e5b4a44bb54..32cb4b06716 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueKieBuilderOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueKieBuilderOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.SingleValueOption; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueKnowledgeBuilderOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueKnowledgeBuilderOption.java index a37051d8bfa..9cdb936c9d8 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueKnowledgeBuilderOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueKnowledgeBuilderOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueRuleBuilderOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueRuleBuilderOption.java index 579ab748f93..30ec6934304 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueRuleBuilderOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/SingleValueRuleBuilderOption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.internal.builder.conf; public interface SingleValueRuleBuilderOption extends SingleValueKieBuilderOption { diff --git a/kie-internal/src/main/java/org/kie/internal/builder/conf/TrimCellsInDTableOption.java b/kie-internal/src/main/java/org/kie/internal/builder/conf/TrimCellsInDTableOption.java index 839e09456bd..0346818012f 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/conf/TrimCellsInDTableOption.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/conf/TrimCellsInDTableOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/CommandBasedExecutable.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/CommandBasedExecutable.java index 454e2bb1840..92b742775e5 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/CommandBasedExecutable.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/CommandBasedExecutable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder.fluent; import org.kie.api.command.ExecutableCommand; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/ContextFluent.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/ContextFluent.java index 6ed6bab5f69..4bf53970145 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/ContextFluent.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/ContextFluent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder.fluent; import org.kie.api.command.ExecutableCommand; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/DMNFluent.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/DMNFluent.java index 73cfc9a49c4..803c83e61e8 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/DMNFluent.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/DMNFluent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.fluent; /** diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/ExecutableBuilder.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/ExecutableBuilder.java index 114bc2b90db..0761fc008e3 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/ExecutableBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/ExecutableBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder.fluent; import org.kie.api.builder.ReleaseId; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/KieContainerFluent.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/KieContainerFluent.java index 52fabd3720e..5ce992a5eea 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/KieContainerFluent.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/KieContainerFluent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder.fluent; import java.util.function.BiFunction; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/KieSessionFluent.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/KieSessionFluent.java index a82436e04dc..fa33c7b1316 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/KieSessionFluent.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/KieSessionFluent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder.fluent; public interface KieSessionFluent diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/ProcessFluent.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/ProcessFluent.java index d885d04cbfa..19edae42817 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/ProcessFluent.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/ProcessFluent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.builder.fluent; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/RuleFluent.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/RuleFluent.java index a49bd9928b3..5714a81142f 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/RuleFluent.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/RuleFluent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.fluent; import org.kie.api.runtime.rule.FactHandle; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/Scope.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/Scope.java index 64f498df140..1d2a79368e6 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/Scope.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/Scope.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder.fluent; public enum Scope { diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/TaskFluent.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/TaskFluent.java index 3bea98216e5..f62ecca7daf 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/TaskFluent.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/TaskFluent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.builder.fluent; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/TimeFluent.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/TimeFluent.java index 245030113fd..e0ed289df13 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/TimeFluent.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/TimeFluent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder.fluent; public interface TimeFluent { diff --git a/kie-internal/src/main/java/org/kie/internal/builder/fluent/WorkItemManagerFluent.java b/kie-internal/src/main/java/org/kie/internal/builder/fluent/WorkItemManagerFluent.java index 2b00b8c8e8d..8c0275dafa9 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/fluent/WorkItemManagerFluent.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/fluent/WorkItemManagerFluent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.fluent; import java.util.Map; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java b/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java index 398a8ca6b22..5a70bf3a038 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/help/DroolsJaxbHelperProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.help; import java.io.IOException; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java b/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java index 5bc9fb6176b..d60aa2bcccc 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/help/KnowledgeBuilderHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.builder.help; import java.io.IOException; diff --git a/kie-internal/src/main/java/org/kie/internal/builder/impl/KieInternalServicesImpl.java b/kie-internal/src/main/java/org/kie/internal/builder/impl/KieInternalServicesImpl.java index 447b19b0f3c..3d08fcbf911 100644 --- a/kie-internal/src/main/java/org/kie/internal/builder/impl/KieInternalServicesImpl.java +++ b/kie-internal/src/main/java/org/kie/internal/builder/impl/KieInternalServicesImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.builder.impl; import org.kie.api.internal.utils.KieService; diff --git a/kie-internal/src/main/java/org/kie/internal/command/CommandFactory.java b/kie-internal/src/main/java/org/kie/internal/command/CommandFactory.java index d962e659915..a970f229321 100644 --- a/kie-internal/src/main/java/org/kie/internal/command/CommandFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/command/CommandFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.command; import java.util.Collection; diff --git a/kie-internal/src/main/java/org/kie/internal/command/ContextManager.java b/kie-internal/src/main/java/org/kie/internal/command/ContextManager.java index b6a51aea845..53638d2c0b7 100644 --- a/kie-internal/src/main/java/org/kie/internal/command/ContextManager.java +++ b/kie-internal/src/main/java/org/kie/internal/command/ContextManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.command; import org.kie.api.runtime.Context; diff --git a/kie-internal/src/main/java/org/kie/internal/command/CorrelationKeyCommand.java b/kie-internal/src/main/java/org/kie/internal/command/CorrelationKeyCommand.java index 9f5924e3e4e..f9319fe3b22 100644 --- a/kie-internal/src/main/java/org/kie/internal/command/CorrelationKeyCommand.java +++ b/kie-internal/src/main/java/org/kie/internal/command/CorrelationKeyCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.command; import org.kie.internal.process.CorrelationKey; diff --git a/kie-internal/src/main/java/org/kie/internal/command/ExtendedKieCommands.java b/kie-internal/src/main/java/org/kie/internal/command/ExtendedKieCommands.java index 75d00a9722f..2893bdedc99 100644 --- a/kie-internal/src/main/java/org/kie/internal/command/ExtendedKieCommands.java +++ b/kie-internal/src/main/java/org/kie/internal/command/ExtendedKieCommands.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.internal.command; import org.kie.api.command.Command; diff --git a/kie-internal/src/main/java/org/kie/internal/command/ProcessInstanceIdCommand.java b/kie-internal/src/main/java/org/kie/internal/command/ProcessInstanceIdCommand.java index 9e6cadcb91b..4917f648524 100644 --- a/kie-internal/src/main/java/org/kie/internal/command/ProcessInstanceIdCommand.java +++ b/kie-internal/src/main/java/org/kie/internal/command/ProcessInstanceIdCommand.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.command; diff --git a/kie-internal/src/main/java/org/kie/internal/command/RegistryContext.java b/kie-internal/src/main/java/org/kie/internal/command/RegistryContext.java index 77784447697..7b7c23563b2 100644 --- a/kie-internal/src/main/java/org/kie/internal/command/RegistryContext.java +++ b/kie-internal/src/main/java/org/kie/internal/command/RegistryContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.command; import java.util.function.Function; diff --git a/kie-internal/src/main/java/org/kie/internal/concurrent/ExecutorProviderFactory.java b/kie-internal/src/main/java/org/kie/internal/concurrent/ExecutorProviderFactory.java index 7d4af85c5b5..50ca7962fa2 100644 --- a/kie-internal/src/main/java/org/kie/internal/concurrent/ExecutorProviderFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/concurrent/ExecutorProviderFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.concurrent; import org.kie.api.concurrent.KieExecutors; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/AlphaRangeIndexThresholdOption.java b/kie-internal/src/main/java/org/kie/internal/conf/AlphaRangeIndexThresholdOption.java index 5bbf3b6343b..31969318300 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/AlphaRangeIndexThresholdOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/AlphaRangeIndexThresholdOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/AlphaThresholdOption.java b/kie-internal/src/main/java/org/kie/internal/conf/AlphaThresholdOption.java index 700ad6b2faa..69daa040ed1 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/AlphaThresholdOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/AlphaThresholdOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/CompositeBaseConfiguration.java b/kie-internal/src/main/java/org/kie/internal/conf/CompositeBaseConfiguration.java index 847ec85908a..61df27c27a6 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/CompositeBaseConfiguration.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/CompositeBaseConfiguration.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.KieBaseConfiguration; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/CompositeConfiguration.java b/kie-internal/src/main/java/org/kie/internal/conf/CompositeConfiguration.java index f6ee547e2d1..7e7ead1dc93 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/CompositeConfiguration.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/CompositeConfiguration.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.internal.conf; import java.io.Externalizable; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/CompositeKeyDepthOption.java b/kie-internal/src/main/java/org/kie/internal/conf/CompositeKeyDepthOption.java index ca6a367f432..f5475588061 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/CompositeKeyDepthOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/CompositeKeyDepthOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/ConfigurationFactory.java b/kie-internal/src/main/java/org/kie/internal/conf/ConfigurationFactory.java index 27a23784bb3..da2f72ebb60 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/ConfigurationFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/ConfigurationFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.MultiValueOption; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/ConsequenceExceptionHandlerOption.java b/kie-internal/src/main/java/org/kie/internal/conf/ConsequenceExceptionHandlerOption.java index 468e47abf5f..a5b0b2a7520 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/ConsequenceExceptionHandlerOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/ConsequenceExceptionHandlerOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/ConstraintJittingThresholdOption.java b/kie-internal/src/main/java/org/kie/internal/conf/ConstraintJittingThresholdOption.java index c9bcbf43e67..4340eaa6eaa 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/ConstraintJittingThresholdOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/ConstraintJittingThresholdOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 +/** + * 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 * - * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/IndexLeftBetaMemoryOption.java b/kie-internal/src/main/java/org/kie/internal/conf/IndexLeftBetaMemoryOption.java index 2637a0fd627..82986e9f305 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/IndexLeftBetaMemoryOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/IndexLeftBetaMemoryOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/IndexPrecedenceOption.java b/kie-internal/src/main/java/org/kie/internal/conf/IndexPrecedenceOption.java index debd0db4636..d19bd286577 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/IndexPrecedenceOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/IndexPrecedenceOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/IndexRightBetaMemoryOption.java b/kie-internal/src/main/java/org/kie/internal/conf/IndexRightBetaMemoryOption.java index bd545d78532..75a13881a51 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/IndexRightBetaMemoryOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/IndexRightBetaMemoryOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/InternalPropertiesConfiguration.java b/kie-internal/src/main/java/org/kie/internal/conf/InternalPropertiesConfiguration.java index 930de3ce5a8..d96509faa40 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/InternalPropertiesConfiguration.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/InternalPropertiesConfiguration.java @@ -1,18 +1,21 @@ -/* - * Copyright 2023 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.internal.conf; public interface InternalPropertiesConfiguration { diff --git a/kie-internal/src/main/java/org/kie/internal/conf/MaxThreadsOption.java b/kie-internal/src/main/java/org/kie/internal/conf/MaxThreadsOption.java index 3cfd3738593..d7bc9c31d52 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/MaxThreadsOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/MaxThreadsOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/MultithreadEvaluationOption.java b/kie-internal/src/main/java/org/kie/internal/conf/MultithreadEvaluationOption.java deleted file mode 100644 index 2e6a893062b..00000000000 --- a/kie-internal/src/main/java/org/kie/internal/conf/MultithreadEvaluationOption.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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. - */ - -package org.kie.internal.conf; - -import org.kie.api.conf.OptionKey; -import org.kie.api.conf.SingleValueRuleBaseOption; - -/** - * An Enum for multithread evaluation option. - * - * drools.multithreadEvaluation = <true|false> - * - * DEFAULT = false - */ -public enum MultithreadEvaluationOption implements SingleValueRuleBaseOption { - - YES(true), - NO(false); - - /** - * The property name for the multithread evaluation option - */ - public static final String PROPERTY_NAME = "drools.multithreadEvaluation"; - - public static OptionKey KEY = new OptionKey<>(TYPE, PROPERTY_NAME); - - private boolean value; - - MultithreadEvaluationOption( final boolean value ) { - this.value = value; - } - - /** - * {@inheritDoc} - */ - public String getPropertyName() { - return PROPERTY_NAME; - } - - public boolean isMultithreadEvaluation() { - return this.value; - } - -} diff --git a/kie-internal/src/main/java/org/kie/internal/conf/ParallelExecutionOption.java b/kie-internal/src/main/java/org/kie/internal/conf/ParallelExecutionOption.java new file mode 100644 index 00000000000..709830d60e5 --- /dev/null +++ b/kie-internal/src/main/java/org/kie/internal/conf/ParallelExecutionOption.java @@ -0,0 +1,64 @@ +/** + * 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. + */ +package org.kie.internal.conf; + +import org.kie.api.conf.OptionKey; +import org.kie.api.conf.SingleValueRuleBaseOption; + +/** + * Determines is the engine should evaluate rules and execute their consequences sequentially or in parallel. + * + * drools.parallelExecution = <sequential|parallel_evaluation|fully_parallel> + * + * DEFAULT = SEQUENTIAL + */ +public enum ParallelExecutionOption implements SingleValueRuleBaseOption { + + SEQUENTIAL, PARALLEL_EVALUATION, FULLY_PARALLEL; + + public static final String PROPERTY_NAME = "drools.parallelExecution"; + + public static OptionKey KEY = new OptionKey<>(TYPE, PROPERTY_NAME); + + @Override + public String getPropertyName() { + return PROPERTY_NAME; + } + + public static ParallelExecutionOption determineParallelExecution(final String value) { + if ("sequential".equalsIgnoreCase(value)) { + return SEQUENTIAL; + } + if ("parallel_evaluation".equalsIgnoreCase(value)) { + return PARALLEL_EVALUATION; + } + if ("fully_parallel".equalsIgnoreCase(value)) { + return FULLY_PARALLEL; + } + throw new IllegalArgumentException("Illegal enum value '" + value + "' for ParallelExecution"); + } + + public boolean isParallel() { + return this != SEQUENTIAL; + } + + public String toExternalForm() { + return this.toString().toLowerCase(); + } +} diff --git a/kie-internal/src/main/java/org/kie/internal/conf/SequentialAgendaOption.java b/kie-internal/src/main/java/org/kie/internal/conf/SequentialAgendaOption.java index d65a32b541b..d30568c2ef1 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/SequentialAgendaOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/SequentialAgendaOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/ShareAlphaNodesOption.java b/kie-internal/src/main/java/org/kie/internal/conf/ShareAlphaNodesOption.java index 915db99bfaa..9b5266f3048 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/ShareAlphaNodesOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/ShareAlphaNodesOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/conf/ShareBetaNodesOption.java b/kie-internal/src/main/java/org/kie/internal/conf/ShareBetaNodesOption.java index de6b0e597e9..0ef0aa057bf 100644 --- a/kie-internal/src/main/java/org/kie/internal/conf/ShareBetaNodesOption.java +++ b/kie-internal/src/main/java/org/kie/internal/conf/ShareBetaNodesOption.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/definition/GenericTypeDefinition.java b/kie-internal/src/main/java/org/kie/internal/definition/GenericTypeDefinition.java index 24b3b73a894..42770519fff 100644 --- a/kie-internal/src/main/java/org/kie/internal/definition/GenericTypeDefinition.java +++ b/kie-internal/src/main/java/org/kie/internal/definition/GenericTypeDefinition.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.definition; import java.io.Serializable; diff --git a/kie-internal/src/main/java/org/kie/internal/definition/KnowledgeDefinition.java b/kie-internal/src/main/java/org/kie/internal/definition/KnowledgeDefinition.java index e29726de3e0..709291da8f3 100644 --- a/kie-internal/src/main/java/org/kie/internal/definition/KnowledgeDefinition.java +++ b/kie-internal/src/main/java/org/kie/internal/definition/KnowledgeDefinition.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.definition; import org.kie.api.definition.KieDefinition; diff --git a/kie-internal/src/main/java/org/kie/internal/definition/KnowledgeDescr.java b/kie-internal/src/main/java/org/kie/internal/definition/KnowledgeDescr.java index 818901a7afb..832a602862e 100644 --- a/kie-internal/src/main/java/org/kie/internal/definition/KnowledgeDescr.java +++ b/kie-internal/src/main/java/org/kie/internal/definition/KnowledgeDescr.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.definition; import org.kie.api.definition.KieDescr; diff --git a/kie-internal/src/main/java/org/kie/internal/definition/rule/InternalRule.java b/kie-internal/src/main/java/org/kie/internal/definition/rule/InternalRule.java index c932d55f1cc..32bbf5f554e 100644 --- a/kie-internal/src/main/java/org/kie/internal/definition/rule/InternalRule.java +++ b/kie-internal/src/main/java/org/kie/internal/definition/rule/InternalRule.java @@ -1,16 +1,20 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ package org.kie.internal.definition.rule; diff --git a/kie-internal/src/main/java/org/kie/internal/event/rule/RuleEventListener.java b/kie-internal/src/main/java/org/kie/internal/event/rule/RuleEventListener.java index 2a364974574..7fee59d2834 100644 --- a/kie-internal/src/main/java/org/kie/internal/event/rule/RuleEventListener.java +++ b/kie-internal/src/main/java/org/kie/internal/event/rule/RuleEventListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.event.rule; import java.util.EventListener; diff --git a/kie-internal/src/main/java/org/kie/internal/event/rule/RuleEventManager.java b/kie-internal/src/main/java/org/kie/internal/event/rule/RuleEventManager.java index 8686da0ca16..b5116ec425c 100644 --- a/kie-internal/src/main/java/org/kie/internal/event/rule/RuleEventManager.java +++ b/kie-internal/src/main/java/org/kie/internal/event/rule/RuleEventManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.event.rule; public interface RuleEventManager { diff --git a/kie-internal/src/main/java/org/kie/internal/identity/IdentityProvider.java b/kie-internal/src/main/java/org/kie/internal/identity/IdentityProvider.java index 9deca989d08..14647ef5de5 100644 --- a/kie-internal/src/main/java/org/kie/internal/identity/IdentityProvider.java +++ b/kie-internal/src/main/java/org/kie/internal/identity/IdentityProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.identity; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/io/ResourceFactory.java b/kie-internal/src/main/java/org/kie/internal/io/ResourceFactory.java index cb83e14a0f2..089539fa5ac 100644 --- a/kie-internal/src/main/java/org/kie/internal/io/ResourceFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/io/ResourceFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.io; import java.io.File; diff --git a/kie-internal/src/main/java/org/kie/internal/io/ResourceTypeImpl.java b/kie-internal/src/main/java/org/kie/internal/io/ResourceTypeImpl.java index 3b22ca79675..ea6a5996fef 100644 --- a/kie-internal/src/main/java/org/kie/internal/io/ResourceTypeImpl.java +++ b/kie-internal/src/main/java/org/kie/internal/io/ResourceTypeImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.io; import java.util.Properties; diff --git a/kie-internal/src/main/java/org/kie/internal/io/ResourceWithConfigurationImpl.java b/kie-internal/src/main/java/org/kie/internal/io/ResourceWithConfigurationImpl.java index 623aefe56ec..aabacd1e0b1 100644 --- a/kie-internal/src/main/java/org/kie/internal/io/ResourceWithConfigurationImpl.java +++ b/kie-internal/src/main/java/org/kie/internal/io/ResourceWithConfigurationImpl.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.internal.io; import java.util.function.Consumer; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java index 78b83922f06..a66ab3e1559 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/CorrelationKeyXmlAdapter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.internal.jaxb; import java.util.ArrayList; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java index 1a8848a4ff8..b74e99d2f50 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateTimeXmlAdapter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import java.time.DateTimeException; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java index c41076f7a51..fb733055ac1 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalDateXmlAdapter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import java.time.DateTimeException; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java index 184f65b0f2b..9c9f66d6184 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/LocalTimeXmlAdapter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import java.time.DateTimeException; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java index 7774380f71f..705641b07c9 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/OffsetDateTimeXmlAdapter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import java.time.DateTimeException; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java index 6cb8412e190..f74cfffc611 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueEntry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import java.util.Map.Entry; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java index 7cbab157915..df560c3a853 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMap.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import java.util.ArrayList; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java index 0f8326be2ff..bb2aa1f32af 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyObjectValueMapXmlAdapter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import java.io.ByteArrayInputStream; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java index 07ac95248f8..88c9abcd742 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueEntry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import javax.xml.bind.annotation.XmlAccessType; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java index d05c3b36067..8561a4f2666 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMap.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import java.util.ArrayList; diff --git a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java index caf41ec85ae..e996b22b08e 100644 --- a/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java +++ b/kie-internal/src/main/java/org/kie/internal/jaxb/StringKeyStringValueMapXmlAdapter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.jaxb; import java.util.HashMap; diff --git a/kie-internal/src/main/java/org/kie/internal/jci/CompilationProblem.java b/kie-internal/src/main/java/org/kie/internal/jci/CompilationProblem.java index 238bfa2e85f..16e76685c0b 100644 --- a/kie-internal/src/main/java/org/kie/internal/jci/CompilationProblem.java +++ b/kie-internal/src/main/java/org/kie/internal/jci/CompilationProblem.java @@ -1,20 +1,21 @@ -/* - * 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.jci; /** diff --git a/kie-internal/src/main/java/org/kie/internal/logger/KnowledgeRuntimeLoggerFactory.java b/kie-internal/src/main/java/org/kie/internal/logger/KnowledgeRuntimeLoggerFactory.java index b2957fd9d07..7bfd1097856 100644 --- a/kie-internal/src/main/java/org/kie/internal/logger/KnowledgeRuntimeLoggerFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/logger/KnowledgeRuntimeLoggerFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.logger; import org.kie.api.event.KieRuntimeEventManager; diff --git a/kie-internal/src/main/java/org/kie/internal/marshalling/MarshallerFactory.java b/kie-internal/src/main/java/org/kie/internal/marshalling/MarshallerFactory.java index c55d1af6812..6bd82661efe 100644 --- a/kie-internal/src/main/java/org/kie/internal/marshalling/MarshallerFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/marshalling/MarshallerFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.marshalling; import org.kie.api.KieBase; diff --git a/kie-internal/src/main/java/org/kie/internal/persistence/jpa/JPAKnowledgeService.java b/kie-internal/src/main/java/org/kie/internal/persistence/jpa/JPAKnowledgeService.java index 6a0bd046443..15e3ee29200 100644 --- a/kie-internal/src/main/java/org/kie/internal/persistence/jpa/JPAKnowledgeService.java +++ b/kie-internal/src/main/java/org/kie/internal/persistence/jpa/JPAKnowledgeService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.persistence.jpa; import org.kie.api.KieBase; diff --git a/kie-internal/src/main/java/org/kie/internal/pmml/PMMLCommandExecutor.java b/kie-internal/src/main/java/org/kie/internal/pmml/PMMLCommandExecutor.java index 542925138f4..dad72646e05 100644 --- a/kie-internal/src/main/java/org/kie/internal/pmml/PMMLCommandExecutor.java +++ b/kie-internal/src/main/java/org/kie/internal/pmml/PMMLCommandExecutor.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.pmml; diff --git a/kie-internal/src/main/java/org/kie/internal/pmml/PMMLCommandExecutorFactory.java b/kie-internal/src/main/java/org/kie/internal/pmml/PMMLCommandExecutorFactory.java index cf35ebb0993..6c910b0726c 100644 --- a/kie-internal/src/main/java/org/kie/internal/pmml/PMMLCommandExecutorFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/pmml/PMMLCommandExecutorFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.pmml; diff --git a/kie-internal/src/main/java/org/kie/internal/pmml/PMMLImplementationsUtil.java b/kie-internal/src/main/java/org/kie/internal/pmml/PMMLImplementationsUtil.java index fc984d91c02..9a69def5314 100644 --- a/kie-internal/src/main/java/org/kie/internal/pmml/PMMLImplementationsUtil.java +++ b/kie-internal/src/main/java/org/kie/internal/pmml/PMMLImplementationsUtil.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.pmml; diff --git a/kie-internal/src/main/java/org/kie/internal/process/CorrelationAwareProcessRuntime.java b/kie-internal/src/main/java/org/kie/internal/process/CorrelationAwareProcessRuntime.java index 26337681555..e3000bb92b4 100644 --- a/kie-internal/src/main/java/org/kie/internal/process/CorrelationAwareProcessRuntime.java +++ b/kie-internal/src/main/java/org/kie/internal/process/CorrelationAwareProcessRuntime.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.process; diff --git a/kie-internal/src/main/java/org/kie/internal/process/CorrelationKey.java b/kie-internal/src/main/java/org/kie/internal/process/CorrelationKey.java index c2aa81394e1..e8bc0169876 100644 --- a/kie-internal/src/main/java/org/kie/internal/process/CorrelationKey.java +++ b/kie-internal/src/main/java/org/kie/internal/process/CorrelationKey.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.process; diff --git a/kie-internal/src/main/java/org/kie/internal/process/CorrelationKeyFactory.java b/kie-internal/src/main/java/org/kie/internal/process/CorrelationKeyFactory.java index f27db2ae53c..07eba3d1170 100644 --- a/kie-internal/src/main/java/org/kie/internal/process/CorrelationKeyFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/process/CorrelationKeyFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.process; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/process/CorrelationProperty.java b/kie-internal/src/main/java/org/kie/internal/process/CorrelationProperty.java index 24ad043c727..b51de5a03f7 100644 --- a/kie-internal/src/main/java/org/kie/internal/process/CorrelationProperty.java +++ b/kie-internal/src/main/java/org/kie/internal/process/CorrelationProperty.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.process; diff --git a/kie-internal/src/main/java/org/kie/internal/process/ProcessVariableIndexer.java b/kie-internal/src/main/java/org/kie/internal/process/ProcessVariableIndexer.java index b8de8b07817..2c18e9c5080 100644 --- a/kie-internal/src/main/java/org/kie/internal/process/ProcessVariableIndexer.java +++ b/kie-internal/src/main/java/org/kie/internal/process/ProcessVariableIndexer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.process; import org.kie.api.runtime.manager.audit.VariableInstanceLog; diff --git a/kie-internal/src/main/java/org/kie/internal/query/ExtendedParametrizedQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/query/ExtendedParametrizedQueryBuilder.java index 5f03a27e189..83a7fd75a63 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/ExtendedParametrizedQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/query/ExtendedParametrizedQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.query; /** diff --git a/kie-internal/src/main/java/org/kie/internal/query/InternalQueryService.java b/kie-internal/src/main/java/org/kie/internal/query/InternalQueryService.java index ae28c24f76d..7c74796c8d0 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/InternalQueryService.java +++ b/kie-internal/src/main/java/org/kie/internal/query/InternalQueryService.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.internal.query; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/query/ParametrizedQuery.java b/kie-internal/src/main/java/org/kie/internal/query/ParametrizedQuery.java index 2dff8c75d8d..dc382b53beb 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/ParametrizedQuery.java +++ b/kie-internal/src/main/java/org/kie/internal/query/ParametrizedQuery.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.query; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/query/ParametrizedQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/query/ParametrizedQueryBuilder.java index abe08f924d7..285e491d01f 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/ParametrizedQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/query/ParametrizedQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.query; diff --git a/kie-internal/src/main/java/org/kie/internal/query/ParametrizedUpdate.java b/kie-internal/src/main/java/org/kie/internal/query/ParametrizedUpdate.java index 686f707432a..88c5d2a1dc1 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/ParametrizedUpdate.java +++ b/kie-internal/src/main/java/org/kie/internal/query/ParametrizedUpdate.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.query; public interface ParametrizedUpdate { diff --git a/kie-internal/src/main/java/org/kie/internal/query/ProcessInstanceIdQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/query/ProcessInstanceIdQueryBuilder.java index 7a57d7118f6..80a6a11e14d 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/ProcessInstanceIdQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/query/ProcessInstanceIdQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.query; diff --git a/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java b/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java index c8d54837c2e..de305a5d934 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java +++ b/kie-internal/src/main/java/org/kie/internal/query/QueryContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.query; import javax.xml.bind.annotation.XmlAccessType; diff --git a/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java b/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java index 21a3b822778..2e514b2534c 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java +++ b/kie-internal/src/main/java/org/kie/internal/query/QueryFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.query; import java.util.HashMap; diff --git a/kie-internal/src/main/java/org/kie/internal/query/QueryParameterIdentifiers.java b/kie-internal/src/main/java/org/kie/internal/query/QueryParameterIdentifiers.java index 271ad9f17bd..538d4bc1183 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/QueryParameterIdentifiers.java +++ b/kie-internal/src/main/java/org/kie/internal/query/QueryParameterIdentifiers.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.query; import java.util.concurrent.atomic.AtomicInteger; diff --git a/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java b/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java index a07910db942..3196813c535 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java +++ b/kie-internal/src/main/java/org/kie/internal/query/data/QueryData.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.query.data; import javax.xml.bind.annotation.XmlAccessType; diff --git a/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java b/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java index 3c22fb6b7f2..c68575a7846 100644 --- a/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java +++ b/kie-internal/src/main/java/org/kie/internal/query/data/QueryParameters.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.query.data; import java.util.ArrayList; diff --git a/kie-internal/src/main/java/org/kie/internal/remote/PermissionConstants.java b/kie-internal/src/main/java/org/kie/internal/remote/PermissionConstants.java index eceb23dd937..0b5fed74039 100644 --- a/kie-internal/src/main/java/org/kie/internal/remote/PermissionConstants.java +++ b/kie-internal/src/main/java/org/kie/internal/remote/PermissionConstants.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.internal.remote; public interface PermissionConstants { diff --git a/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitComponentFactory.java b/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitComponentFactory.java index 49bf040a6a3..b9b91681f21 100644 --- a/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitComponentFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitComponentFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2005 JBoss Inc +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.ruleunit; import org.kie.api.definition.KiePackage; diff --git a/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitDescription.java b/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitDescription.java index 5aee1276e32..400644c4702 100644 --- a/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitDescription.java +++ b/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitDescription.java @@ -1,19 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.ruleunit; import java.lang.reflect.Type; diff --git a/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitUtil.java b/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitUtil.java index cd31f5e9a56..72ea904600a 100644 --- a/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitUtil.java +++ b/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.ruleunit; public class RuleUnitUtil { diff --git a/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitVariable.java b/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitVariable.java index 8c743383ac9..0a6163c80e0 100644 --- a/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitVariable.java +++ b/kie-internal/src/main/java/org/kie/internal/ruleunit/RuleUnitVariable.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.internal.ruleunit; import java.lang.reflect.Type; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/Cacheable.java b/kie-internal/src/main/java/org/kie/internal/runtime/Cacheable.java index 270d2c4b4b3..a88d686ab50 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/Cacheable.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/Cacheable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime; /** diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/Closeable.java b/kie-internal/src/main/java/org/kie/internal/runtime/Closeable.java index 45fc49e029d..bab44328c44 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/Closeable.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/Closeable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime; /** diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/CommandBasedStatefulKnowledgeSession.java b/kie-internal/src/main/java/org/kie/internal/runtime/CommandBasedStatefulKnowledgeSession.java index 3403c12470d..ed914674458 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/CommandBasedStatefulKnowledgeSession.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/CommandBasedStatefulKnowledgeSession.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime; import org.kie.api.runtime.ExecutableRunner; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/KnowledgeContext.java b/kie-internal/src/main/java/org/kie/internal/runtime/KnowledgeContext.java index 6009fa63e6e..db867b1e34d 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/KnowledgeContext.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/KnowledgeContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime; import org.kie.api.runtime.KieContext; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/StatefulKnowledgeSession.java b/kie-internal/src/main/java/org/kie/internal/runtime/StatefulKnowledgeSession.java index e7f46880401..0f27be98461 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/StatefulKnowledgeSession.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/StatefulKnowledgeSession.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime; import org.kie.api.runtime.KieRuntime; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/StatelessKnowledgeSessionResults.java b/kie-internal/src/main/java/org/kie/internal/runtime/StatelessKnowledgeSessionResults.java index dd1a906cf57..74c3815bad8 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/StatelessKnowledgeSessionResults.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/StatelessKnowledgeSessionResults.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime; import java.util.Collection; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/AuditMode.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/AuditMode.java index fe5cce8102a..7bfd31997d2 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/AuditMode.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/AuditMode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; /** diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/BuilderHandler.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/BuilderHandler.java index ccec346c925..02b5f6455e9 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/BuilderHandler.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/BuilderHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; /** diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java index 4f0cf1ebb8b..65a87112256 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptorBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptorBuilder.java index 62c06aff6cc..85ba39c5f59 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptorBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptorBuilder.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ForceEagerActivationFilter.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ForceEagerActivationFilter.java index 32b19db327a..f9bd852bc67 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ForceEagerActivationFilter.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ForceEagerActivationFilter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.conf; import org.kie.api.definition.rule.Rule; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ForceEagerActivationOption.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ForceEagerActivationOption.java index 455e198dbf1..a508220fa16 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ForceEagerActivationOption.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ForceEagerActivationOption.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; import org.kie.api.conf.OptionKey; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java index 2ca6a37da30..1ac2d744d3d 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/MergeMode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; import javax.xml.bind.annotation.XmlType; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java index 22f0573bb58..8421eeda8ee 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/NamedObjectModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; import javax.xml.bind.annotation.XmlAccessType; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java index 5d8ffe81348..71306f0345c 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; import java.io.Serializable; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModelResolver.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModelResolver.java index bf686957657..70dd34a9fec 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModelResolver.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModelResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; import java.util.Map; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModelResolverProvider.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModelResolverProvider.java index 9f29325df6a..b77ae5aeb6e 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModelResolverProvider.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/ObjectModelResolverProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; import java.util.ArrayList; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/PersistenceMode.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/PersistenceMode.java index 17d23c853e7..d25da18373c 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/PersistenceMode.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/PersistenceMode.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.conf; /** diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java b/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java index a70f3100d0c..7356288e5e9 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/conf/RuntimeStrategy.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.conf; import javax.xml.bind.annotation.XmlType; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionError.java b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionError.java index 2e6220cd352..b2367838a4c 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionError.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionError.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.error; import java.io.Serializable; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorContext.java b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorContext.java index f0c574ab0f9..ef1ecc7a5ec 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorContext.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.error; import org.kie.api.runtime.process.NodeInstance; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorFilter.java b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorFilter.java index 90947d1608a..76d240ac382 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorFilter.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.error; import java.util.stream.Stream; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorHandler.java b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorHandler.java index 81eebf0d6e2..ebffb3790ad 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorHandler.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.error; import org.kie.api.runtime.process.NodeInstance; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorListener.java b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorListener.java index 0fdaa7c25bd..8752643fc82 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorListener.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorListener.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.error; public interface ExecutionErrorListener { diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorManager.java b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorManager.java index 468a991ba29..518dbf59ecc 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorManager.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.error; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorStorage.java b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorStorage.java index 8be59c7dac7..0011ce4a078 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorStorage.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/error/ExecutionErrorStorage.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.error; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/CacheManager.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/CacheManager.java index 241a4722062..847f50a4fe3 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/CacheManager.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/CacheManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.manager; import org.kie.internal.runtime.Cacheable; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/Disposable.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/Disposable.java index ce672299b0a..2806619fa87 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/Disposable.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/Disposable.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/DisposeListener.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/DisposeListener.java index c45a190d3b7..35cd37f2939 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/DisposeListener.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/DisposeListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/EventListenerProducer.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/EventListenerProducer.java index 92b41a73ba8..d3792fedfe5 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/EventListenerProducer.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/EventListenerProducer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/GlobalProducer.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/GlobalProducer.java index 34ab844b6a5..6ccca921514 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/GlobalProducer.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/GlobalProducer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/InternalRuntimeEngine.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/InternalRuntimeEngine.java index 2011886ab31..6e9d81b6cd5 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/InternalRuntimeEngine.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/InternalRuntimeEngine.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/Mapper.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/Mapper.java index b1c35c1c34f..81dcdc4f8c1 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/Mapper.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/Mapper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeEnvironment.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeEnvironment.java index be6ff2e854c..8084603c24f 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeEnvironment.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeEnvironment.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerFactory.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerFactory.java index 7100d920291..596e1b5717c 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerIdFilter.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerIdFilter.java index a268d2b1d39..515a41ce244 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerIdFilter.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerIdFilter.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.manager; import java.util.Collection; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerRegistry.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerRegistry.java index 1777cdda9d6..6363d5a8360 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerRegistry.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/RuntimeManagerRegistry.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager; import java.util.Collection; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/SessionFactory.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/SessionFactory.java index a16c9a012fd..b1eb034f6e5 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/SessionFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/SessionFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/SessionNotFoundException.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/SessionNotFoundException.java index b5adc3034e4..72e0e16cf48 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/SessionNotFoundException.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/SessionNotFoundException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/TaskServiceFactory.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/TaskServiceFactory.java index f157f87549e..136b8569e52 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/TaskServiceFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/TaskServiceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/WorkItemHandlerProducer.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/WorkItemHandlerProducer.java index 7a0e96cd48c..7ba623e3850 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/WorkItemHandlerProducer.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/WorkItemHandlerProducer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditDateDeleteBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditDateDeleteBuilder.java index 65765f3eafc..8d648b7375c 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditDateDeleteBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditDateDeleteBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditDeleteBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditDeleteBuilder.java index 39aa78f6af4..1307953f405 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditDeleteBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditDeleteBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; import org.kie.internal.query.ParametrizedQueryBuilder; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditLogQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditLogQueryBuilder.java index 6cd85c8eea4..3075c277e60 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditLogQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/AuditLogQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; import org.kie.internal.query.ParametrizedQueryBuilder; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ErrorInfoDeleteBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ErrorInfoDeleteBuilder.java index 40183a1f1f8..04fd6ae8d96 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ErrorInfoDeleteBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ErrorInfoDeleteBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/NodeInstanceLogDeleteBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/NodeInstanceLogDeleteBuilder.java index 597f4fae1db..5a86613e488 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/NodeInstanceLogDeleteBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/NodeInstanceLogDeleteBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/NodeInstanceLogQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/NodeInstanceLogQueryBuilder.java index e489d26f136..dafd6e16e58 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/NodeInstanceLogQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/NodeInstanceLogQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessIdQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessIdQueryBuilder.java index 1aa4291a3f1..70e0be89896 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessIdQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessIdQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; import org.kie.internal.query.ParametrizedQueryBuilder; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessInstanceLogDeleteBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessInstanceLogDeleteBuilder.java index c29042a8c57..80bc3580371 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessInstanceLogDeleteBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessInstanceLogDeleteBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessInstanceLogQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessInstanceLogQueryBuilder.java index 64f42357d45..0812e3d9492 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessInstanceLogQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/ProcessInstanceLogQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/VariableInstanceLogDeleteBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/VariableInstanceLogDeleteBuilder.java index 3d1bc856a76..29e6cb4d711 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/VariableInstanceLogDeleteBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/VariableInstanceLogDeleteBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/VariableInstanceLogQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/VariableInstanceLogQueryBuilder.java index f4fb9fb19a3..877f354ad9d 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/VariableInstanceLogQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/audit/query/VariableInstanceLogQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.runtime.manager.audit.query; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/CaseContext.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/CaseContext.java index 2837bae19fd..f8e404050e3 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/CaseContext.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/CaseContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager.context; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/CorrelationKeyContext.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/CorrelationKeyContext.java index c950f210177..469c6f120c8 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/CorrelationKeyContext.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/CorrelationKeyContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager.context; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/EmptyContext.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/EmptyContext.java index f74612351f5..7c2425143e9 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/EmptyContext.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/EmptyContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager.context; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/ProcessInstanceIdContext.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/ProcessInstanceIdContext.java index 50235ab3932..d9e1ca22e5b 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/ProcessInstanceIdContext.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/context/ProcessInstanceIdContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.runtime.manager.context; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java index aeeef037973..87ff5dd215e 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorIO.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.manager.deploy; import java.io.InputStream; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java index c2907e3a7e9..a93615ec76b 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.runtime.manager.deploy; import java.io.Serializable; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorManager.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorManager.java index 48b3c27ffef..e9bdb0ebe57 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorManager.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorManager.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.manager.deploy; import java.io.IOException; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorMerger.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorMerger.java index 9fe5f630ad1..b3fdac2505e 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorMerger.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorMerger.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.manager.deploy; import java.util.ArrayDeque; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientNamedObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientNamedObjectModel.java index 4510426a496..cdc24f09a18 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientNamedObjectModel.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientNamedObjectModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.manager.deploy; import org.kie.internal.runtime.conf.NamedObjectModel; diff --git a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java index eb2e3dcbf92..572cc4412ae 100644 --- a/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java +++ b/kie-internal/src/main/java/org/kie/internal/runtime/manager/deploy/TransientObjectModel.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.manager.deploy; import javax.xml.bind.annotation.XmlTransient; diff --git a/kie-internal/src/main/java/org/kie/internal/services/AbstractMultiService.java b/kie-internal/src/main/java/org/kie/internal/services/AbstractMultiService.java index 84e47ca0e81..e27b1a12678 100644 --- a/kie-internal/src/main/java/org/kie/internal/services/AbstractMultiService.java +++ b/kie-internal/src/main/java/org/kie/internal/services/AbstractMultiService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.services; import java.util.HashMap; diff --git a/kie-internal/src/main/java/org/kie/internal/services/KieAssemblersImpl.java b/kie-internal/src/main/java/org/kie/internal/services/KieAssemblersImpl.java index 10d4b618eba..2697cda293e 100644 --- a/kie-internal/src/main/java/org/kie/internal/services/KieAssemblersImpl.java +++ b/kie-internal/src/main/java/org/kie/internal/services/KieAssemblersImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.services; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/services/KieRuntimesImpl.java b/kie-internal/src/main/java/org/kie/internal/services/KieRuntimesImpl.java index 4f5d91e38ae..8d58bdf7b83 100644 --- a/kie-internal/src/main/java/org/kie/internal/services/KieRuntimesImpl.java +++ b/kie-internal/src/main/java/org/kie/internal/services/KieRuntimesImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.services; import org.kie.api.internal.runtime.KieRuntimeService; diff --git a/kie-internal/src/main/java/org/kie/internal/services/KieWeaversImpl.java b/kie-internal/src/main/java/org/kie/internal/services/KieWeaversImpl.java index e6869d2b4c3..32e66058937 100644 --- a/kie-internal/src/main/java/org/kie/internal/services/KieWeaversImpl.java +++ b/kie-internal/src/main/java/org/kie/internal/services/KieWeaversImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.services; import org.kie.api.definition.KiePackage; diff --git a/kie-internal/src/main/java/org/kie/internal/simulation/Simulation.java b/kie-internal/src/main/java/org/kie/internal/simulation/Simulation.java index f86c2c986dc..8f75fbceadc 100644 --- a/kie-internal/src/main/java/org/kie/internal/simulation/Simulation.java +++ b/kie-internal/src/main/java/org/kie/internal/simulation/Simulation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.simulation; import java.util.Map; diff --git a/kie-internal/src/main/java/org/kie/internal/simulation/SimulationPath.java b/kie-internal/src/main/java/org/kie/internal/simulation/SimulationPath.java index bf1e88c8d1d..5f625277aa7 100644 --- a/kie-internal/src/main/java/org/kie/internal/simulation/SimulationPath.java +++ b/kie-internal/src/main/java/org/kie/internal/simulation/SimulationPath.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.simulation; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/simulation/SimulationStep.java b/kie-internal/src/main/java/org/kie/internal/simulation/SimulationStep.java index 6003ed35e02..23b56cbef5f 100644 --- a/kie-internal/src/main/java/org/kie/internal/simulation/SimulationStep.java +++ b/kie-internal/src/main/java/org/kie/internal/simulation/SimulationStep.java @@ -1,19 +1,21 @@ -/* - * Copyright 2011 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.simulation; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/AuditTask.java b/kie-internal/src/main/java/org/kie/internal/task/api/AuditTask.java index bf488fb89b1..f1dd9ecad50 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/AuditTask.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/AuditTask.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/ContentMarshallerContext.java b/kie-internal/src/main/java/org/kie/internal/task/api/ContentMarshallerContext.java index d6ed15b8099..c8d03816faf 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/ContentMarshallerContext.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/ContentMarshallerContext.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api; import org.kie.api.runtime.Environment; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/EventService.java b/kie-internal/src/main/java/org/kie/internal/task/api/EventService.java index bad1060d69b..c865736248c 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/EventService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/EventService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/InternalTaskService.java b/kie-internal/src/main/java/org/kie/internal/task/api/InternalTaskService.java index 1a5d2f7f131..c56dbe8442d 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/InternalTaskService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/InternalTaskService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskAdminService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskAdminService.java index a3898807e1b..1b1fc0b44e9 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskAdminService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskAdminService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskAttachmentService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskAttachmentService.java index e7b71447405..d30721014fe 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskAttachmentService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskAttachmentService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskCommentService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskCommentService.java index eaab9287a29..5b46b7444be 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskCommentService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskCommentService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskContentService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskContentService.java index 0f56345cfad..7e4840dd77a 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskContentService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskContentService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskContext.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskContext.java index 16b54b70257..f8ad954910a 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskContext.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.api; import org.kie.api.runtime.Context; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskDeadlinesService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskDeadlinesService.java index ff4a1f333bb..5582791f04f 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskDeadlinesService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskDeadlinesService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskDefService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskDefService.java index 7be9d35faca..c8182437945 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskDefService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskDefService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskEvent.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskEvent.java index 7f9c2e5e97f..e7bf0130a64 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskEvent.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskEventsService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskEventsService.java index ed8ff5f5e83..707736bf9b7 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskEventsService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskEventsService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskIdentityService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskIdentityService.java index dff001d4c2b..25692a96659 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskIdentityService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskIdentityService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskInstanceService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskInstanceService.java index 7fbd59bcf3e..c880255e827 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskInstanceService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskInstanceService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelFactory.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelFactory.java index 1c203fa68f2..f0536b70af3 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelFactory.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelFactory.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.api; import org.kie.api.task.model.Attachment; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelProvider.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelProvider.java index f2b448dd03c..84086dbbad8 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelProvider.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelProvider.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.api; import org.kie.api.internal.utils.KieService; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelProviderService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelProviderService.java index 943360a6bc2..d8ae06a7105 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelProviderService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskModelProviderService.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.api; import org.kie.api.internal.utils.KieService; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskPersistenceContext.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskPersistenceContext.java index 9503a3e6a57..bd01b941ca0 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskPersistenceContext.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskPersistenceContext.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.api; import java.util.HashMap; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskPersistenceContextManager.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskPersistenceContextManager.java index 449c060ff5b..32a32ba0267 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskPersistenceContextManager.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskPersistenceContextManager.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.api; public interface TaskPersistenceContextManager { diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskQueryService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskQueryService.java index 31e0e7cbb01..af12921562b 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskQueryService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskQueryService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.task.api; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskStatisticsService.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskStatisticsService.java index b043679011b..ba95d5b8b92 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskStatisticsService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskStatisticsService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskVariable.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskVariable.java index 8fc4be09ade..2f530099727 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskVariable.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskVariable.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.task.api; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/TaskVariableIndexer.java b/kie-internal/src/main/java/org/kie/internal/task/api/TaskVariableIndexer.java index 230b9bc7b8a..412ff9fe62c 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/TaskVariableIndexer.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/TaskVariableIndexer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.task.api; import org.kie.internal.utils.VariableIndexer; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/UserGroupCallback.java b/kie-internal/src/main/java/org/kie/internal/task/api/UserGroupCallback.java index decfdac19cc..dc7257d154e 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/UserGroupCallback.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/UserGroupCallback.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.task.api; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/UserInfo.java b/kie-internal/src/main/java/org/kie/internal/task/api/UserInfo.java index acf45e43c74..fccb74bce53 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/UserInfo.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/UserInfo.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api; import java.util.Iterator; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/assignment/Assignment.java b/kie-internal/src/main/java/org/kie/internal/task/api/assignment/Assignment.java index faa02f9804d..82255b03202 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/assignment/Assignment.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/assignment/Assignment.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.api.assignment; import java.io.Serializable; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/assignment/AssignmentStrategy.java b/kie-internal/src/main/java/org/kie/internal/task/api/assignment/AssignmentStrategy.java index 39f478e6081..12ee03c7403 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/assignment/AssignmentStrategy.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/assignment/AssignmentStrategy.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.internal.task.api.assignment; import org.kie.api.task.TaskContext; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java index e892aba698d..406ddf4e705 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/AccessType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - /** * */ diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/AllowedToDelegate.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/AllowedToDelegate.java index c9d48d51bcd..df54e9504c6 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/AllowedToDelegate.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/AllowedToDelegate.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - /** * */ diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/BooleanExpression.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/BooleanExpression.java index 8dd5630194e..9eb487b544d 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/BooleanExpression.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/BooleanExpression.java @@ -1,19 +1,21 @@ -/* - *Copyright 2010 Red Hat, Inc. and/or its affiliates +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.io.Externalizable; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/CommandName.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/CommandName.java index ffc43853085..b80716a8484 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/CommandName.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/CommandName.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/ContentData.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/ContentData.java index 9073b54b5c6..d96635409a2 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/ContentData.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/ContentData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.io.Externalizable; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/Deadline.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/Deadline.java index ef84a2a8201..8478b13a467 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/Deadline.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/Deadline.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.task.api.model; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/DeadlineSummary.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/DeadlineSummary.java index 2988a077767..d3ddcce5dee 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/DeadlineSummary.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/DeadlineSummary.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/Deadlines.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/Deadlines.java index 8c0d4eaf7e5..d9ee816b6aa 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/Deadlines.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/Deadlines.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.io.Externalizable; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/Delegation.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/Delegation.java index 2fe75880f4e..9fb38b17d55 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/Delegation.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/Delegation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.io.Externalizable; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/EmailNotification.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/EmailNotification.java index 0bf085845e1..df72cf22d5f 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/EmailNotification.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/EmailNotification.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.util.Map; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/EmailNotificationHeader.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/EmailNotificationHeader.java index 9dcadd66991..c3741a2e8cb 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/EmailNotificationHeader.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/EmailNotificationHeader.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - /** * */ diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/Escalation.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/Escalation.java index 84f32d67552..593db31c8f9 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/Escalation.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/Escalation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.io.Externalizable; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/FaultData.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/FaultData.java index 507cefae5ee..356eaf1073a 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/FaultData.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/FaultData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalAttachment.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalAttachment.java index 824dba53c7f..27727644ed2 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalAttachment.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalAttachment.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalComment.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalComment.java index c96902661af..3354b8fb500 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalComment.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalComment.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalContent.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalContent.java index 056d092d3c0..ab36784091c 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalContent.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalContent.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import org.kie.api.task.model.Content; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalI18NText.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalI18NText.java index e33b6fb7de8..2c6cb184783 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalI18NText.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalI18NText.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import org.kie.api.task.model.I18NText; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalOrganizationalEntity.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalOrganizationalEntity.java index 1f6936f05e5..3b8f6e716a4 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalOrganizationalEntity.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalOrganizationalEntity.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import org.kie.api.task.model.OrganizationalEntity; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalPeopleAssignments.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalPeopleAssignments.java index ee101d03bf7..629227cc6ad 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalPeopleAssignments.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalPeopleAssignments.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTask.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTask.java index eb8aa1cab8c..60df657f352 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTask.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTask.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.util.List; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTaskData.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTaskData.java index 455985a8fa2..f3372600d1f 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTaskData.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTaskData.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTaskSummary.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTaskSummary.java index b5d659577f6..d22b14a946d 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTaskSummary.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/InternalTaskSummary.java @@ -1,17 +1,20 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.task.api.model; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/Language.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/Language.java index 12b82012265..e0b1b84091d 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/Language.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/Language.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.task.api.model; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/Notification.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/Notification.java index 885ff7d7746..ab3ac9110d5 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/Notification.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/Notification.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.io.Externalizable; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/NotificationEvent.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/NotificationEvent.java index 30eae03e5f2..d4335dc9e8a 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/NotificationEvent.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/NotificationEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2012 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.internal.task.api.model; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/NotificationType.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/NotificationType.java index ee799188da5..187ea87a4e6 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/NotificationType.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/NotificationType.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; public enum NotificationType { diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/Operation.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/Operation.java index cf5b55515a0..c6be1a14fca 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/Operation.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/Operation.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; public enum Operation { diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/Reassignment.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/Reassignment.java index 2ab8816222d..fd213ec7beb 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/Reassignment.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/Reassignment.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import java.io.Externalizable; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java index 86cf39d1960..b79d5bc55c7 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/SubTasksStrategy.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.api.model; import javax.xml.bind.annotation.XmlType; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/TaskDef.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/TaskDef.java index b8ec539d080..39b8dc955f7 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/TaskDef.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/TaskDef.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.task.api.model; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/model/TaskEvent.java b/kie-internal/src/main/java/org/kie/internal/task/api/model/TaskEvent.java index 267ccc33158..22d4fc293a7 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/model/TaskEvent.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/model/TaskEvent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.internal.task.api.model; diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/prediction/PredictionOutcome.java b/kie-internal/src/main/java/org/kie/internal/task/api/prediction/PredictionOutcome.java index a57e65b3774..b5c37d887ed 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/prediction/PredictionOutcome.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/prediction/PredictionOutcome.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - /** * A class to encapsulate prediction results from a {@link org.kie.internal.task.api.prediction.PredictionService} * implementation. diff --git a/kie-internal/src/main/java/org/kie/internal/task/api/prediction/PredictionService.java b/kie-internal/src/main/java/org/kie/internal/task/api/prediction/PredictionService.java index 7c3859a668c..dd10bd197ec 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/api/prediction/PredictionService.java +++ b/kie-internal/src/main/java/org/kie/internal/task/api/prediction/PredictionService.java @@ -1,19 +1,21 @@ -/* - * Copyright 2019 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.task.api.prediction; import java.util.Map; diff --git a/kie-internal/src/main/java/org/kie/internal/task/exception/TaskError.java b/kie-internal/src/main/java/org/kie/internal/task/exception/TaskError.java index ed468f69707..e571c30ebd8 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/exception/TaskError.java +++ b/kie-internal/src/main/java/org/kie/internal/task/exception/TaskError.java @@ -1,19 +1,21 @@ /** - * Copyright 2010 Red Hat, Inc. and/or its affiliates + * 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 * - * Licensed 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 * - * 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. + * 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. */ - /** * */ diff --git a/kie-internal/src/main/java/org/kie/internal/task/exception/TaskException.java b/kie-internal/src/main/java/org/kie/internal/task/exception/TaskException.java index f95bdd4edc1..0a325a265a2 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/exception/TaskException.java +++ b/kie-internal/src/main/java/org/kie/internal/task/exception/TaskException.java @@ -1,19 +1,21 @@ /** - * Copyright 2010 Red Hat, Inc. and/or its affiliates + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.exception; /** diff --git a/kie-internal/src/main/java/org/kie/internal/task/query/AuditTaskDeleteBuilder.java b/kie-internal/src/main/java/org/kie/internal/task/query/AuditTaskDeleteBuilder.java index 74508b1e38a..b26327337c7 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/query/AuditTaskDeleteBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/task/query/AuditTaskDeleteBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.query; import org.kie.internal.runtime.manager.audit.query.AuditDateDeleteBuilder; diff --git a/kie-internal/src/main/java/org/kie/internal/task/query/AuditTaskQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/task/query/AuditTaskQueryBuilder.java index da13bc11029..18c024336ab 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/query/AuditTaskQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/task/query/AuditTaskQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.query; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/query/TaskAuditQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/task/query/TaskAuditQueryBuilder.java index 469ba2d434d..e24247b11a3 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/query/TaskAuditQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/task/query/TaskAuditQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.query; import org.kie.internal.query.ProcessInstanceIdQueryBuilder; diff --git a/kie-internal/src/main/java/org/kie/internal/task/query/TaskEventDeleteBuilder.java b/kie-internal/src/main/java/org/kie/internal/task/query/TaskEventDeleteBuilder.java index c1d2daf55e6..4d58ab6baba 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/query/TaskEventDeleteBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/task/query/TaskEventDeleteBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.query; import org.kie.internal.runtime.manager.audit.query.AuditDateDeleteBuilder; diff --git a/kie-internal/src/main/java/org/kie/internal/task/query/TaskEventQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/task/query/TaskEventQueryBuilder.java index fd931ce66a5..f90d455ba9f 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/query/TaskEventQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/task/query/TaskEventQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.query; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/query/TaskSummaryQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/task/query/TaskSummaryQueryBuilder.java index 701b64ab040..14913963b07 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/query/TaskSummaryQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/task/query/TaskSummaryQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.internal.task.query; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/query/TaskVariableDeleteBuilder.java b/kie-internal/src/main/java/org/kie/internal/task/query/TaskVariableDeleteBuilder.java index 7d28d07841a..9363d8ef650 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/query/TaskVariableDeleteBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/task/query/TaskVariableDeleteBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.query; import org.kie.internal.runtime.manager.audit.query.AuditDateDeleteBuilder; diff --git a/kie-internal/src/main/java/org/kie/internal/task/query/TaskVariableQueryBuilder.java b/kie-internal/src/main/java/org/kie/internal/task/query/TaskVariableQueryBuilder.java index 62ea28724b3..85e12a3fa68 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/query/TaskVariableQueryBuilder.java +++ b/kie-internal/src/main/java/org/kie/internal/task/query/TaskVariableQueryBuilder.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.task.query; import java.util.Date; diff --git a/kie-internal/src/main/java/org/kie/internal/task/service/ResponseHandler.java b/kie-internal/src/main/java/org/kie/internal/task/service/ResponseHandler.java index 1cc20b93f73..cf06d44447f 100644 --- a/kie-internal/src/main/java/org/kie/internal/task/service/ResponseHandler.java +++ b/kie-internal/src/main/java/org/kie/internal/task/service/ResponseHandler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.task.service; public interface ResponseHandler { diff --git a/kie-internal/src/main/java/org/kie/internal/utils/ChainedProperties.java b/kie-internal/src/main/java/org/kie/internal/utils/ChainedProperties.java index 6e173163b8d..5718641c384 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/ChainedProperties.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/ChainedProperties.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.utils; import java.io.Externalizable; diff --git a/kie-internal/src/main/java/org/kie/internal/utils/ClassLoaderResolver.java b/kie-internal/src/main/java/org/kie/internal/utils/ClassLoaderResolver.java index 330ca5a6031..7015d247fc8 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/ClassLoaderResolver.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/ClassLoaderResolver.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.utils; import org.kie.api.builder.KieModule; diff --git a/kie-internal/src/main/java/org/kie/internal/utils/ClassLoaderUtil.java b/kie-internal/src/main/java/org/kie/internal/utils/ClassLoaderUtil.java index 0917923bfdf..e0e03aa5619 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/ClassLoaderUtil.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/ClassLoaderUtil.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.utils; import java.security.AccessController; diff --git a/kie-internal/src/main/java/org/kie/internal/utils/CompositeClassLoader.java b/kie-internal/src/main/java/org/kie/internal/utils/CompositeClassLoader.java index 843196a8d05..b07647ecebe 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/CompositeClassLoader.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/CompositeClassLoader.java @@ -1,19 +1,21 @@ -/* - * Copyright 2010 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.utils; import java.io.IOException; diff --git a/kie-internal/src/main/java/org/kie/internal/utils/FastClassLoader.java b/kie-internal/src/main/java/org/kie/internal/utils/FastClassLoader.java index e5070d84ec0..f0e3c4d7ee8 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/FastClassLoader.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/FastClassLoader.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.utils; public interface FastClassLoader { diff --git a/kie-internal/src/main/java/org/kie/internal/utils/KieHelper.java b/kie-internal/src/main/java/org/kie/internal/utils/KieHelper.java index 5d98384f416..ee35e8012a7 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/KieHelper.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/KieHelper.java @@ -1,19 +1,21 @@ -/* - * Copyright 2013 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.utils; import java.io.InputStream; diff --git a/kie-internal/src/main/java/org/kie/internal/utils/KieMeta.java b/kie-internal/src/main/java/org/kie/internal/utils/KieMeta.java index ff6e461b8c1..de99bf10441 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/KieMeta.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/KieMeta.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.utils; import java.io.IOException; diff --git a/kie-internal/src/main/java/org/kie/internal/utils/KieTypeResolver.java b/kie-internal/src/main/java/org/kie/internal/utils/KieTypeResolver.java index 4d9609c1682..9c038a60889 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/KieTypeResolver.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/KieTypeResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.utils; /** diff --git a/kie-internal/src/main/java/org/kie/internal/utils/LazyLoaded.java b/kie-internal/src/main/java/org/kie/internal/utils/LazyLoaded.java index 865a3d6721d..750841ea58b 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/LazyLoaded.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/LazyLoaded.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.utils; /** diff --git a/kie-internal/src/main/java/org/kie/internal/utils/NoDepsClassLoaderResolver.java b/kie-internal/src/main/java/org/kie/internal/utils/NoDepsClassLoaderResolver.java index 081c51caf50..d69a501206b 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/NoDepsClassLoaderResolver.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/NoDepsClassLoaderResolver.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.internal.utils; import java.security.AccessController; diff --git a/kie-internal/src/main/java/org/kie/internal/utils/NotificationPublisher.java b/kie-internal/src/main/java/org/kie/internal/utils/NotificationPublisher.java index 45d6be89eb3..1288e0f122a 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/NotificationPublisher.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/NotificationPublisher.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.utils; import java.util.Map; diff --git a/kie-internal/src/main/java/org/kie/internal/utils/VariableIndexer.java b/kie-internal/src/main/java/org/kie/internal/utils/VariableIndexer.java index 27be0da5cd6..98c14052868 100644 --- a/kie-internal/src/main/java/org/kie/internal/utils/VariableIndexer.java +++ b/kie-internal/src/main/java/org/kie/internal/utils/VariableIndexer.java @@ -1,19 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.internal.utils; import java.util.List; diff --git a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorMergerTest.java b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorMergerTest.java index 8f822f606f4..3ae6532c952 100644 --- a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorMergerTest.java +++ b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorMergerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.manager.deploy; import java.util.ArrayList; diff --git a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorTest.java b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorTest.java index 4de159962a5..6559973fa81 100644 --- a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorTest.java +++ b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/DeploymentDescriptorTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.manager.deploy; import java.io.ByteArrayInputStream; diff --git a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java index 29f8b7e2f8b..4cbd3f31924 100644 --- a/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java +++ b/kie-internal/src/test/java/org/kie/internal/runtime/manager/deploy/JaxbMarshalingTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.runtime.manager.deploy; import java.io.StringWriter; diff --git a/kie-internal/src/test/java/org/kie/internal/utils/KieMetaTest.java b/kie-internal/src/test/java/org/kie/internal/utils/KieMetaTest.java index bd1e027d40b..6e3c6938ee6 100644 --- a/kie-internal/src/test/java/org/kie/internal/utils/KieMetaTest.java +++ b/kie-internal/src/test/java/org/kie/internal/utils/KieMetaTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2014 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.internal.utils; import org.junit.Test; diff --git a/kie-internal/src/test/resources/deployment/deployment-descriptor-defaults-and-ms.xml b/kie-internal/src/test/resources/deployment/deployment-descriptor-defaults-and-ms.xml index 54392ea8dbd..5072eae7f9f 100644 --- a/kie-internal/src/test/resources/deployment/deployment-descriptor-defaults-and-ms.xml +++ b/kie-internal/src/test/resources/deployment/deployment-descriptor-defaults-and-ms.xml @@ -1,4 +1,24 @@ + org.jbpm.domain org.jbpm.domain diff --git a/kie-internal/src/test/resources/deployment/deployment-descriptor-defaults.xml b/kie-internal/src/test/resources/deployment/deployment-descriptor-defaults.xml index 9b1588aa5c9..b55afabd065 100644 --- a/kie-internal/src/test/resources/deployment/deployment-descriptor-defaults.xml +++ b/kie-internal/src/test/resources/deployment/deployment-descriptor-defaults.xml @@ -1,4 +1,24 @@ + org.jbpm.domain org.jbpm.domain diff --git a/kie-internal/src/test/resources/deployment/empty-descriptor.xml b/kie-internal/src/test/resources/deployment/empty-descriptor.xml index 6ec7a824dc2..1e6d375197f 100644 --- a/kie-internal/src/test/resources/deployment/empty-descriptor.xml +++ b/kie-internal/src/test/resources/deployment/empty-descriptor.xml @@ -1,2 +1,22 @@ + \ No newline at end of file diff --git a/kie-internal/src/test/resources/deployment/partial-deployment-descriptor.xml b/kie-internal/src/test/resources/deployment/partial-deployment-descriptor.xml index c8bd603b3d3..1540aec5295 100644 --- a/kie-internal/src/test/resources/deployment/partial-deployment-descriptor.xml +++ b/kie-internal/src/test/resources/deployment/partial-deployment-descriptor.xml @@ -1,4 +1,24 @@ + org.jbpm.domain org.jbpm.domain diff --git a/kie-internal/src/test/resources/logback-test.xml b/kie-internal/src/test/resources/logback-test.xml index a037925f48d..2b64eeeb2d1 100644 --- a/kie-internal/src/test/resources/logback-test.xml +++ b/kie-internal/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/pom.xml b/kie-maven-plugin/pom.xml index 2020fd8fc1f..0605f956983 100644 --- a/kie-maven-plugin/pom.xml +++ b/kie-maven-plugin/pom.xml @@ -1,4 +1,24 @@ + @@ -7,7 +27,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml @@ -17,6 +37,7 @@ KIE :: Maven Plugin + org.kie.maven.plugin 3.3.0 3.6.4 3.8.4 diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/pom.xml index d232a5ab417..6f7d13bd867 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/src/main/resources/META-INF/kmodule.xml index 7ac04058772..aa84b2a2efe 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/src/main/resources/META-INF/kmodule.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java index deb4aa9b420..c9a0de4cf98 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-default/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.net.URL; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/pom.xml index 1e4ccc8fa46..b0e7f2bc5f9 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/src/main/resources/META-INF/kmodule.xml index 7ac04058772..aa84b2a2efe 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/src/main/resources/META-INF/kmodule.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java index 4135ba8100d..1436b809703 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-10-yes-generate/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.net.URL; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/pom.xml index 8c55db25451..57d38abade6 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/src/main/resources/META-INF/kmodule.xml index d019a211873..1f2e3aa1b83 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/src/main/resources/META-INF/kmodule.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java index ad5a9fe33c6..6a05bd465d2 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-default/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.net.URL; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/pom.xml index d04b6e01b80..8f34dbb2d9f 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/src/main/resources/META-INF/kmodule.xml index d019a211873..1f2e3aa1b83 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/src/main/resources/META-INF/kmodule.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java index 72a8fcb6c5a..8afd4f2090f 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-11-yes-generate/src/test/java-filtered/org/kie/maven/plugin/ittests/ExecModelParameterTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.net.URL; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/pom.xml index 7f7db656c9e..81496600c57 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/src/main/resources/META-INF/kmodule.xml index 2e9826e0048..75f8807f439 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + \ No newline at end of file diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/src/test/java-filtered/org/kie/maven/plugin/ittests/BuildPMMLTrustyTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/src/test/java-filtered/org/kie/maven/plugin/ittests/BuildPMMLTrustyTestIT.java index c248520a5f2..287b2d65342 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/src/test/java-filtered/org/kie/maven/plugin/ittests/BuildPMMLTrustyTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-12/src/test/java-filtered/org/kie/maven/plugin/ittests/BuildPMMLTrustyTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.io.File; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/pom.xml index 96d4c5db4a1..af030e83a97 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/src/main/resources/META-INF/kmodule.xml index b72a8d97bc1..2f272d82a04 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/src/main/resources/META-INF/kmodule.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/src/test/java-filtered/org/kie/maven/plugin/ittests/AlphaNetworkCompilerTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/src/test/java-filtered/org/kie/maven/plugin/ittests/AlphaNetworkCompilerTestIT.java index 15bcd15f537..08613bff8ff 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/src/test/java-filtered/org/kie/maven/plugin/ittests/AlphaNetworkCompilerTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-13/src/test/java-filtered/org/kie/maven/plugin/ittests/AlphaNetworkCompilerTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.lang.reflect.Constructor; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/pom.xml index 5411e981aaa..4493d565d2a 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/pom.xml @@ -1,4 +1,24 @@ + 4.0.0 diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/AllAmounts.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/AllAmounts.java index 1fd8ecf5e59..657ae67a899 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/AllAmounts.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/AllAmounts.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/Applicant.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/Applicant.java index c1f77feb8ed..4030432c01f 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/Applicant.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/Applicant.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/LoanApplication.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/LoanApplication.java index 4c23773e145..3ee8c0e480d 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/LoanApplication.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/LoanApplication.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/LoanUnit.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/LoanUnit.java index 4c327d5f805..a635ab671df 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/LoanUnit.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/main/java/org/drools/ruleunit/example/LoanUnit.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.drools.ruleunit.example; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/test/java/org/drools/ruleunit/example/LoanTest.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/test/java/org/drools/ruleunit/example/LoanTest.java index 5e6fc94296b..c973178b15b 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/test/java/org/drools/ruleunit/example/LoanTest.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-14-ruleunits/src/test/java/org/drools/ruleunit/example/LoanTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.drools.ruleunit.example; import java.util.List; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/pom.xml index a855dfb1672..91f6fc29783 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/java/org/kie/maven/plugin/test/Person.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/java/org/kie/maven/plugin/test/Person.java index 64ab2bff738..12bc4397812 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/java/org/kie/maven/plugin/test/Person.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/java/org/kie/maven/plugin/test/Person.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.maven.plugin.test; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/AllResourceTypes/simple-xmlrule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/AllResourceTypes/simple-xmlrule.xml index 9b9458b88ce..6baa88502fb 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/AllResourceTypes/simple-xmlrule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/AllResourceTypes/simple-xmlrule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/META-INF/kmodule.xml index ad114bd8719..cde71959689 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-2/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-3/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-3/src/main/resources/META-INF/kmodule.xml index 2172472f797..c60094f9726 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-3/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-3/src/main/resources/META-INF/kmodule.xml @@ -1,2 +1,22 @@ + \ No newline at end of file diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-3/src/test/java/org/kie/maven/plugin/ittests/AdditionalPropertiesIntegrationTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-3/src/test/java/org/kie/maven/plugin/ittests/AdditionalPropertiesIntegrationTestIT.java index 0acf0a3d126..8456c262680 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-3/src/test/java/org/kie/maven/plugin/ittests/AdditionalPropertiesIntegrationTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-3/src/test/java/org/kie/maven/plugin/ittests/AdditionalPropertiesIntegrationTestIT.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.maven.plugin.ittests; import java.io.File; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/pom.xml index cead8fcf0cf..2a639237963 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/src/main/resources/META-INF/kmodule.xml index cfaf760d358..ba87d83925d 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/KJarWithDMNIntegrationTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/KJarWithDMNIntegrationTestIT.java index f6a27909c69..e4b4c55e3a6 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/KJarWithDMNIntegrationTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/KJarWithDMNIntegrationTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.io.File; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/pom.xml index 0c3f57b4538..e1a6b498bb3 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/src/main/resources/META-INF/kmodule.xml index cfaf760d358..ba87d83925d 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/KJarWithDMNIntegrationTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/KJarWithDMNIntegrationTestIT.java index ca593f20c3c..cd4e188ded9 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/KJarWithDMNIntegrationTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-7-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/KJarWithDMNIntegrationTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.io.File; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/pom.xml index 0c3fc1a53df..eadc4c36efb 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/src/main/resources/META-INF/kmodule.xml index 00677e678f7..acb59466dc7 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/MultiModuleTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/MultiModuleTestIT.java index 2095481ef8f..1e6526ad737 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/MultiModuleTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modA-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/MultiModuleTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.io.File; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modB-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modB-exec-model/pom.xml index e8a50f1afd8..d97f1a1b22a 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modB-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modB-exec-model/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modB-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modB-exec-model/src/main/resources/META-INF/kmodule.xml index a2c8ed87d6e..b0db4704b0e 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modB-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modB-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modC-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modC-exec-model/pom.xml index b0274171df2..a090ccd5ed3 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modC-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modC-exec-model/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modC-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modC-exec-model/src/main/resources/META-INF/kmodule.xml index 417ad81e670..fb1d0ccada7 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modC-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/kie-maven-plugin-test-kjar-8-modC-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/pom.xml index 6f936efab79..a4710873c39 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-exec-model/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/pom.xml index c85a3b3aa84..bdfc5738a64 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/src/main/resources/META-INF/kmodule.xml index 00677e678f7..acb59466dc7 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/MultiModuleTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/MultiModuleTestIT.java index e9f533ab907..8c59f02e6d5 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/MultiModuleTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modA-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/MultiModuleTestIT.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.plugin.ittests; import java.io.File; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modB-no-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modB-no-exec-model/pom.xml index 237c9b69472..285853bb397 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modB-no-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modB-no-exec-model/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modB-no-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modB-no-exec-model/src/main/resources/META-INF/kmodule.xml index a2c8ed87d6e..b0db4704b0e 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modB-no-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modB-no-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modC-no-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modC-no-exec-model/pom.xml index 5fe057273e4..026e7950ca0 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modC-no-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modC-no-exec-model/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modC-no-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modC-no-exec-model/src/main/resources/META-INF/kmodule.xml index 417ad81e670..fb1d0ccada7 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modC-no-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/kie-maven-plugin-test-kjar-8-modC-no-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/pom.xml index 9d28b1d6296..e9af577e15c 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-8-no-exec-model/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/pom.xml index 3c210c20825..4b272bd2a62 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/main/java/org/declaredtype/FactA.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/main/java/org/declaredtype/FactA.java index 6f8bc4f6f23..caf94ea30ca 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/main/java/org/declaredtype/FactA.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/main/java/org/declaredtype/FactA.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.declaredtype; public class FactA { diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/main/resources/META-INF/kmodule.xml index 134445a0510..8aa1878e24b 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/DeclaredTypesTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/DeclaredTypesTestIT.java index 0880f80e772..cfdda1d8a45 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/DeclaredTypesTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/DeclaredTypesTestIT.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.maven.plugin.ittests; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/pom.xml index 8b5523e2ebf..4c34daae7e3 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/pom.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/main/java/org/declaredtype/FactA.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/main/java/org/declaredtype/FactA.java index 6f8bc4f6f23..caf94ea30ca 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/main/java/org/declaredtype/FactA.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/main/java/org/declaredtype/FactA.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.declaredtype; public class FactA { diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/main/resources/META-INF/kmodule.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/main/resources/META-INF/kmodule.xml index 134445a0510..8aa1878e24b 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/main/resources/META-INF/kmodule.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/main/resources/META-INF/kmodule.xml @@ -1,19 +1,24 @@ + + 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. + +--> diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/DeclaredTypesTestIT.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/DeclaredTypesTestIT.java index 03a88cfb042..15d5533cbac 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/DeclaredTypesTestIT.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-9-no-exec-model/src/test/java-filtered/org/kie/maven/plugin/ittests/DeclaredTypesTestIT.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.maven.plugin.ittests; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/pom.xml index ecc20b5ac06..66518508a89 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/src/main/java/org/kie/maven/plugin/ittests/ITTestsUtils.java b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/src/main/java/org/kie/maven/plugin/ittests/ITTestsUtils.java index 61a3fa17cba..98b427469ba 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/src/main/java/org/kie/maven/plugin/ittests/ITTestsUtils.java +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-common/src/main/java/org/kie/maven/plugin/ittests/ITTestsUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.maven.plugin.ittests; diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-parent/invoker.properties b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-parent/invoker.properties index 7d2527b6ed5..c5669b72883 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-parent/invoker.properties +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-parent/invoker.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # A comma or space separated list of goals/phases to execute, may # specify an empty list to execute the default goal of the IT project. # Environment variables used by maven plugins can be added here diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-parent/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-parent/pom.xml index 15fa79ec5ad..85d496c9447 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-parent/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/kie-maven-plugin-test-kjar-parent/pom.xml @@ -1,4 +1,24 @@ + @@ -13,12 +33,12 @@ ${project.version} UTF-8 - 1.8 - 1.8 + 11 4.13.1 3.14.0 - 2.18.1 - 2.18.1 + 3.11.0 + 3.1.0 + 3.1.0 @@ -48,11 +68,6 @@ kie-maven-plugin @org.kie.version@ true - - - 1.8 - - maven-resources-plugin @@ -79,6 +94,10 @@ + + maven-compiler-plugin + ${compiler.plugin.version} + org.apache.maven.plugins maven-surefire-plugin diff --git a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/pom.xml b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/pom.xml index 4aee50e847b..e1f8c76e6c0 100644 --- a/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/pom.xml +++ b/kie-maven-plugin/src/it/kie-maven-plugin-test-kjar-setup/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/ArtifactItem.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/ArtifactItem.java index 5473e4e38bc..c53167251b5 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/ArtifactItem.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/ArtifactItem.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.maven.plugin; import java.util.Objects; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/DiskResourceStore.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/DiskResourceStore.java index 818bec0f03e..aaa483808c9 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/DiskResourceStore.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/DiskResourceStore.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.maven.plugin; import java.io.File; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/KieMavenPluginContext.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/KieMavenPluginContext.java index 7e38340e8ff..08e936f84f3 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/KieMavenPluginContext.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/KieMavenPluginContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.maven.plugin; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/PMMLResource.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/PMMLResource.java index 1ab437f0cb4..aa4606ac26b 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/PMMLResource.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/PMMLResource.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.maven.plugin; import java.nio.file.Path; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/ProjectPomModel.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/ProjectPomModel.java index d844560ac29..8a9b5817539 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/ProjectPomModel.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/ProjectPomModel.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.maven.plugin; import java.util.Collection; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/enums/DMNModelMode.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/enums/DMNModelMode.java index 43ef632b538..3f804b3ea83 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/enums/DMNModelMode.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/enums/DMNModelMode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.maven.plugin.enums; public enum DMNModelMode { diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/enums/ExecModelMode.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/enums/ExecModelMode.java index b9a8337a09e..5fc5baeabb6 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/enums/ExecModelMode.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/enums/ExecModelMode.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.maven.plugin.enums; public enum ExecModelMode { diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/BuildDrlExecutor.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/BuildDrlExecutor.java index 434c1cc639a..8f1c78caf25 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/BuildDrlExecutor.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/BuildDrlExecutor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.maven.plugin.executors; import java.io.File; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateANCExecutor.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateANCExecutor.java index fdecd88429d..6c7d4533448 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateANCExecutor.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateANCExecutor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.maven.plugin.executors; import java.io.File; @@ -59,7 +62,7 @@ public static void generateANC(final KieMavenPluginContext kieMavenPluginContext final JavaConfiguration.CompilerType compilerType = kieMavenPluginContext.getCompilerType(); final Log log = kieMavenPluginContext.getLog(); - JavaCompilerSettings javaCompilerSettings = createJavaCompilerSettings(); + JavaCompilerSettings javaCompilerSettings = createJavaCompilerSettings(project); URLClassLoader projectClassLoader = getProjectClassLoader(project, outputDirectory, javaCompilerSettings); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateDMNModelExecutor.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateDMNModelExecutor.java index 9016ff7f634..4766262b55b 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateDMNModelExecutor.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateDMNModelExecutor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.maven.plugin.executors; import java.io.File; @@ -28,6 +31,7 @@ import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.logging.Log; +import org.apache.maven.project.MavenProject; import org.drools.compiler.kie.builder.impl.InternalKieModule; import org.drools.compiler.kie.builder.impl.KieBuilderImpl; import org.kie.api.KieServices; @@ -59,6 +63,7 @@ private GenerateDMNModelExecutor() { } public static void generateDMN(final KieMavenPluginContext kieMavenPluginContext) throws MojoExecutionException { + final MavenProject project = kieMavenPluginContext.getProject(); final File projectDir = kieMavenPluginContext.getProjectDir(); final Map properties = kieMavenPluginContext.getProperties(); final File targetDirectory = kieMavenPluginContext.getTargetDirectory(); @@ -67,7 +72,7 @@ public static void generateDMN(final KieMavenPluginContext kieMavenPluginContext final Log log = kieMavenPluginContext.getLog(); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); - JavaCompilerSettings javaCompilerSettings = createJavaCompilerSettings(); + JavaCompilerSettings javaCompilerSettings = createJavaCompilerSettings(project); KieServices ks = KieServices.Factory.get(); diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateModelExecutor.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateModelExecutor.java index f8c86ed00f8..3f578894540 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateModelExecutor.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GenerateModelExecutor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.maven.plugin.executors; import java.io.File; @@ -90,7 +93,7 @@ public static void generateModel(final KieMavenPluginContext kieMavenPluginConte final String generateModel = kieMavenPluginContext.getGenerateModel(); final Log log = kieMavenPluginContext.getLog(); - JavaCompilerSettings javaCompilerSettings = createJavaCompilerSettings(); + JavaCompilerSettings javaCompilerSettings = createJavaCompilerSettings(project); URLClassLoader projectClassLoader = getProjectClassLoader(project, outputDirectory, javaCompilerSettings); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GeneratePMMLModelExecutor.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GeneratePMMLModelExecutor.java index a2ac235932a..b8a194613da 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GeneratePMMLModelExecutor.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/executors/GeneratePMMLModelExecutor.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.maven.plugin.executors; import java.io.File; @@ -67,7 +70,7 @@ public static void generatePMMLModel(final KieMavenPluginContext kieMavenPluginC final Log log = kieMavenPluginContext.getLog(); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); - JavaCompilerSettings javaCompilerSettings = createJavaCompilerSettings(); + JavaCompilerSettings javaCompilerSettings = createJavaCompilerSettings(project); URLClassLoader projectClassLoader = getProjectClassLoader(project, outputDirectory, javaCompilerSettings); Thread.currentThread().setContextClassLoader(projectClassLoader); diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/CompilerHelper.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/CompilerHelper.java index d4cb710bc68..e41ef7ffb5c 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/CompilerHelper.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/CompilerHelper.java @@ -1,16 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ package org.kie.maven.plugin.helpers; @@ -22,8 +26,8 @@ import org.drools.compiler.kie.builder.impl.FileKieModule; import org.drools.compiler.kie.builder.impl.InternalKieModule; import org.drools.compiler.kie.builder.impl.KieMetaInfoBuilder; -import org.drools.core.rule.KieModuleMetaInfo; -import org.drools.core.rule.TypeMetaInfo; +import org.drools.base.rule.KieModuleMetaInfo; +import org.drools.base.rule.TypeMetaInfo; public class CompilerHelper { diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/DMNModelModeHelper.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/DMNModelModeHelper.java index b6d9039cf8a..3d47aa67523 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/DMNModelModeHelper.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/DMNModelModeHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.maven.plugin.helpers; import org.kie.maven.plugin.enums.DMNModelMode; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/DMNValidationHelper.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/DMNValidationHelper.java index 76ef838fdc6..b1f30b7a626 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/DMNValidationHelper.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/DMNValidationHelper.java @@ -1,25 +1,27 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.maven.plugin.helpers; import java.io.File; import java.nio.file.Files; import java.nio.file.Path; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; @@ -38,7 +40,7 @@ import org.apache.maven.plugin.logging.Log; import org.drools.compiler.kie.builder.impl.InternalKieModule; import org.drools.compiler.kproject.models.KieModuleModelImpl; -import org.drools.core.definitions.InternalKnowledgePackage; +import org.drools.base.definitions.InternalKnowledgePackage; import org.kie.api.builder.Message.Level; import org.kie.api.builder.model.KieModuleModel; import org.kie.api.definition.KiePackage; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/ExecModelModeHelper.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/ExecModelModeHelper.java index f850da5b1ed..0179b1ba024 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/ExecModelModeHelper.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/ExecModelModeHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.maven.plugin.helpers; import java.util.List; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/ExecutorHelper.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/ExecutorHelper.java index 754d759fc7d..872345aeb5b 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/ExecutorHelper.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/ExecutorHelper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.maven.plugin.helpers; @@ -21,6 +24,7 @@ import org.apache.maven.plugin.logging.Log; import org.drools.compiler.kie.builder.impl.InternalKieModule; +import org.kie.memorycompiler.JavaConfiguration; public class ExecutorHelper { @@ -32,6 +36,12 @@ public static void setSystemProperties(Map properties, Log log) if (properties != null) { log.debug("Additional system properties: " + properties); for (Map.Entry property : properties.entrySet()) { + if (property.getKey().equals(JavaConfiguration.JAVA_LANG_LEVEL_PROPERTY)) { + log.warn("It seems you are setting `" + + JavaConfiguration.JAVA_LANG_LEVEL_PROPERTY + + "` while building a KJAR in a Maven-based build." + + " It is recommended to properly set `maven.compiler.release` instead."); + } System.setProperty(property.getKey(), property.getValue()); } log.debug("Configured system properties were successfully set."); diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/GenerateCodeHelper.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/GenerateCodeHelper.java index 81e3f3fa140..0a94257acf6 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/GenerateCodeHelper.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/helpers/GenerateCodeHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.maven.plugin.helpers; import java.io.File; @@ -108,9 +111,9 @@ private static void writeFile(Path packagesDestinationPath, byte[] value) { } } - public static JavaCompilerSettings createJavaCompilerSettings() { + public static JavaCompilerSettings createJavaCompilerSettings(MavenProject project) { JavaCompilerSettings javaCompilerSettings = new JavaCompilerSettings(); - String javaVersion = findJavaVersion(System.getProperty("java.version")); + String javaVersion = findJavaVersion(project.getModel().getProperties().getOrDefault("maven.compiler.release", System.getProperty("java.version")).toString()); javaCompilerSettings.setSourceVersion(javaVersion); javaCompilerSettings.setTargetVersion(javaVersion); return javaCompilerSettings; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/AbstractKieMojo.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/AbstractKieMojo.java index af4aa44747b..efc4563e456 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/AbstractKieMojo.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/AbstractKieMojo.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.maven.plugin.mojos; import java.io.File; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/BuildMojo.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/BuildMojo.java index 7a928b3f174..de7819686fd 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/BuildMojo.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/BuildMojo.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.maven.plugin.mojos; import org.apache.maven.plugin.MojoExecutionException; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/PackageKjarDependenciesMojo.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/PackageKjarDependenciesMojo.java index cc48db287af..756fc1eae1a 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/PackageKjarDependenciesMojo.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/PackageKjarDependenciesMojo.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.maven.plugin.mojos; import java.io.File; diff --git a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/ValidateDMNMojo.java b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/ValidateDMNMojo.java index e65c6ebfe6a..c4bbebd3b34 100644 --- a/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/ValidateDMNMojo.java +++ b/kie-maven-plugin/src/main/java/org/kie/maven/plugin/mojos/ValidateDMNMojo.java @@ -1,18 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.maven.plugin.mojos; import java.io.File; diff --git a/kie-maven-plugin/src/main/resources/META-INF/plexus/components.xml b/kie-maven-plugin/src/main/resources/META-INF/plexus/components.xml index f54d364a5a8..e075fce6b1c 100644 --- a/kie-maven-plugin/src/main/resources/META-INF/plexus/components.xml +++ b/kie-maven-plugin/src/main/resources/META-INF/plexus/components.xml @@ -1,3 +1,23 @@ + diff --git a/kie-maven-plugin/src/test/java/org/kie/maven/plugin/ProjectPomModelTest.java b/kie-maven-plugin/src/test/java/org/kie/maven/plugin/ProjectPomModelTest.java index eff13166ff4..9ad4b093d58 100644 --- a/kie-maven-plugin/src/test/java/org/kie/maven/plugin/ProjectPomModelTest.java +++ b/kie-maven-plugin/src/test/java/org/kie/maven/plugin/ProjectPomModelTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.maven.plugin; import java.util.ArrayList; diff --git a/kie-maven-plugin/src/test/java/org/kie/maven/plugin/helpers/DMNValidationHelperTest.java b/kie-maven-plugin/src/test/java/org/kie/maven/plugin/helpers/DMNValidationHelperTest.java index 3a2679848bc..f329a5454ee 100644 --- a/kie-maven-plugin/src/test/java/org/kie/maven/plugin/helpers/DMNValidationHelperTest.java +++ b/kie-maven-plugin/src/test/java/org/kie/maven/plugin/helpers/DMNValidationHelperTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.maven.plugin.helpers; diff --git a/kie-maven-plugin/src/test/resources/unit/pmml/pom.xml b/kie-maven-plugin/src/test/resources/unit/pmml/pom.xml index 0a765ec7f0e..c7afb69a28d 100644 --- a/kie-maven-plugin/src/test/resources/unit/pmml/pom.xml +++ b/kie-maven-plugin/src/test/resources/unit/pmml/pom.xml @@ -1,4 +1,24 @@ + diff --git a/kie-memory-compiler/pom.xml b/kie-memory-compiler/pom.xml index fd455f3525f..cbdbea3bae6 100644 --- a/kie-memory-compiler/pom.xml +++ b/kie-memory-compiler/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/AbstractJavaCompiler.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/AbstractJavaCompiler.java index d94aacb5143..6a668b076b4 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/AbstractJavaCompiler.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/AbstractJavaCompiler.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/CompilationProblem.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/CompilationProblem.java index 6e55d79f1e1..7451c14d877 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/CompilationProblem.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/CompilationProblem.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler; public interface CompilationProblem { diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/CompilationResult.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/CompilationResult.java index 4ded6554dff..6c2cde42fb1 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/CompilationResult.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/CompilationResult.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler; import java.util.ArrayList; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompiler.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompiler.java index 742434a2d75..9a89b93e34d 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompiler.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompiler.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompilerFactory.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompilerFactory.java index 36e02b21d61..6b317f11215 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompilerFactory.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompilerFactory.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler; import java.util.Optional; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompilerSettings.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompilerSettings.java index b45d025ab6e..bdcc947b8c3 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompilerSettings.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaCompilerSettings.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaConfiguration.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaConfiguration.java index 5eaeaeb6e3c..4964586e1dc 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaConfiguration.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/JavaConfiguration.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler; import java.util.Arrays; @@ -23,7 +27,7 @@ * There are options to use various flavours of runtime compilers. * Apache JCI is used as the interface to all the runtime compilers. * - * You can also use the system property "drools.compiler" to set the desired compiler. + * You can also use the system property "drools.dialect.java.compiler" to set the desired compiler. * The valid values are "ECLIPSE" and "NATIVE" only. * * drools.dialect.java.compiler = diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/KieMemoryCompiler.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/KieMemoryCompiler.java index f0edebecc9a..4a04914faad 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/KieMemoryCompiler.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/KieMemoryCompiler.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.memorycompiler; import java.net.URL; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/KieMemoryCompilerException.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/KieMemoryCompilerException.java index d950b01f95b..75946184e31 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/KieMemoryCompilerException.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/KieMemoryCompilerException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.memorycompiler; public class KieMemoryCompilerException extends RuntimeException { diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/StoreClassLoader.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/StoreClassLoader.java index 09d595209c0..a00770a77cd 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/StoreClassLoader.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/StoreClassLoader.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler; import java.util.Map; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/WritableClassLoader.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/WritableClassLoader.java index aca29d50fff..1f015d07d02 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/WritableClassLoader.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/WritableClassLoader.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2021. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler; public interface WritableClassLoader { diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/JavaCompilerFinder.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/JavaCompilerFinder.java index 247456b3be5..f2b465da9c7 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/JavaCompilerFinder.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/JavaCompilerFinder.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.memorycompiler.jdknative; import javax.tools.JavaCompiler; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeCompilationProblem.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeCompilationProblem.java index 3881ded7ea8..d56f0904bae 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeCompilationProblem.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeCompilationProblem.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler.jdknative; import javax.tools.Diagnostic; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompiler.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompiler.java index 8ec5738904a..a59653567ca 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompiler.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompiler.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler.jdknative; import javax.lang.model.element.Modifier; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerFinder.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerFinder.java index 20883a46c5e..fc75ccce748 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerFinder.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerFinder.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.memorycompiler.jdknative; import javax.tools.JavaCompiler; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerSettings.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerSettings.java index 6e592b05ad3..bf2ce229daa 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerSettings.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerSettings.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler.jdknative; import java.io.Writer; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/MemoryResourceReader.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/MemoryResourceReader.java index 31ce973823d..27b8ce7a1ac 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/MemoryResourceReader.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/MemoryResourceReader.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler.resources; import java.util.Collection; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/MemoryResourceStore.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/MemoryResourceStore.java index c2321bd0048..b51441b238d 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/MemoryResourceStore.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/MemoryResourceStore.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler.resources; import java.util.HashMap; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/ResourceReader.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/ResourceReader.java index 65248ccdcb6..7dfc6ebe5ec 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/ResourceReader.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/ResourceReader.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler.resources; import java.util.Collection; diff --git a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/ResourceStore.java b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/ResourceStore.java index ee6628c8ce3..25e3bd30da8 100644 --- a/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/ResourceStore.java +++ b/kie-memory-compiler/src/main/java/org/kie/memorycompiler/resources/ResourceStore.java @@ -1,17 +1,21 @@ -/* - * Copyright (c) 2020. Red Hat, Inc. and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. + * 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. */ - package org.kie.memorycompiler.resources; import org.drools.util.PortablePath; diff --git a/kie-memory-compiler/src/test/java/org/kie/memorycompiler/KieMemoryCompilerTest.java b/kie-memory-compiler/src/test/java/org/kie/memorycompiler/KieMemoryCompilerTest.java index 49813682a68..7c5e3093ebf 100644 --- a/kie-memory-compiler/src/test/java/org/kie/memorycompiler/KieMemoryCompilerTest.java +++ b/kie-memory-compiler/src/test/java/org/kie/memorycompiler/KieMemoryCompilerTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.memorycompiler; diff --git a/kie-memory-compiler/src/test/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerTest.java b/kie-memory-compiler/src/test/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerTest.java index d35d094eafe..268f962685a 100644 --- a/kie-memory-compiler/src/test/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerTest.java +++ b/kie-memory-compiler/src/test/java/org/kie/memorycompiler/jdknative/NativeJavaCompilerTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.memorycompiler.jdknative; import javax.tools.JavaCompiler; diff --git a/kie-pmml-trusty/kie-pmml-api/pom.xml b/kie-pmml-trusty/kie-pmml-api/pom.xml index 1ab7b81e0c8..b3c24f454bc 100644 --- a/kie-pmml-trusty/kie-pmml-api/pom.xml +++ b/kie-pmml-trusty/kie-pmml-api/pom.xml @@ -1,11 +1,31 @@ + kie-pmml-trusty org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: API Public APIs from Trusty PMML + + org.kie.pmml.api + + diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/PMMLContext.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/PMMLContext.java index f4dca634d3a..52a79294c3c 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/PMMLContext.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/PMMLContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/PMMLRuntimeFactory.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/PMMLRuntimeFactory.java index b4740959fca..d5394fdcee6 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/PMMLRuntimeFactory.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/PMMLRuntimeFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/compilation/PMMLCompilationContext.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/compilation/PMMLCompilationContext.java index 8191d90f05d..5491204bbcc 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/compilation/PMMLCompilationContext.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/compilation/PMMLCompilationContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.compilation; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/ARRAY_TYPE.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/ARRAY_TYPE.java index e4532e69529..429195f01dc 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/ARRAY_TYPE.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/ARRAY_TYPE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BASELINE_METHOD.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BASELINE_METHOD.java index 88c5370472a..a4b78b07010 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BASELINE_METHOD.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BASELINE_METHOD.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BOOLEAN_OPERATOR.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BOOLEAN_OPERATOR.java index ef19e741e2d..df6c10cb503 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BOOLEAN_OPERATOR.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BOOLEAN_OPERATOR.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BUILTIN_FUNCTIONS.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BUILTIN_FUNCTIONS.java index f9232013497..c3dcd53a41e 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BUILTIN_FUNCTIONS.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/BUILTIN_FUNCTIONS.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/CAST_INTEGER.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/CAST_INTEGER.java index 77b888701ef..64e37659f58 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/CAST_INTEGER.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/CAST_INTEGER.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/CLOSURE.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/CLOSURE.java index 9cd0a3d41f2..f0b87f5964d 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/CLOSURE.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/CLOSURE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/COUNT_HITS.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/COUNT_HITS.java index 4752382ac00..aec34ccaa9a 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/COUNT_HITS.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/COUNT_HITS.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/DATA_TYPE.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/DATA_TYPE.java index e49056714dc..6458800e31e 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/DATA_TYPE.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/DATA_TYPE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/FIELD_USAGE_TYPE.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/FIELD_USAGE_TYPE.java index 1ee104c2d06..e877f30d09f 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/FIELD_USAGE_TYPE.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/FIELD_USAGE_TYPE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/INVALID_VALUE_TREATMENT_METHOD.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/INVALID_VALUE_TREATMENT_METHOD.java index 1261c829206..e945f519e76 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/INVALID_VALUE_TREATMENT_METHOD.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/INVALID_VALUE_TREATMENT_METHOD.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/IN_NOTIN.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/IN_NOTIN.java index 02fd2225395..919f190c256 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/IN_NOTIN.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/IN_NOTIN.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/LOCAL_TERM_WEIGHTS.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/LOCAL_TERM_WEIGHTS.java index 45d03b4e4da..0883e83a6fe 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/LOCAL_TERM_WEIGHTS.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/LOCAL_TERM_WEIGHTS.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/MINING_FUNCTION.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/MINING_FUNCTION.java index b0f03a1f2c9..d863b361718 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/MINING_FUNCTION.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/MINING_FUNCTION.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/MISSING_VALUE_TREATMENT_METHOD.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/MISSING_VALUE_TREATMENT_METHOD.java index 84bde8e88c1..043b7a0048f 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/MISSING_VALUE_TREATMENT_METHOD.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/MISSING_VALUE_TREATMENT_METHOD.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/Named.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/Named.java index 7039550d324..dc6bc47a063 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/Named.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/Named.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums; public interface Named { diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OPERATOR.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OPERATOR.java index 14a98fc9437..57634d3ac41 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OPERATOR.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OPERATOR.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OP_TYPE.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OP_TYPE.java index 28ce1693abe..ddd200c1804 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OP_TYPE.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OP_TYPE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OUTLIER_TREATMENT_METHOD.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OUTLIER_TREATMENT_METHOD.java index 7714f6ba9f8..b3fbe6fe3c9 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OUTLIER_TREATMENT_METHOD.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/OUTLIER_TREATMENT_METHOD.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/PMML_MODEL.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/PMML_MODEL.java index e1965c70b8c..8df83f87fe7 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/PMML_MODEL.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/PMML_MODEL.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/PMML_STEP.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/PMML_STEP.java index a45539d6ecb..2451014fccf 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/PMML_STEP.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/PMML_STEP.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/REASONCODE_ALGORITHM.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/REASONCODE_ALGORITHM.java index 619a7b382a8..a49740c7766 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/REASONCODE_ALGORITHM.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/REASONCODE_ALGORITHM.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/RESULT_FEATURE.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/RESULT_FEATURE.java index debe5a7c75f..2da043b6869 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/RESULT_FEATURE.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/RESULT_FEATURE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/ResultCode.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/ResultCode.java index d2660c9a425..dc019d4cf69 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/ResultCode.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/ResultCode.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/VALUE_PROPERTY.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/VALUE_PROPERTY.java index 242b18573bd..4cb04bf2db2 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/VALUE_PROPERTY.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/VALUE_PROPERTY.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/ArithmeticFunctions.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/ArithmeticFunctions.java index a0b45f18cc5..0f2064d3ea0 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/ArithmeticFunctions.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/ArithmeticFunctions.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums.builtinfunctions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/BooleanFunctions.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/BooleanFunctions.java index fc5f2a60b35..098b4761fea 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/BooleanFunctions.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/BooleanFunctions.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums.builtinfunctions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/DateFunctions.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/DateFunctions.java index 0499a03fb75..83898e442a7 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/DateFunctions.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/DateFunctions.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums.builtinfunctions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/DistributionFunctions.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/DistributionFunctions.java index a4ba7e5363c..17a96e0fd05 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/DistributionFunctions.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/DistributionFunctions.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums.builtinfunctions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/MathematicalFunctions.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/MathematicalFunctions.java index e5258e6deda..18ee405cca9 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/MathematicalFunctions.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/MathematicalFunctions.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums.builtinfunctions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/StringFunctions.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/StringFunctions.java index c3b2532c1a7..3d321468e4a 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/StringFunctions.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/enums/builtinfunctions/StringFunctions.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.enums.builtinfunctions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/ExternalException.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/ExternalException.java index e236aec4644..595d152169f 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/ExternalException.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/ExternalException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.exceptions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KieDataFieldException.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KieDataFieldException.java index 31b69bf8ff9..50e4c388d36 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KieDataFieldException.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KieDataFieldException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.exceptions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KieEnumException.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KieEnumException.java index a28cffd9f56..8e5f9651717 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KieEnumException.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KieEnumException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.exceptions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLException.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLException.java index ced96486829..a54432179c9 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLException.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.exceptions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLInputDataException.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLInputDataException.java index b79a9bcc132..8fb8087b920 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLInputDataException.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLInputDataException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.exceptions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLInternalException.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLInternalException.java index e7a82384831..ab77e8aabe3 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLInternalException.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLInternalException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.exceptions; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLValidationException.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLValidationException.java index 6e7be16fa52..06888a4648f 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLValidationException.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/exceptions/KiePMMLValidationException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.exceptions; public class KiePMMLValidationException extends KiePMMLException { diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/AbstractModelLocalUriIdPmml.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/AbstractModelLocalUriIdPmml.java index dff6dc80de8..6c291c261de 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/AbstractModelLocalUriIdPmml.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/AbstractModelLocalUriIdPmml.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/KiePmmlComponentRoot.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/KiePmmlComponentRoot.java index 321179d4cf7..fa3a661885d 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/KiePmmlComponentRoot.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/KiePmmlComponentRoot.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalComponentIdPmml.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalComponentIdPmml.java index c19296cbc7e..b276160eb06 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalComponentIdPmml.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalComponentIdPmml.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalComponentIdRedirectPmml.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalComponentIdRedirectPmml.java index 3c7e6f72a2f..70e06902321 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalComponentIdRedirectPmml.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalComponentIdRedirectPmml.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalPredictionId.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalPredictionId.java index 93f4748b839..a2945d511aa 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalPredictionId.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/LocalPredictionId.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlComponentRoot.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlComponentRoot.java index 484810f9dc8..b20422f588f 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlComponentRoot.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlComponentRoot.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdFactory.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdFactory.java index 080d537fc59..96789f84af6 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdFactory.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdRedirectFactory.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdRedirectFactory.java index bb79421d893..5f47f30487e 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdRedirectFactory.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PmmlIdRedirectFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PredictionIds.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PredictionIds.java index bdffe96d526..ab44ddd1045 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PredictionIds.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/identifiers/PredictionIds.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.identifiers; import org.kie.efesto.common.api.identifiers.ComponentRoot; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/iinterfaces/SerializableConsumer.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/iinterfaces/SerializableConsumer.java index 485b0efe351..4b11f9dd753 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/iinterfaces/SerializableConsumer.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/iinterfaces/SerializableConsumer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.iinterfaces; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/iinterfaces/SerializableFunction.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/iinterfaces/SerializableFunction.java index 49bd84ff526..efc95be6d5c 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/iinterfaces/SerializableFunction.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/iinterfaces/SerializableFunction.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.iinterfaces; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/Interval.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/Interval.java index c5c5504a01d..dbd2e2ad5b4 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/Interval.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/Interval.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.models; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/MiningField.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/MiningField.java index 0b3e70191c2..c96b1475908 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/MiningField.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/MiningField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.models; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/OutputField.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/OutputField.java index 9e913d568da..abc7ed09da9 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/OutputField.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/OutputField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.models; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLModel.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLModel.java index 96445f9aca4..84ad9c73b79 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLModel.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.models; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLModelImpl.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLModelImpl.java index 756c4c015bf..d1c9dea3276 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLModelImpl.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLModelImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.models; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLStep.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLStep.java index 9555868d60a..9d388278674 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLStep.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/PMMLStep.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.models; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/TargetField.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/TargetField.java index 5a48afb0939..83b0337dd00 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/TargetField.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/TargetField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.models; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/TargetValue.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/TargetValue.java index 203bfac62c6..a8da6fc5ed9 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/TargetValue.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/TargetValue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.models; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/package-info.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/package-info.java index c70443be758..80398b8cd56 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/package-info.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/models/package-info.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ /** * User-friendly representations to be used by end-consumer, e.g. returned in the Kogito environment diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLListener.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLListener.java index dfc37ce5812..794a776266a 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLListener.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLListener.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.runtime; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLRuntime.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLRuntime.java index 0dc8b311ac4..d56f7a52d96 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLRuntime.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLRuntime.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.runtime; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLRuntimeContext.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLRuntimeContext.java index 855338a7783..879ff3f144d 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLRuntimeContext.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/runtime/PMMLRuntimeContext.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.runtime; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/ConverterTypeUtil.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/ConverterTypeUtil.java index b2d279d793a..c25b22cf37d 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/ConverterTypeUtil.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/ConverterTypeUtil.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.utils; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/EnumUtils.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/EnumUtils.java index 32cf6c753ac..53500f8d5c8 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/EnumUtils.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/EnumUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.utils; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/PrimitiveBoxedUtils.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/PrimitiveBoxedUtils.java index 85e79ab943b..cc10dbd28fc 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/PrimitiveBoxedUtils.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/PrimitiveBoxedUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.api.utils; diff --git a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/SourceUtils.java b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/SourceUtils.java index 49a64e0a28a..2f9273f10b1 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/SourceUtils.java +++ b/kie-pmml-trusty/kie-pmml-api/src/main/java/org/kie/pmml/api/utils/SourceUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.utils; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/BUILTIN_FUNCTIONSTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/BUILTIN_FUNCTIONSTest.java index 877022089e0..8965d04c0b6 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/BUILTIN_FUNCTIONSTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/BUILTIN_FUNCTIONSTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/CAST_INTEGERTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/CAST_INTEGERTest.java index 2fbe4417a01..94f8c88a583 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/CAST_INTEGERTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/CAST_INTEGERTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums; import org.junit.jupiter.api.Test; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/DATA_TYPETest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/DATA_TYPETest.java index bcb08a65c47..c2da28273f3 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/DATA_TYPETest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/DATA_TYPETest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums; import java.time.ZoneId; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/ArithmeticFunctionsTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/ArithmeticFunctionsTest.java index 7dc6068ffcd..d16dbf86785 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/ArithmeticFunctionsTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/ArithmeticFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums.builtinfunctions; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/BooleanFunctionsTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/BooleanFunctionsTest.java index 76c7f326cbb..4d216aaed4c 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/BooleanFunctionsTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/BooleanFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums.builtinfunctions; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/DateFunctionsTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/DateFunctionsTest.java index 7d7ab8e56ae..424ea323ffa 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/DateFunctionsTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/DateFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums.builtinfunctions; import java.time.LocalDateTime; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/DistributionFunctionsTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/DistributionFunctionsTest.java index bd45c057af9..dcb8e834cc9 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/DistributionFunctionsTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/DistributionFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums.builtinfunctions; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/MathematicalFunctionsTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/MathematicalFunctionsTest.java index 6a5f46ce74c..58cf4be0b39 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/MathematicalFunctionsTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/MathematicalFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums.builtinfunctions; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/StringFunctionsTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/StringFunctionsTest.java index 7498012591f..583dda9b9f4 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/StringFunctionsTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/enums/builtinfunctions/StringFunctionsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.enums.builtinfunctions; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalComponentIdPmmlTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalComponentIdPmmlTest.java index c8d8786bfb2..86c66abb112 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalComponentIdPmmlTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalComponentIdPmmlTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalComponentIdRedirectPmmlTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalComponentIdRedirectPmmlTest.java index dc46eb3b99c..e42c1148e2e 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalComponentIdRedirectPmmlTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalComponentIdRedirectPmmlTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalPredictionIdTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalPredictionIdTest.java index d13247e9584..afaa94ba1bd 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalPredictionIdTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/LocalPredictionIdTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/PredictionIdsTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/PredictionIdsTest.java index f01b16f0897..0a40bd62569 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/PredictionIdsTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/identifiers/PredictionIdsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.api.identifiers; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/utils/ConverterTypeUtilTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/utils/ConverterTypeUtilTest.java index a530dcec6cd..f9382b2d444 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/utils/ConverterTypeUtilTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/utils/ConverterTypeUtilTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.utils; import java.util.HashMap; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/utils/PrimitiveBoxedUtilsTest.java b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/utils/PrimitiveBoxedUtilsTest.java index d7749e4592b..fe35c770166 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/utils/PrimitiveBoxedUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-api/src/test/java/org/kie/pmml/api/utils/PrimitiveBoxedUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.api.utils; import org.junit.jupiter.api.Test; diff --git a/kie-pmml-trusty/kie-pmml-api/src/test/resources/simplelogger.properties b/kie-pmml-trusty/kie-pmml-api/src/test/resources/simplelogger.properties index dadc99d14be..d7ac46f9e08 100644 --- a/kie-pmml-trusty/kie-pmml-api/src/test/resources/simplelogger.properties +++ b/kie-pmml-trusty/kie-pmml-api/src/test/resources/simplelogger.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # SLF4J's SimpleLogger configuration file # Simple implementation of Logger that sends all enabled log messages, for all defined loggers, to System.err. # Default logging detail level for all instances of SimpleLogger. diff --git a/kie-pmml-trusty/kie-pmml-commons/pom.xml b/kie-pmml-trusty/kie-pmml-commons/pom.xml index 76721ab6d62..45c8734fa4f 100644 --- a/kie-pmml-trusty/kie-pmml-commons/pom.xml +++ b/kie-pmml-trusty/kie-pmml-commons/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-trusty - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -16,6 +36,7 @@ **/exceptions/**.java,**/model/predicates/**.java + org.kie.pmml.commons diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/Constants.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/Constants.java index a26a0c49562..54ef0008dfa 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/Constants.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/Constants.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.commons; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/HasRedirectOutput.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/HasRedirectOutput.java index d875803dd7c..193e6bc9231 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/HasRedirectOutput.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/HasRedirectOutput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/HasRule.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/HasRule.java index ab12eef94ae..c1c1ec5d6a3 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/HasRule.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/HasRule.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/HasNestedModels.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/HasNestedModels.java index 74da089e760..21e5bfa039c 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/HasNestedModels.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/HasNestedModels.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/HasSourcesMap.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/HasSourcesMap.java index 42e7743d484..a92dc55a2a4 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/HasSourcesMap.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/HasSourcesMap.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/IsDrools.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/IsDrools.java index 7763648da04..1d6c1f0f064 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/IsDrools.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/IsDrools.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/IsInterpreted.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/IsInterpreted.java index 498bece8d95..477829e3b8f 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/IsInterpreted.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/IsInterpreted.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLExtension.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLExtension.java index 3d995f6d50f..1ae45a0ac2f 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLExtension.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLExtension.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLFactoryModel.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLFactoryModel.java index d6f55cf36df..f140317eaa4 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLFactoryModel.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLFactoryModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLMiningField.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLMiningField.java index 7bc6fe7d0b3..a223676f6e6 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLMiningField.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLMiningField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModel.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModel.java index 08e346c2a65..4933519f506 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModel.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModelFactory.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModelFactory.java index fc4b02232b7..539f8f801bd 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModelFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModelWithSources.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModelWithSources.java index 0354cc13576..56862cbc340 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModelWithSources.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLModelWithSources.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLOutputField.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLOutputField.java index 8dec8c6b138..8080b242d4c 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLOutputField.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLOutputField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLTarget.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLTarget.java index 28d03a14334..949af4e6e80 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLTarget.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLTarget.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLTargetValue.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLTargetValue.java index 4c03a0bfc2a..73d7280454f 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLTargetValue.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/KiePMMLTargetValue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/ProcessingDTO.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/ProcessingDTO.java index 83a0710e737..f28960881da 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/ProcessingDTO.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/ProcessingDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/abstracts/AbstractKiePMMLComponent.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/abstracts/AbstractKiePMMLComponent.java index d16b6eb7edb..3f6760fe951 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/abstracts/AbstractKiePMMLComponent.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/abstracts/AbstractKiePMMLComponent.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.abstracts; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/abstracts/KiePMMLExtensionedTerm.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/abstracts/KiePMMLExtensionedTerm.java index f327820ff6f..9cab1cd7591 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/abstracts/KiePMMLExtensionedTerm.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/abstracts/KiePMMLExtensionedTerm.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.commons.model.abstracts; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/ExpressionsUtils.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/ExpressionsUtils.java index c894f1a3894..37e81b02efa 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/ExpressionsUtils.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/ExpressionsUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLApply.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLApply.java index 66d41e9960d..9a9bcd097c3 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLApply.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLApply.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLConstant.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLConstant.java index d7d9fc00035..7ab5f360edb 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLConstant.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLConstant.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretize.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretize.java index 159b995f8ae..0802eeef4a3 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretize.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretize.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeBin.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeBin.java index 81c1bb85265..534305b82e3 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeBin.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeBin.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLExpression.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLExpression.java index 2b2bf9360d7..b90af6dc925 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLExpression.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLExpression.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldColumnPair.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldColumnPair.java index 83755d8de26..73a55c1f337 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldColumnPair.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldColumnPair.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldRef.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldRef.java index 91038141db2..0a9139ff051 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldRef.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldRef.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLInlineTable.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLInlineTable.java index 16c1aef6f2e..50768674bef 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLInlineTable.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLInlineTable.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLInterval.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLInterval.java index 7a8bd259e80..d86610dca6e 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLInterval.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLInterval.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLLinearNorm.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLLinearNorm.java index 241a2e88e1b..127bb8528ae 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLLinearNorm.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLLinearNorm.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLMapValues.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLMapValues.java index c8346680b54..3774df21945 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLMapValues.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLMapValues.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLNormContinuous.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLNormContinuous.java index 481d8f37a6d..d9bc5216dd3 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLNormContinuous.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLNormContinuous.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLNormDiscrete.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLNormDiscrete.java index 64748dc0f91..5df2b0a3a8e 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLNormDiscrete.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLNormDiscrete.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLRow.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLRow.java index a2449ad1c4e..c3a302e722a 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLRow.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLRow.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndex.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndex.java index df2dc337833..9b40ccba7ba 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndex.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndex.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexNormalization.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexNormalization.java index 16518a7971b..c9ba98c69ff 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexNormalization.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexNormalization.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.expressions; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/package-info.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/package-info.java index 0fc38a7b603..410c874addb 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/package-info.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/package-info.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ /** * Un-mutable domain-classes used to represent PMML models in model-specific format. diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLCompoundPredicate.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLCompoundPredicate.java index 50a0bd28287..7580426d784 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLCompoundPredicate.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLCompoundPredicate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.predicates; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLFalsePredicate.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLFalsePredicate.java index d1778f859b0..ca2fd39d2ba 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLFalsePredicate.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLFalsePredicate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.predicates; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLPredicate.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLPredicate.java index 97a548d06e2..6aa88858867 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLPredicate.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLPredicate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.predicates; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLSimplePredicate.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLSimplePredicate.java index c692675b761..7a65182402a 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLSimplePredicate.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLSimplePredicate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.predicates; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLSimpleSetPredicate.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLSimpleSetPredicate.java index 4250f57521c..910aa906881 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLSimpleSetPredicate.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLSimpleSetPredicate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.predicates; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLTruePredicate.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLTruePredicate.java index 76c1230f469..56c434b5618 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLTruePredicate.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/predicates/KiePMMLTruePredicate.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.predicates; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLNameOpType.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLNameOpType.java index 2b8994272cd..fa32456db6d 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLNameOpType.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLNameOpType.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.commons.model.tuples; import java.util.Objects; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLNameValue.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLNameValue.java index 90ecd2f86e4..67cdc925d67 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLNameValue.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLNameValue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.tuples; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLProbabilityConfidence.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLProbabilityConfidence.java index 11347c9adf4..0fa405b438d 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLProbabilityConfidence.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLProbabilityConfidence.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.pmml.commons.model.tuples; /** diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLValueWeight.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLValueWeight.java index aa0b40e6d8e..f68a1bb164e 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLValueWeight.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/model/tuples/KiePMMLValueWeight.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.model.tuples; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLDefineFunction.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLDefineFunction.java index baed315bb35..0f0403d83b0 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLDefineFunction.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLDefineFunction.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.transformations; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLDerivedField.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLDerivedField.java index c6fc69203c5..d9fd6bb0f85 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLDerivedField.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLDerivedField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.transformations; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLLocalTransformations.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLLocalTransformations.java index 4204be24042..20ce2d582d4 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLLocalTransformations.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLLocalTransformations.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.transformations; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLParameterField.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLParameterField.java index 07e1935581c..c8d28b03c9a 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLParameterField.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLParameterField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.transformations; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLTransformationDictionary.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLTransformationDictionary.java index 541beddd2a3..e5a1e7d1721 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLTransformationDictionary.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/transformations/KiePMMLTransformationDictionary.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.transformations; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/utils/KiePMMLModelUtils.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/utils/KiePMMLModelUtils.java index 16d09fbaad0..9c05ef0c3cb 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/utils/KiePMMLModelUtils.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/utils/KiePMMLModelUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.commons.utils; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/utils/PMMLLoaderUtils.java b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/utils/PMMLLoaderUtils.java index 7ea8f9f23c5..3898bb17e4b 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/utils/PMMLLoaderUtils.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/main/java/org/kie/pmml/commons/utils/PMMLLoaderUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.commons.utils; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/CommonTestingUtility.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/CommonTestingUtility.java index 61945a566cb..b600bae6616 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/CommonTestingUtility.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/CommonTestingUtility.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.commons; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/compilation/model/TestMod.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/compilation/model/TestMod.java index 540feb82d7c..dcfd5316b54 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/compilation/model/TestMod.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/compilation/model/TestMod.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.commons.compilation.model; import org.kie.pmml.api.models.MiningField; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/compilation/model/TestingModelFactory.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/compilation/model/TestingModelFactory.java index ee5a7bfe0d3..0b034d5ab09 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/compilation/model/TestingModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/compilation/model/TestingModelFactory.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.commons.compilation.model; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLFactoryModelTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLFactoryModelTest.java index 4bc8bba57a9..cb30da9568b 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLFactoryModelTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLFactoryModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLMiningFieldTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLMiningFieldTest.java index f2af37c0743..e67281810b4 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLMiningFieldTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLMiningFieldTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLModelWithSourcesTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLModelWithSourcesTest.java index 8c5b803072a..59c16c38d71 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLModelWithSourcesTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLModelWithSourcesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLOutputFieldTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLOutputFieldTest.java index a893ed9c138..ad33a11e2e1 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLOutputFieldTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLOutputFieldTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLTargetTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLTargetTest.java index d106b8f17eb..9b8e33e159d 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLTargetTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/KiePMMLTargetTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLApplyTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLApplyTest.java index 02573e1786f..8f0249f854a 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLApplyTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLApplyTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLConstantTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLConstantTest.java index 403989894b8..b580ae9c17b 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLConstantTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLConstantTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeBinTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeBinTest.java index 5b2a571c4d7..dcc78df635b 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeBinTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeBinTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeTest.java index 26dbd09e8e0..42419f8f164 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLDiscretizeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldRefTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldRefTest.java index 02208a80a29..ef710d4e055 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldRefTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLFieldRefTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLInlineTableTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLInlineTableTest.java index 4a7461272f9..ce7c0f22b1c 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLInlineTableTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLInlineTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLIntervalTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLIntervalTest.java index 67f0b22218b..f0c1aa5b23e 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLIntervalTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLIntervalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import org.junit.jupiter.api.Test; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLMapValuesTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLMapValuesTest.java index 9716edf0ae6..4b22efed838 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLMapValuesTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLMapValuesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLNormContinuousTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLNormContinuousTest.java index 40d817d6a29..98741d94eed 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLNormContinuousTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLNormContinuousTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLNormDiscreteTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLNormDiscreteTest.java index 151969033e9..6c1ac7d8664 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLNormDiscreteTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLNormDiscreteTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLRowTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLRowTest.java index f83dd729e19..548c7087f22 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLRowTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLRowTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexNormalizationTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexNormalizationTest.java index 04ceb051e52..91ba44c5fc7 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexNormalizationTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexNormalizationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexTest.java index 295174398de..8ef4d5c2c46 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/expressions/KiePMMLTextIndexTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.expressions; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLCompoundPredicateTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLCompoundPredicateTest.java index 43c4d3650ec..ae9f1bbef09 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLCompoundPredicateTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLCompoundPredicateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.predicates; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLSimplePredicateTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLSimplePredicateTest.java index 02a04462d4e..549333a7337 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLSimplePredicateTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLSimplePredicateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.predicates; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLSimpleSetPredicateTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLSimpleSetPredicateTest.java index 2f9b8237f2f..ac9080d73dd 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLSimpleSetPredicateTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/model/predicates/KiePMMLSimpleSetPredicateTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.model.predicates; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/KiePMMLTestingModel.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/KiePMMLTestingModel.java index 926c94a6f0c..977d2a3d02f 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/KiePMMLTestingModel.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/KiePMMLTestingModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.commons.testingutility; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/KiePMMLTestingModelWithSources.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/KiePMMLTestingModelWithSources.java index 70fbf65dea3..f5d637b6eca 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/KiePMMLTestingModelWithSources.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/KiePMMLTestingModelWithSources.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.commons.testingutility; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/PMMLRuntimeContextTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/PMMLRuntimeContextTest.java index 3384ea20bb5..5dbe8d228f9 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/PMMLRuntimeContextTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/testingutility/PMMLRuntimeContextTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.commons.testingutility; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/transformations/KiePMMLDefineFunctionTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/transformations/KiePMMLDefineFunctionTest.java index 41f0535ad68..b8adbfa04f4 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/transformations/KiePMMLDefineFunctionTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/transformations/KiePMMLDefineFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.transformations; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/transformations/KiePMMLDerivedFieldTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/transformations/KiePMMLDerivedFieldTest.java index b6679c045e1..8b1fae5c7dc 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/transformations/KiePMMLDerivedFieldTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/transformations/KiePMMLDerivedFieldTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.transformations; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/utils/KiePMMLModelUtilsTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/utils/KiePMMLModelUtilsTest.java index 2f5759d29ac..88fba005190 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/utils/KiePMMLModelUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/utils/KiePMMLModelUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.commons.utils; import java.util.HashMap; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/utils/PMMLLoaderUtilsTest.java b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/utils/PMMLLoaderUtilsTest.java index e7671b7b52c..6e771639e6d 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/utils/PMMLLoaderUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/java/org/kie/pmml/commons/utils/PMMLLoaderUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.commons.utils; diff --git a/kie-pmml-trusty/kie-pmml-commons/src/test/resources/simplelogger.properties b/kie-pmml-trusty/kie-pmml-commons/src/test/resources/simplelogger.properties index ac0f70a707d..815c3ae0acc 100644 --- a/kie-pmml-trusty/kie-pmml-commons/src/test/resources/simplelogger.properties +++ b/kie-pmml-trusty/kie-pmml-commons/src/test/resources/simplelogger.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # SLF4J's SimpleLogger configuration file # Simple implementation of Logger that sends all enabled log messages, for all defined loggers, to System.err. diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/pom.xml b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/pom.xml index 09963ccde77..605282e1b25 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/pom.xml +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-compiler - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: Compiler :: API API specific for PMML Compiler + + org.kie.pmml.compiler.api + + diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java index faeebf018f0..b4d12b531be 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CommonCompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.api.dto; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CompilationDTO.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CompilationDTO.java index 0daab66e5ad..441388bf8f2 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/dto/CompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.api.dto; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/provider/ModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/provider/ModelImplementationProvider.java index 8e2827b551f..8f6662afc2d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/provider/ModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/provider/ModelImplementationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.api.provider; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/provider/ModelImplementationProviderFinder.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/provider/ModelImplementationProviderFinder.java index ee0fb77f999..307c8d08cf6 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/provider/ModelImplementationProviderFinder.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/provider/ModelImplementationProviderFinder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.api.provider; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java index 8f99b7d8c8f..45015d4b374 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/main/java/org/kie/pmml/compiler/api/utils/ModelUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.api.utils; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/CommonTestingUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/CommonTestingUtils.java index 85d4379d9f5..6049db6d661 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/CommonTestingUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/CommonTestingUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.api; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java index 29e0f7b7d01..32c3b862caf 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/mocks/TestModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.api.mocks; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java index 9c855e91bc4..c668e1a6ff0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/PMMLModelTestUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.api.testutils; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/TestUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/TestUtils.java index 581ee21301b..afb57b0e4b0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/TestUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/testutils/TestUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.api.testutils; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java index 8dd030ef3db..cbf3518face 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-api/src/test/java/org/kie/pmml/compiler/api/utils/ModelUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.api.utils; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/pom.xml b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/pom.xml index 013e81dd1b6..e1d888731d5 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/pom.xml +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-compiler - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: Compiler :: Commons Kie PMML Compiler Commons + + org.kie.pmml.compiler.commons + + diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactory.java index 2cb3c3bde68..1d465aa1c9d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLCompoundPredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLCompoundPredicateFactory.java index 60915025ee1..501a0d1c7be 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLCompoundPredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLCompoundPredicateFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLConstantFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLConstantFactory.java index 46452948a9a..429f399aeeb 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLConstantFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLConstantFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactory.java index 789c715d3dc..c2c22ac65ab 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java index b0a57eebda1..0267b4f905f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeBinFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeBinFactory.java index 76db0d2e774..031b625cc88 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeBinFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeBinFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java index f740a025abd..302047678fc 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLExpressionFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLExpressionFactory.java index 9c0ff1ef0dd..27f5891a4a0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLExpressionFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLExpressionFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFalsePredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFalsePredicateFactory.java index 84572a3927b..2d38cd6d39b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFalsePredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFalsePredicateFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java index 1a6854dc37f..727090cd0b5 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java index 8404131f4db..33b40939dc1 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactory.java index 58637b5415a..39ec17d3e4a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLIntervalFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLIntervalFactory.java index efebc64be3e..f92adcca438 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLIntervalFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLIntervalFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactory.java index 845b4f3d06d..a4506f06ade 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactory.java index 882913e2bf9..9d7ef2b80db 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java index 5a1026b9be9..9f68eeeba66 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java index 41b5b046afd..32b0378c4da 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java index 41b6d2292b9..c060b2b8343 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java index a3dfadc05b4..4db24f7ac22 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java index 03ac64ec847..3f375480d11 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLOutputFieldFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java index 364a781216d..c7d22413fa1 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLPredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLPredicateFactory.java index 8ad54a22fa7..e8b558ae8d4 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLPredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLPredicateFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactory.java index 516d754e674..10de736d36d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java index acbd5765a4c..544619f337c 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java index 078b865fb10..d8e41815bdd 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetFactory.java index 394883d2f5e..e5cbeccd533 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetValueFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetValueFactory.java index 042f494f1d5..3c30e28c909 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetValueFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetValueFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java index 1f8247c3450..45d387b36f0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexNormalizationFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexNormalizationFactory.java index c7711adcb93..8783fe0c772 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexNormalizationFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexNormalizationFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactory.java index c35c8459abe..5b50ef37f30 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTruePredicateFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTruePredicateFactory.java index 631fb5c439f..98eb121d326 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTruePredicateFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTruePredicateFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/TargetFieldFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/TargetFieldFactory.java index e71371f8aab..0ad273cb2d6 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/TargetFieldFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/TargetFieldFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/TargetValueFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/TargetValueFactory.java index 5514fbdbae3..88f461f3e59 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/TargetValueFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/codegenfactories/TargetValueFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/dto/AbstractSpecificCompilationDTO.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/dto/AbstractSpecificCompilationDTO.java index bb359cd8985..5c1d166fdf1 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/dto/AbstractSpecificCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/dto/AbstractSpecificCompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.dto; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLApplyInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLApplyInstanceFactory.java index 6b995f44fc3..ce45717426e 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLApplyInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLApplyInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLCompoundPredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLCompoundPredicateInstanceFactory.java index d37696e21b8..9e70f6ff5ed 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLCompoundPredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLCompoundPredicateInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLConstantInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLConstantInstanceFactory.java index a04f35bbb2b..b1763b07bc7 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLConstantInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLConstantInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDefineFunctionInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDefineFunctionInstanceFactory.java index df80ddff854..f9143ea5078 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDefineFunctionInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDefineFunctionInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java index 5d2d2d8d57f..836c1022040 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeBinInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeBinInstanceFactory.java index ba201a5ad6e..7b7c0998483 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeBinInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeBinInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java index 5ee6792fcb5..43cbb224b87 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLExpressionInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLExpressionInstanceFactory.java index b796196297c..5934acd563b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLExpressionInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLExpressionInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLExtensionInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLExtensionInstanceFactory.java index c7d31ded16d..d72e422cf19 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLExtensionInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLExtensionInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFactoryFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFactoryFactory.java index 29e89c1497c..4c76e88a510 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFactoryFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFactoryFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFalsePredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFalsePredicateInstanceFactory.java index 02f7bb7882b..198b14ec422 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFalsePredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFalsePredicateInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java index a659b870fa0..5ba7d7924d9 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactory.java index a1cd31b3c54..a7d58818289 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLInlineTableInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLInlineTableInstanceFactory.java index 8038f22b855..212cc03e232 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLInlineTableInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLInlineTableInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLIntervalInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLIntervalInstanceFactory.java index ff9942b8765..de6fb882fad 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLIntervalInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLIntervalInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLLinearNormInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLLinearNormInstanceFactory.java index 287bf330f56..c30c698917b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLLinearNormInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLLinearNormInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactory.java index 1a9204d1af0..40afc44cb82 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMapValuesInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMapValuesInstanceFactory.java index 0a98d26db6f..6ca63e439e3 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMapValuesInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMapValuesInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactory.java index 1958cda8b47..30e28dfe79f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLModelFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLModelFactory.java index c4442a35205..2f674bc66cc 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLModelFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java index a393a966446..d659f76aae7 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java index 875056d14f8..f887761703f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java index adf65610e88..91804ffa9e7 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java index 71e65adf8e8..5b946d1d616 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLPredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLPredicateInstanceFactory.java index d04a481fedb..dd6bae317cf 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLPredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLPredicateInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLRowInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLRowInstanceFactory.java index fbb67f32547..30654e28f91 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLRowInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLRowInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java index 60d10d26e35..922bbbc043d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java index 70871ada4fd..b5bec302aa7 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java index 40ae1e73c9f..5aa4483c38f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetValueInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetValueInstanceFactory.java index 5600c32aac1..59f61e9b8f8 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetValueInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetValueInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java index a2efd175959..e946b3b40ae 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexNormalizationInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexNormalizationInstanceFactory.java index 04713bbbd00..5a6916e7d0b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexNormalizationInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexNormalizationInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactory.java index 66f7f1a3849..290dbc8c96c 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTruePredicateInstanceFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTruePredicateInstanceFactory.java index 05319bb0b26..410805a1215 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTruePredicateInstanceFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/factories/KiePMMLTruePredicateInstanceFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/implementations/KiePMMLModelRetriever.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/implementations/KiePMMLModelRetriever.java index ff6998a7cd8..b6eeeb9accd 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/implementations/KiePMMLModelRetriever.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/implementations/KiePMMLModelRetriever.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.implementations; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/implementations/ModelImplementationProviderFinderImpl.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/implementations/ModelImplementationProviderFinderImpl.java index 38e85f16d69..ecb8e7e3d65 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/implementations/ModelImplementationProviderFinderImpl.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/implementations/ModelImplementationProviderFinderImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.implementations; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/CommonCodegenUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/CommonCodegenUtils.java index bed67753c74..4421551f758 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/CommonCodegenUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/CommonCodegenUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.utils; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/JavaParserUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/JavaParserUtils.java index 242a6651a93..54db0d0a212 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/JavaParserUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/JavaParserUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.utils; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java index 7bee48918d6..ee967bc5c36 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/main/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtil.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.utils; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java index 3d9f631222c..6ff7acc2c15 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLApplyFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLCompoundPredicateFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLCompoundPredicateFactoryTest.java index b71163d88a4..3d8ced97545 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLCompoundPredicateFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLCompoundPredicateFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLConstantFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLConstantFactoryTest.java index 737abe25869..5f76a0a86cf 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLConstantFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLConstantFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java index 81541acf239..d136aa7b631 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDefineFunctionFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java index 9c0deb97ccd..83cf1f84aa6 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDerivedFieldFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeBinFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeBinFactoryTest.java index 9ea686461e3..8b2041339bd 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeBinFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeBinFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java index 7d6783f9327..3bb53dc323d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLDiscretizeFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFalsePredicateFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFalsePredicateFactoryTest.java index a04e8b2b9e3..34fee52180f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFalsePredicateFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFalsePredicateFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java index 9be27ab139d..f3615838188 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldColumnPairFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java index 74a0a47a199..d7231b57808 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLFieldRefFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java index 7363100b0c4..4fb84d0b438 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLInlineTableFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLIntervalFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLIntervalFactoryTest.java index 597027d580a..3e63dd24a50 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLIntervalFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLIntervalFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java index bd93f31de7b..12bf81ccb81 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLLocalTransformationsFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java index aba744b1938..b01a9b7a97c 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMapValuesFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java index dfed066bf49..e3d14fc03b0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLMiningFieldFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtilsTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtilsTest.java index a99a1db8191..9805f81eeeb 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLModelFactoryUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java index 8c2652e5618..3c0d1aa1420 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormContinuousFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java index f86b124884f..fc0fe288b85 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLNormDiscreteFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java index c123f9d16eb..62d6b453926 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLParameterFieldFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java index 2ebfa7b4628..4315879f7bc 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLRowFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java index cbb71e27073..ef278cbe938 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimplePredicateFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java index 70ab189ceb8..ed4c46efff5 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLSimpleSetPredicateFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetFactoryTest.java index 36661670390..12f9e6425c4 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetValueFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetValueFactoryTest.java index a2530b38b9e..b7050365e8c 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetValueFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTargetValueFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java index 2e0b8155732..e9874f34d6f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexNormalizationFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexNormalizationFactoryTest.java index 69f30883e27..45eba2a477a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexNormalizationFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTextIndexNormalizationFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java index 8cb77861844..bd4374a478a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTransformationDictionaryFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTruePredicateFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTruePredicateFactoryTest.java index 34c26862145..a1b8db813c2 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTruePredicateFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/KiePMMLTruePredicateFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.codegenfactories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/TargetFieldFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/TargetFieldFactoryTest.java index 836dae9d07e..83b4320d2b4 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/TargetFieldFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/TargetFieldFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/TargetValueFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/TargetValueFactoryTest.java index 553c0390d88..2d4619aa338 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/TargetValueFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/codegenfactories/TargetValueFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.codegenfactories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java index 39a0971352b..23927ed5e49 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/InstanceFactoriesTestCommon.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLApplyInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLApplyInstanceFactoryTest.java index aebc119323e..625a2d7675f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLApplyInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLApplyInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLCompoundPredicateInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLCompoundPredicateInstanceFactoryTest.java index 8ba479bc2e3..71186568785 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLCompoundPredicateInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLCompoundPredicateInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLConstantInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLConstantInstanceFactoryTest.java index 710ad8add54..49bf6446f89 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLConstantInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLConstantInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDefineFunctionInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDefineFunctionInstanceFactoryTest.java index 3c4cfdcfbc6..f4777c4ca3b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDefineFunctionInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDefineFunctionInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactoryTest.java index 8fbff853a20..21f9ce8995f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDerivedFieldInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeBinInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeBinInstanceFactoryTest.java index 416abb4f885..d5b875c6250 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeBinInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeBinInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactoryTest.java index 350b7b2d442..e3bb505dc6f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLDiscretizeInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLExpressionInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLExpressionInstanceFactoryTest.java index 867255cc46e..a3c4cab7956 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLExpressionInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLExpressionInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLExtensionInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLExtensionInstanceFactoryTest.java index d321e0a2c11..41383ee5ec0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLExtensionInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLExtensionInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFactoryFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFactoryFactoryTest.java index 2a6de2c365c..9f1fc8e78a9 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFactoryFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFactoryFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFalsePredicateInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFalsePredicateInstanceFactoryTest.java index 91b422ab69a..bf1f3c641e0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFalsePredicateInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFalsePredicateInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactoryTest.java index 8db445cfeab..c4bf72a7d41 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldColumnPairInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactoryTest.java index b42ebe7f08c..2aa1735f469 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLFieldRefInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLInlineTableInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLInlineTableInstanceFactoryTest.java index 5ab85197a97..126a561ea82 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLInlineTableInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLInlineTableInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLIntervalInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLIntervalInstanceFactoryTest.java index 747dcad3e73..8233b56dbd8 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLIntervalInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLIntervalInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLinearNormInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLinearNormInstanceFactoryTest.java index cd2131eb67a..c2af4444679 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLinearNormInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLinearNormInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java index 7769f9d331b..1d55b0229e7 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLLocalTransformationsInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLMapValuesInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLMapValuesInstanceFactoryTest.java index c020602533a..1daaba75451 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLMapValuesInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLMapValuesInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactoryTest.java index cf19157a3b4..96863000b26 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLMiningFieldInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactoryTest.java index ef22c9d1e2d..0ba919c048b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormContinuousInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactoryTest.java index 066dda0ee9e..ca8aac5a7a4 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLNormDiscreteInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactoryTest.java index 9a701b0033b..7a5b7f55a0c 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLOutputFieldInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactoryTest.java index 1d0c5b734d0..3b62b2da810 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLParameterFieldInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLPredicateInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLPredicateInstanceFactoryTest.java index c5bb5d5e6c1..60af09ec2ec 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLPredicateInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLPredicateInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLRowInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLRowInstanceFactoryTest.java index a516217b8e6..c3f382490e9 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLRowInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLRowInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactoryTest.java index 48d845553b7..126919862e1 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimplePredicateInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactoryTest.java index ff831279b23..8dc6ef57685 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLSimpleSetPredicateInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactoryTest.java index a931ecb8c56..f82ec5764e9 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetValueInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetValueInstanceFactoryTest.java index 26f417bb0d5..8e7d16ed290 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetValueInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTargetValueInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactoryTest.java index dd20b3810d5..0846e43a2af 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTextIndexInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java index 4082c4c6220..ed87c68309f 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/factories/KiePMMLTransformationDictionaryInstanceFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/implementations/KiePMMLModelRetrieverTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/implementations/KiePMMLModelRetrieverTest.java index 7d7ecd6c048..cdab799c666 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/implementations/KiePMMLModelRetrieverTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/implementations/KiePMMLModelRetrieverTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.implementations; import java.util.Optional; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/implementations/ModelImplementationProviderFinderImplTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/implementations/ModelImplementationProviderFinderImplTest.java index 321d547b5d9..b6153dd44bf 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/implementations/ModelImplementationProviderFinderImplTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/implementations/ModelImplementationProviderFinderImplTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.implementations; import java.util.List; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/ExternalizableMock.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/ExternalizableMock.java index 30735437476..f9615ce988b 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/ExternalizableMock.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/ExternalizableMock.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.mocks; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/PMMLCompilationContextMock.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/PMMLCompilationContextMock.java index 8b9dd5a0b80..21996ada5dc 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/PMMLCompilationContextMock.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/PMMLCompilationContextMock.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.commons.mocks; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/TestingModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/TestingModelImplementationProvider.java index 336061ac551..129c4c8963c 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/TestingModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/mocks/TestingModelImplementationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.mocks; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/testutils/CodegenTestUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/testutils/CodegenTestUtils.java index bdefe19df38..e9a7b2cef83 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/testutils/CodegenTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/testutils/CodegenTestUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.commons.testutils; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/CommonCodegenUtilsTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/CommonCodegenUtilsTest.java index fac1c0779ec..efa6da82249 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/CommonCodegenUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/CommonCodegenUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.utils; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/JavaParserUtilsTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/JavaParserUtilsTest.java index 8e0ef571cbf..ba3d9f20653 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/JavaParserUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/JavaParserUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.utils; import com.github.javaparser.ast.CompilationUnit; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLLoadedModelUtilsTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLLoadedModelUtilsTest.java index 4dfc3d47764..694fb96c5d0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLLoadedModelUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLLoadedModelUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.utils; import java.util.List; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java index d27ff4c4471..46ce5d7bee0 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-commons/src/test/java/org/kie/pmml/compiler/commons/utils/KiePMMLUtilTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.commons.utils; import java.io.BufferedReader; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/pom.xml b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/pom.xml index 4db427796f9..55dd8e36591 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/pom.xml +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-compiler - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -15,6 +35,7 @@ PMML Compiler Core + org.kie.pmml.compiler.core false diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/PMMLCompilationContextImpl.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/PMMLCompilationContextImpl.java index 1fe8e9c62e6..4125c90a4bf 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/PMMLCompilationContextImpl.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/PMMLCompilationContextImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/executor/PMMLCompiler.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/executor/PMMLCompiler.java index 34ea986bb69..2e7353d5f6e 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/executor/PMMLCompiler.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/executor/PMMLCompiler.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/executor/PMMLCompilerImpl.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/executor/PMMLCompilerImpl.java index e9e6a010145..7896f9e15f2 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/executor/PMMLCompilerImpl.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/executor/PMMLCompilerImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/model/EfestoCallableOutputPMMLClassesContainer.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/model/EfestoCallableOutputPMMLClassesContainer.java index f7bcdd9ff52..293eadb1a46 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/model/EfestoCallableOutputPMMLClassesContainer.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/model/EfestoCallableOutputPMMLClassesContainer.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.model; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/model/EfestoRedirectOutputPMML.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/model/EfestoRedirectOutputPMML.java index d9771c9972e..8d68b9ba380 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/model/EfestoRedirectOutputPMML.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/model/EfestoRedirectOutputPMML.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.model; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLFile.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLFile.java index 754adc8d290..5fdd5962c40 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLFile.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLFile.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.service; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLInputStream.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLInputStream.java index 55876f5cdf4..2f3f8a3187d 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLInputStream.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLInputStream.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.service; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerService.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerService.java index 45150958eba..6b2e6610e98 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerService.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerService.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.service; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerServicePMMLFile.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerServicePMMLFile.java index 40479959365..f903b749453 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerServicePMMLFile.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerServicePMMLFile.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.service; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerServicePMMLInputStream.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerServicePMMLInputStream.java index 4ea2f65d97c..36b23ecc3ad 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerServicePMMLInputStream.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/main/java/org/kie/pmml/compiler/service/PMMLCompilerServicePMMLInputStream.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.compiler.service; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/PMMLCompilationContextImplTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/PMMLCompilationContextImplTest.java index 878a0eb1e4e..c4b1981bec3 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/PMMLCompilationContextImplTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/PMMLCompilationContextImplTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/PMMLTestUtils.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/PMMLTestUtils.java index 1cf6e699197..254611761f7 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/PMMLTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/PMMLTestUtils.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.compiler; import java.io.File; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/model/EfestoRedirectOutputPMMLTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/model/EfestoRedirectOutputPMMLTest.java index 92adb27f626..658ccf1fc35 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/model/EfestoRedirectOutputPMMLTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/model/EfestoRedirectOutputPMMLTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.model; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLFileTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLFileTest.java index 765248be3e7..5f72d5de0c8 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLFileTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLFileTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.service; import java.io.File; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLInputStreamTest.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLInputStreamTest.java index 71e6bb14de0..9016fd563ec 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLInputStreamTest.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/service/KieCompilerServicePMMLInputStreamTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.compiler.service; import java.io.File; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestModelImplementationProvider.java index 55d16a50439..6e223f0b032 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestModelImplementationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.testingutils; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java index 626fd4316e6..feb38f91b9a 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/java/org/kie/pmml/compiler/testingutils/TestingModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.compiler.testingutils; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/LinearRegressionSample.xml b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/LinearRegressionSample.xml index f0f7ca329c3..a5656a966f5 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/LinearRegressionSample.xml +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/LinearRegressionSample.xml @@ -1,3 +1,23 @@ +
diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/org/kie/model/project/codegen/TestMod.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/org/kie/model/project/codegen/TestMod.java index 0309f9a5f91..549a18ec7da 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/org/kie/model/project/codegen/TestMod.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/org/kie/model/project/codegen/TestMod.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.model.project.codegen; import org.kie.pmml.api.models.MiningField; diff --git a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/org/kie/model/project/codegen/TestingModelFactory.java b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/org/kie/model/project/codegen/TestingModelFactory.java index 48a4e67bda2..bcd616b537e 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/org/kie/model/project/codegen/TestingModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-compiler/kie-pmml-compiler-core/src/test/resources/org/kie/model/project/codegen/TestingModelFactory.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.model.project.codegen; import org.kie.pmml.commons.model.KiePMMLModel; diff --git a/kie-pmml-trusty/kie-pmml-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-compiler/pom.xml index 690d9239f53..a05b02dab8e 100644 --- a/kie-pmml-trusty/kie-pmml-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-compiler/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-trusty - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-dependencies/pom.xml b/kie-pmml-trusty/kie-pmml-dependencies/pom.xml index 50666f70814..75c4f782510 100644 --- a/kie-pmml-trusty/kie-pmml-dependencies/pom.xml +++ b/kie-pmml-trusty/kie-pmml-dependencies/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-trusty - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -17,6 +37,10 @@ Declare this artifact as "pom" dependency to import all default kie-pmml-trusty modules. + + org.kie.pmml.dependencies + + diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/pom.xml b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/pom.xml index a35bc766545..aada4fd85a8 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/pom.xml +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-evaluator - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: Evaluator :: API API specific for PMML evaluator + + org.kie.pmml.evaluator.api + + diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/src/main/java/org/kie/pmml/evaluator/api/container/PMMLPackage.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/src/main/java/org/kie/pmml/evaluator/api/container/PMMLPackage.java index c5d8c0ee362..5fd60617023 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/src/main/java/org/kie/pmml/evaluator/api/container/PMMLPackage.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/src/main/java/org/kie/pmml/evaluator/api/container/PMMLPackage.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.evaluator.api.container; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/src/main/java/org/kie/pmml/evaluator/api/exceptions/KiePMMLModelException.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/src/main/java/org/kie/pmml/evaluator/api/exceptions/KiePMMLModelException.java index 42d7630446b..bb079c172b8 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/src/main/java/org/kie/pmml/evaluator/api/exceptions/KiePMMLModelException.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-api/src/main/java/org/kie/pmml/evaluator/api/exceptions/KiePMMLModelException.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.evaluator.api.exceptions; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/pom.xml b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/pom.xml index 468baabb2dc..bc263e4544a 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/pom.xml +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-evaluator - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: Evaluator :: Core PMML Evaluator Core + + org.kie.pmml.evaluator.core + + diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/PMMLRuntimeContextImpl.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/PMMLRuntimeContextImpl.java index edcbb320874..eaf272abd8d 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/PMMLRuntimeContextImpl.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/PMMLRuntimeContextImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluator.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluator.java index e29060b4ba7..0bd44bf3ad7 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.executor; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluatorFinder.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluatorFinder.java index 55fa10c1f48..54fe2f13366 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluatorFinder.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluatorFinder.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.evaluator.core.executor; import java.util.List; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluatorFinderImpl.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluatorFinderImpl.java index 9a74382dc60..290115c32ca 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluatorFinderImpl.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/executor/PMMLModelEvaluatorFinderImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.executor; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/implementations/AbstractPMMLStep.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/implementations/AbstractPMMLStep.java index b397bffe702..ada5bda9f81 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/implementations/AbstractPMMLStep.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/implementations/AbstractPMMLStep.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.evaluator.core.implementations; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/implementations/PMMLRuntimeStep.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/implementations/PMMLRuntimeStep.java index 38a18f536a0..24e10860a6a 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/implementations/PMMLRuntimeStep.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/implementations/PMMLRuntimeStep.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.evaluator.core.implementations; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/model/EfestoInputPMML.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/model/EfestoInputPMML.java index 6c104675da0..e03478d2cce 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/model/EfestoInputPMML.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/model/EfestoInputPMML.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.model; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/model/EfestoOutputPMML.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/model/EfestoOutputPMML.java index 2fabc665901..641ca6b39fb 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/model/EfestoOutputPMML.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/model/EfestoOutputPMML.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.model; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMML.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMML.java index be896175ace..a96430a4f0f 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMML.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMML.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.service; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLMapInput.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLMapInput.java index 23b6df03f58..729d1bf41a9 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLMapInput.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLMapInput.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.service; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLRequestData.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLRequestData.java index ce445fa8264..e30205eeeb3 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLRequestData.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLRequestData.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.service; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/PMMLRuntimeInternalImpl.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/PMMLRuntimeInternalImpl.java index 570a2c7e200..3bbeeeab00d 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/PMMLRuntimeInternalImpl.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/service/PMMLRuntimeInternalImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.service; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/Converter.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/Converter.java index 3b8c65d6b50..028fe61f8cc 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/Converter.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/Converter.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.evaluator.core.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/KnowledgeBaseUtils.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/KnowledgeBaseUtils.java index 8ee5ca0c476..e32b922e10c 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/KnowledgeBaseUtils.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/KnowledgeBaseUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLListenerUtils.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLListenerUtils.java index 940e153e9ac..4376448c705 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLListenerUtils.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLListenerUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.evaluator.core.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLRequestDataBuilder.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLRequestDataBuilder.java index 52082b8d1dc..b5d3d144cd0 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLRequestDataBuilder.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLRequestDataBuilder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLRuntimeHelper.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLRuntimeHelper.java index 2fdae8fb445..2c59886af05 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLRuntimeHelper.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PMMLRuntimeHelper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PostProcess.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PostProcess.java index e81eafb2d5f..8ffbc6000a3 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PostProcess.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PostProcess.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.evaluator.core.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PreProcess.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PreProcess.java index f0e94505700..8c0c32fc255 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PreProcess.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/main/java/org/kie/pmml/evaluator/core/utils/PreProcess.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.evaluator.core.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/TestingHelper.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/TestingHelper.java index 6cf287c6dea..9e419ec1426 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/TestingHelper.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/TestingHelper.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/compilation/model/TestMod.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/compilation/model/TestMod.java index 8c13c53d1c0..188f92634a5 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/compilation/model/TestMod.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/compilation/model/TestMod.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.compilation.model; import org.kie.pmml.api.models.MiningField; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/compilation/model/TestingModelFactory.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/compilation/model/TestingModelFactory.java index 1b768b741e4..da66787ec6b 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/compilation/model/TestingModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/compilation/model/TestingModelFactory.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.compilation.model; import org.kie.pmml.commons.model.KiePMMLModel; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/PMMLRuntimeContextImplTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/PMMLRuntimeContextImplTest.java index 0beeabe0401..ee55a8b19c7 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/PMMLRuntimeContextImplTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/PMMLRuntimeContextImplTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/model/EfestoInputPMMLTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/model/EfestoInputPMMLTest.java index 353eb3d9ffb..aa2610b084b 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/model/EfestoInputPMMLTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/model/EfestoInputPMMLTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.model; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLMapInputTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLMapInputTest.java index faae0232bd1..e43df35f2b7 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLMapInputTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLMapInputTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.service; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLRequestDataTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLRequestDataTest.java index 42d1c3f750f..5e4ca24f434 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLRequestDataTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLRequestDataTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.service; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLTest.java index 1475d3d3e46..0f37fd58034 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/KieRuntimeServicePMMLTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.service; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/PMMLRuntimeInternalImplTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/PMMLRuntimeInternalImplTest.java index 1fcb38cba19..c9696911e73 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/PMMLRuntimeInternalImplTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/PMMLRuntimeInternalImplTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.service; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/RuntimeServicesTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/RuntimeServicesTest.java index efd105fd5fa..d84e1bb2e5a 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/RuntimeServicesTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/service/RuntimeServicesTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.service; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/testingutils/PMMLTestingModelEvaluator.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/testingutils/PMMLTestingModelEvaluator.java index 5b1089b7fbb..5a5640cbe05 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/testingutils/PMMLTestingModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/testingutils/PMMLTestingModelEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.testingutils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PMMLListenerUtilsTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PMMLListenerUtilsTest.java index 7b295f58027..38e13de3742 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PMMLListenerUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PMMLListenerUtilsTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PMMLRuntimeHelperTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PMMLRuntimeHelperTest.java index 4bbd92ec7d9..4ef24f1d059 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PMMLRuntimeHelperTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PMMLRuntimeHelperTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.core.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PostProcessTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PostProcessTest.java index a2985b9fd69..62ec9bf79d4 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PostProcessTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PostProcessTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.evaluator.core.utils; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PreProcessTest.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PreProcessTest.java index 708cf9fb888..154d39d98cb 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PreProcessTest.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-core/src/test/java/org/kie/pmml/evaluator/core/utils/PreProcessTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.evaluator.core.utils; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/pom.xml b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/pom.xml index 03f0131903d..5cbc7f06332 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/pom.xml +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/pom.xml @@ -1,11 +1,31 @@ + kie-pmml-evaluator org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -13,6 +33,10 @@ KIE :: PMML :: Evaluator :: Utils Evaluation utils for PMML models inside KIE runtime environment + + org.kie.pmml.evaluator.utils + + org.kie diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/src/main/java/org/kie/pmml/evaluator/utils/PMMLRuntimeFactoryImpl.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/src/main/java/org/kie/pmml/evaluator/utils/PMMLRuntimeFactoryImpl.java index f44da4ea31c..25c93b5bcfc 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/src/main/java/org/kie/pmml/evaluator/utils/PMMLRuntimeFactoryImpl.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/src/main/java/org/kie/pmml/evaluator/utils/PMMLRuntimeFactoryImpl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.evaluator.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/src/main/java/org/kie/pmml/evaluator/utils/SPIUtils.java b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/src/main/java/org/kie/pmml/evaluator/utils/SPIUtils.java index 6592b5cf0ee..78adaeff515 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/src/main/java/org/kie/pmml/evaluator/utils/SPIUtils.java +++ b/kie-pmml-trusty/kie-pmml-evaluator/kie-pmml-evaluator-utils/src/main/java/org/kie/pmml/evaluator/utils/SPIUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.evaluator.utils; diff --git a/kie-pmml-trusty/kie-pmml-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-evaluator/pom.xml index a793bcaff44..844fef4bb51 100644 --- a/kie-pmml-trusty/kie-pmml-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-evaluator/pom.xml @@ -1,10 +1,30 @@ + org.kie kie-pmml-trusty - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/pom.xml index 32c14f0e14b..35f97762224 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-clustering - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Clustering :: Compiler PMML Clustering Compiler + + org.kie.pmml.models.clustering.compiler + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/dto/ClusteringCompilationDTO.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/dto/ClusteringCompilationDTO.java index 489340c0a27..c30e5274dd2 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/dto/ClusteringCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/dto/ClusteringCompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.compiler.dto; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/executor/ClusteringModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/executor/ClusteringModelImplementationProvider.java index 8066d683f1c..10b2a7484ad 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/executor/ClusteringModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/executor/ClusteringModelImplementationProvider.java @@ -1,18 +1,21 @@ -/* -* Copyright 2021 Red Hat, Inc. and/or its affiliates. -* -* Licensed 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. -*/ +/** + * 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. + */ package org.kie.pmml.models.clustering.compiler.executor; import java.util.Map; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringConversionUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringConversionUtils.java index 6f14b9c9e74..795dd2df7cd 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringConversionUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringConversionUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.clustering.compiler.factories; import java.util.HashMap; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java index 7b7ca55b9e6..5570464de9f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/main/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/executor/ClusteringModelImplementationProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/executor/ClusteringModelImplementationProviderTest.java index 01f39b1920b..1d0321f3ae6 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/executor/ClusteringModelImplementationProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/executor/ClusteringModelImplementationProviderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java index 5fbfa7f31d1..a8b06c8f091 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-compiler/src/test/java/org/kie/pmml/models/clustering/compiler/factories/KiePMMLClusteringModelFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/pom.xml index 8e1fbbc1666..aff176a5197 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-clustering - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -11,6 +31,10 @@ KIE :: PMML :: Models :: Clustering :: Evaluator PMML Clustering Evaluator + + org.kie.pmml.models.clustering.evaluator + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/src/main/java/org/kie/pmml/models/clustering/evaluator/PMMLClusteringModelEvaluator.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/src/main/java/org/kie/pmml/models/clustering/evaluator/PMMLClusteringModelEvaluator.java index 76291f9d8d3..ae6d3f50ae7 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/src/main/java/org/kie/pmml/models/clustering/evaluator/PMMLClusteringModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/src/main/java/org/kie/pmml/models/clustering/evaluator/PMMLClusteringModelEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.clustering.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/src/test/java/org/kie/pmml/models/clustering/evaluator/PMMLClusteringModelEvaluatorTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/src/test/java/org/kie/pmml/models/clustering/evaluator/PMMLClusteringModelEvaluatorTest.java index e268a43156b..841443c48ee 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/src/test/java/org/kie/pmml/models/clustering/evaluator/PMMLClusteringModelEvaluatorTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-evaluator/src/test/java/org/kie/pmml/models/clustering/evaluator/PMMLClusteringModelEvaluatorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/pom.xml index e685f67dbb5..2f2795527c9 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-clustering - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Clustering :: Model KiePMML Model for Clustering implementation + + org.kie.pmml.models.clustering.model + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLAggregateFunction.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLAggregateFunction.java index 45971849595..864bd51a7b4 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLAggregateFunction.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLAggregateFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.clustering.model; import java.util.List; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLCluster.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLCluster.java index f5f539b84ad..b7de00ed1c1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLCluster.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLCluster.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringField.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringField.java index 3cc16baaa19..9c7cbdb6eb4 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringField.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringField.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringModel.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringModel.java index e23c75f1847..77465fa6f33 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringModel.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.model; @@ -27,6 +30,7 @@ import org.kie.pmml.api.enums.Named; import org.kie.pmml.api.enums.PMML_MODEL; import org.kie.pmml.api.exceptions.KieEnumException; +import org.kie.pmml.api.exceptions.KiePMMLException; import org.kie.pmml.api.runtime.PMMLRuntimeContext; import org.kie.pmml.commons.model.IsInterpreted; import org.kie.pmml.commons.model.KiePMMLModel; @@ -140,7 +144,11 @@ private double computeAdjustmentFactor(Map requestData) { denumerator *= weight * nonMissingFactor; } - return numerator / denumerator; + if (denumerator != 0) { + return numerator / denumerator; + } else { + throw new KiePMMLException("Division by 0! Denumerator value is 0."); + } } private int findMinIndex(double[] values) { diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLCompareFunction.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLCompareFunction.java index 232c8db757d..d504db62644 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLCompareFunction.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLCompareFunction.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.clustering.model; import org.kie.pmml.api.enums.Named; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLComparisonMeasure.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLComparisonMeasure.java index 022b8293228..cdc78df63dc 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLComparisonMeasure.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLComparisonMeasure.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLMissingValueWeights.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLMissingValueWeights.java index f5a718535df..8fc1591880a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLMissingValueWeights.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/main/java/org/kie/pmml/models/clustering/model/KiePMMLMissingValueWeights.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.clustering.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLAggregateFunctionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLAggregateFunctionTest.java index c2b8ad2a9e8..72e60a1fac5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLAggregateFunctionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLAggregateFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.clustering.model; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringModelTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringModelTest.java index d934a821591..b98b929ec54 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringModelTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLClusteringModelTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.models.clustering.model; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLCompareFunctionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLCompareFunctionTest.java index f603ab8c2ca..7f46d3a1baa 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLCompareFunctionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-model/src/test/java/org/kie/pmml/models/clustering/model/KiePMMLCompareFunctionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.clustering.model; import org.assertj.core.data.Offset; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/pom.xml index c732c2dd9b0..e78728e36aa 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-clustering - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Clustering :: Tests PMML Clustering Tests + + org.kie.pmml.models.clustering.tests + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/ClusterWithTransformationsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/ClusterWithTransformationsTest.java index fc18007ac66..35558b53773 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/ClusterWithTransformationsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/ClusterWithTransformationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.clustering.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/EuclideanDistanceTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/EuclideanDistanceTest.java index 0d26309463d..af5afb37f3b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/EuclideanDistanceTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/EuclideanDistanceTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.clustering.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/MultipleClustersSameClassTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/MultipleClustersSameClassTest.java index cf23969d781..5f79f2ad0b8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/MultipleClustersSameClassTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/MultipleClustersSameClassTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.clustering.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/SingleIrisKMeansClusteringIdTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/SingleIrisKMeansClusteringIdTest.java index e0c6d1a5f5a..a2bcde49c58 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/SingleIrisKMeansClusteringIdTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/SingleIrisKMeansClusteringIdTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.clustering.tests; import org.junit.jupiter.api.BeforeAll; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/SingleIrisKMeansClusteringTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/SingleIrisKMeansClusteringTest.java index b8adc22699a..30415ca0486 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/SingleIrisKMeansClusteringTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/kie-pmml-models-clustering-tests/src/test/java/org/kie/pmml/clustering/tests/SingleIrisKMeansClusteringTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.clustering.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/pom.xml index 491194085ac..cd3a78df5d8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-clustering/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/pom.xml index 4b588a392d2..9b6fb40f42b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-models-drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: Models :: Drools :: Common Common code for PMML Models with Drools Implementations + + org.kie.pmml.models.drools.common + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsAST.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsAST.java index b1bdb7ebadc..76cb5fd8321 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsAST.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsAST.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsRule.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsRule.java index dea0ca7bc12..b3fd1bd3bf6 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsRule.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsRule.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsType.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsType.java index b752a415679..dc7da26d379 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsType.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLDroolsType.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLFieldOperatorValue.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLFieldOperatorValue.java index 43ec2698739..599ef540b1d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLFieldOperatorValue.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/KiePMMLFieldOperatorValue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLAbstractModelASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLAbstractModelASTFactory.java index 73ec19c3c1e..2c7e1c20501 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLAbstractModelASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLAbstractModelASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLAbstractPredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLAbstractPredicateASTFactory.java index 3dff5819767..4aadcfeb19a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLAbstractPredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLAbstractPredicateASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactory.java index 09a9a0c22b9..9c7c6d301d3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateWithAccumulationASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateWithAccumulationASTFactory.java index e76cef61a55..929bc0f23fa 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateWithAccumulationASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateWithAccumulationASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateWithResultASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateWithResultASTFactory.java index f30248d9e4b..cdb4a3a8b1e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateWithResultASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateWithResultASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java index 06274037a0f..a748a0e59c4 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java index e66d696e1cd..84de887edeb 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLPredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLPredicateASTFactory.java index 81130acb26e..c61dedbb32a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLPredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLPredicateASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java index 45091cb9c40..83d01f66f09 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateWithAccumulationASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateWithAccumulationASTFactory.java index b962508de8c..d9017c347c1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateWithAccumulationASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateWithAccumulationASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateWithResultASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateWithResultASTFactory.java index a0bcabed151..e5a6e487de1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateWithResultASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateWithResultASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java index 3cd86577052..10656ad316d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateWithAccumulationASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateWithAccumulationASTFactory.java index 9626ec4e155..5409cbd915f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateWithAccumulationASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateWithAccumulationASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateWithResultASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateWithResultASTFactory.java index e52e8930e8e..01be86cf212 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateWithResultASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateWithResultASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateASTFactory.java index 8a83714769b..2368d5c8d6d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateWithAccumulationASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateWithAccumulationASTFactory.java index 1c49f4cf2cb..ad2fcc503a7 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateWithAccumulationASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateWithAccumulationASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateWithResultASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateWithResultASTFactory.java index 47376b6996c..41eeb3862f6 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateWithResultASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateWithResultASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/PredicateASTFactoryData.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/PredicateASTFactoryData.java index e9ff52cd65a..417ce086b69 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/PredicateASTFactoryData.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/ast/factories/PredicateASTFactoryData.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.ast.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrFactory.java index b3439a9082a..d8c529e2c2f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrLhsFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrLhsFactory.java index 762b4ae1527..caba2bf7d1a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrLhsFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrLhsFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactory.java index 7f016373f63..05f90a88e96 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRulesFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRulesFactory.java index a003f1ef4b2..d18b8885ed2 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRulesFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRulesFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTypesFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTypesFactory.java index c6bb98bd887..3b66f7b7a87 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTypesFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTypesFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/EfestoRedirectOutputPMMLDrl.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/EfestoRedirectOutputPMMLDrl.java index 30bd458bffd..5ebe2ee8d6c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/EfestoRedirectOutputPMMLDrl.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/EfestoRedirectOutputPMMLDrl.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModel.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModel.java index a2ddaea2e55..9fb623ff9a3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModel.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModelWithSources.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModelWithSources.java index c0ececf8a86..90f3782462b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModelWithSources.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModelWithSources.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.commons.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/utils/KiePMMLDroolsModelUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/utils/KiePMMLDroolsModelUtils.java index bb879f641a2..2b1e3e60069 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/utils/KiePMMLDroolsModelUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/commons/utils/KiePMMLDroolsModelUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.commons.utils; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/dto/DroolsCompilationDTO.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/dto/DroolsCompilationDTO.java index 3510dbe9f5b..0a02d60eea1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/dto/DroolsCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/dto/DroolsCompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.dto; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/executor/DroolsModelEvaluator.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/executor/DroolsModelEvaluator.java index 18266a6049b..4b1f9601754 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/executor/DroolsModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/executor/DroolsModelEvaluator.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.models.drools.executor; import java.util.Map; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/executor/KiePMMLStatusHolder.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/executor/KiePMMLStatusHolder.java index 340a81e717c..7777703602c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/executor/KiePMMLStatusHolder.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/executor/KiePMMLStatusHolder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/provider/DroolsModelProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/provider/DroolsModelProvider.java index eaa0de81abb..7c90b47fbb3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/provider/DroolsModelProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/provider/DroolsModelProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.provider; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLOperatorValue.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLOperatorValue.java index 1fd4111f96b..083b1f98ce5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLOperatorValue.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLOperatorValue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.tuples; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLOriginalTypeGeneratedType.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLOriginalTypeGeneratedType.java index 82f0d0d4a0e..a988ccfb500 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLOriginalTypeGeneratedType.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLOriginalTypeGeneratedType.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.models.drools.tuples; import java.io.Serializable; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLReasonCodeAndValue.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLReasonCodeAndValue.java index c4197399848..573c8aba480 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLReasonCodeAndValue.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/tuples/KiePMMLReasonCodeAndValue.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.tuples; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java index 491df26632b..b8b150adced 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.utils; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLAgendaListenerUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLAgendaListenerUtils.java index 865d64e65d1..9e1aee3dcd7 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLAgendaListenerUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLAgendaListenerUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.utils; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtils.java index 11cdadde08f..934b948e819 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/main/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.utils; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/KiePMMLFieldOperatorValueTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/KiePMMLFieldOperatorValueTest.java index 5ae88cdbda1..df2e4232ec5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/KiePMMLFieldOperatorValueTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/KiePMMLFieldOperatorValueTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.ast; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java index 7f39b545f36..22ffee44d51 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLCompoundPredicateASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.ast.factories; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java index 7425a8e4d14..5b3642abbc9 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDataDictionaryASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.ast.factories; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java index cb32a1c418e..4f7b725f82a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLDerivedFieldASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.ast.factories; import java.util.HashMap; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java index eda072a71e7..ebc557fb9ba 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimplePredicateASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.ast.factories; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactoryTest.java index 8e96ee7fabb..2599a017a08 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLSimpleSetPredicateASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.ast.factories; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateASTFactoryTest.java index 6efa9eda8f9..ae4dafc57dd 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/ast/factories/KiePMMLTruePredicateASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.ast.factories; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrFactoryTest.java index 9a0eebe092f..e9a5a5502e1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.commons.factories; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrLhsFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrLhsFactoryTest.java index 195b114cf57..d1a4262381c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrLhsFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrLhsFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.commons.factories; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java index 1c5c90e631f..013f6edf63d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRhsFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.commons.factories; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRulesFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRulesFactoryTest.java index da774ca4acc..0d03190b1c8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRulesFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrRulesFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.commons.factories; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTestUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTestUtils.java index d0d11f8b6b4..60c10dc7e0f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTestUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.commons.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTypesFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTypesFactoryTest.java index 77f65a60321..b8105c67bfb 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTypesFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/factories/KiePMMLDescrTypesFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.commons.factories; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModelTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModelTest.java index ef6a1dedf59..fe9de52eb08 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModelTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/commons/model/KiePMMLDroolsModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.commons.model; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java index 5d2096f1d8d..666154816d4 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/provider/DroolsModelProviderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.provider; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/tuples/KiePMMLOperatorValueTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/tuples/KiePMMLOperatorValueTest.java index 206ccec74ee..8ea496190ff 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/tuples/KiePMMLOperatorValueTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/tuples/KiePMMLOperatorValueTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tuples; import org.junit.jupiter.api.Test; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java index e0c824f1d3f..7fd20b7b30d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTFactoryUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.utils; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java index 3e160ea62a3..b5ec2ce14d4 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLASTTestUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.utils; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java index 28fdafd02a3..18d6ac33f73 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-common/src/test/java/org/kie/pmml/models/drools/utils/KiePMMLDroolsModelFactoryUtilsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.utils; import java.util.HashMap; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/pom.xml index 7ee6b09f709..9d5732ac2cc 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools-scorecard - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Drools :: Scorecard :: Compiler PMML Scorecard Compiler + + org.kie.pmml.models.drools.scorecard.compiler + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/executor/ScorecardModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/executor/ScorecardModelImplementationProvider.java index 6906e7e5dac..7378b9f29cd 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/executor/ScorecardModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/executor/ScorecardModelImplementationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelASTFactory.java index 64a9dbe570b..c8ede87c4e3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactory.java index b0953f28116..43c2bc58de5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelFactory.java index ea496fd3510..f9a9ac308e4 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/main/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/executor/ScorecardModelImplementationProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/executor/ScorecardModelImplementationProviderTest.java index 8c09fde1431..55b407ffc9f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/executor/ScorecardModelImplementationProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/executor/ScorecardModelImplementationProviderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.compiler.executor; @@ -20,7 +23,7 @@ import org.dmg.pmml.PMML; import org.dmg.pmml.scorecard.Scorecard; -import org.drools.core.util.CloneUtil; +import org.drools.base.util.CloneUtil; import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.PMML_MODEL; import org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelASTFactoryTest.java index cca1695e78a..932ffd0353c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.compiler.factories; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java index 16d50cd2113..486f873b803 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelCharacteristicASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.compiler.factories; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelFactoryTest.java index 9638cc8ae13..e4522dcef89 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-compiler/src/test/java/org/kie/pmml/models/drools/scorecard/compiler/factories/KiePMMLScorecardModelFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.compiler.factories; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/pom.xml index 6e041b08b21..05d07d7edb9 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools-scorecard - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -11,6 +31,10 @@ KIE :: PMML :: Models :: Drools :: Scorecard :: Evaluator PMML Scorecard Evaluator + + org.kie.pmml.models.drools.scorecard.evaluator + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/src/main/java/org/kie/pmml/models/drools/scorecard/evaluator/PMMLScorecardModelEvaluator.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/src/main/java/org/kie/pmml/models/drools/scorecard/evaluator/PMMLScorecardModelEvaluator.java index 5241e0d4c1c..d46efa2a72d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/src/main/java/org/kie/pmml/models/drools/scorecard/evaluator/PMMLScorecardModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/src/main/java/org/kie/pmml/models/drools/scorecard/evaluator/PMMLScorecardModelEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/src/test/java/org/kie/pmml/models/drools/scorecard/evaluator/PMMLScorecardModelEvaluatorTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/src/test/java/org/kie/pmml/models/drools/scorecard/evaluator/PMMLScorecardModelEvaluatorTest.java index c270ab036e9..d8354400ec0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/src/test/java/org/kie/pmml/models/drools/scorecard/evaluator/PMMLScorecardModelEvaluatorTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-evaluator/src/test/java/org/kie/pmml/models/drools/scorecard/evaluator/PMMLScorecardModelEvaluatorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/pom.xml index 61dcdcdbae9..e42e86ef80f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools-scorecard - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Drools :: Scorecard :: Model KiePMML Model for Scorecard implementation + + org.kie.pmml.models.drools.scorecard.model + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/src/main/java/org/kie/pmml/models/drools/scorecard/model/KiePMMLScorecardModel.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/src/main/java/org/kie/pmml/models/drools/scorecard/model/KiePMMLScorecardModel.java index 1e8af8d4ccf..f22fb67fc2c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/src/main/java/org/kie/pmml/models/drools/scorecard/model/KiePMMLScorecardModel.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-model/src/main/java/org/kie/pmml/models/drools/scorecard/model/KiePMMLScorecardModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/pom.xml index 3bcd7a49d64..eb49f7fa11b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools-scorecard - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Drools :: Scorecard :: Tests PMML Scorecard Tests + + org.kie.pmml.models.drools.scorecard.tests + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/AirconditioningScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/AirconditioningScorecardTest.java index 47b03f7c517..d8bc7973af8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/AirconditioningScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/AirconditioningScorecardTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.tests; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/BasicComplexPartialScoreTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/BasicComplexPartialScoreTest.java index 37a35658dcc..dcbf296fc93 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/BasicComplexPartialScoreTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/BasicComplexPartialScoreTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/CompoundNestedPredicateScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/CompoundNestedPredicateScorecardTest.java index b0fb0aa9cc0..7e4276235df 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/CompoundNestedPredicateScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/CompoundNestedPredicateScorecardTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/CompoundPredicateScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/CompoundPredicateScorecardTest.java index 278b9d52899..c0e93548d13 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/CompoundPredicateScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/CompoundPredicateScorecardTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/MultipleAirconditioningScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/MultipleAirconditioningScorecardTest.java index e8bd0b4914d..69ea7aeed9f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/MultipleAirconditioningScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/MultipleAirconditioningScorecardTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.scorecard.tests; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/MultipleCompoundNestedPredicateScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/MultipleCompoundNestedPredicateScorecardTest.java index b626d6e4049..e0a748de11d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/MultipleCompoundNestedPredicateScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/MultipleCompoundNestedPredicateScorecardTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/NestedComplexPartialScoreTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/NestedComplexPartialScoreTest.java index 5bc1040a82b..71af12ed427 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/NestedComplexPartialScoreTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/NestedComplexPartialScoreTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardCategoricalTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardCategoricalTest.java index f10534ac595..c3d571227bc 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardCategoricalTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardCategoricalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardMixedVariablesTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardMixedVariablesTest.java index 32a90a1b5ff..47a83d1051b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardMixedVariablesTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardMixedVariablesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardTest.java index a267b01d49b..75f88203aab 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardWithTransformationsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardWithTransformationsTest.java index 87938fab2bf..13a0aa9d282 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardWithTransformationsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/kie-pmml-models-drools-scorecard-tests/src/test/java/org/kie/pmml/models/drools/scorecard/tests/SimpleScorecardWithTransformationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/pom.xml index d612a54bd4d..2ed5b884718 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-scorecard/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/pom.xml index 74bf962ff7e..7b29b143623 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools-tree - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Drools :: Tree :: Compiler PMML Tree Compiler + + org.kie.pmml.models.drools.tree.compiler + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/executor/TreeModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/executor/TreeModelImplementationProvider.java index 1e36e0949c7..71d4135d01e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/executor/TreeModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/executor/TreeModelImplementationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.tree.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelASTFactory.java index aeec42266da..63b06e245f0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.tree.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactory.java index 928d824d563..31a571c772d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.tree.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelNodeASTFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelNodeASTFactory.java index dc7a56301f8..289d9426319 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelNodeASTFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/main/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelNodeASTFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.tree.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/executor/TreeModelImplementationProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/executor/TreeModelImplementationProviderTest.java index e731b23c705..99ecdaad1fa 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/executor/TreeModelImplementationProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/executor/TreeModelImplementationProviderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.tree.compiler.executor; @@ -20,7 +23,7 @@ import org.dmg.pmml.PMML; import org.dmg.pmml.tree.TreeModel; -import org.drools.core.util.CloneUtil; +import org.drools.base.util.CloneUtil; import org.junit.jupiter.api.Test; import org.kie.pmml.api.enums.PMML_MODEL; import org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelASTFactoryTest.java index 51f253f2c25..73ed765df6e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.compiler.factories; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java index 22d3cb65c1d..e5e1a37343e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.compiler.factories; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelNodeASTFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelNodeASTFactoryTest.java index f98579cf520..79d56800c2d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelNodeASTFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-compiler/src/test/java/org/kie/pmml/models/drools/tree/compiler/factories/KiePMMLTreeModelNodeASTFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.compiler.factories; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/pom.xml index 8c4da8945db..55574196290 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools-tree - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -11,6 +31,10 @@ KIE :: PMML :: Models :: Drools :: Tree :: Evaluator PMML Tree Evaluator + + org.kie.pmml.models.drools.tree.evaluator + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/src/main/java/org/kie/pmml/models/drools/tree/evaluator/PMMLTreeModelEvaluator.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/src/main/java/org/kie/pmml/models/drools/tree/evaluator/PMMLTreeModelEvaluator.java index c462b3bf8b6..42d6ce628e4 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/src/main/java/org/kie/pmml/models/drools/tree/evaluator/PMMLTreeModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/src/main/java/org/kie/pmml/models/drools/tree/evaluator/PMMLTreeModelEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.drools.tree.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/src/test/java/org/kie/pmml/models/drools/tree/evaluator/PMMLTreeModelEvaluatorTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/src/test/java/org/kie/pmml/models/drools/tree/evaluator/PMMLTreeModelEvaluatorTest.java index 2f3385a64b4..eaba833cdfa 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/src/test/java/org/kie/pmml/models/drools/tree/evaluator/PMMLTreeModelEvaluatorTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-evaluator/src/test/java/org/kie/pmml/models/drools/tree/evaluator/PMMLTreeModelEvaluatorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.tree.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/pom.xml index 6969287eb9a..95525b20b87 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools-tree - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Drools :: Tree :: Model KiePMML Model for Tree implementation + + org.kie.pmml.models.drools.tree.model + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/src/main/java/org/kie/pmml/models/drools/tree/model/KiePMMLTreeModel.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/src/main/java/org/kie/pmml/models/drools/tree/model/KiePMMLTreeModel.java index 4920e80c260..9c29f55f81e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/src/main/java/org/kie/pmml/models/drools/tree/model/KiePMMLTreeModel.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-model/src/main/java/org/kie/pmml/models/drools/tree/model/KiePMMLTreeModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.tree.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/pom.xml index 3f9da7a97ba..1e8c0f65251 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools-tree - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Drools :: Tree :: Tests PMML Tree Tests + + org.kie.pmml.models.drools.tree.tests + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/main/resources/simplelogger.properties b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/main/resources/simplelogger.properties index eb7843b2215..d15b74658f0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/main/resources/simplelogger.properties +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/main/resources/simplelogger.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # SLF4J's SimpleLogger configuration file # Simple implementation of Logger that sends all enabled log messages, for all defined loggers, to System.err. diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/BostonHousingDataTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/BostonHousingDataTreeTest.java index ca464b698c6..e9d2f57b988 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/BostonHousingDataTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/BostonHousingDataTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/CompoundPredicateTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/CompoundPredicateTreeTest.java index 5e064bc2f21..7bdbed20511 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/CompoundPredicateTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/CompoundPredicateTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/IrisDataTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/IrisDataTreeTest.java index d9e48713866..27e64fef861 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/IrisDataTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/IrisDataTreeTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.models.drools.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/PlanActivityTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/PlanActivityTreeTest.java index 7853dde5cb2..59360300d22 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/PlanActivityTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/PlanActivityTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/ReturnLastPredictionStrategyTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/ReturnLastPredictionStrategyTreeTest.java index 30f1c3f36f8..9f4be2c9b00 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/ReturnLastPredictionStrategyTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/ReturnLastPredictionStrategyTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SampleMineTreeModelTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SampleMineTreeModelTest.java index ef08482b063..d84f6dcb4e5 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SampleMineTreeModelTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SampleMineTreeModelTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.drools.tree.tests; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SampleMineTreeModelWithTransformationsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SampleMineTreeModelWithTransformationsTest.java index ed02a29eeeb..28719c8ea02 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SampleMineTreeModelWithTransformationsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SampleMineTreeModelWithTransformationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SimpleClassificationTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SimpleClassificationTreeTest.java index 773d2fa29bb..175daf8f7f1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SimpleClassificationTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SimpleClassificationTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SimpleSetPredicateTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SimpleSetPredicateTreeTest.java index 6ff4dfc9ba4..ae708634998 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SimpleSetPredicateTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/kie-pmml-models-drools-tree-tests/src/test/java/org/kie/pmml/models/drools/tree/tests/SimpleSetPredicateTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.drools.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/pom.xml index 14650a494ce..7d34c596ad3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/kie-pmml-models-drools-tree/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-drools - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/pom.xml index 947b31465e9..fc72a5c5035 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-drools/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/pom.xml index ab74ef3a642..2dc483c3a04 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-mining - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Mining :: Compiler PMML Mining Compiler + + org.kie.pmml.models.mining.compiler + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/dto/MiningModelCompilationDTO.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/dto/MiningModelCompilationDTO.java index ff4a8005e07..0c1e8b4f3f7 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/dto/MiningModelCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/dto/MiningModelCompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.compiler.dto; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/dto/SegmentCompilationDTO.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/dto/SegmentCompilationDTO.java index e120cb04c3b..ee81913bc03 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/dto/SegmentCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/dto/SegmentCompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.compiler.dto; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/executor/MiningModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/executor/MiningModelImplementationProvider.java index 28a731b3742..1ea0ddced8a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/executor/MiningModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/executor/MiningModelImplementationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.mining.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactory.java index 59a43c6c22a..e544b94da06 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactory.java index ded3647f321..56d80792bc8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactory.java index 6bb13eda689..6a9db1de16c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/main/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/executor/MiningModelImplementationProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/executor/MiningModelImplementationProviderTest.java index 35d7595573b..bfa96a89468 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/executor/MiningModelImplementationProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/executor/MiningModelImplementationProviderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.compiler.executor; @@ -24,7 +27,7 @@ import org.dmg.pmml.PMML; import org.dmg.pmml.mining.MiningModel; import org.dmg.pmml.mining.Segment; -import org.drools.core.util.CloneUtil; +import org.drools.base.util.CloneUtil; import org.junit.jupiter.api.Test; import org.kie.memorycompiler.KieMemoryCompiler; import org.kie.pmml.api.enums.PMML_MODEL; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java index 01fd1ef0c71..2bbd9df0847 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/AbstractKiePMMLFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.mining.compiler.factories; import java.io.FileInputStream; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java index a01f6ba83f1..16c99b6297a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLMiningModelFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.mining.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java index cc2616fdef3..df6b84623ae 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.mining.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java index 87c89db11f3..413c7bfec9a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-compiler/src/test/java/org/kie/pmml/models/mining/compiler/factories/KiePMMLSegmentationFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.mining.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/pom.xml index 8d383662162..93491b13333 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-mining - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -11,6 +31,10 @@ KIE :: PMML :: Models :: Mining :: Evaluator PMML Mining Evaluator + + org.kie.pmml.models.mining.evaluator + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/main/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelEvaluator.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/main/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelEvaluator.java index 66e7965e179..5dc82677a1b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/main/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/main/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.mining.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/main/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelStep.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/main/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelStep.java index f34d2cf1618..3653ba13bab 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/main/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelStep.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/main/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelStep.java @@ -1,17 +1,20 @@ -/* - * Copyright 2022 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/test/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelEvaluatorTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/test/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelEvaluatorTest.java index f14bd48b1cb..39d173491f7 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/test/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelEvaluatorTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/test/java/org/kie/pmml/models/mining/evaluator/PMMLMiningModelEvaluatorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/test/resources/META-INF/kmodule.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/test/resources/META-INF/kmodule.xml index fab5db77381..ba38085d3e1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/test/resources/META-INF/kmodule.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-evaluator/src/test/resources/META-INF/kmodule.xml @@ -1,4 +1,24 @@ + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/pom.xml index 75fc8859c30..953a5aa8ba3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-mining - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -13,6 +33,7 @@ KiePMML Model for Mining implementation + org.kie.pmml.models.mining.model **/segmentation/**.java diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/KiePMMLMiningModel.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/KiePMMLMiningModel.java index 77f71095a7d..f8e7f3455f8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/KiePMMLMiningModel.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/KiePMMLMiningModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.mining.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/KiePMMLMiningModelWithSources.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/KiePMMLMiningModelWithSources.java index 4c87587f31b..45ab4a35245 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/KiePMMLMiningModelWithSources.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/KiePMMLMiningModelWithSources.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.mining.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/enums/MULTIPLE_MODEL_METHOD.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/enums/MULTIPLE_MODEL_METHOD.java index 345a7561f61..05ed5b586af 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/enums/MULTIPLE_MODEL_METHOD.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/enums/MULTIPLE_MODEL_METHOD.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.mining.model.enums; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/enums/MultipleModelMethodFunctions.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/enums/MultipleModelMethodFunctions.java index b8d6c4829a8..42a1962dac1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/enums/MultipleModelMethodFunctions.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/enums/MultipleModelMethodFunctions.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.mining.model.enums; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegment.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegment.java index e0637497cc6..687eb81990f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegment.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegment.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.model.segmentation; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentation.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentation.java index aeb53b06722..704575f3db1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentation.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/main/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentation.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.mining.model.segmentation; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/AbstractKiePMMLMiningModelTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/AbstractKiePMMLMiningModelTest.java index 0c850ac3997..e22c64a0a1b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/AbstractKiePMMLMiningModelTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/AbstractKiePMMLMiningModelTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.mining.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/KiePMMLMiningModelTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/KiePMMLMiningModelTest.java index fa937f4f2fe..f21d9b6590b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/KiePMMLMiningModelTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/KiePMMLMiningModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.mining.model; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/enums/MULTIPLE_MODEL_METHODTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/enums/MULTIPLE_MODEL_METHODTest.java index 2d4573e9884..4344311d5e3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/enums/MULTIPLE_MODEL_METHODTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/enums/MULTIPLE_MODEL_METHODTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.mining.model.enums; import java.util.AbstractMap; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentTest.java index fdfff2713fb..0a379b5f1e8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.mining.model.segmentation; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentationTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentationTest.java index 23a5026d37b..3ab31c868b3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentationTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-model/src/test/java/org/kie/pmml/models/mining/model/segmentation/KiePMMLSegmentationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.mining.model.segmentation; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/pom.xml index a49ef4d5d54..34cc05a9ddc 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-mining - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -11,6 +31,10 @@ KIE :: PMML :: Models :: Mining :: Tests PMML Mining Tests + + org.kie.pmml.models.mining.tests + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningListenerTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningListenerTest.java index 1b87bae0ff1..b180664ff36 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningListenerTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningListenerTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningModelChainTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningModelChainTest.java index c039253ee36..aec682b5e70 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningModelChainTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningModelChainTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningModelSummedTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningModelSummedTest.java index 60be8b9add1..5df5b97a086 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningModelSummedTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningModelSummedTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningWithNestedRefersTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningWithNestedRefersTest.java index b6dbd30c997..f868e055b22 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningWithNestedRefersTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MiningWithNestedRefersTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MixedMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MixedMiningTest.java index 1f30d157c8f..9954ee4af96 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MixedMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MixedMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MultipleMixedMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MultipleMixedMiningTest.java index 51e71575002..916286b72fe 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MultipleMixedMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MultipleMixedMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MultiplePredicatesMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MultiplePredicatesMiningTest.java index 114111236b9..2eb00f36b68 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MultiplePredicatesMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/MultiplePredicatesMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/PredicatesMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/PredicatesMiningTest.java index 7706563ed5e..d1eb5de891b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/PredicatesMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/PredicatesMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/RandomForestClassifierMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/RandomForestClassifierMiningTest.java index 323ea33a7c5..7a8556dcd3b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/RandomForestClassifierMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/RandomForestClassifierMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationClassificationSelectFirstTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationClassificationSelectFirstTest.java index d94e29d1624..89441ce24c8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationClassificationSelectFirstTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationClassificationSelectFirstTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMajorityVoteMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMajorityVoteMiningTest.java index b946c8159af..c2be5388fd8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMajorityVoteMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMajorityVoteMiningTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMaxMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMaxMiningTest.java index 3dfe34bf9ec..55a14069a29 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMaxMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMaxMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMeanMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMeanMiningTest.java index 2fdb6f88778..5d11f32482b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMeanMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMeanMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMedian2MiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMedian2MiningTest.java index 71257ee408e..30213cb5622 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMedian2MiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMedian2MiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMedianMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMedianMiningTest.java index afd6fe70105..e4aecf6009b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMedianMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationMedianMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationSelectFirstMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationSelectFirstMiningTest.java index 97ae1f1035d..b3bf51052ac 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationSelectFirstMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationSelectFirstMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationSumMiningTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationSumMiningTest.java index 2473ba03ede..536b0193cc0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationSumMiningTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/java/org/kie/pmml/mining/tests/SegmentationSumMiningTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.mining.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/resources/simplelogger.properties b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/resources/simplelogger.properties index dadc99d14be..d7ac46f9e08 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/resources/simplelogger.properties +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/kie-pmml-models-mining-tests/src/test/resources/simplelogger.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # SLF4J's SimpleLogger configuration file # Simple implementation of Logger that sends all enabled log messages, for all defined loggers, to System.err. # Default logging detail level for all instances of SimpleLogger. diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/pom.xml index 66ce0cc51ae..dc65cbe6bb1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-mining/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/pom.xml index bbf98ed8ba5..b14d8eda108 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-models-regression - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: Models :: Regression :: Compiler PMML Regression Compiler + + org.kie.pmml.models.regression.compiler + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/dto/RegressionCompilationDTO.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/dto/RegressionCompilationDTO.java index ea765078031..a404f43b272 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/dto/RegressionCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/dto/RegressionCompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.regression.compiler.dto; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java index d843728fb00..a74071da45a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.regression.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactory.java index 03c1fb940dc..b8822473fcc 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.regression.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactory.java index db280525426..16b025e568b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.regression.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java index fcffd3bb091..131e786ce6b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/main/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.regression.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProviderTest.java index fca8618b3e9..9750c970d5e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/executor/RegressionModelImplementationProviderTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.regression.compiler.executor; import java.io.Serializable; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java index 3e609be3e3f..a2d17ca5d04 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/AbstractKiePMMLRegressionTableRegressionFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.regression.compiler.factories; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java index 20c679fb096..9d9d2172f75 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLClassificationTableFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.regression.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java index c5ef91a5eb9..fa15492acac 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionModelFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.regression.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java index ba88fb6bd13..a8565080425 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-compiler/src/test/java/org/kie/pmml/models/regression/compiler/factories/KiePMMLRegressionTableFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.regression.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/pom.xml index 20aceb5606f..a08d611e914 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-models-regression - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: Models :: Regression :: Evaluator PMML Regression Evaluator + + org.kie.pmml.models.regression.evaluator + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/src/main/java/org/kie/pmml/models/regression/evaluator/PMMLRegressionModelEvaluator.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/src/main/java/org/kie/pmml/models/regression/evaluator/PMMLRegressionModelEvaluator.java index 00bfe70cc49..83313a52feb 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/src/main/java/org/kie/pmml/models/regression/evaluator/PMMLRegressionModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/src/main/java/org/kie/pmml/models/regression/evaluator/PMMLRegressionModelEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.regression.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/src/test/java/org/kie/pmml/models/regression/evaluator/PMMLRegressionModelEvaluatorTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/src/test/java/org/kie/pmml/models/regression/evaluator/PMMLRegressionModelEvaluatorTest.java index 17632e8e252..b063e60893d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/src/test/java/org/kie/pmml/models/regression/evaluator/PMMLRegressionModelEvaluatorTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-evaluator/src/test/java/org/kie/pmml/models/regression/evaluator/PMMLRegressionModelEvaluatorTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.models.regression.evaluator; import org.junit.jupiter.api.BeforeEach; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/pom.xml index fc8d1e3df12..c0e201ac130 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-models-regression - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: Models :: Regression :: Model KiePMML Model for Regression implementation + + org.kie.pmml.models.regression.model + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/AbstractKiePMMLTable.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/AbstractKiePMMLTable.java index c0e40441d46..a85ff11f981 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/AbstractKiePMMLTable.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/AbstractKiePMMLTable.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.regression.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLClassificationTable.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLClassificationTable.java index 6de825c4c02..f7d3a279cfc 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLClassificationTable.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLClassificationTable.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.regression.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLRegressionModel.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLRegressionModel.java index 62723a0c188..e9a468ed0ac 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLRegressionModel.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLRegressionModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.regression.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLRegressionTable.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLRegressionTable.java index e15280f81fb..60836cce06f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLRegressionTable.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/KiePMMLRegressionTable.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.regression.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/enums/MODEL_TYPE.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/enums/MODEL_TYPE.java index 419e981c291..33cee09f2fe 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/enums/MODEL_TYPE.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/enums/MODEL_TYPE.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.regression.model.enums; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/enums/REGRESSION_NORMALIZATION_METHOD.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/enums/REGRESSION_NORMALIZATION_METHOD.java index e802e7549ef..b7708736cae 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/enums/REGRESSION_NORMALIZATION_METHOD.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/enums/REGRESSION_NORMALIZATION_METHOD.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.regression.model.enums; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/tuples/KiePMMLTableSourceCategory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/tuples/KiePMMLTableSourceCategory.java index feda1bb71db..82aa54b8f5d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/tuples/KiePMMLTableSourceCategory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/main/java/org/kie/pmml/models/regression/model/tuples/KiePMMLTableSourceCategory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.regression.model.tuples; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/test/java/org/kie/pmml/models/regression/model/KiePMMLClassificationTableTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/test/java/org/kie/pmml/models/regression/model/KiePMMLClassificationTableTest.java index 1f2e3b89884..8698539f83c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/test/java/org/kie/pmml/models/regression/model/KiePMMLClassificationTableTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/test/java/org/kie/pmml/models/regression/model/KiePMMLClassificationTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.regression.model; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/test/java/org/kie/pmml/models/regression/model/KiePMMLRegressionTableTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/test/java/org/kie/pmml/models/regression/model/KiePMMLRegressionTableTest.java index cd1f64eb09d..96ef0a73049 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/test/java/org/kie/pmml/models/regression/model/KiePMMLRegressionTableTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-model/src/test/java/org/kie/pmml/models/regression/model/KiePMMLRegressionTableTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.regression.model; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/pom.xml index 8caa2cedf01..2367db9129c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-models-regression - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -13,6 +33,10 @@ KIE :: PMML :: Models :: Regression :: Tests PMML Regression Tests + + org.kie.pmml.models.regression.tests + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/CategoricalVariablesRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/CategoricalVariablesRegressionTest.java index 62515ec9a61..63e562791bd 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/CategoricalVariablesRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/CategoricalVariablesRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LinearRegressionSampleWithTransformationsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LinearRegressionSampleWithTransformationsTest.java index fa37ab40877..314cfda3ec0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LinearRegressionSampleWithTransformationsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LinearRegressionSampleWithTransformationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionIrisDataTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionIrisDataTest.java index 50dee3fe6d5..ab86f912cc6 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionIrisDataTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionIrisDataTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionNoneNormalizationTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionNoneNormalizationTest.java index e5b0beff206..1c5064da85f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionNoneNormalizationTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionNoneNormalizationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionSimplemaxNormalizationTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionSimplemaxNormalizationTest.java index 64eb824a011..87124c9c200 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionSimplemaxNormalizationTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionSimplemaxNormalizationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionSoftmaxNormalizationTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionSoftmaxNormalizationTest.java index f35e15bb024..9d70b0cfb09 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionSoftmaxNormalizationTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionSoftmaxNormalizationTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionTest.java index 1a29020e18c..405de847031 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/LogisticRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MissingDataRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MissingDataRegressionTest.java index 8b819088214..d2415d55c95 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MissingDataRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MissingDataRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MixedVariablesRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MixedVariablesRegressionTest.java index 12b2230f3c3..1fd287c2e1e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MixedVariablesRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MixedVariablesRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MultipleCategoricalVariablesRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MultipleCategoricalVariablesRegressionTest.java index 12fce0e5dcf..2298af7c66f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MultipleCategoricalVariablesRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MultipleCategoricalVariablesRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MultipleLogisticRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MultipleLogisticRegressionTest.java index 386f78b66e8..59cd5cf992e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MultipleLogisticRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/MultipleLogisticRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesDecimalAndNegativeCoefsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesDecimalAndNegativeCoefsTest.java index ea34cc1121f..dcc7a01d1ae 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesDecimalAndNegativeCoefsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesDecimalAndNegativeCoefsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesLinearRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesLinearRegressionTest.java index 8291cf6c501..a7dc8beeca2 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesLinearRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesLinearRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesPolynomialRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesPolynomialRegressionTest.java index 543b32510a1..941ddbcdbd4 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesPolynomialRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/NumericVariablesPolynomialRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/OrderApprovalRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/OrderApprovalRegressionTest.java index 0395da887c8..20d06486803 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/OrderApprovalRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/OrderApprovalRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/PredictorTermRegressionTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/PredictorTermRegressionTest.java index 21b3d29dbd1..e9a2588c141 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/PredictorTermRegressionTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/PredictorTermRegressionTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationExpTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationExpTest.java index b5298504525..508ba54939a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationExpTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationExpTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationLogitTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationLogitTest.java index eb94ab80e1b..a8d2f989e2a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationLogitTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationLogitTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationSoftmaxTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationSoftmaxTest.java index 25fd71d53e2..83b48030b33 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationSoftmaxTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/kie-pmml-models-regression-tests/src/test/java/org/kie/pmml/regression/tests/RegressionNormalizationSoftmaxTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.regression.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/pom.xml index 13fb0620f8f..1af8ef726f1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-regression/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-pmml-models - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/pom.xml index 99244bd4303..67fc90f4164 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-scorecard - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Scorecard :: Compiler PMML Scorecard Compiler + + org.kie.pmml.models.scorecard.compiler + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/ScorecardCompilationDTO.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/ScorecardCompilationDTO.java index 5a4f4d714ab..172551aac5d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/ScorecardCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/ScorecardCompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.compiler; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/executor/ScorecardModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/executor/ScorecardModelImplementationProvider.java index ff77ef7b0b6..1989a951586 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/executor/ScorecardModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/executor/ScorecardModelImplementationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.scorecard.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLAttributeFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLAttributeFactory.java index 2d1b755ebc0..472c32edc3d 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLAttributeFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLAttributeFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.scorecard.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicFactory.java index 421f66e3353..0075a895d18 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.scorecard.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicsFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicsFactory.java index 7af8c2780ad..a6275f450c7 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicsFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicsFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactory.java index 5f9aa4c87e9..c39637072d9 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.scorecard.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLScorecardModelFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLScorecardModelFactory.java index 6ddc00bce66..4c86ae1b705 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLScorecardModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/main/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLScorecardModelFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/executor/ScorecardModelImplementationProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/executor/ScorecardModelImplementationProviderTest.java index 95920779917..4287fc8658e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/executor/ScorecardModelImplementationProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/executor/ScorecardModelImplementationProviderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLAttributeFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLAttributeFactoryTest.java index 2f714a3640a..8af8d8747a6 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLAttributeFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLAttributeFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicFactoryTest.java index adb02ba2492..5ebcb8257af 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicsFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicsFactoryTest.java index 520d4c921bc..6a0ae63134c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicsFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLCharacteristicsFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java index f39bd5ffe90..5ca0f0c5c48 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLComplexPartialScoreFactoryTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLScorecardModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLScorecardModelFactoryTest.java index 421ce4e633c..de2b4f56d18 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLScorecardModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLScorecardModelFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.compiler.factories; import java.util.Map; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/pom.xml index decde9680cf..76bfd50d4ba 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-scorecard - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -11,6 +31,10 @@ KIE :: PMML :: Models :: Scorecard :: Evaluator PMML Scorecard Evaluator + + org.kie.pmml.models.scorecard.evaluator + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/src/main/java/org/kie/pmml/models/scorecard/evaluator/PMMLScorecardModelEvaluator.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/src/main/java/org/kie/pmml/models/scorecard/evaluator/PMMLScorecardModelEvaluator.java index e93228a2398..8aa298635e7 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/src/main/java/org/kie/pmml/models/scorecard/evaluator/PMMLScorecardModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/src/main/java/org/kie/pmml/models/scorecard/evaluator/PMMLScorecardModelEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.scorecard.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/src/test/java/org/kie/pmml/models/scorecard/evaluator/PMMLScorecardModelEvaluatorTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/src/test/java/org/kie/pmml/models/scorecard/evaluator/PMMLScorecardModelEvaluatorTest.java index 0a01df9682b..ce693158d24 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/src/test/java/org/kie/pmml/models/scorecard/evaluator/PMMLScorecardModelEvaluatorTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-evaluator/src/test/java/org/kie/pmml/models/scorecard/evaluator/PMMLScorecardModelEvaluatorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/pom.xml index cab30726c62..f3fa07de21f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-scorecard - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Scorecard :: Model KiePMML Model for Scorecard implementation + + org.kie.pmml.models.scorecard.model + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLAttribute.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLAttribute.java index b56301dc48d..5493121e350 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLAttribute.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLAttribute.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.scorecard.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristic.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristic.java index 9e2569af20c..eb177f3a4b7 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristic.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristic.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.scorecard.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristics.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristics.java index 2c61ab4800f..765120ae85e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristics.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristics.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.scorecard.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLComplexPartialScore.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLComplexPartialScore.java index 219048f31f7..aa671a4a68e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLComplexPartialScore.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLComplexPartialScore.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.scorecard.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLScorecardModel.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLScorecardModel.java index a261553f114..8d017b87749 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLScorecardModel.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/main/java/org/kie/pmml/models/scorecard/model/KiePMMLScorecardModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLAttributeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLAttributeTest.java index f17bbe33d13..31c500fd80b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLAttributeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLAttributeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.model; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristicTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristicTest.java index 7d5993ff65f..8830a60f4f1 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristicTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristicTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.model; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristicsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristicsTest.java index b1371ea0ed7..1cef7be1a37 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristicsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLCharacteristicsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.model; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLComplexPartialScoreTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLComplexPartialScoreTest.java index 3efb090a4cb..7ae673a43f3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLComplexPartialScoreTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLComplexPartialScoreTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLScorecardModelTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLScorecardModelTest.java index b84cc8d72bb..23b3d24927c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLScorecardModelTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-model/src/test/java/org/kie/pmml/models/scorecard/model/KiePMMLScorecardModelTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.model; import java.util.ArrayList; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/pom.xml index 63a216fd386..482e06e0f87 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-scorecard - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Scorecard :: Tests PMML Scorecard Tests + + org.kie.pmml.models.scorecard.tests + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/AirconditioningScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/AirconditioningScorecardTest.java index c9087ee2297..0e27a8a7881 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/AirconditioningScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/AirconditioningScorecardTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.tests; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/BasicComplexPartialScoreTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/BasicComplexPartialScoreTest.java index 0dc734b8801..1f934ac6ae0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/BasicComplexPartialScoreTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/BasicComplexPartialScoreTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/CompoundNestedPredicateScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/CompoundNestedPredicateScorecardTest.java index c0894ad42e4..a350319ef8f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/CompoundNestedPredicateScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/CompoundNestedPredicateScorecardTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/CompoundPredicateScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/CompoundPredicateScorecardTest.java index 4b64299a75c..b269235d0be 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/CompoundPredicateScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/CompoundPredicateScorecardTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/MultipleAirconditioningScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/MultipleAirconditioningScorecardTest.java index 626dc6d4cf5..b0c9ae6af57 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/MultipleAirconditioningScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/MultipleAirconditioningScorecardTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.scorecard.tests; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/MultipleCompoundNestedPredicateScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/MultipleCompoundNestedPredicateScorecardTest.java index d18c09a30ad..07e991f0814 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/MultipleCompoundNestedPredicateScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/MultipleCompoundNestedPredicateScorecardTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/NestedComplexPartialScoreTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/NestedComplexPartialScoreTest.java index 1f29cf596ad..1af36d3c868 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/NestedComplexPartialScoreTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/NestedComplexPartialScoreTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardCategoricalTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardCategoricalTest.java index cff81520a3e..f1cc9bd8178 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardCategoricalTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardCategoricalTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardMixedVariablesTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardMixedVariablesTest.java index a6e0fb5dfed..9c2f0ec8ece 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardMixedVariablesTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardMixedVariablesTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardTest.java index 705b559ef10..1689474ab56 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardWithTransformationsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardWithTransformationsTest.java index fe7635c7467..64d24c9f723 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardWithTransformationsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-tests/src/test/java/org/kie/pmml/models/scorecard/tests/SimpleScorecardWithTransformationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.scorecard.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/pom.xml index 12d746508ec..9306a90e1d7 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/pom.xml index 4da402c05f4..584f28b851f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/pom.xml @@ -1,11 +1,31 @@ + kie-pmml-models org.kie - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -14,6 +34,10 @@ KIE :: PMML :: Models :: Tests PMML Common classes for Tests + + org.kie.pmml.models.tests + + org.kie diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/src/test/java/org/kie/pmml/models/tests/AbstractPMMLTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/src/test/java/org/kie/pmml/models/tests/AbstractPMMLTest.java index 72afdeaf15a..1ee1e6b2dc2 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/src/test/java/org/kie/pmml/models/tests/AbstractPMMLTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tests/src/test/java/org/kie/pmml/models/tests/AbstractPMMLTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tests; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/pom.xml index 8db209ba1f5..952c4a2f9ab 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-tree - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Tree :: Compiler PMML Tree Compiler + + org.kie.pmml.models.tree.compiler + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/dto/TreeCompilationDTO.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/dto/TreeCompilationDTO.java index 15d094e5a74..180c857c24e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/dto/TreeCompilationDTO.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/dto/TreeCompilationDTO.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tree.compiler.dto; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/executor/TreeModelImplementationProvider.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/executor/TreeModelImplementationProvider.java index 2154110e83f..61673a60456 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/executor/TreeModelImplementationProvider.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/executor/TreeModelImplementationProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.tree.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLNodeFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLNodeFactory.java index 080a89c3353..343f690dcbf 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLNodeFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLNodeFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tree.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLTreeModelFactory.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLTreeModelFactory.java index c3742fa0016..728e5a7ce7a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLTreeModelFactory.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLTreeModelFactory.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tree.compiler.factories; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/utils/KiePMMLTreeModelUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/utils/KiePMMLTreeModelUtils.java index c18c66bfd5d..3ddae2f9de9 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/utils/KiePMMLTreeModelUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/main/java/org/kie/pmml/models/tree/compiler/utils/KiePMMLTreeModelUtils.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.tree.compiler.utils; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/executor/TreeModelImplementationProviderTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/executor/TreeModelImplementationProviderTest.java index ad22add553e..0c1a6c03124 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/executor/TreeModelImplementationProviderTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/executor/TreeModelImplementationProviderTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tree.compiler.executor; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLNodeFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLNodeFactoryTest.java index fcdee178677..d1a2ee384b3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLNodeFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLNodeFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.compiler.factories; import java.io.IOException; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java index 299f40f50c3..c2fcf634def 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-compiler/src/test/java/org/kie/pmml/models/tree/compiler/factories/KiePMMLTreeModelFactoryTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.compiler.factories; import java.util.Map; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/pom.xml index 9714a29561e..93cac08382a 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-tree - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -11,6 +31,10 @@ KIE :: PMML :: Models :: Tree :: Evaluator PMML Tree Evaluator + + org.kie.pmml.models.tree.evaluator + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/src/main/java/org/kie/pmml/models/tree/evaluator/PMMLTreeModelEvaluator.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/src/main/java/org/kie/pmml/models/tree/evaluator/PMMLTreeModelEvaluator.java index 424bf74ef3d..b6f0365e728 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/src/main/java/org/kie/pmml/models/tree/evaluator/PMMLTreeModelEvaluator.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/src/main/java/org/kie/pmml/models/tree/evaluator/PMMLTreeModelEvaluator.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.pmml.models.tree.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/src/test/java/org/kie/pmml/models/tree/evaluator/PMMLTreeModelEvaluatorTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/src/test/java/org/kie/pmml/models/tree/evaluator/PMMLTreeModelEvaluatorTest.java index 1d084d0aeff..380e2b8c5f6 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/src/test/java/org/kie/pmml/models/tree/evaluator/PMMLTreeModelEvaluatorTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-evaluator/src/test/java/org/kie/pmml/models/tree/evaluator/PMMLTreeModelEvaluatorTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tree.evaluator; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/pom.xml index 7ce878dd4cb..76e491d014b 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-tree - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Tree :: Model KiePMML Model for Tree implementation + + org.kie.pmml.models.tree.model + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLNode.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLNode.java index 23f64611652..37e2ce7e597 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLNode.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLNode.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tree.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLNodeResult.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLNodeResult.java index fbc5c2bab55..92ddf37bb80 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLNodeResult.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLNodeResult.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.pmml.models.tree.model; import java.util.LinkedHashMap; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLScoreDistribution.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLScoreDistribution.java index dacb5e249f1..1a0d56c39e2 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLScoreDistribution.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLScoreDistribution.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.model; import java.util.List; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLTreeModel.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLTreeModel.java index 609533d77a0..ba35a401e61 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLTreeModel.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/main/java/org/kie/pmml/models/tree/model/KiePMMLTreeModel.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tree.model; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/test/java/org/kie/pmml/models/tree/model/KiePMMLNodeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/test/java/org/kie/pmml/models/tree/model/KiePMMLNodeTest.java index 2f07409b7b0..156150e7837 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/test/java/org/kie/pmml/models/tree/model/KiePMMLNodeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/test/java/org/kie/pmml/models/tree/model/KiePMMLNodeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.model; import java.util.Collections; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/test/java/org/kie/pmml/models/tree/model/KiePMMLTreeTestUtils.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/test/java/org/kie/pmml/models/tree/model/KiePMMLTreeTestUtils.java index fb5375adb5d..a5c7abe0fb8 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/test/java/org/kie/pmml/models/tree/model/KiePMMLTreeTestUtils.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-model/src/test/java/org/kie/pmml/models/tree/model/KiePMMLTreeTestUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.model; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/pom.xml index 0bd89689861..87af1f5651e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models-tree - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -12,6 +32,10 @@ KIE :: PMML :: Models :: Tree :: Tests PMML Tree Tests + + org.kie.pmml.models.tree.tests + + diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/main/resources/simplelogger.properties b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/main/resources/simplelogger.properties index eb7843b2215..d15b74658f0 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/main/resources/simplelogger.properties +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/main/resources/simplelogger.properties @@ -1,3 +1,22 @@ +# +# 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. +# + # SLF4J's SimpleLogger configuration file # Simple implementation of Logger that sends all enabled log messages, for all defined loggers, to System.err. diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/BostonHousingDataTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/BostonHousingDataTreeTest.java index ee56bb56462..e60d5283356 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/BostonHousingDataTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/BostonHousingDataTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/CompoundPredicateTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/CompoundPredicateTreeTest.java index f00c709f4b1..db462eb40d4 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/CompoundPredicateTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/CompoundPredicateTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/IrisDataTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/IrisDataTreeTest.java index 303508560bb..2327cfdfc32 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/IrisDataTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/IrisDataTreeTest.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.pmml.models.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/ReturnLastPredictionStrategyTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/ReturnLastPredictionStrategyTreeTest.java index 87ea3ecf9e3..06bdbfd5c62 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/ReturnLastPredictionStrategyTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/ReturnLastPredictionStrategyTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SampleMineTreeModelTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SampleMineTreeModelTest.java index 0cad1df69d7..c4bde79554f 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SampleMineTreeModelTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SampleMineTreeModelTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tree.tests; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SampleMineTreeModelWithTransformationsTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SampleMineTreeModelWithTransformationsTest.java index 11bc25142dc..d25f1c3da7c 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SampleMineTreeModelWithTransformationsTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SampleMineTreeModelWithTransformationsTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SimpleClassificationTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SimpleClassificationTreeTest.java index 129cf0534f0..7b1ebee229e 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SimpleClassificationTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SimpleClassificationTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SimpleSetPredicateTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SimpleSetPredicateTreeTest.java index 0506363a09b..95758154bb6 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SimpleSetPredicateTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/SimpleSetPredicateTreeTest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.pmml.models.tree.tests; import java.util.Arrays; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/TestTreeTest.java b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/TestTreeTest.java index 1adc7ad6def..ac3ce16d507 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/TestTreeTest.java +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/kie-pmml-models-tree-tests/src/test/java/org/kie/pmml/models/tree/tests/TestTreeTest.java @@ -1,17 +1,20 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.pmml.models.tree.tests; diff --git a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/pom.xml b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/pom.xml index 13c1b6f0053..ea7ffdc42c3 100644 --- a/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/kie-pmml-models-tree/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-models - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 pom diff --git a/kie-pmml-trusty/kie-pmml-models/pom.xml b/kie-pmml-trusty/kie-pmml-models/pom.xml index 36703403624..91dee043af2 100644 --- a/kie-pmml-trusty/kie-pmml-models/pom.xml +++ b/kie-pmml-trusty/kie-pmml-models/pom.xml @@ -1,9 +1,29 @@ + org.kie kie-pmml-trusty - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/kie-pmml-trusty/pom.xml b/kie-pmml-trusty/pom.xml index 1f8a504b749..4085e3afc19 100644 --- a/kie-pmml-trusty/pom.xml +++ b/kie-pmml-trusty/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-test-util/pom.xml b/kie-test-util/pom.xml index 08a4ad4fccb..e9c13c7c03b 100644 --- a/kie-test-util/pom.xml +++ b/kie-test-util/pom.xml @@ -1,11 +1,31 @@ + 4.0.0 org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/kie-test-util/src/main/java/org/kie/test/testcategory/TurtleTestCategory.java b/kie-test-util/src/main/java/org/kie/test/testcategory/TurtleTestCategory.java index f29d01091f7..a5f4f46685e 100644 --- a/kie-test-util/src/main/java/org/kie/test/testcategory/TurtleTestCategory.java +++ b/kie-test-util/src/main/java/org/kie/test/testcategory/TurtleTestCategory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.test.testcategory; /** diff --git a/kie-test-util/src/main/java/org/kie/test/util/StaticMethodTestHelper.java b/kie-test-util/src/main/java/org/kie/test/util/StaticMethodTestHelper.java index 1dd53f61fce..e4f1a63c129 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/StaticMethodTestHelper.java +++ b/kie-test-util/src/main/java/org/kie/test/util/StaticMethodTestHelper.java @@ -1,18 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.test.util; import static org.assertj.core.api.Assertions.assertThat; diff --git a/kie-test-util/src/main/java/org/kie/test/util/TestStatusListener.java b/kie-test-util/src/main/java/org/kie/test/util/TestStatusListener.java index bff0f9853f3..23617abdbbe 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/TestStatusListener.java +++ b/kie-test-util/src/main/java/org/kie/test/util/TestStatusListener.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.test.util; import java.io.BufferedWriter; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/CloseSafeMemoryContextFactory.java b/kie-test-util/src/main/java/org/kie/test/util/db/CloseSafeMemoryContextFactory.java index 0676df551dc..6bc2ac8fbf6 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/CloseSafeMemoryContextFactory.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/CloseSafeMemoryContextFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.test.util.db; import java.util.Hashtable; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/DataSourceFactory.java b/kie-test-util/src/main/java/org/kie/test/util/db/DataSourceFactory.java index 25f99dc1a40..4c6d153ba45 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/DataSourceFactory.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/DataSourceFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.test.util.db; import java.util.Properties; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java b/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java index ed1536f0563..121d08ea24c 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/PersistenceUtil.java @@ -1,18 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.test.util.db; import java.io.IOException; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/PoolingDataSourceWrapper.java b/kie-test-util/src/main/java/org/kie/test/util/db/PoolingDataSourceWrapper.java index ddaf08903e5..f3df8e7f42c 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/PoolingDataSourceWrapper.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/PoolingDataSourceWrapper.java @@ -1,3 +1,21 @@ +/** + * 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. + */ package org.kie.test.util.db; import javax.sql.DataSource; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/internal/DatabaseProvider.java b/kie-test-util/src/main/java/org/kie/test/util/db/internal/DatabaseProvider.java index 4b70eef404d..53e5cf6c2f4 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/internal/DatabaseProvider.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/internal/DatabaseProvider.java @@ -1,17 +1,20 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.test.util.db.internal; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java index eee5f49aede..8e9f686db35 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceFactory.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.test.util.db.internal; import java.lang.reflect.Field; diff --git a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java index 1a396881d89..71d6cf6b9e8 100755 --- a/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java +++ b/kie-test-util/src/main/java/org/kie/test/util/db/internal/PoolingDataSourceWrapperImpl.java @@ -1,19 +1,21 @@ -/* - * Copyright 2018 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ - package org.kie.test.util.db.internal; import java.io.PrintWriter; diff --git a/kie-test-util/src/main/java/org/kie/test/util/logging/LoggingPrintStream.java b/kie-test-util/src/main/java/org/kie/test/util/logging/LoggingPrintStream.java index 82142eeb5eb..32a512f10d6 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/logging/LoggingPrintStream.java +++ b/kie-test-util/src/main/java/org/kie/test/util/logging/LoggingPrintStream.java @@ -1,17 +1,20 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.test.util.logging; diff --git a/kie-test-util/src/main/java/org/kie/test/util/network/AvailablePortFinder.java b/kie-test-util/src/main/java/org/kie/test/util/network/AvailablePortFinder.java index 873d32ddcd7..d3a573c8dec 100644 --- a/kie-test-util/src/main/java/org/kie/test/util/network/AvailablePortFinder.java +++ b/kie-test-util/src/main/java/org/kie/test/util/network/AvailablePortFinder.java @@ -1,22 +1,21 @@ -/* +/** * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file + * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file + * 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 + * with the License. You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ - package org.kie.test.util.network; import java.io.IOException; diff --git a/kie-test-util/src/test/java/org/kie/test/util/StaticMethodTestHelperTest.java b/kie-test-util/src/test/java/org/kie/test/util/StaticMethodTestHelperTest.java index ae2e765c0bd..62c87afba95 100644 --- a/kie-test-util/src/test/java/org/kie/test/util/StaticMethodTestHelperTest.java +++ b/kie-test-util/src/test/java/org/kie/test/util/StaticMethodTestHelperTest.java @@ -1,18 +1,21 @@ -/* - * Copyright 2016 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.test.util; import static org.kie.test.util.StaticMethodTestHelper.*; diff --git a/kie-test-util/src/test/resources/logback-test.xml b/kie-test-util/src/test/resources/logback-test.xml index d0498c0d9c4..dd53cf7d9f7 100644 --- a/kie-test-util/src/test/resources/logback-test.xml +++ b/kie-test-util/src/test/resources/logback-test.xml @@ -1,4 +1,24 @@ + diff --git a/kie-util/kie-util-maven-integration/pom.xml b/kie-util/kie-util-maven-integration/pom.xml index 8aefad820fb..c66f30d4d44 100644 --- a/kie-util/kie-util-maven-integration/pom.xml +++ b/kie-util/kie-util-maven-integration/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-util - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 @@ -92,12 +112,6 @@ httpcore - - com.google.inject - guice - no_aop - - org.slf4j slf4j-api diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/Aether.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/Aether.java index 0d6bf46ff1f..97c24deaf5b 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/Aether.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/Aether.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import java.io.File; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/ArtifactResolver.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/ArtifactResolver.java index 50288008c61..a7949e62b1d 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/ArtifactResolver.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/ArtifactResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import java.io.File; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/DefaultArtifactResolver.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/DefaultArtifactResolver.java index 86e0c37c42d..6f9be7f878c 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/DefaultArtifactResolver.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/DefaultArtifactResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import java.net.MalformedURLException; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/DependencyDescriptor.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/DependencyDescriptor.java index 549faab02fc..4501e926638 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/DependencyDescriptor.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/DependencyDescriptor.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import org.apache.maven.artifact.versioning.ArtifactVersion; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/InJarArtifactResolver.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/InJarArtifactResolver.java index 430d6696a51..f645ac55678 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/InJarArtifactResolver.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/InJarArtifactResolver.java @@ -1,19 +1,21 @@ -/* - * Copyright 2020 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import java.io.File; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/IoUtils.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/IoUtils.java index 8440777bd4e..f3d16c5a1d9 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/IoUtils.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/IoUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import java.io.File; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenPomModelGenerator.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenPomModelGenerator.java index 70ce857ab7f..66d2dca7bae 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenPomModelGenerator.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenPomModelGenerator.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import java.io.InputStream; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenRepository.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenRepository.java index 5e472b778bf..7bbe6b82a73 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenRepository.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenRepository.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import java.io.File; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenRepositoryConfiguration.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenRepositoryConfiguration.java index 956694fa1ac..27593696744 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenRepositoryConfiguration.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/MavenRepositoryConfiguration.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import java.net.MalformedURLException; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/PomParser.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/PomParser.java index 3397cb6f445..070d4a79525 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/PomParser.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/PomParser.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration; import java.util.List; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/ComponentProvider.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/ComponentProvider.java index 9d1c92db621..3d9eb21dd38 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/ComponentProvider.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/ComponentProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration.embedder; import org.apache.maven.execution.MavenExecutionRequest; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/EmbeddedPomParser.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/EmbeddedPomParser.java index 3786c38f484..96d55728202 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/EmbeddedPomParser.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/EmbeddedPomParser.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. -*/ - + * 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. + */ package org.kie.maven.integration.embedder; import java.util.ArrayList; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedder.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedder.java index f4221d67f81..17090319408 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedder.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedder.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ package org.kie.maven.integration.embedder; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedderException.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedderException.java index 98d4e4023b6..1f017268137 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedderException.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedderException.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration.embedder; public class MavenEmbedderException extends Exception { diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedderUtils.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedderUtils.java index 4c0fdd581b3..0b558a08e29 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedderUtils.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenEmbedderUtils.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration.embedder; import java.io.File; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenProjectLoader.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenProjectLoader.java index a3cc7d10c1f..fa7d84e6e60 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenProjectLoader.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenProjectLoader.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration.embedder; import java.io.ByteArrayInputStream; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenRequest.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenRequest.java index bcc6cb59847..420828400b7 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenRequest.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenRequest.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration.embedder; import java.net.URL; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenSettings.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenSettings.java index 7889b32ae5f..08028d8cec6 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenSettings.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/MavenSettings.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration.embedder; import java.io.File; diff --git a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/PlexusComponentProvider.java b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/PlexusComponentProvider.java index 7177a106095..01249d98aba 100644 --- a/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/PlexusComponentProvider.java +++ b/kie-util/kie-util-maven-integration/src/main/java/org/kie/maven/integration/embedder/PlexusComponentProvider.java @@ -1,19 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.maven.integration.embedder; import java.io.File; diff --git a/kie-util/kie-util-maven-support/pom.xml b/kie-util/kie-util-maven-support/pom.xml index 03630560697..6cf33b38a0d 100644 --- a/kie-util/kie-util-maven-support/pom.xml +++ b/kie-util/kie-util-maven-support/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-util - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/DependencyFilter.java b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/DependencyFilter.java index 37d0ebb9499..843bc589b26 100644 --- a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/DependencyFilter.java +++ b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/DependencyFilter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.util.maven.support; import org.kie.api.builder.ReleaseId; diff --git a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/MinimalPomParser.java b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/MinimalPomParser.java index 2d27f228858..a6282415204 100644 --- a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/MinimalPomParser.java +++ b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/MinimalPomParser.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.util.maven.support; import java.io.InputStream; diff --git a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/PomModel.java b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/PomModel.java index ff93cc17e3f..ae2ab9b2f00 100644 --- a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/PomModel.java +++ b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/PomModel.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.util.maven.support; import java.io.IOException; diff --git a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/PomModelGenerator.java b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/PomModelGenerator.java index 05ee48b8273..fbf2e87435f 100644 --- a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/PomModelGenerator.java +++ b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/PomModelGenerator.java @@ -1,18 +1,21 @@ -/* - * Copyright 2021 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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. + * 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. */ - package org.kie.util.maven.support; import java.io.InputStream; diff --git a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/ReleaseIdImpl.java b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/ReleaseIdImpl.java index bc63ab337bb..77ace7eb5b5 100644 --- a/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/ReleaseIdImpl.java +++ b/kie-util/kie-util-maven-support/src/main/java/org/kie/util/maven/support/ReleaseIdImpl.java @@ -1,18 +1,21 @@ -/* - * Copyright 2015 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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. -*/ - + * 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. + */ package org.kie.util.maven.support; import java.io.Externalizable; diff --git a/kie-util/kie-util-xml/pom.xml b/kie-util/kie-util-xml/pom.xml index 685ee8b9a83..b4b51dcae7b 100644 --- a/kie-util/kie-util-xml/pom.xml +++ b/kie-util/kie-util-xml/pom.xml @@ -1,11 +1,31 @@ + org.kie kie-util - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT 4.0.0 diff --git a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/AnyAnnotationTypePermission.java b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/AnyAnnotationTypePermission.java index 47f3c8fee2f..9d610a1d1e5 100644 --- a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/AnyAnnotationTypePermission.java +++ b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/AnyAnnotationTypePermission.java @@ -1,17 +1,20 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed 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 +/** + * 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 + * 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. + * 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. */ package org.kie.utll.xml; diff --git a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalDateTimeXStreamConverter.java b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalDateTimeXStreamConverter.java index 2eff514eec2..ecf8c799ae5 100644 --- a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalDateTimeXStreamConverter.java +++ b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalDateTimeXStreamConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.utll.xml; import java.time.DateTimeException; diff --git a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalDateXStreamConverter.java b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalDateXStreamConverter.java index 8d04392e637..db101cf6a86 100644 --- a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalDateXStreamConverter.java +++ b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalDateXStreamConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.utll.xml; import java.time.DateTimeException; diff --git a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalTimeXStreamConverter.java b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalTimeXStreamConverter.java index c5564a06c8c..e8d3ddf61f9 100644 --- a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalTimeXStreamConverter.java +++ b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/LocalTimeXStreamConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.utll.xml; import java.time.DateTimeException; diff --git a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/OffsetDateTimeXStreamConverter.java b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/OffsetDateTimeXStreamConverter.java index 2fe833546f8..01169be78f3 100644 --- a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/OffsetDateTimeXStreamConverter.java +++ b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/OffsetDateTimeXStreamConverter.java @@ -1,18 +1,21 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. +/** + * 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 + * 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. -*/ - + * 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. + */ package org.kie.utll.xml; import java.time.DateTimeException; diff --git a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/XStreamUtils.java b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/XStreamUtils.java index a5465777e20..97516168585 100644 --- a/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/XStreamUtils.java +++ b/kie-util/kie-util-xml/src/main/java/org/kie/utll/xml/XStreamUtils.java @@ -1,25 +1,23 @@ -/* - * Copyright 2017 Red Hat, Inc. and/or its affiliates. +/** + * 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 * - * Licensed 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 * - * 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. + * 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. */ - package org.kie.utll.xml; -import java.util.function.BiFunction; -import java.util.function.Function; -import java.util.function.UnaryOperator; - import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.converters.reflection.ReflectionProvider; @@ -29,6 +27,10 @@ import com.thoughtworks.xstream.security.AnyTypePermission; import com.thoughtworks.xstream.security.WildcardTypePermission; +import java.util.function.BiFunction; +import java.util.function.Function; +import java.util.function.UnaryOperator; + import static com.thoughtworks.xstream.XStream.setupDefaultSecurity; public class XStreamUtils { @@ -42,9 +44,8 @@ public class XStreamUtils { "org.drools.traits.core.factmodel.Fact", "org.drools.traits.core.factmodel.Field", "org.drools.core.common.DefaultFactHandle", - "org.drools.core.common.EventFactHandle", - "org.drools.core.rule.KieModuleMetaInfo", - "org.drools.core.rule.TypeMetaInfo", + "org.drools.base.rule.KieModuleMetaInfo", + "org.drools.base.rule.TypeMetaInfo", "org.drools.core.runtime.help.impl.XStreamXMLTest$Message" }; diff --git a/kie-util/pom.xml b/kie-util/pom.xml index 39d9df611ec..7b98b5c3677 100644 --- a/kie-util/pom.xml +++ b/kie-util/pom.xml @@ -1,4 +1,24 @@ + @@ -6,7 +26,7 @@ org.kie drools-build-parent - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT ../build-parent/pom.xml diff --git a/pom.xml b/pom.xml index c3a908f9f5f..15fc1477990 100644 --- a/pom.xml +++ b/pom.xml @@ -3,17 +3,16 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - - org.jboss - jboss-parent - - 36 + + org.apache + apache + 30 org.kie drools-parent pom - 8.40.0-SNAPSHOT + 8.45.0-SNAPSHOT Drools :: Parent @@ -162,6 +161,7 @@ drools-util drools-io drools-core + drools-base drools-commands drools-kiesession drools-ecj @@ -273,6 +273,7 @@ drools-model drools-ruleunits drools-core + drools-base drools-compiler drools-mvel drools-kiesession